Revision: 52761
http://brlcad.svn.sourceforge.net/brlcad/?rev=52761&view=rev
Author: bob1961
Date: 2012-10-04 13:00:09 +0000 (Thu, 04 Oct 2012)
Log Message:
-----------
Better overlap handling of polygons with more than one contour.
Modified Paths:
--------------
brlcad/trunk/src/libged/polyclip.cpp
Modified: brlcad/trunk/src/libged/polyclip.cpp
===================================================================
--- brlcad/trunk/src/libged/polyclip.cpp 2012-10-04 12:18:56 UTC (rev
52760)
+++ brlcad/trunk/src/libged/polyclip.cpp 2012-10-04 13:00:09 UTC (rev
52761)
@@ -692,14 +692,16 @@
}
}
+ /* found a point on a polygon B contour that's outside of polygon A
*/
if (!(winding%2))
break;
}
- }
- if (winding%2) {
- ret = 1;
- goto end;
+ /* found a B polygon contour that's completely inside polygon A */
+ if (winding%2) {
+ ret = 1;
+ goto end;
+ }
}
for (i = 0; i < polyA_2d.p_num_contours; ++i) {
@@ -759,9 +761,14 @@
}
}
+ /* found a point on a polygon A contour that's outside of polygon B
*/
if (!(winding%2))
break;
}
+
+ /* found an A polygon contour that's completely inside polygon B */
+ if (winding%2)
+ break;
}
ret = winding%2;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits