-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Trying to use visitor in split() method #8275
Comments
The visitor should be in the first named parameter, not the second one (you have to expand the doc to see the np_tm only). This kind of problem should be fixed when #7966 is merged and used for all functions. |
Thank you for your kind remind, but after changing the visitor to the first name parameter, the call backs are still not called, and the visitor v is still empty after running split method. |
You cannot put |
Sorry I may not catch your words. |
Hi, after reading this post, I changed split to clip method, and now
which is copied from official code example. |
Copy/paste of my answer here: You are mixing things up. The example you are pointing out is for triangulating a mesh, and the visitor must model the concept PMPTriangulateFaceVisitor. If you are using corefinement, the visitor must model the concept PMPCorefinementVisitor. In clip (and corefinement) you have 2 meshes so the same id might appear twice but with different meshes. |
Yes you need the aforementioned patch so that the visitor is correctly forwarded |
Thank you, BTW I see that you just changed few code in #8276 as well as in #7966 , If I want to use this new feature now, can I just use the 5.5.x branch and just add the same code ? |
OK. So params::visitor(v) actually deals with both the tm as well as clipper/splitter even though it is associated as np_tm? |
The PR #8275 is now merged. |
If you are using cmake, it is just a matter of modifying your CGAL_DIR to point to the git checkout. |
OK. Thank you! |
Hi, just have another question: I am trying to implement some halfedge callbacks such as update: I added |
if the clip is done with |
Please use the following template to help us solving your issue.
Issue Details
I am using split function to intersect two surface meshes and I want to get the newly created points/edges during split so that I can remesh these points. From this link I think I could use visitor to get what I want. the surface meshes, named slope and slide respectively, are shown as follows:
However, I could not get any infomation,
before_subface_creations, after_subface_created after_subface_creations
all the 3 call back functions do not get called./
I hope if anyone could help me solve this. Thank you!
Source Code
Environment
The text was updated successfully, but these errors were encountered: