diff --git a/vcg/complex/trimesh/create/advancing_front.h b/vcg/complex/trimesh/create/advancing_front.h index 6d23a0e0..a0689faf 100644 --- a/vcg/complex/trimesh/create/advancing_front.h +++ b/vcg/complex/trimesh/create/advancing_front.h @@ -502,7 +502,7 @@ template class AdvancingTest: public AdvancingFront { return true; } - int Place(FrontEdge &e, ResultIterator &touch) + int Place(FrontEdge &e, typename AdvancingFront::ResultIterator &touch) { Point3f p[3]; p[0] = this->mesh.vert[e.v0].P(); @@ -521,7 +521,7 @@ template class AdvancingTest: public AdvancingFront { for(std::list::iterator k = this->front.begin(); k != this->front.end(); k++) if((*k).v0 == i) { - touch.first = FRONT; + touch.first = AdvancingFront::FRONT; touch.second = k; } @@ -529,7 +529,7 @@ template class AdvancingTest: public AdvancingFront { if((*k).v0 == i) if((*k).v0 == i) { - touch.first = DEADS; + touch.first = AdvancingFront::FRONT; touch.second = k; } break; diff --git a/vcg/complex/trimesh/create/ball_pivoting.h b/vcg/complex/trimesh/create/ball_pivoting.h index ad7f729e..10375b30 100644 --- a/vcg/complex/trimesh/create/ball_pivoting.h +++ b/vcg/complex/trimesh/create/ball_pivoting.h @@ -200,7 +200,7 @@ template class BallPivoting: public AdvancingFront { } //select a new vertex, mark as Visited and mark as usedBit all neighbours (less than min_edge) - int Place(FrontEdge &edge, ResultIterator &touch) { + int Place(FrontEdge &edge,typename AdvancingFront::ResultIterator &touch) { Point3x v0 = this->mesh.vert[edge.v0].P(); Point3x v1 = this->mesh.vert[edge.v1].P(); Point3x v2 = this->mesh.vert[edge.v2].P(); @@ -313,7 +313,7 @@ template class BallPivoting: public AdvancingFront { { if((*k).v0 == id) { - touch.first = FRONT; + touch.first = AdvancingFront::FRONT; touch.second = k; } } @@ -321,7 +321,7 @@ template class BallPivoting: public AdvancingFront { { if((*k).v0 == id) { - touch.first = DEADS; + touch.first = AdvancingFront::DEADS; touch.second = k; } }