UNPKG

@bitbybit-dev/occt-worker

Version:

Bit By Bit Developers CAD algorithms using OpenCascade Technology kernel adapted for WebWorker

28 lines (27 loc) 966 B
export class OCCTSurfaces { constructor(occWorkerManager) { this.occWorkerManager = occWorkerManager; } /** * Creates an infinite cylindrical surface that can not be drawn. Be sure to use this geometry only for constructive purposes of modeling, but not for representation. * @param inputs Cylinder parameters * @returns OpenCascade cylindrical surface * @group surfaces * @shortname cylindrical * @drawable false */ cylindricalSurface(inputs) { return this.occWorkerManager.genericCallToWorkerPromise("geom.surfaces.cylindricalSurface", inputs); } /** * Creates a surface from the face * @param inputs Face shape * @returns OpenCascade geom surface * @group surfaces * @shortname from face * @drawable false */ surfaceFromFace(inputs) { return this.occWorkerManager.genericCallToWorkerPromise("geom.surfaces.surfaceFromFace", inputs); } }