Major Bug in vtkMath::Distance2BetweenPoints

Bill Lorensen wlorens1 at nycap.rr.com
Wed Jul 28 10:36:17 EDT 1999


<x-flowed>Ben,
That method computes the square of the distance between two points as 
stated in the man page.
http://vtk.scorec.rpi.edu/Nightly/Doc/manhtml/vtkMath.html#method13

This is for efficiency, since many uses of this value work with the squared 
distance.

Bill

At 08:58 AM 7/28/99 -0500, Ben Held wrote:
>Hello,
>
>I have discovered a major bug in vtkMath::Distance2BetweenPoints.  The
>return value needs to be passed through sqrt.
>Please make note of this so it can be fixed in 3.0.
>
>Ben
>
>John
>Ben L. Held
>Simulation Technology & Applied Research, Inc.
>11520 N. Port Washington Rd.
>Suite 101 B
>Mequon, WI  53092
>Phone: (414) 240-0293
>FAX: (414) 240-0294
>e-mail: ben.held at staarinc.com
>
>
>
>-----------------------------------------------------------------------------
>This is the private VTK discussion list.  Please keep messages on-topic.
>Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
>To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
><majordomo at gsao.med.ge.com>.  For help, send message body containing
>"info vtkusers" to the same address.     Live long and prosper.
>-----------------------------------------------------------------------------




-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------


</x-flowed>



More information about the vtkusers mailing list