Deduce Triangulation_3's point type from the TDS

Since we have a distinc vertex_base for regular triangulations and that this
regular vertex base defines a type Point, it is redundant to get the Point
type from the Geom_traits.

This also allows to remove the Weighted_point_mapper trick, and pass more easily
custom point types.
This commit is contained in:
Mael Rouxel-Labbé 2017-04-27 00:21:47 +02:00
parent ab9cbbb6ba
commit 13d5e895ac
1 changed files with 4 additions and 2 deletions

View File

@ -392,15 +392,17 @@ public:
typedef Tds Triangulation_data_structure;
typedef GT Geom_traits;
typedef typename GT::Point_3 Point;
typedef typename GT::Segment_3 Segment;
typedef typename GT::Triangle_3 Triangle;
typedef typename GT::Tetrahedron_3 Tetrahedron;
// point types
typedef typename GT::Point_3 Point_3;
typedef typename Tds::Vertex::Point Point;
typedef typename Tds::Concurrency_tag Concurrency_tag;
typedef typename Tds::Vertex Vertex;
CGAL_static_assertion((boost::is_same<Point, typename Vertex::Point>::value));
typedef typename Tds::Cell Cell;
typedef typename Tds::Facet Facet;
typedef typename Tds::Edge Edge;