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

Sampling points with normals and face indices #8634

Open
vladgl opened this issue Dec 1, 2024 · 2 comments
Open

Sampling points with normals and face indices #8634

vladgl opened this issue Dec 1, 2024 · 2 comments

Comments

@vladgl
Copy link

vladgl commented Dec 1, 2024

Issue Details

I want to sample a surface mesh using CGAL::Polygon_mesh_processing::sample_triangle_mesh and associate with each sampled point the normal and index of the face it was sampled from. Is it possible to do this with property maps and named parameters?

Source Code

Environment

  • Operating system (Windows/Mac/Linux, 32/64 bits):
  • Compiler:
  • Release or debug mode:
  • Specific flags used (if any):
  • CGAL version:
  • Boost version:
  • Other libraries versions if used (Eigen, TBB, etc.):
@afabri
Copy link
Member

afabri commented Dec 3, 2024

I looked at the code. I would say that it cannot be achieved with just a custom property map. But it should be easy to add a named parameter for a visitor which gets the point together with a face/edge/vertex descriptor.

@sloriot
Copy link
Member

sloriot commented Dec 3, 2024

FYI: It has been added in the poisson sampling branch. I'll check how easy it is to extract.

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

4 participants