changed calls to Dist

This commit is contained in:
ganovelli 2004-05-13 12:38:39 +00:00
parent 48160d1a85
commit 8dc8e70f50
1 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ void MinDistPoint( MESH & mesh, const Point3<SCALAR> & p, GRID & gr, SCALAR & md
if( ! mesh.IsMarked( &*(l->Elem())) ) if( ! mesh.IsMarked( &*(l->Elem())) )
{ {
if( (*(l->Elem())).Dist( p, error, q) ) if( Dist((*(l->Elem())), p, error, q) )
{ {
bestq = q; bestq = q;
bestf = l->Elem(); bestf = l->Elem();
@ -170,7 +170,7 @@ void MinDistPoint( MESH & mesh, const Point3<SCALAR> & p, GRID & gr, SCALAR & md
for(l=first;l!=last;++l) for(l=first;l!=last;++l)
if( ! mesh.IsMarked( &*(l->Elem())) ) if( ! mesh.IsMarked( &*(l->Elem())) )
{ {
if( (*(l->Elem())).Dist( p, error, q) ) if( Dist((*(l->Elem())), p, error, q) )
{ {
bestq = q; bestq = q;
bestf = l->Elem(); bestf = l->Elem();