@bitbybit-dev/occt-worker
Version:
Bit By Bit Developers CAD algorithms using OpenCascade Technology kernel adapted for WebWorker
57 lines (56 loc) • 2.49 kB
TypeScript
import { Inputs } from "@bitbybit-dev/occt";
import { OCCTWorkerManager } from "../../../occ-worker/occ-worker-manager";
export declare class OCCTCurves {
private readonly occWorkerManager;
constructor(occWorkerManager: OCCTWorkerManager);
/**
* Creates a 2d ellipse. Be sure to use this geometry only for constructive purposes of modeling, but not for representation. You need to transform these curves to edges in order to draw them.
* @param inputs 2D Ellipse parameters
* @returns OpenCascade Geom2d_ellipse
* @group primitives
* @shortname ellipse 2d
*/
geom2dEllipse(inputs: Inputs.OCCT.Geom2dEllipseDto): Promise<Inputs.OCCT.Geom2dCurvePointer>;
/**
* Creates a trimmed curve from the basis curve limited between U1 and U2. This curve can't be drawn.
* @param inputs Bounds and strategy for trimming the curve
* @returns OpenCascade Geom2d_TrimmedCurve
* @group create
* @shortname trimmed 2d
*/
geom2dTrimmedCurve(inputs: Inputs.OCCT.Geom2dTrimmedCurveDto<Inputs.OCCT.Geom2dCurvePointer>): Promise<Inputs.OCCT.Geom2dCurvePointer>;
/**
* Creates a trimmed 2d curve segment between two 2d points. This curve can't be drawn.
* @param inputs Two 2d points for start and end
* @returns OpenCascade Geom2d_Segment
* @group primitives
* @shortname segment 2d
*/
geom2dSegment(inputs: Inputs.OCCT.Geom2dSegmentDto): Promise<Inputs.OCCT.Geom2dCurvePointer>;
/**
* Gets 2d point represented by [number, number] on a curve at parameter.
* @param inputs 2D Curve shape and parameter
* @returns Point as array of 2 numbers
* @group get
* @shortname 2d point on curve
*/
get2dPointFrom2dCurveOnParam(inputs: Inputs.OCCT.DataOnGeometryAtParamDto<Inputs.OCCT.Geom2dCurvePointer>): Promise<Inputs.Base.Point2>;
/**
* Creates a circle geom curve
* @param inputs Axis information and radius
* @returns Opencascade Geom_Circle curve
* @group primitives
* @shortname circle
* @drawable false
*/
geomCircleCurve(inputs: Inputs.OCCT.CircleDto): Promise<Inputs.OCCT.GeomCurvePointer>;
/**
* Creates an ellipse geom curve
* @param inputs Axis information and radius
* @returns Opencascade Geom_Ellipse curve
* @group primitives
* @shortname ellipse
* @drawable false
*/
geomEllipseCurve(inputs: Inputs.OCCT.EllipseDto): Promise<Inputs.OCCT.GeomCurvePointer>;
}