Skip to content

get points of intersection with the window’s boundary #5914

Answered by sloriot
Aomandeyi asked this question in Q&A
Discussion options

You must be logged in to vote

You can use the function draw_dual() from the triangulation.

Then use the intersection() function to clip the segments, rays and lines.

It is used in the CGAL ipelets here:
https://github.com/CGAL/cgal/blob/master/CGAL_ipelets/include/CGAL/CGAL_Ipelet_base_v7.h#L724

which is calling this function:
https://github.com/CGAL/cgal/blob/master/CGAL_ipelets/include/CGAL/CGAL_Ipelet_base_v7.h#L705

Here is the struct used as stream for draw_dual():
https://github.com/CGAL/cgal/blob/master/CGAL_ipelets/include/CGAL/CGAL_Ipelet_base_v7.h#L671

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MaelRL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants