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

Function compute_area_and_normal_field

scripts/geodesic.py:48–51  ·  view source on GitHub ↗
(mesh)

Source from the content-addressed store, hash-verified

46 mesh.set_attribute("cotan", np.ravel(cotans));
47
48def compute_area_and_normal_field(mesh):
49 mesh.add_attribute("face_area");
50 mesh.add_attribute("vertex_area");
51 mesh.add_attribute("face_normal");
52
53def assemble_laplacian_matrix(mesh):
54 i = [];

Callers 1

mainFunction · 0.85

Calls 1

add_attributeMethod · 0.45

Tested by

no test coverage detected