mirror of https://github.com/CGAL/cgal
be more backward compatible + add typedef for AABB-tree definition
This commit is contained in:
parent
f65cc41e82
commit
dd84321f56
|
|
@ -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`.
|
||||
|
|
|
|||
Loading…
Reference in New Issue