Edge manifold check. The result is stored as a per-edge scalar field named "edge_manifold".
(mesh)
| 11 | mesh.set_attribute("vertex_manifold", vertex_manifold) |
| 12 | |
| 13 | def 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 | |
| 22 | def cut_to_manifold(mesh): |
| 23 | """ Cut an input mesh along nonmanifold edges to it becomes manifold. |