Skip to content

Class VertexCount

ClassList > VertexCount

Metric that records vertex counts for both meshes.

  • #include <Metric.h>

Inherits the following classes: Metric

Public Functions

Type Name
VertexCount ()
Construct the metric with label "Vertices".
virtual void compute (const Mesh & originalMesh, const Mesh & reconstructedMesh, benchmark::State & state) override const
Compute the metric for a single (original, reconstructed) pair.
~VertexCount () = 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

Public Functions Documentation

function VertexCount

Construct the metric with label "Vertices".

inline VertexCount::VertexCount () 


function compute

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

virtual void VertexCount::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 ~VertexCount

VertexCount::~VertexCount () = default


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