mirror of https://github.com/CGAL/cgal
Merge pull request #3703 from sgiraudot/Point_set_processing-Fix_PLY_FT_type_detection-GF
Point Set Processing: Fix PLY FT type detection
This commit is contained in:
commit
aacd365080
|
|
@ -92,10 +92,19 @@ namespace CGAL {
|
||||||
};
|
};
|
||||||
|
|
||||||
/// \cond SKIP_IN_MANUAL
|
/// \cond SKIP_IN_MANUAL
|
||||||
|
|
||||||
|
// Use a double property for all kernels...
|
||||||
|
template <typename FT> struct Convert_FT { typedef double type; };
|
||||||
|
// ...except if kernel uses type float
|
||||||
|
template <> struct Convert_FT<float> { typedef float type; };
|
||||||
|
|
||||||
template <typename PointOrVectorMap>
|
template <typename PointOrVectorMap>
|
||||||
struct GetFTFromMap
|
struct GetFTFromMap
|
||||||
{
|
{
|
||||||
typedef typename Kernel_traits<typename boost::property_traits<PointOrVectorMap>::value_type>::Kernel::FT type;
|
typedef typename Convert_FT
|
||||||
|
<typename Kernel_traits
|
||||||
|
<typename boost::property_traits
|
||||||
|
<PointOrVectorMap>::value_type>::Kernel::FT>::type type;
|
||||||
};
|
};
|
||||||
/// \endcond
|
/// \endcond
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue