UNPKG

@bitbybit-dev/occt

Version:

Bit By Bit Developers CAD algorithms using OpenCascade Technology kernel. Run in Node and in Browser.

16 lines (15 loc) 442 B
export class OCCTSurfaces { constructor(occ, och) { this.occ = occ; this.och = och; } cylindricalSurface(inputs) { const ax = this.och.entitiesService.gpAx3_4(inputs.center, inputs.direction); const res = new this.occ.Geom_CylindricalSurface_1(ax, inputs.radius); ax.delete(); return res; } surfaceFromFace(inputs) { return this.och.surfaceFromFace(inputs); } }