Revision: 56685
          http://sourceforge.net/p/brlcad/code/56685
Author:   phoenixyjll
Date:     2013-08-08 05:51:04 +0000 (Thu, 08 Aug 2013)
Log Message:
-----------
Check m_type: if the event is not a curve event, we don't need to do anything.

Modified Paths:
--------------
    brlcad/trunk/src/libbrep/boolean.cpp

Modified: brlcad/trunk/src/libbrep/boolean.cpp
===================================================================
--- brlcad/trunk/src/libbrep/boolean.cpp        2013-08-08 03:00:14 UTC (rev 
56684)
+++ brlcad/trunk/src/libbrep/boolean.cpp        2013-08-08 05:51:04 UTC (rev 
56685)
@@ -494,11 +494,15 @@
                continue;
            ON_SimpleArray<ON_Curve*> curve_uv, curve_st;
            for (int k = 0; k < events.Count(); k++) {
-               curve_uv.Append(events[k].m_curveA);
-               curve_st.Append(events[k].m_curveB);
-               // Set m_curveA and m_curveB to NULL, in case that they are
-               // deleted by ~ON_SSX_EVENT().
-               events[k].m_curveA = events[k].m_curveB = NULL;
+               if (events[k].m_type == ON_SSX_EVENT::ssx_overlap
+                   || events[k].m_type == ON_SSX_EVENT::ssx_tangent
+                   || events[k].m_type == ON_SSX_EVENT::ssx_transverse) {
+                   curve_uv.Append(events[k].m_curveA);
+                   curve_st.Append(events[k].m_curveB);
+                   // Set m_curveA and m_curveB to NULL, in case that they are
+                   // deleted by ~ON_SSX_EVENT().
+                   events[k].m_curveA = events[k].m_curveB = NULL;
+               }
            }
            curvesarray[i].Append(curve_uv.Count(), curve_uv.Array());
            curvesarray[facecount1 + j].Append(curve_st.Count(), 
curve_st.Array());

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to