- maximum allowed orthogonal distance between two parallel and consecutive contour edges such that they are considered to be collinear
-
Type:
GeomTraits::FT
- Default: 0.5 unit length
CGAL 6.0 - Shape Regularization
|
Models and functions that can be used when regularizing contours.
Classes | |
class | CGAL::Shape_regularization::Contours::Longest_direction_2< GeomTraits, InputRange, PointMap > |
Estimates the longest principal direction of the contour. More... | |
class | CGAL::Shape_regularization::Contours::Multiple_directions_2< GeomTraits, InputRange, PointMap > |
Estimates possibly multiple principal directions of the contour based on the user-specified minimum length and maximum angle bounds. More... | |
class | CGAL::Shape_regularization::Contours::User_defined_directions_2< GeomTraits, InputRange, PointMap > |
Sets multiple user-specified principal directions of the contour. More... | |
Functions | |
template<typename InputRange , typename ContDirections , typename OutIterator , typename NamedParameters = parameters::Default_named_parameters> | |
OutIterator | CGAL::Shape_regularization::Contours::regularize_closed_contour (const InputRange &input_range, const ContDirections &directions, OutIterator contour, const NamedParameters &np=parameters::default_values()) |
regularizes closed contours. | |
template<typename InputRange , typename OutIterator > | |
OutIterator | CGAL::Shape_regularization::Contours::regularize_closed_contour (const InputRange &input_range, OutIterator contour) |
regularizes closed contours. | |
template<typename InputRange , typename ContDirections , typename OutIterator , typename NamedParameters = parameters::Default_named_parameters> | |
OutIterator | CGAL::Shape_regularization::Contours::regularize_open_contour (const InputRange &input_range, const ContDirections &directions, OutIterator contour, const NamedParameters &np=parameters::default_values()) |
regularizes open contours. | |
template<typename InputRange , typename OutIterator > | |
OutIterator | CGAL::Shape_regularization::Contours::regularize_open_contour (const InputRange &input_range, OutIterator contour) |
regularizes open contours. | |
OutIterator CGAL::Shape_regularization::Contours::regularize_closed_contour | ( | const InputRange & | input_range, |
const ContDirections & | directions, | ||
OutIterator | contour, | ||
const NamedParameters & | np = parameters::default_values() |
||
) |
#include <CGAL/Shape_regularization/regularize_contours.h>
regularizes closed contours.
Given a set of ordered 2D points connected by segments, which form a closed contour, this function enables to reinforce three types of regularities among consecutive edges of this contour:
The principal directions of the contour are provided via the concept ContourDirections
.
InputRange | a model of ConstRange whose iterator type is RandomAccessIterator |
ContDirections | a model of ContourDirections |
OutIterator | a model of OutputIterator that accepts points of type GeomTraits::Point_2 |
NamedParameters | a sequence of Named Parameters |
input_range | a const range of ordered points, which form a contour |
directions | estimated contour directions towards which the contour edges are oriented |
contour | an output iterator with points of the regularized contour |
np | an optional sequence of Named Parameters among the ones listed below; this parameter can be omitted, the default values are then used |
| |
| |
|
OutIterator CGAL::Shape_regularization::Contours::regularize_closed_contour | ( | const InputRange & | input_range, |
OutIterator | contour | ||
) |
#include <CGAL/Shape_regularization/regularize_contours.h>
regularizes closed contours.
This function regularizes a closed contour with respect to the longest edge of this contour.
OutIterator CGAL::Shape_regularization::Contours::regularize_open_contour | ( | const InputRange & | input_range, |
const ContDirections & | directions, | ||
OutIterator | contour, | ||
const NamedParameters & | np = parameters::default_values() |
||
) |
#include <CGAL/Shape_regularization/regularize_contours.h>
regularizes open contours.
Given a set of ordered 2D points connected by segments, which form an open contour, this function enables to reinforce three types of regularities among consecutive edges of this contour:
The principal directions of the contour are provided via the concept ContourDirections
.
InputRange | a model of ConstRange whose iterator type is RandomAccessIterator |
ContDirections | a model of ContourDirections |
OutIterator | a model of OutputIterator that accepts points of type GeomTraits::Point_2 |
NamedParameters | a sequence of Named Parameters |
input_range | a const range of ordered points, which form a contour |
directions | estimated contour directions towards which the contour edges are oriented |
contour | an output iterator with points of the regularized contour |
np | an optional sequence of Named Parameters among the ones listed below; this parameter can be omitted, the default values are then used |
| |
| |
|
OutIterator CGAL::Shape_regularization::Contours::regularize_open_contour | ( | const InputRange & | input_range, |
OutIterator | contour | ||
) |
#include <CGAL/Shape_regularization/regularize_contours.h>
regularizes open contours.
This function regularizes an open contour with respect to the longest edge of this contour.