Revision: 56204
          http://sourceforge.net/p/brlcad/code/56204
Author:   phoenixyjll
Date:     2013-07-25 03:08:37 +0000 (Thu, 25 Jul 2013)
Log Message:
-----------
j should start from 0, otherwise we'll miss something.

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

Modified: brlcad/trunk/src/libbrep/intersect.cpp
===================================================================
--- brlcad/trunk/src/libbrep/intersect.cpp      2013-07-25 02:56:30 UTC (rev 
56203)
+++ brlcad/trunk/src/libbrep/intersect.cpp      2013-07-25 03:08:37 UTC (rev 
56204)
@@ -2490,7 +2490,7 @@
        if (!overlaps[i] || !overlapA[i] || !overlapB[i])
            continue;
 
-       for (int j = i + 1; j <= overlaps.Count(); j++) {
+       for (int j = 0; j <= overlaps.Count(); j++) {
            if (overlaps[i]->IsClosed() && overlapA[i]->IsClosed() && 
overlapB[i]->IsClosed()) {
                // The i-th curve is close loop, we get a complete boundary of
                // that overlap region.
@@ -2511,7 +2511,7 @@
                break;
            }
 
-           if (j == overlaps.Count() || !overlaps[j] || !overlapA[j] || 
!overlapB[j])
+           if (j == overlaps.Count() || j == i || !overlaps[j] || !overlapA[j] 
|| !overlapB[j])
                continue;
 
            // Merge the curves that link together.

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


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to