CGAL 4.6.2 - Planar Parameterization of Triangulated Surface Meshes
|
#include <CGAL/Square_border_parameterizer_3.h>
Inherited by CGAL::Square_border_arc_length_parameterizer_3< ParameterizationMesh_3 >, and CGAL::Square_border_uniform_parameterizer_3< ParameterizationMesh_3 >.
This is the base class of strategies that parameterize the border of a 3D surface onto a square.
Square_border_parameterizer_3
is a pure virtual class, thus cannot be instantiated.
It implements most of the algorithm. Subclasses just have to implement compute_edge_length(
) to compute a segment's length.
Implementation note: To simplify the implementation, BorderParameterizer_3
models know only the ParameterizationMesh_3
class. They do not know the parameterization algorithm requirements or the kind of sparse linear system used.
Public Types | |
typedef ParameterizationMesh_3 | Adaptor |
Export ParameterizationMesh_3 template parameter. | |
Public Member Functions | |
virtual | ~Square_border_parameterizer_3 () |
Destructor of base class should be virtual. | |
Parameterizer_traits_3 < Adaptor >::Error_code | parameterize_border (Adaptor &mesh) |
Assign to mesh's border vertices a 2D position (i.e. a (u,v) pair) on border's shape. More... | |
bool | is_border_convex () |
Indicate if border's shape is convex. | |
Protected Member Functions | |
virtual double | compute_edge_length (const Adaptor &mesh, Vertex_const_handle source, Vertex_const_handle target)=0 |
Compute the length of an edge. | |
Parameterizer_traits_3< Adaptor >::Error_code CGAL::Square_border_parameterizer_3< Adaptor >::parameterize_border | ( | Adaptor & | mesh) |
Assign to mesh's border vertices a 2D position (i.e. a (u,v) pair) on border's shape.
Mark them as parameterized.