Package | Description |
---|---|
org.osm2world.core.heightmap.data | |
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.data | |
org.osm2world.core.world.modules | |
org.osm2world.core.world.network |
functionality used by groups of features that aren't isolated, but form a "network" of nodes, ways and areas
|
Modifier and Type | Method and Description |
---|---|
SimplePolygonXZ |
TerrainElevationCell.getPolygonXZ()
returns the counterclockwise polygon surrounding this cell.
|
Modifier and Type | Method and Description |
---|---|
SimplePolygonXZ |
MapArea.getOuterPolygon() |
static SimplePolygonXZ |
MapArea.polygonFromMapNodeLoop(List<MapNode> nodes) |
Modifier and Type | Method and Description |
---|---|
PolygonXYZ |
EleConnectorGroup.getPosXYZ(SimplePolygonXZ polygon) |
Modifier and Type | Method and Description |
---|---|
SimplePolygonXZ |
PolygonXZ.asSimplePolygon()
returns a polygon with the coordinates of this polygon
that is an instance of
SimplePolygonXZ . |
SimplePolygonXZ |
SimplePolygonXZ.asSimplePolygon() |
SimplePolygonXZ |
PolygonWithHolesXZ.getOuter() |
SimplePolygonXZ |
PolygonXYZ.getSimpleXZPolygon()
caller must check whether flattening will result in a simple planar polygon
|
SimplePolygonXZ |
SimplePolygonXZ.getSimplifiedPolygon()
returns a different polygon that is constructed from this polygon
by removing all vertices where this has an angle close to 180°
(i.e.
|
SimplePolygonXZ |
SimplePolygonXZ.makeClockwise()
returns this polygon if it is counterclockwise,
or the reversed polygon if it is clockwise.
|
SimplePolygonXZ |
SimplePolygonXZ.makeCounterclockwise()
returns this polygon if it is clockwise,
or the reversed polygon if it is counterclockwise.
|
SimplePolygonXZ |
AxisAlignedBoundingBoxXZ.polygonXZ() |
SimplePolygonXZ |
SimplePolygonXZ.reverse() |
SimplePolygonXZ |
SimplePolygonXZ.shift(VectorXZ shiftVector)
creates a new polygon by adding a shift vector to each vector of this
|
Modifier and Type | Method and Description |
---|---|
List<SimplePolygonXZ> |
PolygonWithHolesXZ.getHoles() |
List<SimplePolygonXZ> |
PolygonWithHolesXZ.getPolygons()
returns a list that contains the outer polygon and all holes
|
Modifier and Type | Method and Description |
---|---|
boolean |
PolygonWithHolesXZ.contains(SimplePolygonXZ boundary) |
boolean |
PolygonWithHolesXZ.intersects(SimplePolygonXZ other) |
static Polygon |
JTSConversionUtil.polygonXZToJTSPolygon(SimplePolygonXZ polygon) |
static List<TriangleXZ> |
Poly2TriUtil.triangulate(SimplePolygonXZ polygon,
Collection<SimplePolygonXZ> holes,
Collection<LineSegmentXZ> segments,
Collection<VectorXZ> points) |
Modifier and Type | Method and Description |
---|---|
static List<TriangleXZ> |
Poly2TriUtil.triangulate(SimplePolygonXZ polygon,
Collection<SimplePolygonXZ> holes,
Collection<LineSegmentXZ> segments,
Collection<VectorXZ> points) |
Constructor and Description |
---|
PolygonWithHolesXZ(SimplePolygonXZ outerPolygon,
List<SimplePolygonXZ> holes) |
Constructor and Description |
---|
PolygonWithHolesXZ(SimplePolygonXZ outerPolygon,
List<SimplePolygonXZ> holes) |
Modifier and Type | Method and Description |
---|---|
static SimplePolygonXZ |
PolygonUtil.convexHull(SimplePolygonXZ polygon)
returns the convex hull of a simple polygon.
|
static SimplePolygonXZ |
PolygonUtil.minimumBoundingBox(SimplePolygonXZ polygon)
Calculates the smallest possible bounding box for this polygon.
|
Modifier and Type | Method and Description |
---|---|
static SimplePolygonXZ |
PolygonUtil.convexHull(SimplePolygonXZ polygon)
returns the convex hull of a simple polygon.
|
static SimplePolygonXZ |
PolygonUtil.minimumBoundingBox(SimplePolygonXZ polygon)
Calculates the smallest possible bounding box for this polygon.
|
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.
|
static List<TriangleXZ> |
JTSTriangulationUtil.triangulate(SimplePolygonXZ polygon,
Collection<SimplePolygonXZ> holes)
triangulation of a polygon with holes, based on a
conforming delaunay triangulation
|
static List<TriangleXZ> |
TriangulationUtil.triangulate(SimplePolygonXZ outerPolygon,
Collection<SimplePolygonXZ> holes)
triangulates a two-dimensional polygon with holes.
|
static List<TriangleXZ> |
EarClippingTriangulationUtil.triangulate(SimplePolygonXZ polygon,
Collection<SimplePolygonXZ> holes)
triangulates a two-dimensional polygon
by creating a simple polygon first
(integrating holes into the polygon outline),
then using Ear Clipping on that simple polygon.
|
static List<TriangleXZ> |
Poly2TriTriangulationUtil.triangulate(SimplePolygonXZ outerPolygon,
Collection<SimplePolygonXZ> holes,
Collection<LineSegmentXZ> segments,
Collection<VectorXZ> points)
triangulates of a polygon with holes.
|
static List<TriangleXZ> |
JTSTriangulationUtil.triangulate(SimplePolygonXZ polygon,
Collection<SimplePolygonXZ> holes,
Collection<LineSegmentXZ> segments,
Collection<VectorXZ> points)
variant of
JTSTriangulationUtil.triangulate(SimplePolygonXZ, Collection)
that accepts some unconnected points within the polygon area
and will try to create triangle vertices at these points. |
static List<TriangleXZ> |
TriangulationUtil.triangulate(SimplePolygonXZ outerPolygon,
Collection<SimplePolygonXZ> holes,
Collection<VectorXZ> points)
triangulates a two-dimensional polygon with holes and unconnected points.
|
static List<TriangleXZ> |
Poly2TriTriangulationUtil.triangulateFast(SimplePolygonXZ outerPolygon,
Collection<SimplePolygonXZ> holes,
Collection<LineSegmentXZ> segments,
Collection<VectorXZ> points)
variant of
Poly2TriTriangulationUtil.triangulate(SimplePolygonXZ, Collection, Collection, Collection)
that does not validate the input. |
Modifier and Type | Method and Description |
---|---|
static void |
EarClippingTriangulationUtil.insertHolesInPolygonOutline(List<VectorXZ> polygonOutline,
Collection<SimplePolygonXZ> holes)
inserts multiple holes into a polygon outline using
EarClippingTriangulationUtil.insertHoleInPolygonOutline(List, SimplePolygonXZ, List)
TODO: public for debugging purposes |
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.
|
static List<TriangleXZ> |
JTSTriangulationUtil.triangulate(SimplePolygonXZ polygon,
Collection<SimplePolygonXZ> holes)
triangulation of a polygon with holes, based on a
conforming delaunay triangulation
|
static List<TriangleXZ> |
TriangulationUtil.triangulate(SimplePolygonXZ outerPolygon,
Collection<SimplePolygonXZ> holes)
triangulates a two-dimensional polygon with holes.
|
static List<TriangleXZ> |
EarClippingTriangulationUtil.triangulate(SimplePolygonXZ polygon,
Collection<SimplePolygonXZ> holes)
triangulates a two-dimensional polygon
by creating a simple polygon first
(integrating holes into the polygon outline),
then using Ear Clipping on that simple polygon.
|
static List<TriangleXZ> |
Poly2TriTriangulationUtil.triangulate(SimplePolygonXZ outerPolygon,
Collection<SimplePolygonXZ> holes,
Collection<LineSegmentXZ> segments,
Collection<VectorXZ> points)
triangulates of a polygon with holes.
|
static List<TriangleXZ> |
JTSTriangulationUtil.triangulate(SimplePolygonXZ polygon,
Collection<SimplePolygonXZ> holes,
Collection<LineSegmentXZ> segments,
Collection<VectorXZ> points)
variant of
JTSTriangulationUtil.triangulate(SimplePolygonXZ, Collection)
that accepts some unconnected points within the polygon area
and will try to create triangle vertices at these points. |
static List<TriangleXZ> |
TriangulationUtil.triangulate(SimplePolygonXZ outerPolygon,
Collection<SimplePolygonXZ> holes,
Collection<VectorXZ> points)
triangulates a two-dimensional polygon with holes and unconnected points.
|
static List<TriangleXZ> |
Poly2TriTriangulationUtil.triangulateFast(SimplePolygonXZ outerPolygon,
Collection<SimplePolygonXZ> holes,
Collection<LineSegmentXZ> segments,
Collection<VectorXZ> points)
variant of
Poly2TriTriangulationUtil.triangulate(SimplePolygonXZ, Collection, Collection, Collection)
that does not validate the input. |
Modifier and Type | Method and Description |
---|---|
abstract SimplePolygonXZ |
OutlineNodeWorldObject.getOutlinePolygonXZ() |
SimplePolygonXZ |
WorldObjectWithOutline.getOutlinePolygonXZ()
returns a counterclockwise polygon defining the object's ground footprint,
projected onto the XZ plane.
|
SimplePolygonXZ |
AbstractAreaWorldObject.getOutlinePolygonXZ() |
Modifier and Type | Method and Description |
---|---|
SimplePolygonXZ |
TunnelModule.TunnelEntrance.getOutlinePolygonXZ() |
SimplePolygonXZ |
WaterModule.Waterway.getOutlinePolygonXZ() |
SimplePolygonXZ |
BuildingModule.Building.getOutlinePolygonXZ() |
SimplePolygonXZ |
SurfaceAreaModule.SurfaceArea.getOutlinePolygonXZ() |
Modifier and Type | Method and Description |
---|---|
SimplePolygonXZ |
AbstractNetworkWaySegmentWorldObject.getOutlinePolygonXZ() |
SimplePolygonXZ |
VisibleConnectorNodeWorldObject.getOutlinePolygonXZ() |
SimplePolygonXZ |
JunctionNodeWorldObject.getOutlinePolygonXZ() |