diff --git a/Point_set_3/include/CGAL/Point_set_3.h b/Point_set_3/include/CGAL/Point_set_3.h index 0f2b7a3a695..c86e5251b7d 100644 --- a/Point_set_3/include/CGAL/Point_set_3.h +++ b/Point_set_3/include/CGAL/Point_set_3.h @@ -861,6 +861,19 @@ public: return out; } + std::vector > properties_and_types() const + { + std::vector prop = m_base.properties(); + prop.erase (prop.begin()); // remove "index" + prop.erase (prop.begin()); // remove "point" + + std::vector > out; out.reserve (prop.size()); + for (std::size_t i = 0; i < prop.size(); ++ i) + out.push_back (std::make_pair (prop[i], m_base.get_type(prop[i]))); + return out; + } + + /*! \brief Returns a sequence of \ref psp_namedparameters "Named Parameters" for Point Set Processing algorithms.