CGAL 6.2 - 3D Triangulations
Loading...
Searching...
No Matches
Miscellaneous

Functions

template<class Triangulation_3 , class TriangleMesh , class NamedParameters = parameters::Default_named_parameters>
boost::graph_traits< TriangleMesh >::vertex_descriptor CGAL::link_to_face_graph (const Triangulation_3 &t, typename Triangulation_3::Vertex_handle vh, TriangleMesh &tm, const NamedParameters &np=parameters::default_values())
 clears and fills the face graph tm with the link of triangulation vertex vh.
 

Function Documentation

◆ link_to_face_graph()

template<class Triangulation_3 , class TriangleMesh , class NamedParameters = parameters::Default_named_parameters>
boost::graph_traits< TriangleMesh >::vertex_descriptor CGAL::link_to_face_graph ( const Triangulation_3 t,
typename Triangulation_3::Vertex_handle  vh,
TriangleMesh &  tm,
const NamedParameters &  np = parameters::default_values() 
)

#include <CGAL/link_to_face_graph.h>

clears and fills the face graph tm with the link of triangulation vertex vh.

If t.dimension()!=3, nothing is done.

Template Parameters
Triangulation_3must be a CGAL 3D triangulation.
TriangleMeshmust be a model of the concept MutableFaceGraph.
Parameters
tthe 3D triangulation
vhthe vertex handle of the vertex
tmthe triangle mesh
npan optional sequence of Named Parameters among the ones listed below
Optional Named Parameters
  • if true and if vh is on the convex hull of t, infinite facets are ignored and a triangle mesh with a border is generated
  • Type: Boolean
  • Default: true
  • a property map associating points to the vertices of tm
  • Type: a class model of WritablePropertyMap with boost::graph_traits<TriangleMesh>::vertex_descriptor as key type and Triangulation_3::Point_3 as value type
  • Default: boost::get(CGAL::vertex_point, tm)
Returns
the vertex descriptor of the triangle mesh tm corresponding to the infinite vertex of t, if vh is on the convex hull of the triangulation, and if ignore_infinite_faces is false. Otherwise, an arbitrary vertex descriptor of the triangle mesh tm.
See also
convex_hull_3_to_face_graph()