| 9 | namespace PyMesh { |
| 10 | |
| 11 | class MeshCutter { |
| 12 | public: |
| 13 | using Ptr = std::shared_ptr<MeshCutter>; |
| 14 | |
| 15 | public: |
| 16 | MeshCutter(Mesh::Ptr mesh); |
| 17 | |
| 18 | /** |
| 19 | * Edge separating faces with different labels are cut. |
| 20 | */ |
| 21 | Mesh::Ptr cut_with_face_labels(const std::vector<size_t>& comp_ids) const; |
| 22 | |
| 23 | /** |
| 24 | * Edge that has discontinuous corner attribute on each side is cut. |
| 25 | */ |
| 26 | Mesh::Ptr cut_at_uv_discontinuity() const; |
| 27 | |
| 28 | /** |
| 29 | * Cut along edge chains. |
| 30 | */ |
| 31 | Mesh::Ptr cut_along_edges( |
| 32 | const std::vector<std::vector<int>>& edge_chains) const; |
| 33 | |
| 34 | private: |
| 35 | Mesh::Ptr m_mesh; |
| 36 | }; |
| 37 | |
| 38 | } |
| 39 | |