facet_proxy_map -> face_proxy_map

This commit is contained in:
Lingjie Zhu 2018-07-14 22:00:55 +08:00
parent 851cf8c49a
commit b3c0cf16a5
9 changed files with 18 additions and 18 deletions

View File

@ -133,26 +133,26 @@ set the plane approximated with the PCA algorithm in the meshing step.\n
\b Default value is `false` \b Default value is `false`
\cgalNPEnd \cgalNPEnd
\cgalNPBegin{facet_proxy_map} \anchor VSA_facet_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 `ReadWritePropertyMap` 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
\cgalNPBegin{proxies} \anchor VSA_proxies \cgalNPBegin{proxies} \anchor VSA_proxies
an `OutputIterator` to write proxies in.\n an `OutputIterator` to put proxies in.\n
\b Type : a class model of `OutputIterator` with `CGAL::VSA::L21_metric_vector_proxy_no_area_weighting::Proxy` value type.\n \b Type : a class model of `OutputIterator` with `CGAL::VSA::L21_metric_vector_proxy_no_area_weighting::Proxy` value type.\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
\cgalNPBegin{anchors} \anchor VSA_anchors \cgalNPBegin{anchors} \anchor VSA_anchors
an `OutputIterator` to write anchor points in.\n an `OutputIterator` to put anchor points in.\n
\b Type : a class model of `OutputIterator` with `GeomTraits::%Point_3` value type.\n \b Type : a class model of `OutputIterator` with `GeomTraits::%Point_3` value type.\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
\cgalNPBegin{triangles} \anchor VSA_triangles \cgalNPBegin{triangles} \anchor VSA_triangles
an `OutputIterator` to write indexed triangles in.\n an `OutputIterator` to put indexed triangles in.\n
\b Type : a class model of `OutputIterator` with `CGAL::cpp11::array<std::size_t, 3>` value type.\n \b Type : a class model of `OutputIterator` with `CGAL::cpp11::array<std::size_t, 3>` value type.\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

@ -36,7 +36,7 @@ int main()
CGAL::VSA::parameters::min_error_drop(0.05). // seeding with minimum error drop CGAL::VSA::parameters::min_error_drop(0.05). // seeding with minimum error drop
nb_of_iterations(40). // set number of clustering iterations after seeding nb_of_iterations(40). // set number of clustering iterations after seeding
subdivision_ratio(0.3). // set chord subdivision ratio threshold when meshing subdivision_ratio(0.3). // set chord subdivision ratio threshold when meshing
facet_proxy_map(fpxmap). // get facet partition map face_proxy_map(fpxmap). // get facet partition map
proxies(std::back_inserter(proxies)). // output proxies proxies(std::back_inserter(proxies)). // output proxies
anchors(std::back_inserter(anchors)). // output anchor points anchors(std::back_inserter(anchors)). // output anchor points
triangles(std::back_inserter(triangles))); // output indexed triangles triangles(std::back_inserter(triangles))); // output indexed triangles

View File

@ -30,7 +30,7 @@ int main()
CGAL::VSA::parameters::max_nb_of_proxies(200). // first stop criterion CGAL::VSA::parameters::max_nb_of_proxies(200). // first stop criterion
min_error_drop(0.05). // second stop criterion min_error_drop(0.05). // second stop criterion
nb_of_iterations(30). // number of relaxation iterations after seeding nb_of_iterations(30). // number of relaxation iterations after seeding
facet_proxy_map(fpxmap)); // output facet-proxy map face_proxy_map(fpxmap)); // output facet-proxy map
// iterates over facets and outputs segment id to console // iterates over facets and outputs segment id to console
BOOST_FOREACH(Face_descriptor f, faces(input)) BOOST_FOREACH(Face_descriptor f, faces(input))

View File

