UNPKG

@webviz/subsurface-viewer

Version:

3D visualization component for subsurface reservoir data

10 lines (9 loc) 495 B
import type { Point3D } from "../../utils"; /** * Simplify points based on the given tolerance * @param points Points to simplify * @param mds MD values * @param tolerance The tolerance value to determine the level of simplification. A higher tolerance results in fewer points. If undefined or zero, then no simplification is applied. * @returns Simplified points and mds */ export declare function simplify(points: Point3D[], mds: number[], tolerance?: number): (number[] | Point3D[])[];