Skip to content

Class Argos::CentroidToFaceMetric

ClassList > Argos > CentroidToFaceMetric

Metric reporting centroid-to-face distances from the reconstructed mesh to the original mesh.More...

  • #include <bench_centroid_to_face.h>

Inherits the following classes: Metric

Public Functions

Type Name
CentroidToFaceMetric ()
Construct the metric with label "CentroidToFace".
virtual void compute (const Mesh & originalMesh, const Mesh & reconstructedMesh, benchmark::State & state) override const
Compute the metric for a single (original, reconstructed) pair.
~CentroidToFaceMetric () = default

Public Functions inherited from Metric

See Metric

Type Name
Metric (const std::string & name)
Construct a metric with the given short label.
virtual void compute (const Mesh & originalMesh, const Mesh & reconstructedMesh, benchmark::State & state) const = 0
Compute the metric for a single (original, reconstructed) pair.
const std::string & getName () const
Return the metric's short label.
virtual ~Metric () = default

Detailed Description

Counters recorded on success: * CentroidToFace_NbFacesB * CentroidToFace_NbTrianglesB * CentroidToFace_MeanBA * CentroidToFace_MaxBA * CentroidToFace_MinBA

If the original mesh is empty, the metric records -1.0 for each of the B-side counters and skips the computation.

Public Functions Documentation

function CentroidToFaceMetric

Construct the metric with label "CentroidToFace".

inline Argos::CentroidToFaceMetric::CentroidToFaceMetric () 


function compute

Compute the metric for a single (original, reconstructed) pair.

virtual void Argos::CentroidToFaceMetric::compute (
    const Mesh & originalMesh,
    const Mesh & reconstructedMesh,
    benchmark::State & state
) override const

Implementations should record their values on state.counters.

Parameters:

  • originalMesh Ground-truth mesh.
  • reconstructedMesh Mesh produced by the reconstruction algorithm.
  • state Google Benchmark state receiving the counters.

Implements Metric::compute


function ~CentroidToFaceMetric

Argos::CentroidToFaceMetric::~CentroidToFaceMetric () = default


The documentation for this class was generated from the following file benchmark/metrics/implementations/bench_centroid_to_face.h