updated the voronoi atlas parametrization to the new geodesic api

This commit is contained in:
Paolo Cignoni 2013-10-10 10:36:39 +00:00
parent 0bf3377f67
commit b8769bd3e6
1 changed files with 2 additions and 1 deletions

View File

@ -138,10 +138,11 @@ public:
int st1=clock();
pp.vas.samplingTime+= st1-st0;
qDebug("Sampling created a new mesh of %lu points\n",PoissonSamples.size());
EuclideanDistance<VoroMesh> edFunc;
std::vector<VertexType *> seedVec;
tri::VoronoiProcessing<VoroMesh>::SeedToVertexConversion(m,PoissonSamples,seedVec);
tri::UpdateTopology<VoroMesh>::VertexFace(m);
tri::VoronoiProcessing<VoroMesh>::ComputePerVertexSources(m,seedVec);
tri::VoronoiProcessing<VoroMesh>::ComputePerVertexSources(m,seedVec,edFunc);
tri::VoronoiProcessing<VoroMesh>::FaceAssociateRegion(m);
tri::VoronoiProcessing<VoroMesh>::VoronoiColoring(m,seedVec,true);
std::vector<VoroMesh *> badRegionVec;