I want to use Java's Area class (java.awt.geom.Area) to preform subtraction and intersection operations on various polygons.
In many of these cases the subtraction operation may split the source Area into two. In these cases I need to have two Area objects returned, one for each of the resulting contiguous sections created by the subtraction operation.
After reading through the JavaDocs on the Area class I haven't seemingly found any way to return a contiguous part of the Area. In fact I'm not even sure how Area handles such a situation.
How would I get all of the resulting contiguous Area's created by Area's subtraction or intersection methods?
Thanks, -Cody