Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to recover vertex that removed? #7958

Open
StromanStroman opened this issue Jan 3, 2024 · 2 comments
Open

How to recover vertex that removed? #7958

StromanStroman opened this issue Jan 3, 2024 · 2 comments

Comments

@StromanStroman
Copy link

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.):
@StromanStroman
Copy link
Author

I want to reuse those vertexes.

@afabri
Copy link
Member

afabri commented Aug 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants