diff --git a/vcg/complex/trimesh/closest.h b/vcg/complex/trimesh/closest.h index 4fb0d729..1ddd6fdc 100644 --- a/vcg/complex/trimesh/closest.h +++ b/vcg/complex/trimesh/closest.h @@ -281,22 +281,22 @@ namespace vcg { (distFunct,mv,_k,_p,_maxDist,_objectPtrs,_distances,_points)); } - //template - // unsigned int GetInSphereFace(MESH & mesh, - // GRID & gr, - // const typename GRID::CoordType & _p, - // const typename GRID::ScalarType & _r, - // OBJPTRCONTAINER & _objectPtrs, - // DISTCONTAINER & _distances, - // POINTCONTAINER & _points) - //{ - // typedef FaceTmark MarkerFace; - // MarkerFace mf; - // mf.SetMesh(&mesh); - // typedef vcg::face::PointDistanceFunctor F DistFunct; - // return (gr.GetInSphere/**/ - // (FDistFunct(),mf,_p,_r,_maxDist,_objectPtrs,_distances,_points)); - //} + template + unsigned int GetInSphereFace(MESH & mesh, + GRID & gr, + const typename GRID::CoordType & _p, + const typename GRID::ScalarType & _r, + OBJPTRCONTAINER & _objectPtrs, + DISTCONTAINER & _distances, + POINTCONTAINER & _points) + { + typedef FaceTmark MarkerFace; + MarkerFace mf; + mf.SetMesh(&mesh); + typedef vcg::face::PointDistanceFunctor FDistFunct; + return (gr.GetInSphere/**/ + (FDistFunct(),mf,_p,_r,_objectPtrs,_distances,_points)); + } template unsigned int GetInSphereVertex(MESH & mesh,