Definition of a parsed set of polygon geometry.
type Polygon = {
type: string,
feature: Feature | null,
boundingBox: Box3 | null,
foreign: Object,
dimension: number | null,
data: Array<Array<Array<Position>>>,
getLineObject: function,
getMeshObject: function
}Properties
type: string
The GeoJSON geometry type, "Polygon" or "MultiPolygon".
The feature the geometry was defined in, if any.
boundingBox: Box3 | null
The "bbox" field parsed into a Box3, or null if not present.
foreign: Object
Any non-schema fields found on the original GeoJSON object.
dimension: number | null
The number of components in each coordinate.
The set of parsed polygons, each defined as a contour loop followed by any hole loops.
getLineObject: function
Builds a three.js LineSegments from the polygon loops.
getMeshObject: function
Builds a three.js Mesh from the polygon data.