Revision: 55837
http://sourceforge.net/p/brlcad/code/55837
Author: phoenixyjll
Date: 2013-06-25 09:00:25 +0000 (Tue, 25 Jun 2013)
Log Message:
-----------
Add logic in case that one side may fail.
Modified Paths:
--------------
brlcad/trunk/src/libbrep/intersect.cpp
Modified: brlcad/trunk/src/libbrep/intersect.cpp
===================================================================
--- brlcad/trunk/src/libbrep/intersect.cpp 2013-06-25 08:54:23 UTC (rev
55836)
+++ brlcad/trunk/src/libbrep/intersect.cpp 2013-06-25 09:00:25 UTC (rev
55837)
@@ -669,6 +669,24 @@
else
Event.m_type = ON_X_EVENT::ccx_overlap;
x.Append(Event);
+ } else if (distance1 < intersection_tolerance) {
+ // in case that the second one was not correct
+ ON_X_EVENT Event;
+ Event.m_A[0] = pointA1;
+ Event.m_B[0] = pointB1;
+ Event.m_a[0] = t_a1;
+ Event.m_b[0] = t_b1;
+ Event.m_type = ON_X_EVENT::ccx_point;
+ x.Append(Event);
+ } else if (distance2 < intersection_tolerance) {
+ // in case that the first one was not correct
+ ON_X_EVENT Event;
+ Event.m_A[0] = pointA2;
+ Event.m_B[0] = pointB2;
+ Event.m_a[0] = t_a2;
+ Event.m_b[0] = t_b2;
+ Event.m_type = ON_X_EVENT::ccx_point;
+ x.Append(Event);
}
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits