@bitbybit-dev/jscad
Version:
Bit By Bit Developers JSCAD based CAD Library to Program Geometry
24 lines (23 loc) • 1.26 kB
TypeScript
import { GeometryHelper } from "@bitbybit-dev/base";
import * as Inputs from "../inputs/jscad-inputs";
import { MathBitByBit } from "@bitbybit-dev/base";
import * as JSCAD from "@jscad/modeling";
/**
* Contains various functions for Path from JSCAD library https://github.com/jscad/OpenJSCAD.org
* Thanks JSCAD community for developing this kernel
*/
export declare class JSCADPath {
private readonly jscad;
private readonly geometryHelper;
private readonly math;
constructor(jscad: typeof JSCAD, geometryHelper: GeometryHelper, math: MathBitByBit);
createFromPoints(inputs: Inputs.JSCAD.PathFromPointsDto): Inputs.JSCAD.JSCADEntity;
createPathsFromPoints(inputs: Inputs.JSCAD.PathsFromPointsDto): Inputs.JSCAD.JSCADEntity[];
createFromPolyline(inputs: Inputs.JSCAD.PathFromPolylineDto): Inputs.JSCAD.JSCADEntity;
createEmpty(): Inputs.JSCAD.JSCADEntity;
close(inputs: Inputs.JSCAD.PathDto): Inputs.JSCAD.JSCADEntity;
appendPoints(inputs: Inputs.JSCAD.PathAppendPointsDto): Inputs.JSCAD.JSCADEntity;
appendPolyline(inputs: Inputs.JSCAD.PathAppendPolylineDto): Inputs.JSCAD.JSCADEntity;
appendArc(inputs: Inputs.JSCAD.PathAppendArcDto): Inputs.JSCAD.JSCADEntity;
private removeDuplicatesAndCreateFromPoints;
}