8 #include <benchmark/benchmark.h>
15 namespace benchmarks {
19 void SetUp(
const benchmark::State& state) {
31 for (
auto _ : state) {
32 trimesh->SamplePointsPoissonDisk(state.range(0));
39 for (
auto _ : state) {
40 trimesh->SamplePointsUniformly(state.range(0));
void TearDown(const benchmark::State &state)
std::shared_ptr< ccMesh > trimesh
void SetUp(const benchmark::State &state)
Data class for KnotMesh contains the KnotMesh.ply file.
std::string GetPath() const
Path to the KnotMesh.ply file.
BENCHMARK_REGISTER_F(SamplePointsFixture, Poisson) -> Args({123}) ->Args({1000})
BENCHMARK_DEFINE_F(SamplePointsFixture, Poisson)(benchmark
std::shared_ptr< ccMesh > CreateMeshFromFile(const std::string &filename, bool print_progress)
Generic file read and write utility for python interface.