mirror of https://github.com/CGAL/cgal
we should also check whether a vertex point map was given as parameter
This commit is contained in:
parent
0121bb0632
commit
080b2a70d1
|
|
@ -151,9 +151,16 @@ namespace CGAL {
|
||||||
{
|
{
|
||||||
typedef typename CGAL::graph_has_property<PolygonMesh, boost::vertex_point_t>::type
|
typedef typename CGAL::graph_has_property<PolygonMesh, boost::vertex_point_t>::type
|
||||||
Has_internal_pmap;
|
Has_internal_pmap;
|
||||||
|
|
||||||
|
typedef typename boost::lookup_named_param_def <
|
||||||
|
internal_np::vertex_point_t,
|
||||||
|
NamedParametersVPM,
|
||||||
|
boost::param_not_found
|
||||||
|
> ::type NP_vpm;
|
||||||
|
|
||||||
struct Fake_GT {};//to be used if there is no internal vertex_point_map in PolygonMesh
|
struct Fake_GT {};//to be used if there is no internal vertex_point_map in PolygonMesh
|
||||||
|
|
||||||
typedef typename boost::mpl::if_c< Has_internal_pmap::value
|
typedef typename boost::mpl::if_c< Has_internal_pmap::value || !boost::is_same<boost::param_not_found, NP_vpm>::value
|
||||||
, typename GetK<PolygonMesh, NamedParametersVPM>::Kernel
|
, typename GetK<PolygonMesh, NamedParametersVPM>::Kernel
|
||||||
, Fake_GT
|
, Fake_GT
|
||||||
>::type DefaultKernel;
|
>::type DefaultKernel;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue