[vtkusers] Bug report about vtkLine.cpp
徐志華
zionman.hsu at gmail.com
Mon Jun 13 06:46:34 EDT 2016
The Common Datamodel vtkLine.cpp has the following paragraph for calculating
distance between two lines,
---------------------------------------------------------------------------
const double D = a*c - b*b; // always >= 0
// compute the line parameters of the two closest points
if (D < 1e-6)
{ // the lines are almost parallel
----------------------------------------------------------------------------
-
for rather small line segments, the a*c and b*b maybe very small compare to
1e-6, which case, the used criterial for almost parallel may cause error,
maybe the D<1e-6 is better use floating criterial value.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160613/47109ebc/attachment.html>
More information about the vtkusers
mailing list