minor: local variable rename to avoid weird compilation problems.
This commit is contained in:
parent
c57e10951c
commit
1664791bf3
|
|
@ -47,12 +47,12 @@ namespace vcg {
|
||||||
vcg::Segment3<typename EdgeType::ScalarType> s;
|
vcg::Segment3<typename EdgeType::ScalarType> s;
|
||||||
s.P0()=e.V(0)->P();
|
s.P0()=e.V(0)->P();
|
||||||
s.P1()=e.V(1)->P();
|
s.P1()=e.V(1)->P();
|
||||||
typename EdgeType::CoordType near;
|
typename EdgeType::CoordType nearest;
|
||||||
near=vcg::ClosestPoint<typename EdgeType::ScalarType>(s,q);
|
nearest=vcg::ClosestPoint<typename EdgeType::ScalarType>(s,q);
|
||||||
typename EdgeType::ScalarType d=(q-near).Norm();
|
typename EdgeType::ScalarType d=(q-nearest).Norm();
|
||||||
if (d<dist){
|
if (d<dist){
|
||||||
dist=d;
|
dist=d;
|
||||||
p=near;
|
p=nearest;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -71,7 +71,7 @@ namespace vcg {
|
||||||
const Point3<typename EDGETYPE::ScalarType> fp = Point3<typename EDGETYPE::ScalarType>::Construct(p);
|
const Point3<typename EDGETYPE::ScalarType> fp = Point3<typename EDGETYPE::ScalarType>::Construct(p);
|
||||||
Point3<typename EDGETYPE::ScalarType> fq;
|
Point3<typename EDGETYPE::ScalarType> fq;
|
||||||
typename EDGETYPE::ScalarType md = (typename EDGETYPE::ScalarType)(minDist);
|
typename EDGETYPE::ScalarType md = (typename EDGETYPE::ScalarType)(minDist);
|
||||||
const bool ret = PointDistance(e, fp, md, fq);
|
const bool ret = vcg::edge::PointDistance(e, fp, md, fq);
|
||||||
minDist = (SCALARTYPE)(md);
|
minDist = (SCALARTYPE)(md);
|
||||||
q = Point3<SCALARTYPE>::Construct(fq);
|
q = Point3<SCALARTYPE>::Construct(fq);
|
||||||
return (ret);
|
return (ret);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue