From cc356eb36873259ea7a093dba4f0a99ac101c641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Wed, 3 Apr 2013 09:39:13 +0200 Subject: [PATCH] hide default weight calculator --- Surface_modeling/include/CGAL/Deform_mesh.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Surface_modeling/include/CGAL/Deform_mesh.h b/Surface_modeling/include/CGAL/Deform_mesh.h index 86925e16a0b..e50b26744fd 100644 --- a/Surface_modeling/include/CGAL/Deform_mesh.h +++ b/Surface_modeling/include/CGAL/Deform_mesh.h @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -81,7 +82,7 @@ template < class VIM, class EIM, Deformation_algorithm_tag TAG = SPOKES_AND_RIMS, - class WC = typename internal::Weight_calculator_selector::weight_calculator + class WC = Default > class Deform_mesh { @@ -95,7 +96,14 @@ public: typedef ST Sparse_linear_solver; /**< model of SparseLinearAlgebraTraitsWithPreFactor_d */ typedef VIM Vertex_index_map; /**< model of `ReadWritePropertyMap` with Deform_mesh::vertex_descriptor as key and `unsigned int` as value type */ typedef EIM Edge_index_map; /**< model of `ReadWritePropertyMap` with Deform_mesh::edge_descriptor as key and `unsigned int` as value type */ + #ifndef DOXYGEN_RUNNING + typedef typename Default::Get< + WC, + typename internal::Weight_calculator_selector::weight_calculator + >::type Weight_calculator; + #else typedef WC Weight_calculator; /**< model of SurfaceModelingWeightCalculator */ + #endif /// @} typedef typename boost::graph_traits::vertex_descriptor vertex_descriptor; /**< The type for vertex representative objects */