Class TriangulatorBuildings

Source
Expand description

Class for triangulating buildings from GeoJSON features. It provides methods to convert different geometry types into building meshes.

Constructors§

§

new TriangulatorBuildings(): TriangulatorBuildings

Methods§

Source§

buildMesh(
    geojson: FeatureCollection,
    origin: number[],
): [ILayerGeometry[], ILayerComponent[]]

Builds a mesh from GeoJSON features representing buildings.

Source§

lineStringToBuildingMesh(
    feature: Feature,
    heightInfo: number[],
    origin: number[],
): { flatCoords: number[]; flatIds: number[] }[]

Converts a LineString feature to a border representation.

Source§

multiLineStringToBuilding(
    feature: Feature,
    heightInfo: number[],
    origin: number[],
): { flatCoords: number[]; flatIds: number[] }[]

Converts a LineString feature to a border representation.

Source§

multiPolygonToBuilding(
    feature: Feature,
    heightInfo: number[],
    origin: number[],
): { flatCoords: number[]; flatIds: number[] }[]

Converts a LineString feature to a border representation.

Source§

polygonToBuilding(
    feature: Feature,
    heightInfo: number[],
    origin: number[],
): { flatCoords: number[]; flatIds: number[] }[]

Converts a LineString feature to a border representation.