Functions of Float Snap Rounding algorithm.
|
| template<class InputIterator , class OutputIterator , class NamedParameters = parameters::Default_named_parameters> |
| OutputIterator | CGAL::float_snap_rounding_2 (InputIterator begin, InputIterator end, OutputIterator out, const NamedParameters &np=parameters::default_values()) |
| | subdivides and rounds a set of segments so that they are pairwise disjoint in their interiors.
|
| |
| template<class InputIterator , class OutputIterator , class NamedParameters = parameters::Default_named_parameters> |
| OutputIterator | CGAL::compute_snapped_subcurves_2 (InputIterator begin, InputIterator end, OutputIterator out, const NamedParameters &np=parameters::default_values()) |
| | Given a range of segments, computes rounded subsegments that are pairwise disjoint in their interior, as induced by the input curves.
|
| |
| template<class InputIterator , class OutputIterator , class NamedParameters = parameters::Default_named_parameters> |
| void | CGAL::compute_snapped_polygons_2 (InputIterator begin, InputIterator end, OutputIterator out, const NamedParameters &np=parameters::default_values()) |
| | Given a range of Polygon_2, computes rounded polygons such that their segments are either equal or disjoint in their interiors, as induced by the input polygons.
|
| |
|
template<class Polygon_2 , class NamedParameters = parameters::Default_named_parameters> |
| void | CGAL::compute_snapped_polygon_2 (const Polygon_2 &P, Polygon_2 &out, const NamedParameters &np=parameters::default_values()) |
| | calls CGAL::compute_snapped_polygons_2() with a single input polygon
|
| |
◆ compute_snapped_polygons_2()
#include <CGAL/Float_snap_rounding_2.h>
Given a range of Polygon_2, computes rounded polygons such that their segments are either equal or disjoint in their interiors, as induced by the input polygons.
Each input polygon is guaranteed to remain a Polygon in the output but may present pinched sections or/and common vertices or segments with other polygons.
- Template Parameters
-
- Parameters
-
| begin,end | the range of input polygons |
| out | the output inserter |
| np | an optional sequence of Named Parameters among the ones listed below |
- Optional Named Parameters
-
- Warning
- an input convex polygon might no longer be convex after rounding.
◆ compute_snapped_subcurves_2()
#include <CGAL/Float_snap_rounding_2.h>
Given a range of segments, computes rounded subsegments that are pairwise disjoint in their interior, as induced by the input curves.
- Template Parameters
-
- Parameters
-
| begin,end | the input segment range |
| out | the output inserter |
| np | an optional sequence of Named Parameters among the ones listed below |
- Optional Named Parameters
-
- Examples
- Snap_rounding_2/float_snap_rounding.cpp.
◆ float_snap_rounding_2()
#include <CGAL/Float_snap_rounding_2.h>
subdivides and rounds a set of segments so that they are pairwise disjoint in their interiors.
The output is a range of polylines, where each polyline corresponds to an input segment.
- Template Parameters
-
- Parameters
-
| begin,end | the input segment range |
| out | the output inserter |
| np | an optional sequence of Named Parameters among the ones listed below |
- Optional Named Parameters
-
- Examples
- Snap_rounding_2/float_snap_rounding.cpp.