org.osm2world.core.math.algorithms
public final class CAGUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Collection<PolygonWithHolesXZ> |
intersectPolygons(List<? extends SimplePolygonXZ> intersectPolygons)
calculates the intersection area of a collection of polygons.
|
static Collection<PolygonWithHolesXZ> |
subtractPolygons(SimplePolygonXZ basePolygon,
List<? extends SimplePolygonXZ> subtractPolygons)
takes a polygon outline, "subtracts" a collection of other polygon outlines,
and returns a collection of polygons that covers the difference area.
|
public static final Collection<PolygonWithHolesXZ> subtractPolygons(SimplePolygonXZ basePolygon, List<? extends SimplePolygonXZ> subtractPolygons)
public static final Collection<PolygonWithHolesXZ> intersectPolygons(List<? extends SimplePolygonXZ> intersectPolygons)