diff --git a/Point_set_processing_3/doc/Point_set_processing_3/Doxyfile.in b/Point_set_processing_3/doc/Point_set_processing_3/Doxyfile.in
index 8838125a25a..0cb964d6dbb 100644
--- a/Point_set_processing_3/doc/Point_set_processing_3/Doxyfile.in
+++ b/Point_set_processing_3/doc/Point_set_processing_3/Doxyfile.in
@@ -14,4 +14,6 @@ ALIASES += "cgalNPTableBegin=
-
"
ALIASES += "cgalNPBegin{1}=| \1 | "
ALIASES += "cgalNPEnd= |
"
-
+
+EXPAND_AS_DEFINED = CGAL_BGL_NP_TEMPLATE_PARAMETERS \
+ CGAL_BGL_NP_CLASS
diff --git a/Point_set_processing_3/include/CGAL/compute_average_spacing.h b/Point_set_processing_3/include/CGAL/compute_average_spacing.h
index 72d3608ca07..3e22a3abdc2 100644
--- a/Point_set_processing_3/include/CGAL/compute_average_spacing.h
+++ b/Point_set_processing_3/include/CGAL/compute_average_spacing.h
@@ -46,6 +46,11 @@
#include
#endif // CGAL_LINKED_WITH_TBB
+#ifdef DOXYGEN_RUNNING
+#define CGAL_BGL_NP_TEMPLATE_PARAMETERS NamedParameters
+#define CGAL_BGL_NP_CLASS NamedParameters
+#endif
+
namespace CGAL {
@@ -184,24 +189,24 @@ compute_average_spacing(const typename Kernel::Point_3& query, ///< 3D point who
*/
template
#ifdef DOXYGEN_RUNNING
FT
#else
- typename Point_set_processing_3::GetK::Kernel::FT
+ typename Point_set_processing_3::GetK::Kernel::FT
#endif
compute_average_spacing(
const PointRange& points,
unsigned int k,
- const NamedParameters& np)
+ const CGAL_BGL_NP_CLASS& np)
{
using parameters::choose_parameter;
using parameters::get_parameter;
// basic geometric types
- typedef typename Point_set_processing_3::GetPointMap::const_type PointMap;
- typedef typename Point_set_processing_3::GetK::Kernel Kernel;
+ typedef typename Point_set_processing_3::GetPointMap::const_type PointMap;
+ typedef typename Point_set_processing_3::GetK::Kernel Kernel;
typedef typename Kernel::Point_3 Point;