UNPKG

@achirita/blox

Version:

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

16 lines (15 loc) 635 B
import { Plane, Vector } from '../math'; import { Face } from '../modeling'; /** * Creates a circle based on the specified parameters. * @param {Object} parameters - The parameters for the circle. * @param {Plane} [parameters.plane=Plane.XY] - The plane in which the circle is constructed. * @param {Vector} [parameters.center=Vector.ZERO] - The center of the circle. * @param {number} parameters.radius - The radius of the circle. * @returns {Face} A `Face` object representing the constructed circle. */ export function Circle({ plane, center, radius }: { plane?: Plane; center?: Vector; radius: number; }): Face;