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
16 lines (15 loc) • 627 B
TypeScript
import type { ReactElement } from "react";
import type { MeshProps } from "@react-three/fiber";
import type { SolidData } from "../core";
export interface NurbsSolidProps extends Omit<MeshProps, "geometry" | "ref"> {
solid: SolidData;
resolutionU?: number;
resolutionV?: number;
color?: string;
wireframe?: boolean;
children?: ReactElement;
}
/**
* Renders all faces of a NurbsSolid as a single merged mesh.
*/
export declare const NurbsSolidComponent: ({ solid, resolutionU, resolutionV, color, wireframe, children, ...meshProps }: NurbsSolidProps) => import("react/jsx-runtime").JSX.Element | null;