CGAL / cgal

The public CGAL repository, see the README below
https://github.com/CGAL/cgal#readme
Other
5k stars 1.39k forks source link

How to recover vertex that removed? #7958

Open StromanStroman opened 10 months ago

StromanStroman commented 10 months ago

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

StromanStroman commented 10 months ago

I want to reuse those vertexes.

afabri commented 3 months ago

Hello @StromanStroman, Is this still an open question or did you find an answer yourself?
I guess you didn't get an answer, because you did not make an effort to clearly express yourself. There is no typesetting, no backticks around function names, no self-contained example code. You make it an effort for people to just understand what the issue is.