UNPKG

@bitbybit-dev/jscad

Version:

Bit By Bit Developers JSCAD based CAD Library to Program Geometry

26 lines (25 loc) 1.38 kB
import { GeometryHelper } from "@bitbybit-dev/base"; import * as Inputs from "../inputs"; import { MathBitByBit } from "@bitbybit-dev/base"; import * as JSCAD from "@jscad/modeling"; /** * Contains various functions for Polygon from JSCAD library https://github.com/jscad/OpenJSCAD.org * Thanks JSCAD community for developing this kernel */ export declare class JSCADPolygon { private readonly jscad; private readonly geometryHelper; private readonly math; constructor(jscad: typeof JSCAD, geometryHelper: GeometryHelper, math: MathBitByBit); createFromPoints(inputs: Inputs.Point.PointsDto): Inputs.JSCAD.JSCADEntity; createFromPolyline(inputs: Inputs.JSCAD.PolylineDto): Inputs.JSCAD.JSCADEntity; createFromCurve(inputs: Inputs.JSCAD.CurveDto): Inputs.JSCAD.JSCADEntity; createFromPath(inputs: Inputs.JSCAD.PathDto): Inputs.JSCAD.JSCADEntity; circle(inputs: Inputs.JSCAD.CircleDto): Inputs.JSCAD.JSCADEntity; ellipse(inputs: Inputs.JSCAD.EllipseDto): Inputs.JSCAD.JSCADEntity; rectangle(inputs: Inputs.JSCAD.RectangleDto): Inputs.JSCAD.JSCADEntity; roundedRectangle(inputs: Inputs.JSCAD.RoundedRectangleDto): Inputs.JSCAD.JSCADEntity; square(inputs: Inputs.JSCAD.SquareDto): Inputs.JSCAD.JSCADEntity; star(inputs: Inputs.JSCAD.StarDto): Inputs.JSCAD.JSCADEntity; private removeDuplicatesAndCreateFromPoints; }