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

Function is_vertex_manifold

python/pymesh/meshutils/manifold_check.py:4–11  ·  view source on GitHub ↗

Vertex manifold check. The result is stored as a per-vertex scalar field named "vertex_manifold".

(mesh)

Source from the content-addressed store, hash-verified

2from .. import Mesh
3
4def is_vertex_manifold(mesh):
5 """ Vertex manifold check. The result is stored as a per-vertex scalar
6 field named "vertex_manifold".
7 """
8
9 vertex_manifold = PyMesh.is_vertex_manifold(mesh.faces)
10 mesh.add_attribute("vertex_manifold")
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

Callers 1

TEST_FFunction · 0.85

Calls 3

is_vertex_manifoldMethod · 0.45
add_attributeMethod · 0.45
set_attributeMethod · 0.45

Tested by 1

TEST_FFunction · 0.68