UNPKG

@achirita/blox

Version:

A CAD library for building 3D models in the browser.

14 lines (13 loc) 565 B
import { Plane, Vector } from '../math'; import { Edge } from '../modeling'; /** * Creates a Bezier curve from the given control points. * @param {Object} parameters - The parameters for the Bezier curve. * @param {Plane} [parameters.plane=Plane.XY] - The plane in which the curve is constructed. * @param {Vector[]} parameters.points - The control points for the Bezier curve. * @returns {Edge} An `Edge` object representing the constructed Bezier curve. */ export function BezierCurve({ plane, points }: { plane?: Plane; points: Vector[]; }): Edge;