@ -938,12 +938,12 @@ public:
* @brief Gets the facet-proxy index map. * @brief Gets the facet-proxy index map.
* @tparam FacetProxyMap `WritablePropertyMap` with * @tparam FacetProxyMap `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
* @param[out] facet_proxy_map facet proxy index map * @param[out] face_proxy_map facet proxy index map
*/ */
template <typename FacetProxyMap> template <typename FacetProxyMap>
void proxy_map(FacetProxyMap &facet_proxy_map) const { void proxy_map(FacetProxyMap &face_proxy_map) const {
BOOST_FOREACH(face_descriptor f, faces(*m_ptm)) BOOST_FOREACH(face_descriptor f, faces(*m_ptm))
facet_proxy_map[f] = get(m_fproxy_map, f); face_proxy_map[f] = get(m_fproxy_map, f);
} }
/*! /*!

View File

@ -85,7 +85,7 @@ unspecified_type all_default();
* \cgalParamEnd * \cgalParamEnd
* \cgalParamBegin{pca_plane} set `true` if use PCA plane fitting, otherwise use the default area averaged plane parameters. * \cgalParamBegin{pca_plane} set `true` if use PCA plane fitting, otherwise use the default area averaged plane parameters.
* \cgalParamEnd * \cgalParamEnd
* \cgalParamBegin{facet_proxy_map} a ReadWritePropertyMap with * \cgalParamBegin{face_proxy_map} a ReadWritePropertyMap 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 facets which are placed under the same proxy patch (see \cgalFigureRef{iterations}). * A proxy is a set of connected facets 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].
@ -169,12 +169,12 @@ bool approximate_mesh(const TriangleMesh &tm, const NamedParameters &np)
// get proxy map // get proxy map
typedef typename boost::lookup_named_param_def< typedef typename boost::lookup_named_param_def<
vsa_np::facet_proxy_map_t, vsa_np::face_proxy_map_t,
NamedParameters, NamedParameters,
vsa_np::dummy_output_t>::type Face_proxy_map; vsa_np::dummy_output_t>::type Face_proxy_map;
Face_proxy_map fproxymap = choose_param( Face_proxy_map fproxymap = choose_param(
get_param(np, vsa_np::facet_proxy_map), vsa_np::dummy_output); get_param(np, vsa_np::face_proxy_map), vsa_np::dummy_output);
vsa_np::facet_proxy_map_helper(approx, fproxymap); vsa_np::face_proxy_map_helper(approx, fproxymap);
if (!boost::is_same<Face_proxy_map, vsa_np::dummy_output_t>::value if (!boost::is_same<Face_proxy_map, vsa_np::dummy_output_t>::value
&& (vl == CGAL::VSA::Main_steps || vl == CGAL::VSA::Verbose)) && (vl == CGAL::VSA::Main_steps || vl == CGAL::VSA::Verbose))

View File

@ -76,12 +76,12 @@ public:
// output helper functions // output helper functions
template <typename Approximation, typename FacetProxyMap> template <typename Approximation, typename FacetProxyMap>
void facet_proxy_map_helper(const Approximation &approx, FacetProxyMap fproxymap) { void face_proxy_map_helper(const Approximation &approx, FacetProxyMap fproxymap) {
approx.proxy_map(fproxymap); approx.proxy_map(fproxymap);
} }
template <typename Approximation> template <typename Approximation>
void facet_proxy_map_helper(const Approximation &, internal_np::dummy_output_t) {} void face_proxy_map_helper(const Approximation &, internal_np::dummy_output_t) {}
// proxies // proxies

View File

@ -17,7 +17,7 @@ CGAL_add_named_parameter(optimize_anchor_location_t, optimize_anchor_location, o
CGAL_add_named_parameter(pca_plane_t, pca_plane, pca_plane) CGAL_add_named_parameter(pca_plane_t, pca_plane, pca_plane)
// output parameters // output parameters
CGAL_add_named_parameter(facet_proxy_map_t, facet_proxy_map, facet_proxy_map) CGAL_add_named_parameter(face_proxy_map_t, face_proxy_map, face_proxy_map)
CGAL_add_named_parameter(proxies_t, proxies, proxies) CGAL_add_named_parameter(proxies_t, proxies, proxies)
CGAL_add_named_parameter(anchors_t, anchors, anchors) CGAL_add_named_parameter(anchors_t, anchors, anchors)
CGAL_add_named_parameter(triangles_t, triangles, triangles) CGAL_add_named_parameter(triangles_t, triangles, triangles)

View File

@ -35,7 +35,7 @@ int main()
nb_of_iterations(30). nb_of_iterations(30).
nb_of_relaxations(5). nb_of_relaxations(5).
subdivision_ratio(0.5). subdivision_ratio(0.5).
facet_proxy_map(fpxmap). face_proxy_map(fpxmap).
proxies(std::back_inserter(proxies)). proxies(std::back_inserter(proxies)).
anchors(std::back_inserter(points)). anchors(std::back_inserter(points)).
triangles(std::back_inserter(triangles))); triangles(std::back_inserter(triangles)));

View File

@ -37,7 +37,7 @@ int main()
min_error_drop(0.05). // and minimum error drop stop criterion are specified min_error_drop(0.05). // and minimum error drop stop criterion are specified
nb_of_iterations(30). // number of clustering iterations after seeding nb_of_iterations(30). // number of clustering iterations after seeding
nb_of_relaxations(5). // number of relaxations in seeding nb_of_relaxations(5). // number of relaxations in seeding
facet_proxy_map(fpxmap). // output indexed face set face_proxy_map(fpxmap). // output indexed face set
proxies(std::back_inserter(proxies))); // number of iterations after seeding proxies(std::back_inserter(proxies))); // number of iterations after seeding
return EXIT_SUCCESS; return EXIT_SUCCESS;