diff --git a/vcg/simplex/face/distance.h b/vcg/simplex/face/distance.h index 6479535b..e49cac8b 100644 --- a/vcg/simplex/face/distance.h +++ b/vcg/simplex/face/distance.h @@ -105,7 +105,7 @@ namespace vcg { //const ScalarType EPSILON = 0.00000001; ScalarType b,b0,b1,b2; // Calcolo distanza punto piano - ScalarType d = DistancePlanePoint( f.cPlane(), q ); + ScalarType d = SignedDistancePlanePoint( f.cPlane(), q ); if( d>dist || d<-dist ) // Risultato peggiore: niente di fatto return false;