Class FaceCount
Metric that records face counts for both meshes.
#include <Metric.h>
Inherits the following classes: Metric
Public Functions
| Type | Name |
|---|---|
| FaceCount () Construct the metric with label "Faces". |
|
| virtual void | compute (const Mesh & originalMesh, const Mesh & reconstructedMesh, benchmark::State & state) override const Compute the metric for a single (original, reconstructed) pair. |
| ~FaceCount () = 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 FaceCount
Construct the metric with label "Faces".
function compute
Compute the metric for a single (original, reconstructed) pair.
virtual void FaceCount::compute (
const Mesh & originalMesh,
const Mesh & reconstructedMesh,
benchmark::State & state
) override const
Implementations should record their values on state.counters.
Parameters:
originalMeshGround-truth mesh.reconstructedMeshMesh produced by the reconstruction algorithm.stateGoogle Benchmark state receiving the counters.
Implements Metric::compute
function ~FaceCount
The documentation for this class was generated from the following file benchmark/metrics/Metric.h