CGAL 6.2 - Feature graph
Loading...
Searching...
No Matches
CGAL::Feature_graph::Detect_sharp_features_on_surface Struct Reference

#include <CGAL/Feature_graph/detect_sharp_features.h>

Definition

Functor for sharp feature detection in surfaces.

See also
Detect_sharp_features_on_labeled_image

Public Member Functions

template<typename Point_3 , typename PolygonMesh , typename NamedParameters = CGAL::parameters::Default_named_parameters>
unspecified_type operator() (const PolygonMesh &pmesh, const NamedParameters &np=parameters::default_values()) const
 detects and constructs the feature graph from a surface
 

Member Function Documentation

◆ operator()()

template<typename Point_3 , typename PolygonMesh , typename NamedParameters = CGAL::parameters::Default_named_parameters>
unspecified_type CGAL::Feature_graph::Detect_sharp_features_on_surface::operator() ( const PolygonMesh &  pmesh,
const NamedParameters &  np = parameters::default_values() 
) const

detects and constructs the feature graph from a surface

The feature graph has polylines that lie on the sharp features of the surface.

Template Parameters
Point_3a model of Kernel::Point_3. It defines the feature graph point type.
PolygonMesha model of FaceListGraph that represents a surface mesh.
Parameters
pmesha polygon mesh from where the sharp features are extracted.
npan optional sequence of Named Parameters among the ones listed below:
Optional Named Parameters
  • a boolean indicating if the optimization step is called.
  • Default: true
  • an output property map that will be filled if supplied. It allows retrieving of the surface element where a feature graph point is embedded. It must be a model of WritablePropertyMap, so it must implement put(output_pmap, point_index, element_index) where the key type is the point index type of the feature graph, and the value type the element index type of the surface. The element index correspond to a facet element with the tag CGAL::DimensionTag<2>
  • Default: parameters::default()
Returns
a graph model of VertexAndEdgeListGraph containing the constructed features.