Package | Description |
---|---|
org.osm2world.core.map_data.data | |
org.osm2world.core.map_elevation.data | |
org.osm2world.core.math |
classes for geometric objects that are used throughout OSM2World
|
org.osm2world.core.math.algorithms | |
org.osm2world.core.world.modules |
Modifier and Type | Method and Description |
---|---|
PolygonWithHolesXZ |
MapArea.getPolygon()
returns the area as a polygon.
|
Constructor and Description |
---|
MapArea(OSMElement objectWithTags,
List<MapNode> nodes,
List<List<MapNode>> holes,
PolygonWithHolesXZ polygon) |
Modifier and Type | Method and Description |
---|---|
void |
EleConnectorGroup.addConnectorsFor(PolygonWithHolesXZ polygon,
Object reference,
GroundState groundState) |
Modifier and Type | Method and Description |
---|---|
PolygonWithHolesXZ |
SimplePolygonXZ.asPolygonWithHolesXZ() |
static PolygonWithHolesXZ |
JTSConversionUtil.polygonXZFromJTSPolygon(Polygon polygon) |
Modifier and Type | Method and Description |
---|---|
static Collection<PolygonWithHolesXZ> |
JTSConversionUtil.polygonsXZFromJTSGeometry(Geometry geometry) |
Modifier and Type | Method and Description |
---|---|
static List<VectorXZ> |
GeometryUtil.distributePointsOn(long seed,
PolygonWithHolesXZ polygonWithHolesXZ,
AxisAlignedBoundingBoxXZ boundary,
double density,
double minimumDistance)
distributes points pseudo-randomly on a polygon area.
|
Collection<VectorXZ> |
PolygonWithHolesXZ.intersectionPositions(PolygonWithHolesXZ p2) |
Modifier and Type | Method and Description |
---|---|
static Collection<PolygonWithHolesXZ> |
CAGUtil.intersectPolygons(List<? extends SimplePolygonXZ> intersectPolygons)
calculates the intersection area of a collection of polygons.
|
static Collection<PolygonWithHolesXZ> |
CAGUtil.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.
|
Modifier and Type | Method and Description |
---|---|
static List<TriangleXZ> |
TriangulationUtil.triangulate(PolygonWithHolesXZ polygon) |
static List<TriangleXZ> |
TriangulationUtil.triangulate(PolygonWithHolesXZ polygon,
Collection<VectorXZ> points) |
Modifier and Type | Method and Description |
---|---|
PolygonWithHolesXZ |
BuildingModule.BuildingPart.getPolygon() |
PolygonWithHolesXZ |
BuildingModule.BuildingPart.Roof.getPolygon()
returns the outline (with holes) of the roof.
|
Constructor and Description |
---|
BuildingModule.BuildingPart(BuildingModule.Building building,
MapArea area,
PolygonWithHolesXZ polygon,
boolean useBuildingColors,
boolean drawBuildingWindows) |