diff --git a/vcg/complex/trimesh/create/ball_pivoting.h b/vcg/complex/trimesh/create/ball_pivoting.h index 01a41b9e..c0ca9765 100644 --- a/vcg/complex/trimesh/create/ball_pivoting.h +++ b/vcg/complex/trimesh/create/ball_pivoting.h @@ -79,7 +79,7 @@ template class BallPivoting: public AdvancingFront { if(f.IsD()) continue; for(int k = 0; k < 3; k++) { f.V(k)->SetV(); - int n = trimesh::GetInSphereVertex(this->mesh, grid, f.V(k)->P(), min_edge, targets, dists, points); + int n = tri::GetInSphereVertex(this->mesh, grid, f.V(k)->P(), min_edge, targets, dists, points); for(int t = 0; t < n; t++) { targets[t]->SetUserBit(usedBit); assert(targets[t]->IsUserBit(usedBit)); @@ -105,7 +105,7 @@ template class BallPivoting: public AdvancingFront { seed.SetUserBit(usedBit); - int n = trimesh::GetInSphereVertex(this->mesh, grid, seed.P(), 2*radius, targets, dists, points); + int n = tri::GetInSphereVertex(this->mesh, grid, seed.P(), 2*radius, targets, dists, points); if(n < 3) { continue; } @@ -235,7 +235,7 @@ template class BallPivoting: public AdvancingFront { std::vector dists; std::vector points; - int n = trimesh::GetInSphereVertex(this->mesh, grid, middle, r + radius, targets, dists, points); + int n = tri::GetInSphereVertex(this->mesh, grid, middle, r + radius, targets, dists, points); if(targets.size() == 0) { return -1; //this really would be strange but one never knows. @@ -395,7 +395,7 @@ template class BallPivoting: public AdvancingFront { std::vector targets; std::vector points; std::vector dists; - int n = trimesh::GetInSphereVertex(this->mesh, grid, v->P(), min_edge, targets, dists, points); + int n = tri::GetInSphereVertex(this->mesh, grid, v->P(), min_edge, targets, dists, points); for(int t = 0; t < n; t++) targets[t]->SetUserBit(usedBit); v->SetV();