UNPKG

@bitbybit-dev/occt

Version:

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

52 lines (51 loc) 1.6 kB
export class OCCTSolid { constructor(occ, och) { this.occ = occ; this.och = och; } fromClosedShell(inputs) { return this.och.solidsService.fromClosedShell(inputs); } createBox(inputs) { return this.och.solidsService.createBox(inputs); } createCube(inputs) { return this.och.solidsService.createCube(inputs); } createBoxFromCorner(inputs) { return this.och.solidsService.createBoxFromCorner(inputs); } createCylinder(inputs) { return this.och.solidsService.createCylinder(inputs); } createCylindersOnLines(inputs) { return this.och.solidsService.createCylindersOnLines(inputs); } createSphere(inputs) { return this.och.solidsService.createSphere(inputs); } createCone(inputs) { return this.och.solidsService.createCone(inputs); } getSolidSurfaceArea(inputs) { return this.och.solidsService.getSolidSurfaceArea(inputs); } getSolidVolume(inputs) { return this.och.solidsService.getSolidVolume(inputs); } getSolidsVolumes(inputs) { return this.och.solidsService.getSolidsVolumes(inputs); } getSolidCenterOfMass(inputs) { return this.och.solidsService.getSolidCenterOfMass(inputs); } getSolidsCentersOfMass(inputs) { return this.och.solidsService.getSolidsCentersOfMass(inputs); } getSolids(inputs) { return this.och.solidsService.getSolids(inputs); } filterSolidPoints(inputs) { return this.och.solidsService.filterSolidPoints(inputs); } }