advanced |
#include <CGAL/partition_is_valid_2.h>
| ||||
|
| |||
determines if the polygons in the range [poly_first, poly_beyond)
define a valid -monotone partition of the polygon represented by the points
in the range [point_first, point_beyond).
The function returns true iff the partition is valid and otherwise
returns false. Precondition: Points in the range [point_first, point_beyond) define a simple, counterclockwise-oriented polygon. |
The default traits class Default_traits is Partition_traits_2, with the representation type determined by InputIterator::value_type.
CGAL::y_monotone_partition_2
CGAL::is_y_monotone_2
CGAL::partition_is_valid_2
CGAL::Partition_is_valid_traits_2<Traits, PolygonIsValid>
This function uses the function partition_is_valid_2 together with the function object Is_y_monotone_2 to determine if each polygon is -monotone or not. Thus the time required is loglog where is the total number of vertices of the partition polygons and is the total number of edges.
See the example presented with the function y_monotone_partition_2 for an illustration of the use of this function.
advanced |