UNPKG

@kylebarron/snap-to-tin

Version:

Snap vector features to the faces of a triangulated irregular network (TIN).

21 lines (20 loc) 694 B
import Flatbush from "flatbush"; import { FloatArray, IntegerArray, Point, PointZ } from "./types"; export default class SnapFeatures { index: Flatbush; triangles: FloatArray; bounds: [number, number, number, number]; constructor(options: any); snapFeatures: (options: any) => any[]; _handlePoint: (coord: Point) => PointZ | null | undefined; _handleLine: (coords: Point[]) => Point[][] | undefined; snapPoints: (options: any) => { positions: Float32Array; featureIds: IntegerArray | undefined; }; snapLines: (options: any) => { positions: Float32Array; pathIndices: Uint32Array; featureIds: Uint32Array; }; }