ultimatepp/benchmarks/BenchmarkTess/BenchmarkTess.cpp
cxl 69c334a38e .benchmarks
git-svn-id: svn://ultimatepp.org/upp/trunk@12461 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-11-05 08:09:26 +00:00

28 lines
461 B
C++

#include <Core/Core.h>
#include <plugin/tess2/tess2.h>
using namespace Upp;
Vector<Vector<Pointf>> TestData();
int N = 100;
CONSOLE_APP_MAIN
{
auto data = TestData();
InVector<double> y;
for(auto& h : data)
for(Pointf p : h)
y.InsertUpperBound(p.y);
RDUMPC(y);
for(int i = 0; i < N; i++) {
Vector<Pointf> vertex;
Vector<int> index;
{
RTIMING("Tesselate");
Tesselate(data, vertex, index, true);
}
}
}