changed calls to Dist
This commit is contained in:
parent
48160d1a85
commit
8dc8e70f50
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue