Skip to content

2D projection of a Surface Mesh and get the edges #6472

Discussion options

You must be logged in to vote

Hello,
After working a bit harder, I came up with this solution. It's based on the Triangulation_2/polygon_triangulation.cpp example.
To make the calculation faster, I could still filter the faces according to the angle between their normal and the direction of the projection, as you suggested.

Wouldn't it be a good thing to include a function in CGAL to get the borders (shadow from an infinit source of light) of any class based on the BGL concepts such as Surface_mesh , Polyhedron and the 2D triangulation .
You give the direction of the projection and you get the edges on the border.
Or at least publish a example dedicated on this feature.

My code

#include <CGAL/Exact_predicates_inexact…

Replies: 11 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@maximecharriere
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@maximecharriere
Comment options

@maximecharriere
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@sloriot
Comment options

@afabri
Comment options

afabri Apr 8, 2022
Collaborator

@maximecharriere
Comment options

Answer selected by maximecharriere
Comment options

You must be logged in to vote
2 replies
@maximecharriere
Comment options

@sloriot
Comment options

Comment options

You must be logged in to vote
1 reply
@maximecharriere
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants