mesh.Mesh.check_triangle_mesh#
- Mesh.check_triangle_mesh()#
Check whether the triangle mesh is a manifold, orientable and closed.
Returns#
- manifoldbool
True if the surface mesh is a manifold.
- orientablebool
True if the surface mesh is orientable.
- closedbool
True if the surface mesh is closed.
- minconint
Minimum number of triangles sharing any edge.
- maxconint
Maximum number of triangles sharing any edge.
Notes#
A Möbius ring is an open non-orientable manifold. A Klein bottle is a closed non-orientable (self-intersecting) manifold.
Examples#
>>> from hellotriangle import shapes >>> shapes.sphere().check_triangle_mesh() (True, True, True, 2, 2)