UNPKG

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

18 lines (17 loc) 832 B
import type { ReactElement } from "react"; import { BufferGeometry } from "three"; import type { Mesh } from "three"; import type { MeshProps } from "@react-three/fiber"; export interface CylindricalSurfaceProps extends Omit<MeshProps, "geometry" | "ref"> { axis?: [number, number, number]; xaxis?: [number, number, number]; base?: [number, number, number]; height?: number; radius?: number; resolutionU?: number; resolutionV?: number; color?: string; wireframe?: boolean; children?: ReactElement; } export declare const CylindricalSurface: import("react").ForwardRefExoticComponent<CylindricalSurfaceProps & import("react").RefAttributes<Mesh<BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap>>>;