CGAL 6.1 - Triangulated Surface Mesh Shortest Paths
|
#include <Concepts/SurfaceMeshShortestPathVisitor.h>
The concept SurfaceMeshShortestPathVisitor
describes the requirements of the visitor type used to collect the edges and vertices traversed by a shortest path on the surface of a triangulated surface mesh.
The methods are called in the order of the shortest path sequence along the surface, starting with the target point and ending with the source point.
Methods | |
void | operator() (halfedge_descriptor edge, FT alpha) |
Called when an edge was traversed in the shortest path sequence. | |
void | operator() (vertex_descriptor vertex) |
Called when a vertex is encountered in the shortest path sequence. | |
void | operator() (face_descriptor face, Barycentric_coordinates location) |
Called when a face location is encountered in the shortest path sequence. | |
void SurfaceMeshShortestPathVisitor::operator() | ( | face_descriptor | face, |
Barycentric_coordinates | location | ||
) |
Called when a face location is encountered in the shortest path sequence.
face | a face of the surface mesh encountered at the start or the end of the shortest path. |
location | the barycentric coordinates inside face of this point on the path. |
void SurfaceMeshShortestPathVisitor::operator() | ( | halfedge_descriptor | edge, |
FT | alpha | ||
) |
Called when an edge was traversed in the shortest path sequence.
edge | halfedge of the surface mesh crossed by the shortest path. The halfedge is directed toward the face nearest to the target point. |
alpha | value in the range [0.0,1.0] specifying where along edge the shortest path crossed.
|
Note that values of 0.0 and 1.0 are possible in some situations, and may not be reported as vertices. In particular, this will occur if the vertex crossed by the path is not a saddle vertex (less than \(2\pi\) surface area). This is because from the perspective of the algorithm, this is indistinguishable from crossing anywhere else along the edge.
void SurfaceMeshShortestPathVisitor::operator() | ( | vertex_descriptor | vertex | ) |
Called when a vertex is encountered in the shortest path sequence.
vertex | the vertex of the surface mesh encountered by the shortest path. |