@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()
staticbuildInstances(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
Packed instance centers and per-feature component metadata.
Throws
Never throws. Unsupported features are skipped with a console warning.