From f5018374ee7dc88f47b56780436eabcfa54feb8d Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Thu, 18 Apr 2013 20:13:34 +0200 Subject: [PATCH] Add concept --- .../PolylineSimplificationVertexBase_2.h | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100755 Polyline_simplification_2/doc/Polyline_simplification_2/Concepts/PolylineSimplificationVertexBase_2.h diff --git a/Polyline_simplification_2/doc/Polyline_simplification_2/Concepts/PolylineSimplificationVertexBase_2.h b/Polyline_simplification_2/doc/Polyline_simplification_2/Concepts/PolylineSimplificationVertexBase_2.h new file mode 100755 index 00000000000..8f01a1d79a8 --- /dev/null +++ b/Polyline_simplification_2/doc/Polyline_simplification_2/Concepts/PolylineSimplificationVertexBase_2.h @@ -0,0 +1,42 @@ + +/*! +\ingroup PkgPolylineSimplification2Concepts +\cgalConcept + +Thr polyline simplification algorithm stores in the vertices +whether a vertex can be removed, and the cost of the removal. + +\cgalRefines `TriangulationVertexBase_2` + +### Types ### + +Defines the same types as the `TriangulationVertexBase_2` concept + +\cgalHasModel `CGAL::Polyline_simplification_2::Vertex_base_2` + +\sa `TriangulationFaceBase_2` +\sa `CGAL::Polyline_constrained_triangulation_2` + +*/ + +class PolylineSimplificationVertexBase_2 { +public: + /// A number type. + typedef Hidden_type FT; + +/// \name Access Functions +/// @{ + +/*! The Boolean that indicates whether the vertex can be removed. +*/ +bool& unremovable(); + +/*! The cost if the vertex got removed. +*/ +FT& cost(); + +/// @} + + +}; /* end PolylineSimplificationVertexBase_2 */ +