Revision: 55317
http://sourceforge.net/p/brlcad/code/55317
Author: n_reed
Date: 2013-05-07 17:18:10 +0000 (Tue, 07 May 2013)
Log Message:
-----------
need to unitize direction vector before scaling by absolute distance to
intersection
Modified Paths:
--------------
brlcad/trunk/src/conv/step/OpenNurbsInterfaces.cpp
Modified: brlcad/trunk/src/conv/step/OpenNurbsInterfaces.cpp
===================================================================
--- brlcad/trunk/src/conv/step/OpenNurbsInterfaces.cpp 2013-05-07 16:44:01 UTC
(rev 55316)
+++ brlcad/trunk/src/conv/step/OpenNurbsInterfaces.cpp 2013-05-07 17:18:10 UTC
(rev 55317)
@@ -1776,7 +1776,10 @@
int i = bn_isect_line3_line3(&l1_dist, &l2_dist, l1_from, l1_dir,
l2_from, l2_dir, &tol);
if (i == 1) {
- out = l1.from + l1.Direction() * l1_dist;
+ ON_3dVector l1_unit_dir = l1.Direction();
+ l1_unit_dir.Unitize();
+
+ out = l1.from + l1_unit_dir * l1_dist;
}
return i;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits