MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / normalize_mesh

Function normalize_mesh

scripts/mean_curvature_flow.py:21–26  ·  view source on GitHub ↗
(vertices, faces)

Source from the content-addressed store, hash-verified

19 return parser.parse_args();
20
21def normalize_mesh(vertices, faces):
22 centroid = np.mean(vertices, axis=0);
23 vertices -= centroid;
24 radii = norm(vertices, axis=1);
25 vertices /= np.amax(radii);
26 return pymesh.form_mesh(vertices, faces);
27
28def integrate(mesh, time_step, use_graph_laplacian):
29 assembler = pymesh.Assembler(mesh);

Callers 2

integrateFunction · 0.85
mean_curvature_flowFunction · 0.85

Calls 1

form_meshMethod · 0.45

Tested by

no test coverage detected