polish doc

This commit is contained in:
Sébastien Loriot 2014-11-12 09:32:01 +01:00
parent befbcdf56a
commit 0f3f672225
2 changed files with 12 additions and 11 deletions

View File

@ -4,16 +4,17 @@ namespace CGAL {
\ingroup PkgConvexHull3Functions
\brief computes robustly the intersection of the halfspaces defined by the planes contained in the range [`begin`, `end`) without constructing the dual points. The result is stored in the polyhedron `P`.
If `origin` is given then it must be a point strictly inside the polyhedron. If an interior point is not given then it is computed using a linear program and thus is slower than the first approach.
This version does not compute the dual points, but instead it uses a traits class for handling predicates for dual points without computing them.
If `origin` is given then it must be a point strictly inside the polyhedron. If an interior point is not given then it is computed using a linear program and thus is slower.
This version does not construct the dual points explicitely but uses a special traits class for the function `CGAL::convex_hull_3()` to handle predicates on dual points without constructing them.
\attention Halfspaces are considered as lower halfspaces that is to say if the plane's equation is \f$ a\, x +b\, y +c\, z + d = 0 \f$ then the corresponding halfspace is defined by \f$ a\, x +b\, y +c\, z + d \le 0 \f$ .
\attention The value type of PlaneIterator (Plane) and the type of the origin (Point_3) must come from the same CGAL kernel.
\attention The value type of `PlaneIterator` and the point type of `origin` must come from the same \cgal Kernel.
\pre `origin` is inside the intersection of halfspaces defined by the range [`begin`, `end`).
\pre if provided, `origin` is inside the intersection of halfspaces defined by the range `[begin, end)`.
\pre The computed intersection must be a bounded convex polyhedron.
\tparam PlaneIterator must be an input iterator where the value type must be Polyhedron::Traits::Plane
\tparam PlaneIterator must be an input iterator where the value type must be `Polyhedron::Traits::Plane_3`
\tparam Polyhedron must be a model of `ConvexHullPolyhedron_3`.
\sa `halfspace_intersection_with_constructions_3()`
@ -22,6 +23,6 @@ This version does not compute the dual points, but instead it uses a traits clas
template <class PlaneIterator, class Polyhedron>
void halfspace_intersection_3 (PlaneIterator begin, PlaneIterator end,
Polyhedron &P,
Point_3 origin);
boost::optional<Polyhedron::Vertex::Point_3> origin);
} /* namespace CGAL */

View File

@ -4,16 +4,16 @@ namespace CGAL {
\ingroup PkgConvexHull3Functions
\brief computes the intersection of the halfspaces defined by the planes contained in the range [`begin`, `end`). The result is stored in the polyhedron `P`.
If `origin` is given then it must be a point strictly inside the polyhedron. If an interior point is not given then it is computed using a linear program and thus is slower than the first approach.
If `origin` is given then it must be a point strictly inside the polyhedron. If an interior point is not given then it is computed using a linear program and thus is slower.
This version constructs explicitly the dual points using the convex hull algorithm parametrized with the given traits class.
\attention Halfspaces are considered as lower halfspaces that is to say if the plane's equation is \f$ a\, x +b\, y +c\, z + d = 0 \f$ then the corresponding halfspace is defined by \f$ a\, x +b\, y +c\, z + d \le 0 \f$ .
\attention The value type of PlaneIterator (Plane) and the type of the origin (Point_3) must come from the same CGAL kernel.
\attention The value type of `PlaneIterator` and the point type of `origin` must come from the same \cgal Kernel.
\pre `origin` is inside the intersection of halfspaces defined by the range [`begin`, `end`).
\pre if provided, `origin` is inside the intersection of halfspaces defined by the range `[begin, end)`.
\pre The computed intersection must be a bounded convex polyhedron.
\tparam PlaneIterator must be an input iterator where the value type must be Polyhedron::Traits::Plane
\tparam PlaneIterator must be an input iterator where the value type must be `Polyhedron::Traits::Plane_3`
\tparam Polyhedron must be a model of `ConvexHullPolyhedron_3`.
\tparam Traits must be a model of the concept `ConvexHullTraits_3`.
@ -24,7 +24,7 @@ template <class PlaneIterator, class Polyhedron, class Traits>
void halfspace_intersection_with_constructions_3(PlaneIterator pbegin,
PlaneIterator pend,
Polyhedron &P,
Point_3 origin,
boost::optional<Polyhedron::Vertex::Point_3> origin,
const Traits & ch_traits = Default_traits);
} /* namespace CGAL */