react-three-nurbs
Version:
A React component library for NURBS (Non-Uniform Rational B-Spline) curves, surfaces, and solids in Three.js. Built with React Three Fiber, zero external NURBS dependencies — all math implemented from scratch. Boolean operations powered by OpenCASCADE WAS
13 lines (12 loc) • 475 B
TypeScript
/**
* Surface-surface intersection using marching squares on sampled grids.
*/
import { NurbsSurface } from "./surface";
export interface IntersectionResult {
points: number[][];
}
/**
* Compute intersection curves between two surfaces.
* Samples surface0 on a grid, evaluates distance to surface1, finds zero-crossings.
*/
export declare function intersectSurfaces(s0: NurbsSurface, s1: NurbsSurface, tolerance?: number, resolution?: number): IntersectionResult[];