case POS_RIGHT:
{
// point is inside the face
- double distToFacePlane = tmpPnt.Y();
+ double distToFacePlane = Abs( tmpPnt.Y() );
if ( closestPnt )
{
if ( distToFacePlane < std::numeric_limits<double>::min() ) {
*closestPnt = tmpPnt;
}
}
- return Abs( distToFacePlane );
+ return distToFacePlane;
}
case POS_VERTEX:
{