CGAL 4.8.1 - 3D Convex Hulls
|
Functions | |
template<class Polyhedron , class Traits > | |
bool | CGAL::is_strongly_convex_3 (Polyhedron &P, const Traits &traits=Default_traits) |
determines if the vertices of a given polyhedron represents a strongly convex set of points or not. More... | |
bool CGAL::is_strongly_convex_3 | ( | Polyhedron & | P, |
const Traits & | traits = Default_traits |
||
) |
determines if the vertices of a given polyhedron represents a strongly convex set of points or not.
A set of points is said to be strongly convex if it consists of only extreme points (i.e., vertices of the convex hull).
The default traits class is the kernel in which the type Polyhedron::Point_3
is defined.
Requirements
Polyhedron::Point_3
is equivalent to Traits::Point_3
. Traits
is a model of the concept IsStronlyConvexTraits_3
Polyhedron
must define the following types: Polyhedron::Facet_iterator
Polyhedron::Vertex_iterator
facets_begin()
facets_end()
vertices_begin()
vertices_end()
Polyhedron
must be a model of ConvexHullPolyhedronVertex_3
; the facet type must be ConvexHullPolyhedronFacet_3
. Implementation
This function implements the tests described in [3] to determine convexity and requires \( O(e + f)\) time for a polyhedron with \( e\) edges and \( f\) faces.
determines if the set of vertices of the polyhedron P
represent a strongly convex set of points or not.
#include <CGAL/convexity_check_3.h>