mirror of https://github.com/CGAL/cgal
fix ErrorMetricProxy concept
This commit is contained in:
parent
6d3abb2405
commit
da78cb080c
|
|
@ -2,15 +2,15 @@
|
||||||
\ingroup PkgTSMAConcepts
|
\ingroup PkgTSMAConcepts
|
||||||
\cgalConcept
|
\cgalConcept
|
||||||
|
|
||||||
The concept `FittingProxyErrorMetric` defines the notion of
|
The concept `ErrorMetricProxy` defines the notion of proxy,
|
||||||
proxy and computes the fitting error from a face to a `Proxy`,
|
computes the fitting error from a face to a proxy,
|
||||||
used in CGAL::VSA_approximation.
|
and fits a proxy from a range of faces.
|
||||||
|
|
||||||
\cgalHasModel `CGAL::L2_metric_plane_proxy`
|
\cgalHasModel `CGAL::VSA::L21_metric_vector_proxy`
|
||||||
\cgalHasModel `CGAL::L21_metric_plane_proxy`
|
\cgalHasModel `CGAL::VSA::L2_metric_plane_proxy`
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class FittingProxyErrorMetric {
|
class ErrorMetricProxy {
|
||||||
public:
|
public:
|
||||||
/// Number type model of `Field` and `RealEmbeddable`
|
/// Number type model of `Field` and `RealEmbeddable`
|
||||||
typedef unspecified_type FT;
|
typedef unspecified_type FT;
|
||||||
|
|
@ -16,9 +16,9 @@ namespace CGAL {
|
||||||
namespace VSA {
|
namespace VSA {
|
||||||
|
|
||||||
/// \ingroup PkgTSMA
|
/// \ingroup PkgTSMA
|
||||||
/// @brief Approximation L2 metric.
|
/// @brief Approximation L2 metric of plane proxy.
|
||||||
///
|
///
|
||||||
/// \cgalModels `ErrorMetric`
|
/// \cgalModels `ErrorMetricProxy`
|
||||||
///
|
///
|
||||||
/// @tparam TriangleMesh a triangle `FaceListGraph`
|
/// @tparam TriangleMesh a triangle `FaceListGraph`
|
||||||
/// @tparam VertexPointMap a property map with `boost::graph_traits<TriangleMesh>::%vertex_descriptor`
|
/// @tparam VertexPointMap a property map with `boost::graph_traits<TriangleMesh>::%vertex_descriptor`
|
||||||
|
|
|
||||||
|
|
@ -61,12 +61,12 @@ enum Approximation_seeding_tag {
|
||||||
/// @brief Main class for Variational Shape Approximation algorithm.
|
/// @brief Main class for Variational Shape Approximation algorithm.
|
||||||
/// @tparam TriangleMesh CGAL TriangleMesh
|
/// @tparam TriangleMesh CGAL TriangleMesh
|
||||||
/// @tparam VertexPointMap vertex point map
|
/// @tparam VertexPointMap vertex point map
|
||||||
/// @tparam ErrorMetric approximation metric type
|
/// @tparam ErrorMetricProxy approximation metric type
|
||||||
/// @tparam GeomTraits geometric traits type
|
/// @tparam GeomTraits geometric traits type
|
||||||
/// @tparam Concurrency_tag concurrency tag
|
/// @tparam Concurrency_tag concurrency tag
|
||||||
template <typename TriangleMesh,
|
template <typename TriangleMesh,
|
||||||
typename VertexPointMap,
|
typename VertexPointMap,
|
||||||
typename ErrorMetric = CGAL::Default,
|
typename ErrorMetricProxy = CGAL::Default,
|
||||||
typename GeomTraits = CGAL::Default,
|
typename GeomTraits = CGAL::Default,
|
||||||
typename Concurrency_tag = CGAL::Sequential_tag>
|
typename Concurrency_tag = CGAL::Sequential_tag>
|
||||||
class VSA_approximation {
|
class VSA_approximation {
|
||||||
|
|
@ -85,12 +85,12 @@ public:
|
||||||
#else
|
#else
|
||||||
typedef GeomTraits Geom_traits;
|
typedef GeomTraits Geom_traits;
|
||||||
#endif
|
#endif
|
||||||
// ErrorMetric type
|
// ErrorMetricProxy type
|
||||||
#ifndef DOXYGEN_RUNNING
|
#ifndef DOXYGEN_RUNNING
|
||||||
typedef typename CGAL::Default::Get<ErrorMetric,
|
typedef typename CGAL::Default::Get<ErrorMetricProxy,
|
||||||
CGAL::VSA::L21_metric_vector_proxy<TriangleMesh, VertexPointMap, Geom_traits> >::type Error_metric;
|
CGAL::VSA::L21_metric_vector_proxy<TriangleMesh, VertexPointMap, Geom_traits> >::type Error_metric;
|
||||||
#else
|
#else
|
||||||
typedef ErrorMetric Error_metric;
|
typedef ErrorMetricProxy Error_metric;
|
||||||
#endif
|
#endif
|
||||||
// Proxy type
|
// Proxy type
|
||||||
typedef typename Error_metric::Proxy Proxy;
|
typedef typename Error_metric::Proxy Proxy;
|
||||||
|
|
@ -342,7 +342,7 @@ public:
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @brief Sets the approximation traits.
|
* @brief Sets the approximation traits.
|
||||||
* @param error_metric an `ErrorMetric` object.
|
* @param error_metric an `ErrorMetricProxy` object.
|
||||||
*/
|
*/
|
||||||
void set_metric(const Error_metric &error_metric) {
|
void set_metric(const Error_metric &error_metric) {
|
||||||
m_metric = &error_metric;
|
m_metric = &error_metric;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue