corrected small bug in the BuildVolumeSampling member of the voronoi volumetric sampling

This commit is contained in:
Paolo Cignoni 2014-06-17 15:01:18 +00:00
parent e6e7999c6c
commit 3edd987ef2
1 changed files with 1 additions and 1 deletions

View File

@ -359,7 +359,7 @@ float DistanceFromVoronoiFace(Point3f p_point)
std::vector<CoordType> seedPts(pruningVec.size());
for(size_t i=0;i<pruningVec.size();++i)
seedPts[i]=pruningVec[i]->P();
tri::Build(this->seedMesh,pruningVec);
tri::Build(this->seedMesh,seedPts);
// Kdtree must be rebuilt at the end of each step;
VertexConstDataWrapper<MeshType> vdw(seedMesh);
if(seedTree) delete seedTree;