cgal
cgal copied to clipboard
How to recover vertex that removed?
I got a custom data model,which recording removed vertex,working vertex,removed face,working face.I want to create a surfacemesh according to the data model. But I met several questions. Vertexes has their ordered vertex indexes in the data model,which starting from 0 and increasing sequentially, so as faces. I want to map the same ordered indexes for vertex and face in the surfacemesh which I create. When add_face sequentially,current inserting face can not be inserted,for it has topology problem with some face inserted before,maybe overlaped or something else.So I got a null face. I set set_recycle_garbage to false.And I use CGAL::Euler::remove_face to truly remove a new inserted face if this face is marked removed in the data model.But the CGAL::Euler::remove_face also removes related vertexes of the face which is not what I want. Then if I will insert a face using the removed vertex , I also got a null face. So I want to know how to recover the vertex removed by CGAL::Euler::remove_face? Or could you tell me a better way to map my custom data model to a same surfacemesh ?
Environment
- Operating system (Windows 64 bits):
- Compiler:Visual Studio 2022 community
- Release or debug mode:debug
- Specific flags used (if any):
- CGAL version:5.6
- Boost version:1.79.0
- Other libraries versions if used (Eigen, TBB, etc.):