Class TriangulatorPolylines

Source
Expand description

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

Constructors§

§

new TriangulatorPolylines(): TriangulatorPolylines

Properties§

Source§

static offset: number = [object Object]

The offset distance for the polyline extrusion.

Methods§

Source§

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

Builds a mesh from GeoJSON features representing polylines.

Source§

lineStringToPolyline(
    feature: Feature,
    origin: number[],
    offset: number,
): { flatCoords: number[]; flatIds: number[] }[]

Converts a LineString feature to a polyline mesh representation.

Source§

multiLineStringToPolyline(
    feature: Feature,
    origin: number[],
    offset: number,
): { flatCoords: number[]; flatIds: number[] }[]

Converts a MultiLineString feature to a polyline mesh representation.