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

Function compute_edge_field

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

Source from the content-addressed store, hash-verified

21 return parser.parse_args();
22
23def compute_edge_field(mesh):
24 edges = [];
25 vertices = mesh.vertices;
26 for f in mesh.faces:
27 e = vertices[f[[1,2,0]]] - vertices[f]
28 edges.append(e);
29 mesh.add_attribute("edges");
30 mesh.set_attribute("edges", np.ravel(edges));
31
32def compute_cotan_field(mesh):
33 cotans = [];

Callers 1

mainFunction · 0.85

Calls 2

add_attributeMethod · 0.45
set_attributeMethod · 0.45

Tested by

no test coverage detected