Skip to content

iterator for vertices at both ends forming an edge #6135

Answered by MaelRL
zinuok asked this question in Q&A
Discussion options

You must be logged in to vote

An edge is a Triple<Cell_handle, int, int>. See 3D triangulations representations and more generally the 3D triangulation data structure reference manual (e.g. https://doc.cgal.org/latest/TDS_3/classTriangulationDataStructure__3_1_1Cell.html will give you the API of the cell). Here, it->first will give you the cell, it->first->vertex(index) the vertex, it->first->vertex(index)->point() the point, etc.

If you are confused by the doc, you can also search the CGAL code base to see how functions are used in practice.

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
Converted from issue

This discussion was converted from issue #6134 on November 18, 2021 10:43.