Skip to content

@urban-toolkit/autk-core


@urban-toolkit/autk-core / TriangulatorPoints

Class: TriangulatorPoints ​

Defined in: triangulator-points.ts:31

Converts point-based GeoJSON features into packed point instances.

The class walks a feature collection in order and supports Point, MultiPoint, and point-bearing GeometryCollection geometries while skipping unsupported features with a warning.

Constructors ​

Constructor ​

new TriangulatorPoints(): TriangulatorPoints

Returns ​

TriangulatorPoints

Methods ​

buildInstances() ​

static buildInstances(geojson, origin): PointInstancesData

Defined in: triangulator-points.ts:40

Builds point-instance data for a feature collection.

Parameters ​

geojson ​

FeatureCollection

Source feature collection containing point geometries.

origin ​

number[]

World-space origin used to convert coordinates into local XY space.

Returns ​

PointInstancesData

Packed instance centers and per-feature component metadata.

Throws ​

Never throws. Unsupported features are skipped with a console warning.

Released under the MIT License.