Revision: 53856
http://brlcad.svn.sourceforge.net/brlcad/?rev=53856&view=rev
Author: n_reed
Date: 2012-11-28 18:21:07 +0000 (Wed, 28 Nov 2012)
Log Message:
-----------
tweak collinearity test - dist should never be nan but could be infinite
Modified Paths:
--------------
brlcad/trunk/src/librt/primitives/pipe/pipe.c
Modified: brlcad/trunk/src/librt/primitives/pipe/pipe.c
===================================================================
--- brlcad/trunk/src/librt/primitives/pipe/pipe.c 2012-11-28 16:39:33 UTC
(rev 53855)
+++ brlcad/trunk/src/librt/primitives/pipe/pipe.c 2012-11-28 18:21:07 UTC
(rev 53856)
@@ -1993,9 +1993,9 @@
* segments is nearly 0 or pi radians, the points are considered
* colinear and we just draw a linear segment to cur
*/
- if (isnan(dist_cur_to_bend_end)
- || VNEAR_ZERO(norm, SQRT_SMALL_FASTF)
- || NEAR_ZERO(dist_cur_to_bend_end, SQRT_SMALL_FASTF))
+ if (isinf(dist_cur_to_bend_end)
+ || NEAR_ZERO(dist_cur_to_bend_end, SQRT_SMALL_FASTF)
+ || VNEAR_ZERO(norm, SQRT_SMALL_FASTF))
{
start = *prevp;
end = *curp;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
INSIGHTS What's next for parallel hardware, programming and related areas?
Interviews and blogs by thought leaders keep you ahead of the curve.
http://goparallel.sourceforge.net
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits