fix property map type

This commit is contained in:
Lingjie Zhu 2018-11-21 23:23:21 +08:00
parent ee9738eeff
commit 35d823e487
5 changed files with 7 additions and 7 deletions

View File

@ -146,7 +146,7 @@ set the plane approximated with the PCA algorithm in the meshing step.\n
\cgalNPBegin{face_proxy_map} \anchor VSA_face_proxy_map \cgalNPBegin{face_proxy_map} \anchor VSA_face_proxy_map
the property map outputs the proxy index of each face of the input polygon mesh.\n the property map outputs the proxy index of each face of the input polygon mesh.\n
\b Type: a class model of `ReadWritePropertyMap` with `boost::graph_traits<TriangleMesh>::%face_descriptor` as key type and the value type `std::size_t`\n \b Type: a class model of `WritablePropertyMap` with `boost::graph_traits<TriangleMesh>::%face_descriptor` as key type and the value type `std::size_t`\n
\b Default : if this parameter is omitted, no output operation is performed \b Default : if this parameter is omitted, no output operation is performed
\cgalNPEnd \cgalNPEnd

View File

@ -41,7 +41,7 @@ namespace Surface_mesh_approximation {
/// \cgalModels `ErrorMetricProxy` /// \cgalModels `ErrorMetricProxy`
/// ///
/// @tparam TriangleMesh a triangle `FaceGraph` /// @tparam TriangleMesh a triangle `FaceGraph`
/// @tparam VertexPointMap a property map with `boost::graph_traits<TriangleMesh>::%vertex_descriptor` /// @tparam VertexPointMap a class model of `ReadablePropertyMap` with `boost::graph_traits<TriangleMesh>::%vertex_descriptor`
/// as key type, GeomTraits::Point_3 as value type /// as key type, GeomTraits::Point_3 as value type
/// @tparam GeomTraits a model of Kernel /// @tparam GeomTraits a model of Kernel
template <typename TriangleMesh, template <typename TriangleMesh,

View File

@ -44,7 +44,7 @@ namespace Surface_mesh_approximation {
/// \cgalModels `ErrorMetricProxy` /// \cgalModels `ErrorMetricProxy`
/// ///
/// @tparam TriangleMesh a triangle `FaceGraph` /// @tparam TriangleMesh a triangle `FaceGraph`
/// @tparam VertexPointMap a property map with `boost::graph_traits<TriangleMesh>::%vertex_descriptor` /// @tparam VertexPointMap a class model of `ReadablePropertyMap` with `boost::graph_traits<TriangleMesh>::%vertex_descriptor`
/// as key type, GeomTraits::Point_3 as value type /// as key type, GeomTraits::Point_3 as value type
/// @tparam GeomTraits a model of Kernel /// @tparam GeomTraits a model of Kernel
template <typename TriangleMesh, template <typename TriangleMesh,

View File

@ -111,7 +111,7 @@ unspecified_type all_default();
* \cgalParamEnd * \cgalParamEnd
* \cgalNamedParamsEnd * \cgalNamedParamsEnd
* \cgalNamedParamsBegin{Output Named Parameters} * \cgalNamedParamsBegin{Output Named Parameters}
* \cgalParamBegin{face_proxy_map} a ReadWritePropertyMap with * \cgalParamBegin{face_proxy_map} a `WritablePropertyMap` with
* `boost::graph_traits<TriangleMesh>::%face_descriptor` as key and `std::size_t` as value type. * `boost::graph_traits<TriangleMesh>::%face_descriptor` as key and `std::size_t` as value type.
* A proxy is a set of connected faces which are placed under the same proxy patch (see \cgalFigureRef{iterations}). * A proxy is a set of connected faces which are placed under the same proxy patch (see \cgalFigureRef{iterations}).
* The proxy-ids are contiguous in range [0, number_of_proxies - 1]. * The proxy-ids are contiguous in range [0, number_of_proxies - 1].

View File

@ -872,7 +872,7 @@ public:
* @param np optional sequence of \ref vsa_namedparameters among the ones listed below * @param np optional sequence of \ref vsa_namedparameters among the ones listed below
* \cgalNamedParamsBegin{Output Named Parameters} * \cgalNamedParamsBegin{Output Named Parameters}
* \cgalParamBegin{face_proxy_map} a ReadWritePropertyMap with * \cgalParamBegin{face_proxy_map} a `WritePropertyMap` with
* `boost::graph_traits<TriangleMesh>::%face_descriptor` as key and `std::size_t` as value type. * `boost::graph_traits<TriangleMesh>::%face_descriptor` as key and `std::size_t` as value type.
* A proxy is a set of connected faces which are placed under the same proxy patch (see \cgalFigureRef{iterations}). * A proxy is a set of connected faces which are placed under the same proxy patch (see \cgalFigureRef{iterations}).
* The proxy-ids are contiguous in range `[0, number_of_proxies() - 1]`. * The proxy-ids are contiguous in range `[0, number_of_proxies() - 1]`.
@ -917,7 +917,7 @@ public:
template <typename FaceProxyMap> template <typename FaceProxyMap>
void proxy_map(FaceProxyMap face_proxy_map) const { void proxy_map(FaceProxyMap face_proxy_map) const {
BOOST_FOREACH(face_descriptor f, faces(*m_ptm)) BOOST_FOREACH(face_descriptor f, faces(*m_ptm))
face_proxy_map[f] = get(m_fproxy_map, f); put(face_proxy_map, f, get(m_fproxy_map, f));
} }
void proxy_map(boost::param_not_found) const {} void proxy_map(boost::param_not_found) const {}
@ -1923,7 +1923,7 @@ private:
/*! /*!
* @brief checks if a vertex is attached with an anchor. * @brief checks if a vertex is attached with an anchor.
* @tparam VertexAnchorIndexMap `WritablePropertyMap` * @tparam VertexAnchorIndexMap `ReadablePropertyMap`
* with `boost::graph_traights<TriangleMesh>::vertex_descriptor` as key and `std::size_t` as value type * with `boost::graph_traights<TriangleMesh>::vertex_descriptor` as key and `std::size_t` as value type
* @param vtx a vertex descriptor * @param vtx a vertex descriptor
* @param vanchor_map vertex anchor index map * @param vanchor_map vertex anchor index map