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

Function is_edge_manifold

python/pymesh/meshutils/manifold_check.py:13–20  ·  view source on GitHub ↗

Edge manifold check. The result is stored as a per-edge scalar field named "edge_manifold".

(mesh)

Source from the content-addressed store, hash-verified

11 mesh.set_attribute("vertex_manifold", vertex_manifold)
12
13def is_edge_manifold(mesh):
14 """ Edge manifold check. The result is stored as a per-edge scalar
15 field named "edge_manifold".
16 """
17
18 edge_manifold = PyMesh.is_edge_manifold(mesh.faces)
19 mesh.add_attribute("edge_manifold")
20 mesh.set_attribute("edge_manifold", edge_manifold)
21
22def cut_to_manifold(mesh):
23 """ Cut an input mesh along nonmanifold edges to it becomes manifold.

Callers 2

cut_to_manifoldMethod · 0.85
TEST_FFunction · 0.85

Calls 3

is_edge_manifoldMethod · 0.45
add_attributeMethod · 0.45
set_attributeMethod · 0.45

Tested by 1

TEST_FFunction · 0.68