be more backward compatible + add typedef for AABB-tree definition

This commit is contained in:
Sébastien Loriot 2019-05-17 15:01:46 +02:00
parent f65cc41e82
commit dd84321f56
1 changed files with 12 additions and 1 deletions

View File

@ -39,6 +39,8 @@
#include <CGAL/Polygon_mesh_processing/internal/Polygon_mesh_slicer/Axis_parallel_plane_traits.h>
#include <boost/variant.hpp>
#include <boost/mpl/if.hpp>
#include <boost/type_traits/is_same.hpp>
#include <CGAL/boost/graph/split_graph_into_polylines.h>
@ -85,7 +87,13 @@ template<class TriangleMesh,
class VertexPointMap = typename boost::property_map< TriangleMesh, vertex_point_t>::type,
class AABBTree = AABB_tree<
AABB_traits<Traits,
AABB_halfedge_graph_segment_primitive<TriangleMesh, VertexPointMap> > >,
AABB_halfedge_graph_segment_primitive<TriangleMesh,
typename boost::mpl::if_<
typename boost::is_same<
VertexPointMap,
typename boost::property_map< TriangleMesh, vertex_point_t>::type >::type,
Default,
VertexPointMap>::type> > >,
bool UseParallelPlaneOptimization=true>
class Polygon_mesh_slicer
{
@ -299,6 +307,9 @@ class Polygon_mesh_slicer
public:
/// the AABB-tree type used internally
typedef AABBTree AABB_tree;
/**
* Constructor using `edges(tmesh)` to initialize the
* internal `AABB_tree`.