minor changes
This commit is contained in:
parent
573253bafb
commit
db17401d67
|
@ -534,7 +534,8 @@ typename PolygonType::ScalarType PolyAspectRatio(const PolygonType &F,
|
||||||
|
|
||||||
template<class PolygonType>
|
template<class PolygonType>
|
||||||
typename PolygonType::ScalarType PolygonPointDistance(const PolygonType &F,
|
typename PolygonType::ScalarType PolygonPointDistance(const PolygonType &F,
|
||||||
const vcg::Point3<typename PolygonType::ScalarType> &pos)
|
const vcg::Point3<typename PolygonType::ScalarType> &pos,
|
||||||
|
vcg::Point3<typename PolygonType::ScalarType> &ClosestP)
|
||||||
{
|
{
|
||||||
typedef typename PolygonType::ScalarType ScalarType;
|
typedef typename PolygonType::ScalarType ScalarType;
|
||||||
typedef typename PolygonType::CoordType CoordType;
|
typedef typename PolygonType::CoordType CoordType;
|
||||||
|
@ -549,6 +550,7 @@ typename PolygonType::ScalarType PolygonPointDistance(const PolygonType &F,
|
||||||
vcg::TrianglePointDistance(T,pos,dist,closest);
|
vcg::TrianglePointDistance(T,pos,dist,closest);
|
||||||
if (dist>minD)continue;
|
if (dist>minD)continue;
|
||||||
minD=dist;
|
minD=dist;
|
||||||
|
ClosestP=closest;
|
||||||
}
|
}
|
||||||
return minD;
|
return minD;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue