added GetClosestEdgeBase from space/index/index2/closest_2d.h which is going to be removed
This commit is contained in:
parent
5249736918
commit
46031c54ca
|
@ -494,6 +494,23 @@ namespace vcg {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// this is for meshes with 2D coordinates
|
||||||
|
template <class MESH, class GRID>
|
||||||
|
typename MESH::FaceType * GetClosestEdgeBase( MESH & mesh,GRID & gr,const typename GRID::CoordType & _p,
|
||||||
|
const typename GRID::ScalarType _maxDist,typename GRID::ScalarType & _minDist,
|
||||||
|
typename GRID::CoordType &_closestPt)
|
||||||
|
{
|
||||||
|
typedef typename GRID::ScalarType ScalarType;
|
||||||
|
typedef Point3<ScalarType> Point3x;
|
||||||
|
typedef FaceTmark<MESH> MarkerFace;
|
||||||
|
MarkerFace mf;
|
||||||
|
mf.SetMesh(&mesh);
|
||||||
|
vcg::PointSegment2DEPFunctor<ScalarType> PDistFunct;
|
||||||
|
_minDist=_maxDist;
|
||||||
|
return (gr.GetClosest(PDistFunct,mf,_p,_maxDist,_minDist,_closestPt));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} // end namespace tri
|
} // end namespace tri
|
||||||
} // end namespace vcg
|
} // end namespace vcg
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue