File Metric.cpp
File List > benchmark > metrics > Metric.cpp
Go to the documentation of this file
#include "../metrics/Metric.h"
void VertexCount::compute(const Mesh& original, const Mesh& reconstructed, benchmark::State& state) const {
state.counters["Original mesh vertices"] = benchmark::Counter(original.getVertices().size());
state.counters["Reconstructed mesh vertices"] = benchmark::Counter(reconstructed.getVertices().size());
}
void FaceCount::compute(const Mesh& original, const Mesh& reconstructed, benchmark::State& state) const {
state.counters["Original mesh faces"] = benchmark::Counter(original.getFaces().size());
state.counters["Reconstructed mesh faces"] = benchmark::Counter(reconstructed.getFaces().size());
}