@kylebarron/snap-to-tin
Version:
Snap vector features to the faces of a triangulated irregular network (TIN).
11 lines (10 loc) • 616 B
TypeScript
import Flatbush from "flatbush";
import { LineSegment, FloatArray } from "./types";
export declare function constructRTree(indices: Int32Array, positions: FloatArray): {
index: Flatbush;
triangles: FloatArray;
};
export declare function createTriangles(indices: Int32Array, positions: FloatArray): FloatArray;
export declare function searchLineInIndex(line: LineSegment, index: Flatbush, maxPctArea?: number): number[];
export declare function getIndexArea(index: Flatbush): number | null;
export declare function getNumLineSegments(line: LineSegment, indexArea: number | null, maxPctArea?: number): number;