brepjs 14.6.6 → 14.6.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/2d.cjs +5 -5
  2. package/dist/2d.js +5 -5
  3. package/dist/{blueprint-DFEgFJYq.js → blueprint-CXGeX_im.js} +5 -5
  4. package/dist/{blueprint-Dy7ARPXJ.cjs → blueprint-D6P4Ptwc.cjs} +5 -5
  5. package/dist/{blueprintFns-Dc000lbc.js → blueprintFns-C1Q9BZYN.js} +2 -2
  6. package/dist/{blueprintFns-H2WJG5n2.cjs → blueprintFns-CRi0AJY2.cjs} +2 -2
  7. package/dist/{boolean2D-Bw-6hKCf.js → boolean2D-COhGEabH.js} +7 -7
  8. package/dist/{boolean2D-Bsdb31mM.cjs → boolean2D-D9bNqIv5.cjs} +7 -7
  9. package/dist/{booleanFns-BLDTDLSF.cjs → booleanFns-Bu_HczH1.cjs} +3 -3
  10. package/dist/{booleanFns-D-U1zAnb.js → booleanFns-DlfB8aNN.js} +3 -3
  11. package/dist/brepjs.cjs +19 -19
  12. package/dist/brepjs.js +19 -19
  13. package/dist/core.cjs +1 -1
  14. package/dist/core.js +1 -1
  15. package/dist/{cornerFinder-B6rKiYRI.js → cornerFinder-BqrHP-yL.js} +1 -1
  16. package/dist/{cornerFinder-TYHShzGu.cjs → cornerFinder-i4Y7Nrjy.cjs} +1 -1
  17. package/dist/{curveFns-DZQqrcS8.cjs → curveFns-D5afgr58.cjs} +1 -1
  18. package/dist/{curveFns-DLlD1hFL.js → curveFns-Dlg-98k2.js} +1 -1
  19. package/dist/{drawFns-CUqNgF0l.js → drawFns-DUF0fdFG.js} +11 -11
  20. package/dist/{drawFns-CvuNVDJc.cjs → drawFns-NPXo-y9x.cjs} +11 -11
  21. package/dist/{extrudeFns-C2dk_SwT.cjs → extrudeFns-Bs_h53zW.cjs} +1 -1
  22. package/dist/{extrudeFns-D83bFc01.js → extrudeFns-SjjVWl9I.js} +1 -1
  23. package/dist/{faceFns-DVeZQZfD.cjs → faceFns-CAAlPCSf.cjs} +1 -1
  24. package/dist/{faceFns-iqaDWGL2.js → faceFns-D0Sw7UAk.js} +1 -1
  25. package/dist/{helpers-HH_F9BEl.js → helpers-DKA--8Ok.js} +5 -5
  26. package/dist/{helpers-DcOHqOfT.cjs → helpers-IGblAcXr.cjs} +5 -5
  27. package/dist/{historyFns-By2rvfdT.cjs → historyFns-BLfgf9Ie.cjs} +4 -4
  28. package/dist/{historyFns-C5LVTRMt.js → historyFns-DeI_YWq7.js} +4 -4
  29. package/dist/{importFns-Cg8ra1G0.cjs → importFns-DYpRZApj.cjs} +2 -2
  30. package/dist/{importFns-CAjnoUsl.js → importFns-D_ilQOKc.js} +2 -2
  31. package/dist/io.cjs +2 -2
  32. package/dist/io.js +2 -2
  33. package/dist/kernel/occt/geometryQueryOps.d.ts.map +1 -1
  34. package/dist/{measureFns-C0ExdINB.js → measureFns-C5T3Vj5H.js} +2 -2
  35. package/dist/{measureFns-DSukVpI5.cjs → measureFns-e9ClVIDp.cjs} +2 -2
  36. package/dist/measurement.cjs +1 -1
  37. package/dist/measurement.js +1 -1
  38. package/dist/{meshFns-Ctb89ro_.js → meshFns-CwXSu86J.js} +2 -2
  39. package/dist/{meshFns-DFerbqRc.cjs → meshFns-D8ArzEky.cjs} +2 -2
  40. package/dist/operations.cjs +2 -2
  41. package/dist/operations.js +2 -2
  42. package/dist/{primitiveFns-C2_BM7PR.cjs → primitiveFns-DQA2aRlf.cjs} +5 -5
  43. package/dist/{primitiveFns-CRsRbHuo.js → primitiveFns-taa6wmE6.js} +5 -5
  44. package/dist/query.cjs +2 -2
  45. package/dist/query.js +2 -2
  46. package/dist/{shapeFns-BW0QajQq.js → shapeFns-Binnq64f.js} +2 -2
  47. package/dist/{shapeFns-DqOoRUkg.cjs → shapeFns-DGlBwOIn.cjs} +2 -2
  48. package/dist/shapeRef.cjs +1 -1
  49. package/dist/shapeRef.js +1 -1
  50. package/dist/{shapeRefFns-C3GwXcJ2.js → shapeRefFns-BHl0cJ03.js} +3 -3
  51. package/dist/{shapeRefFns-DbAIYWMa.cjs → shapeRefFns-BYsQFoKq.cjs} +3 -3
  52. package/dist/{shapeTypes-CvGzaTYd.js → shapeTypes-BoaNl7sv.js} +31 -37
  53. package/dist/{shapeTypes-h0bo6yCZ.cjs → shapeTypes-PA31vgl1.cjs} +31 -37
  54. package/dist/sketching.cjs +2 -2
  55. package/dist/sketching.js +2 -2
  56. package/dist/{solidBuilders-Cf9BpIew.js → solidBuilders-CxPr8uf3.js} +2 -2
  57. package/dist/{solidBuilders-Buy3oAve.cjs → solidBuilders-fwE4EhPH.cjs} +2 -2
  58. package/dist/{surfaceBuilders-XPdFhdcS.js → surfaceBuilders-CsgDDyaK.js} +2 -2
  59. package/dist/{surfaceBuilders-CSkzjM8v.cjs → surfaceBuilders-OZ75pZa7.cjs} +2 -2
  60. package/dist/topology.cjs +6 -6
  61. package/dist/topology.js +6 -6
  62. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"geometryQueryOps.d.ts","sourceRoot":"","sources":["../../../src/kernel/occt/geometryQueryOps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,UAAU,EACV,WAAW,EACX,gBAAgB,EACjB,MAAM,mBAAmB,CAAC;AAM3B,2CAA2C;AAC3C,wBAAgB,cAAc,CAAC,EAAE,EAAE,cAAc,EAAE,MAAM,EAAE,WAAW,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAKhG;AA2BD,gDAAgD;AAChD,wBAAgB,WAAW,CAAC,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,GAAG,WAAW,CAU9E;AAED,6CAA6C;AAC7C,wBAAgB,QAAQ,CACtB,EAAE,EAAE,cAAc,EAClB,IAAI,EAAE,WAAW,GAChB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,M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F;AAED,gCAAgC;AAChC,wBAAgB,MAAM,CAAC,GAAG,EAAE,cAAc,EAAE,KAAK,EAAE,WAAW,GAAG,OAAO,CAEvE;AAED,4DAA4D;AAC5D,wBAAgB,YAAY,CAAC,GAAG,EAAE,cAAc,EAAE,KAAK,EAAE,WAAW,GAAG,WAAW,CAEjF;AAED,+CAA+C;AAC/C,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,WAAW,GAAG,OAAO,CAoBhF;AAED;;;GAGG;AACH,wBAAgB,SAAS,CACvB,EAAE,EAAE,cAAc,EAClB,KAAK,EAAE,WAAW,EAClB,SAAS,EAAE,MAAM,EACjB,gBAAgB,EAAE,MAAM,GACvB,IAAI,CASN;AAED,2EAA2E;AAC3E,wBAAgB,wBAAwB,CACtC,EAAE,EAAE,cAAc,EAClB,IAAI,EAAE,WAAW,GAChB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAejC;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,WAAW,GAAG,UAAU,CAGrF;AAMD,mFAAmF;AACnF,wBAAgB,sBAAsB,CACpC,EAAE,EAAE,cAAc,EAClB,OAAO,EAAE,UAAU,GAClB;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,GAAG,IAAI,CAiB9C;AAED,0EAA0E;AAC1E,wBAAgB,eAAe,CAAC,GAAG,EAAE,cAAc,EAAE,OAAO,EAAE,UAAU,GAAG,UAAU,CAEpF"}
@@ -1,6 +1,6 @@
1
- import { Y as getKernel } from "./shapeTypes-CvGzaTYd.js";
1
+ import { Y as getKernel } from "./shapeTypes-BoaNl7sv.js";
2
2
  import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-C-cgQA3w.js";
3
- import { C as kernelCallRaw, p as uvBounds } from "./faceFns-iqaDWGL2.js";
3
+ import { C as kernelCallRaw, p as uvBounds } from "./faceFns-D0Sw7UAk.js";
4
4
  //#region src/measurement/measureCache.ts
5
5
  var cache = /* @__PURE__ */ new WeakMap();
6
6
  function getCachedMeasurement(shape, key) {
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-h0bo6yCZ.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-PA31vgl1.cjs");
2
2
  const require_errors = require("./errors-9zQcQK1H.cjs");
3
- const require_faceFns = require("./faceFns-DVeZQZfD.cjs");
3
+ const require_faceFns = require("./faceFns-CAAlPCSf.cjs");
4
4
  //#region src/measurement/measureCache.ts
5
5
  var cache = /* @__PURE__ */ new WeakMap();
6
6
  function getCachedMeasurement(shape, key) {
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_measureFns = require("./measureFns-DSukVpI5.cjs");
2
+ const require_measureFns = require("./measureFns-e9ClVIDp.cjs");
3
3
  exports.createDistanceQuery = require_measureFns.createDistanceQuery;
4
4
  exports.measureArea = require_measureFns.measureArea;
5
5
  exports.measureDistance = require_measureFns.measureDistance;
@@ -1,2 +1,2 @@
1
- import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-C0ExdINB.js";
1
+ import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-C5T3Vj5H.js";
2
2
  export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
@@ -1,6 +1,6 @@
1
- import { Y as getKernel } from "./shapeTypes-CvGzaTYd.js";
1
+ import { Y as getKernel } from "./shapeTypes-BoaNl7sv.js";
2
2
  import { A as ok, b as err, r as ioError } from "./errors-C-cgQA3w.js";
3
- import { O as getFaceOrigins } from "./shapeFns-BW0QajQq.js";
3
+ import { O as getFaceOrigins } from "./shapeFns-Binnq64f.js";
4
4
  //#region src/topology/meshCache.ts
5
5
  /**
6
6
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-h0bo6yCZ.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-PA31vgl1.cjs");
2
2
  const require_errors = require("./errors-9zQcQK1H.cjs");
3
- const require_shapeFns = require("./shapeFns-DqOoRUkg.cjs");
3
+ const require_shapeFns = require("./shapeFns-DGlBwOIn.cjs");
4
4
  //#region src/topology/meshCache.ts
5
5
  /**
6
6
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_historyFns = require("./historyFns-By2rvfdT.cjs");
3
- const require_extrudeFns = require("./extrudeFns-C2dk_SwT.cjs");
2
+ const require_historyFns = require("./historyFns-BLfgf9Ie.cjs");
3
+ const require_extrudeFns = require("./extrudeFns-Bs_h53zW.cjs");
4
4
  exports.addChild = require_historyFns.addChild;
5
5
  exports.addStep = require_historyFns.addStep;
6
6
  exports.circularPattern = require_historyFns.circularPattern;
@@ -1,3 +1,3 @@
1
- import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, T as gridPattern, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, g as addChild, h as undoLast, l as registerShape, m as stepsFrom, n as createHistory, o as getShape, p as stepCount, r as createRegistry, s as modifyStep, t as addStep, u as replayFrom, v as countNodes, w as circularPattern, x as removeChild, y as createAssemblyNode } from "./historyFns-C5LVTRMt.js";
2
- import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-D83bFc01.js";
1
+ import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, T as gridPattern, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, g as addChild, h as undoLast, l as registerShape, m as stepsFrom, n as createHistory, o as getShape, p as stepCount, r as createRegistry, s as modifyStep, t as addStep, u as replayFrom, v as countNodes, w as circularPattern, x as removeChild, y as createAssemblyNode } from "./historyFns-DeI_YWq7.js";
2
+ import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-SjjVWl9I.js";
3
3
  export { addChild, addStep, circularPattern, collectShapes, complexExtrude, countNodes, createAssembly, createAssemblyNode, createHistory, createRegistry, exportAssemblySTEP, findNode, findStep, getShape as getHistoryShape, gridPattern, linearPattern, modifyStep, registerOperation, registerShape, removeChild, replayFrom, replayHistory, stepCount, stepsFrom, supportExtrude, sweep, twistExtrude, undoLast, updateNode, walkAssembly };
@@ -1,10 +1,10 @@
1
- const require_shapeTypes = require("./shapeTypes-h0bo6yCZ.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-PA31vgl1.cjs");
2
2
  const require_errors = require("./errors-9zQcQK1H.cjs");
3
- const require_faceFns = require("./faceFns-DVeZQZfD.cjs");
3
+ const require_faceFns = require("./faceFns-CAAlPCSf.cjs");
4
4
  const require_constants = require("./constants-unWN8k4c.cjs");
5
- const require_shapeFns = require("./shapeFns-DqOoRUkg.cjs");
6
- const require_surfaceBuilders = require("./surfaceBuilders-CSkzjM8v.cjs");
7
- const require_solidBuilders = require("./solidBuilders-Buy3oAve.cjs");
5
+ const require_shapeFns = require("./shapeFns-DGlBwOIn.cjs");
6
+ const require_surfaceBuilders = require("./surfaceBuilders-OZ75pZa7.cjs");
7
+ const require_solidBuilders = require("./solidBuilders-fwE4EhPH.cjs");
8
8
  //#region src/topology/threeHelpers.ts
9
9
  /**
10
10
  * Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
@@ -1,10 +1,10 @@
1
- import { Y as getKernel, _ as isSolid, c as createSolid, h as isShape3D, p as isFace, r as castShapeWithKnownType, t as castShape, x as isClosedWire, y as isWire } from "./shapeTypes-CvGzaTYd.js";
1
+ import { Y as getKernel, _ as isSolid, c as createSolid, h as isShape3D, p as isFace, r as castShapeWithKnownType, t as castShape, x as isClosedWire, y as isWire } from "./shapeTypes-BoaNl7sv.js";
2
2
  import { A as ok, T as isOk, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, v as andThen, w as isErr } from "./errors-C-cgQA3w.js";
3
- import { _ as downcast } from "./faceFns-iqaDWGL2.js";
3
+ import { _ as downcast } from "./faceFns-D0Sw7UAk.js";
4
4
  import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-B9u763C3.js";
5
- import { I as getWires, M as getEdges, N as getFaces, P as getOrCreateCache, _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-BW0QajQq.js";
6
- import { a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeEllipse, f as makeEllipseArc, g as makeThreePointArc, h as makeTangentArc, i as makeNewFaceWithinFace, l as makeBezierCurve, m as makeLine, o as makePolygon, p as makeHelix, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeCircle } from "./surfaceBuilders-XPdFhdcS.js";
7
- import { a as makeOffset, c as makeTorus, i as makeEllipsoid, l as makeVertex, n as makeCone, o as makeSolid, r as makeCylinder, s as makeSphere, t as makeCompound, u as weldShellsAndFaces } from "./solidBuilders-Cf9BpIew.js";
5
+ import { I as getWires, M as getEdges, N as getFaces, P as getOrCreateCache, _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-Binnq64f.js";
6
+ import { a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeEllipse, f as makeEllipseArc, g as makeThreePointArc, h as makeTangentArc, i as makeNewFaceWithinFace, l as makeBezierCurve, m as makeLine, o as makePolygon, p as makeHelix, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeCircle } from "./surfaceBuilders-CsgDDyaK.js";
7
+ import { a as makeOffset, c as makeTorus, i as makeEllipsoid, l as makeVertex, n as makeCone, o as makeSolid, r as makeCylinder, s as makeSphere, t as makeCompound, u as weldShellsAndFaces } from "./solidBuilders-CxPr8uf3.js";
8
8
  //#region src/topology/threeHelpers.ts
9
9
  /**
10
10
  * Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
package/dist/query.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_helpers = require("./helpers-DcOHqOfT.cjs");
3
- const require_cornerFinder = require("./cornerFinder-TYHShzGu.cjs");
2
+ const require_helpers = require("./helpers-IGblAcXr.cjs");
3
+ const require_cornerFinder = require("./cornerFinder-i4Y7Nrjy.cjs");
4
4
  exports.cornerFinder = require_cornerFinder.cornerFinder;
5
5
  exports.edgeFinder = require_helpers.edgeFinder;
6
6
  exports.faceFinder = require_helpers.faceFinder;
package/dist/query.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-HH_F9BEl.js";
2
- import { t as cornerFinder } from "./cornerFinder-B6rKiYRI.js";
1
+ import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-DKA--8Ok.js";
2
+ import { t as cornerFinder } from "./cornerFinder-BqrHP-yL.js";
3
3
  export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
@@ -1,6 +1,6 @@
1
- import { Y as getKernel, r as castShapeWithKnownType, t as castShape } from "./shapeTypes-CvGzaTYd.js";
1
+ import { Y as getKernel, r as castShapeWithKnownType, t as castShape } from "./shapeTypes-BoaNl7sv.js";
2
2
  import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-C-cgQA3w.js";
3
- import { C as kernelCallRaw, S as kernelCall } from "./faceFns-iqaDWGL2.js";
3
+ import { C as kernelCallRaw, S as kernelCall } from "./faceFns-D0Sw7UAk.js";
4
4
  import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-B9u763C3.js";
5
5
  //#region src/topology/topologyQueryFns.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-h0bo6yCZ.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-PA31vgl1.cjs");
2
2
  const require_errors = require("./errors-9zQcQK1H.cjs");
3
- const require_faceFns = require("./faceFns-DVeZQZfD.cjs");
3
+ const require_faceFns = require("./faceFns-CAAlPCSf.cjs");
4
4
  const require_constants = require("./constants-unWN8k4c.cjs");
5
5
  //#region src/topology/topologyQueryFns.ts
6
6
  /**
package/dist/shapeRef.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_shapeRefFns = require("./shapeRefFns-DbAIYWMa.cjs");
2
+ const require_shapeRefFns = require("./shapeRefFns-BYsQFoKq.cjs");
3
3
  exports.assignRoles = require_shapeRefFns.assignRoles;
4
4
  exports.captureHint = require_shapeRefFns.captureHint;
5
5
  exports.createRef = require_shapeRefFns.createRef;
package/dist/shapeRef.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-C3GwXcJ2.js";
1
+ import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-BHl0cJ03.js";
2
2
  export { assignRoles, captureHint, createRef, defaultScorer, resolveRef, updateRoles };
@@ -1,6 +1,6 @@
1
- import { c as normalAt, n as faceCenter, r as faceGeomType } from "./faceFns-iqaDWGL2.js";
2
- import { N as getFaces, n as getHashCode } from "./shapeFns-BW0QajQq.js";
3
- import { n as measureArea } from "./measureFns-C0ExdINB.js";
1
+ import { c as normalAt, n as faceCenter, r as faceGeomType } from "./faceFns-D0Sw7UAk.js";
2
+ import { N as getFaces, n as getHashCode } from "./shapeFns-Binnq64f.js";
3
+ import { n as measureArea } from "./measureFns-C5T3Vj5H.js";
4
4
  //#region src/topology/shapeRef/scoring.ts
5
5
  /**
6
6
  * Default face scorer combining surface type, normal alignment, centroid proximity,
@@ -1,6 +1,6 @@
1
- const require_faceFns = require("./faceFns-DVeZQZfD.cjs");
2
- const require_shapeFns = require("./shapeFns-DqOoRUkg.cjs");
3
- const require_measureFns = require("./measureFns-DSukVpI5.cjs");
1
+ const require_faceFns = require("./faceFns-CAAlPCSf.cjs");
2
+ const require_shapeFns = require("./shapeFns-DGlBwOIn.cjs");
3
+ const require_measureFns = require("./measureFns-e9ClVIDp.cjs");
4
4
  //#region src/topology/shapeRef/scoring.ts
5
5
  /**
6
6
  * Default face scorer combining surface type, normal alignment, centroid proximity,
@@ -2144,7 +2144,7 @@ function extractVertices(oc, shapes, tolerance) {
2144
2144
  while (explorer.More()) {
2145
2145
  const face = oc.TopoDS_Cast.Face(explorer.Current());
2146
2146
  const location = new oc.TopLoc_Location_1();
2147
- const tri = oc.BRep_Tool.Triangulation(face, location, 0);
2147
+ const tri = oc.BRep_Tool_Triangulation(face, location, 0);
2148
2148
  if (!tri.IsNull()) {
2149
2149
  const trsf = location.Transformation();
2150
2150
  const nbNodes = tri.get().NbNodes();
@@ -2260,7 +2260,7 @@ function hullFromPoints$1(oc, points, tolerance) {
2260
2260
  //#region src/kernel/occt/geometryQueryOps.ts
2261
2261
  /** Extract the 3D position of a vertex. */
2262
2262
  function vertexPosition$1(oc, vertex) {
2263
- const pnt = oc.BRep_Tool.Pnt(vertex);
2263
+ const pnt = oc.BRep_Tool_Pnt(vertex);
2264
2264
  const result = [
2265
2265
  pnt.X(),
2266
2266
  pnt.Y(),
@@ -2302,21 +2302,17 @@ function surfaceType$1(oc, face) {
2302
2302
  }
2303
2303
  /** Get the UV parameter bounds of a face. */
2304
2304
  function uvBounds$1(oc, face) {
2305
- const uMin = { current: 0 };
2306
- const uMax = { current: 0 };
2307
- const vMin = { current: 0 };
2308
- const vMax = { current: 0 };
2309
- oc.BRepTools.UVBounds_1(face, uMin, uMax, vMin, vMax);
2305
+ const bounds = oc.BRepTools_UVBounds(face);
2310
2306
  return {
2311
- uMin: uMin.current,
2312
- uMax: uMax.current,
2313
- vMin: vMin.current,
2314
- vMax: vMax.current
2307
+ uMin: bounds.UMin,
2308
+ uMax: bounds.UMax,
2309
+ vMin: bounds.VMin,
2310
+ vMax: bounds.VMax
2315
2311
  };
2316
2312
  }
2317
2313
  /** Get the outer wire of a face. */
2318
2314
  function outerWire$1(oc, face) {
2319
- return oc.BRepTools.OuterWire(face);
2315
+ return oc.BRepTools_OuterWire(face);
2320
2316
  }
2321
2317
  /** Get the surface normal at a UV parameter on a face. */
2322
2318
  function surfaceNormal$1(oc, face, u, v) {
@@ -2350,15 +2346,13 @@ function pointOnSurface$1(oc, face, u, v) {
2350
2346
  }
2351
2347
  /** Project a 3D point onto a face and return UV coordinates. Null if projection fails. */
2352
2348
  function uvFromPoint$1(oc, face, point) {
2353
- const surface = oc.BRep_Tool.Surface_2(face);
2349
+ const surface = oc.BRep_Tool_Surface(face);
2354
2350
  const pnt = new oc.gp_Pnt_3(point[0], point[1], point[2]);
2355
2351
  const proj = new oc.GeomAPI_ProjectPointOnSurf_2(pnt, surface, oc.Extrema_ExtAlgo.Extrema_ExtAlgo_Grad);
2356
2352
  let result = null;
2357
2353
  if (proj.NbPoints() > 0) {
2358
- const u = { current: 0 };
2359
- const v = { current: 0 };
2360
- proj.LowerDistanceParameters(u, v);
2361
- result = [u.current, v.current];
2354
+ const params = proj.LowerDistanceParameters();
2355
+ result = [params.U, params.V];
2362
2356
  }
2363
2357
  proj.delete();
2364
2358
  pnt.delete();
@@ -2366,7 +2360,7 @@ function uvFromPoint$1(oc, face, point) {
2366
2360
  }
2367
2361
  /** Project a 3D point onto a face and return the closest 3D point. */
2368
2362
  function projectPointOnFace$1(oc, face, point) {
2369
- const surface = oc.BRep_Tool.Surface_2(face);
2363
+ const surface = oc.BRep_Tool_Surface(face);
2370
2364
  const pnt = new oc.gp_Pnt_3(point[0], point[1], point[2]);
2371
2365
  const proj = new oc.GeomAPI_ProjectPointOnSurf_2(pnt, surface, oc.Extrema_ExtAlgo.Extrema_ExtAlgo_Grad);
2372
2366
  let result;
@@ -2522,7 +2516,7 @@ function hasTriangulation$1(oc, shape) {
2522
2516
  let found = false;
2523
2517
  while (explorer.More()) {
2524
2518
  const face = oc.TopoDS_Cast.Face(explorer.Current());
2525
- if (!oc.BRep_Tool.Triangulation(face, loc, 0).IsNull()) {
2519
+ if (!oc.BRep_Tool_Triangulation(face, loc, 0).IsNull()) {
2526
2520
  found = true;
2527
2521
  break;
2528
2522
  }
@@ -2918,7 +2912,7 @@ function makeHelixWire$1(oc, pitch, height, radius, center = [
2918
2912
  const handleSurf = new oc.Handle_Geom_Surface_2(geomSurf);
2919
2913
  const edgeMaker = new oc.BRepBuilderAPI_MakeEdge_30(handle2dCurve, handleSurf);
2920
2914
  const e = edgeMaker.Edge();
2921
- oc.BRepLib.BuildCurves3d_2(e);
2915
+ oc.BRepLib_BuildCurves3d(e);
2922
2916
  const wireMaker = new oc.BRepBuilderAPI_MakeWire_2(e);
2923
2917
  const wire = wireMaker.Wire();
2924
2918
  wireMaker.delete();
@@ -2984,7 +2978,7 @@ function makeEllipsoidSolid(oc, aLength, bLength, cLength) {
2984
2978
  const sphere = new oc.gp_Sphere_1();
2985
2979
  sphere.SetRadius(1);
2986
2980
  const sphericalSurface = new oc.Geom_SphericalSurface_2(sphere);
2987
- const baseSurface = oc.GeomConvert.SurfaceToBSplineSurface(sphericalSurface.UReversed()).get();
2981
+ const baseSurface = oc.GeomConvert_SurfaceToBSplineSurface(sphericalSurface.UReversed()).get();
2988
2982
  sphere.delete();
2989
2983
  sphericalSurface.delete();
2990
2984
  try {
@@ -3061,8 +3055,8 @@ function exportSTEPAssembly$1(oc, parts, options = {}) {
3061
3055
  const doc = new oc.TDocStd_Document(nameStr);
3062
3056
  nameStr.delete();
3063
3057
  const mainLabel = doc.Main();
3064
- const shapeTool = oc.XCAFDoc_DocumentTool.ShapeTool(mainLabel).get();
3065
- const colorTool = oc.XCAFDoc_DocumentTool.ColorTool(mainLabel).get();
3058
+ const shapeTool = oc.XCAFDoc_DocumentTool_ShapeTool(mainLabel).get();
3059
+ const colorTool = oc.XCAFDoc_DocumentTool_ColorTool(mainLabel).get();
3066
3060
  oc.XCAFDoc_ShapeTool.SetAutoNaming(false);
3067
3061
  for (const part of parts) {
3068
3062
  const shapeNode = shapeTool.AddShape(part.shape, false, true);
@@ -3398,7 +3392,7 @@ function offsetCurve2d$1(oc, curve, offset) {
3398
3392
  }
3399
3393
  function transformCurve(oc, curve, trsf) {
3400
3394
  const gtrsf = new oc.gp_GTrsf2d_2(trsf);
3401
- const result = oc.GeomLib.GTransform(curve, gtrsf);
3395
+ const result = oc.GeomLib_GTransform(curve, gtrsf);
3402
3396
  gtrsf.delete();
3403
3397
  trsf.delete();
3404
3398
  return result;
@@ -3451,7 +3445,7 @@ function affinityTransform2d$1(oc, curve, axisOriginX, axisOriginY, axisDirX, ax
3451
3445
  ax.delete();
3452
3446
  dir.delete();
3453
3447
  origin.delete();
3454
- const result = oc.GeomLib.GTransform(curve, gtrsf);
3448
+ const result = oc.GeomLib_GTransform(curve, gtrsf);
3455
3449
  gtrsf.delete();
3456
3450
  return result;
3457
3451
  }
@@ -3522,7 +3516,7 @@ function multiplyGTrsf2d$1(_oc, base, other) {
3522
3516
  base.Multiply(other);
3523
3517
  }
3524
3518
  function transformCurve2dGeneral$1(oc, curve, gtrsf) {
3525
- return oc.GeomLib.GTransform(curve, gtrsf);
3519
+ return oc.GeomLib_GTransform(curve, gtrsf);
3526
3520
  }
3527
3521
  function intersectCurves2d$1(oc, c1, c2, tolerance) {
3528
3522
  const intersector = new oc.Geom2dAPI_InterCurveCurve_1();
@@ -3765,7 +3759,7 @@ function liftCurve2dToPlane$1(oc, curve, planeOrigin, planeZ, planeX) {
3765
3759
  const zDir = new oc.gp_Dir_5(planeZ[0], planeZ[1], planeZ[2]);
3766
3760
  const xDir = new oc.gp_Dir_5(planeX[0], planeX[1], planeX[2]);
3767
3761
  const ax = new oc.gp_Ax2_2(origin, zDir, xDir);
3768
- const curve3d = oc.GeomLib.To3d(ax, curve);
3762
+ const curve3d = oc.GeomLib_To3d(ax, curve);
3769
3763
  const edgeBuilder = new oc.BRepBuilderAPI_MakeEdge_24(curve3d);
3770
3764
  const edge = edgeBuilder.Edge();
3771
3765
  edgeBuilder.delete();
@@ -3783,7 +3777,7 @@ function buildEdgeOnSurface$1(oc, curve, surface) {
3783
3777
  return edge;
3784
3778
  }
3785
3779
  function extractSurfaceFromFace$1(oc, face) {
3786
- return oc.BRep_Tool.Surface_2(face);
3780
+ return oc.BRep_Tool_Surface(face);
3787
3781
  }
3788
3782
  function extractCurve2dFromEdge$1(oc, edge, face) {
3789
3783
  const adaptor = new oc.BRepAdaptor_Curve2d_2(edge, face);
@@ -3795,7 +3789,7 @@ function extractCurve2dFromEdge$1(oc, edge, face) {
3795
3789
  return new oc.Handle_Geom2d_Curve_2(trimmed);
3796
3790
  }
3797
3791
  function buildCurves3d$1(oc, wire) {
3798
- oc.BRepLib.BuildCurves3d_2(wire);
3792
+ oc.BRepLib_BuildCurves3d(wire);
3799
3793
  }
3800
3794
  function fixWireOnFace$1(oc, wire, face, tolerance) {
3801
3795
  const fixer = new oc.ShapeFix_Wire_2(wire, face, tolerance);
@@ -4240,8 +4234,8 @@ function addHolesInFace$1(oc, face, holeWires) {
4240
4234
  }
4241
4235
  /** Remove all inner wires (holes) from a face. Returns a new face with only the outer boundary. */
4242
4236
  function removeHolesFromFace$1(oc, face) {
4243
- const outerWire = oc.BRepTools.OuterWire(face);
4244
- const surface = oc.BRep_Tool.Surface_2(face);
4237
+ const outerWire = oc.BRepTools_OuterWire(face);
4238
+ const surface = oc.BRep_Tool_Surface(face);
4245
4239
  try {
4246
4240
  const maker = new oc.BRepBuilderAPI_MakeFace_21(surface, outerWire, true);
4247
4241
  const result = maker.Face();
@@ -4263,7 +4257,7 @@ function makeFaceOnSurface$1(oc, surfaceOrFace, wire) {
4263
4257
  let surfaceOwned = false;
4264
4258
  try {
4265
4259
  if (surfaceOrFace.ShapeType !== void 0) {
4266
- surface = oc.BRep_Tool.Surface_2(surfaceOrFace);
4260
+ surface = oc.BRep_Tool_Surface(surfaceOrFace);
4267
4261
  surfaceOwned = true;
4268
4262
  }
4269
4263
  } catch {}
@@ -4578,7 +4572,7 @@ function projectEdges$1(oc, shape, cameraOrigin, cameraDirection, cameraXAxis) {
4578
4572
  group.outline,
4579
4573
  group.smooth,
4580
4574
  group.sharp
4581
- ]) if (!s.IsNull()) oc.BRepLib.BuildCurves3d_2(s);
4575
+ ]) if (!s.IsNull()) oc.BRepLib_BuildCurves3d(s);
4582
4576
  hlrShapes.delete();
4583
4577
  hlrHandle.delete();
4584
4578
  projector.delete();
@@ -4608,8 +4602,8 @@ function createXCAFDocument$1(oc, shapes) {
4608
4602
  nameStr.delete();
4609
4603
  oc.XCAFDoc_ShapeTool.SetAutoNaming(false);
4610
4604
  const mainLabel = doc.Main();
4611
- const shapeTool = oc.XCAFDoc_DocumentTool.ShapeTool(mainLabel).get();
4612
- const colorTool = oc.XCAFDoc_DocumentTool.ColorTool(mainLabel).get();
4605
+ const shapeTool = oc.XCAFDoc_DocumentTool_ShapeTool(mainLabel).get();
4606
+ const colorTool = oc.XCAFDoc_DocumentTool_ColorTool(mainLabel).get();
4613
4607
  for (const part of shapes) {
4614
4608
  const shapeNode = shapeTool.NewShape();
4615
4609
  shapeTool.SetShape(shapeNode, part.shape);
@@ -4678,8 +4672,8 @@ function exportSTEPConfigured$1(oc, shapes, options = {}) {
4678
4672
  const doc = new oc.TDocStd_Document(nameStr);
4679
4673
  nameStr.delete();
4680
4674
  const mainLabel = doc.Main();
4681
- const shapeTool = oc.XCAFDoc_DocumentTool.ShapeTool(mainLabel).get();
4682
- const colorTool = oc.XCAFDoc_DocumentTool.ColorTool(mainLabel).get();
4675
+ const shapeTool = oc.XCAFDoc_DocumentTool_ShapeTool(mainLabel).get();
4676
+ const colorTool = oc.XCAFDoc_DocumentTool_ColorTool(mainLabel).get();
4683
4677
  oc.XCAFDoc_ShapeTool.SetAutoNaming(false);
4684
4678
  for (const part of shapes) {
4685
4679
  const shapeNode = shapeTool.AddShape(part.shape, false, true);
@@ -2144,7 +2144,7 @@ function extractVertices(oc, shapes, tolerance) {
2144
2144
  while (explorer.More()) {
2145
2145
  const face = oc.TopoDS_Cast.Face(explorer.Current());
2146
2146
  const location = new oc.TopLoc_Location_1();
2147
- const tri = oc.BRep_Tool.Triangulation(face, location, 0);
2147
+ const tri = oc.BRep_Tool_Triangulation(face, location, 0);
2148
2148
  if (!tri.IsNull()) {
2149
2149
  const trsf = location.Transformation();
2150
2150
  const nbNodes = tri.get().NbNodes();
@@ -2260,7 +2260,7 @@ function hullFromPoints$1(oc, points, tolerance) {
2260
2260
  //#region src/kernel/occt/geometryQueryOps.ts
2261
2261
  /** Extract the 3D position of a vertex. */
2262
2262
  function vertexPosition$1(oc, vertex) {
2263
- const pnt = oc.BRep_Tool.Pnt(vertex);
2263
+ const pnt = oc.BRep_Tool_Pnt(vertex);
2264
2264
  const result = [
2265
2265
  pnt.X(),
2266
2266
  pnt.Y(),
@@ -2302,21 +2302,17 @@ function surfaceType$1(oc, face) {
2302
2302
  }
2303
2303
  /** Get the UV parameter bounds of a face. */
2304
2304
  function uvBounds$1(oc, face) {
2305
- const uMin = { current: 0 };
2306
- const uMax = { current: 0 };
2307
- const vMin = { current: 0 };
2308
- const vMax = { current: 0 };
2309
- oc.BRepTools.UVBounds_1(face, uMin, uMax, vMin, vMax);
2305
+ const bounds = oc.BRepTools_UVBounds(face);
2310
2306
  return {
2311
- uMin: uMin.current,
2312
- uMax: uMax.current,
2313
- vMin: vMin.current,
2314
- vMax: vMax.current
2307
+ uMin: bounds.UMin,
2308
+ uMax: bounds.UMax,
2309
+ vMin: bounds.VMin,
2310
+ vMax: bounds.VMax
2315
2311
  };
2316
2312
  }
2317
2313
  /** Get the outer wire of a face. */
2318
2314
  function outerWire$1(oc, face) {
2319
- return oc.BRepTools.OuterWire(face);
2315
+ return oc.BRepTools_OuterWire(face);
2320
2316
  }
2321
2317
  /** Get the surface normal at a UV parameter on a face. */
2322
2318
  function surfaceNormal$1(oc, face, u, v) {
@@ -2350,15 +2346,13 @@ function pointOnSurface$1(oc, face, u, v) {
2350
2346
  }
2351
2347
  /** Project a 3D point onto a face and return UV coordinates. Null if projection fails. */
2352
2348
  function uvFromPoint$1(oc, face, point) {
2353
- const surface = oc.BRep_Tool.Surface_2(face);
2349
+ const surface = oc.BRep_Tool_Surface(face);
2354
2350
  const pnt = new oc.gp_Pnt_3(point[0], point[1], point[2]);
2355
2351
  const proj = new oc.GeomAPI_ProjectPointOnSurf_2(pnt, surface, oc.Extrema_ExtAlgo.Extrema_ExtAlgo_Grad);
2356
2352
  let result = null;
2357
2353
  if (proj.NbPoints() > 0) {
2358
- const u = { current: 0 };
2359
- const v = { current: 0 };
2360
- proj.LowerDistanceParameters(u, v);
2361
- result = [u.current, v.current];
2354
+ const params = proj.LowerDistanceParameters();
2355
+ result = [params.U, params.V];
2362
2356
  }
2363
2357
  proj.delete();
2364
2358
  pnt.delete();
@@ -2366,7 +2360,7 @@ function uvFromPoint$1(oc, face, point) {
2366
2360
  }
2367
2361
  /** Project a 3D point onto a face and return the closest 3D point. */
2368
2362
  function projectPointOnFace$1(oc, face, point) {
2369
- const surface = oc.BRep_Tool.Surface_2(face);
2363
+ const surface = oc.BRep_Tool_Surface(face);
2370
2364
  const pnt = new oc.gp_Pnt_3(point[0], point[1], point[2]);
2371
2365
  const proj = new oc.GeomAPI_ProjectPointOnSurf_2(pnt, surface, oc.Extrema_ExtAlgo.Extrema_ExtAlgo_Grad);
2372
2366
  let result;
@@ -2522,7 +2516,7 @@ function hasTriangulation$1(oc, shape) {
2522
2516
  let found = false;
2523
2517
  while (explorer.More()) {
2524
2518
  const face = oc.TopoDS_Cast.Face(explorer.Current());
2525
- if (!oc.BRep_Tool.Triangulation(face, loc, 0).IsNull()) {
2519
+ if (!oc.BRep_Tool_Triangulation(face, loc, 0).IsNull()) {
2526
2520
  found = true;
2527
2521
  break;
2528
2522
  }
@@ -2918,7 +2912,7 @@ function makeHelixWire$1(oc, pitch, height, radius, center = [
2918
2912
  const handleSurf = new oc.Handle_Geom_Surface_2(geomSurf);
2919
2913
  const edgeMaker = new oc.BRepBuilderAPI_MakeEdge_30(handle2dCurve, handleSurf);
2920
2914
  const e = edgeMaker.Edge();
2921
- oc.BRepLib.BuildCurves3d_2(e);
2915
+ oc.BRepLib_BuildCurves3d(e);
2922
2916
  const wireMaker = new oc.BRepBuilderAPI_MakeWire_2(e);
2923
2917
  const wire = wireMaker.Wire();
2924
2918
  wireMaker.delete();
@@ -2984,7 +2978,7 @@ function makeEllipsoidSolid(oc, aLength, bLength, cLength) {
2984
2978
  const sphere = new oc.gp_Sphere_1();
2985
2979
  sphere.SetRadius(1);
2986
2980
  const sphericalSurface = new oc.Geom_SphericalSurface_2(sphere);
2987
- const baseSurface = oc.GeomConvert.SurfaceToBSplineSurface(sphericalSurface.UReversed()).get();
2981
+ const baseSurface = oc.GeomConvert_SurfaceToBSplineSurface(sphericalSurface.UReversed()).get();
2988
2982
  sphere.delete();
2989
2983
  sphericalSurface.delete();
2990
2984
  try {
@@ -3061,8 +3055,8 @@ function exportSTEPAssembly$1(oc, parts, options = {}) {
3061
3055
  const doc = new oc.TDocStd_Document(nameStr);
3062
3056
  nameStr.delete();
3063
3057
  const mainLabel = doc.Main();
3064
- const shapeTool = oc.XCAFDoc_DocumentTool.ShapeTool(mainLabel).get();
3065
- const colorTool = oc.XCAFDoc_DocumentTool.ColorTool(mainLabel).get();
3058
+ const shapeTool = oc.XCAFDoc_DocumentTool_ShapeTool(mainLabel).get();
3059
+ const colorTool = oc.XCAFDoc_DocumentTool_ColorTool(mainLabel).get();
3066
3060
  oc.XCAFDoc_ShapeTool.SetAutoNaming(false);
3067
3061
  for (const part of parts) {
3068
3062
  const shapeNode = shapeTool.AddShape(part.shape, false, true);
@@ -3398,7 +3392,7 @@ function offsetCurve2d$1(oc, curve, offset) {
3398
3392
  }
3399
3393
  function transformCurve(oc, curve, trsf) {
3400
3394
  const gtrsf = new oc.gp_GTrsf2d_2(trsf);
3401
- const result = oc.GeomLib.GTransform(curve, gtrsf);
3395
+ const result = oc.GeomLib_GTransform(curve, gtrsf);
3402
3396
  gtrsf.delete();
3403
3397
  trsf.delete();
3404
3398
  return result;
@@ -3451,7 +3445,7 @@ function affinityTransform2d$1(oc, curve, axisOriginX, axisOriginY, axisDirX, ax
3451
3445
  ax.delete();
3452
3446
  dir.delete();
3453
3447
  origin.delete();
3454
- const result = oc.GeomLib.GTransform(curve, gtrsf);
3448
+ const result = oc.GeomLib_GTransform(curve, gtrsf);
3455
3449
  gtrsf.delete();
3456
3450
  return result;
3457
3451
  }
@@ -3522,7 +3516,7 @@ function multiplyGTrsf2d$1(_oc, base, other) {
3522
3516
  base.Multiply(other);
3523
3517
  }
3524
3518
  function transformCurve2dGeneral$1(oc, curve, gtrsf) {
3525
- return oc.GeomLib.GTransform(curve, gtrsf);
3519
+ return oc.GeomLib_GTransform(curve, gtrsf);
3526
3520
  }
3527
3521
  function intersectCurves2d$1(oc, c1, c2, tolerance) {
3528
3522
  const intersector = new oc.Geom2dAPI_InterCurveCurve_1();
@@ -3765,7 +3759,7 @@ function liftCurve2dToPlane$1(oc, curve, planeOrigin, planeZ, planeX) {
3765
3759
  const zDir = new oc.gp_Dir_5(planeZ[0], planeZ[1], planeZ[2]);
3766
3760
  const xDir = new oc.gp_Dir_5(planeX[0], planeX[1], planeX[2]);
3767
3761
  const ax = new oc.gp_Ax2_2(origin, zDir, xDir);
3768
- const curve3d = oc.GeomLib.To3d(ax, curve);
3762
+ const curve3d = oc.GeomLib_To3d(ax, curve);
3769
3763
  const edgeBuilder = new oc.BRepBuilderAPI_MakeEdge_24(curve3d);
3770
3764
  const edge = edgeBuilder.Edge();
3771
3765
  edgeBuilder.delete();
@@ -3783,7 +3777,7 @@ function buildEdgeOnSurface$1(oc, curve, surface) {
3783
3777
  return edge;
3784
3778
  }
3785
3779
  function extractSurfaceFromFace$1(oc, face) {
3786
- return oc.BRep_Tool.Surface_2(face);
3780
+ return oc.BRep_Tool_Surface(face);
3787
3781
  }
3788
3782
  function extractCurve2dFromEdge$1(oc, edge, face) {
3789
3783
  const adaptor = new oc.BRepAdaptor_Curve2d_2(edge, face);
@@ -3795,7 +3789,7 @@ function extractCurve2dFromEdge$1(oc, edge, face) {
3795
3789
  return new oc.Handle_Geom2d_Curve_2(trimmed);
3796
3790
  }
3797
3791
  function buildCurves3d$1(oc, wire) {
3798
- oc.BRepLib.BuildCurves3d_2(wire);
3792
+ oc.BRepLib_BuildCurves3d(wire);
3799
3793
  }
3800
3794
  function fixWireOnFace$1(oc, wire, face, tolerance) {
3801
3795
  const fixer = new oc.ShapeFix_Wire_2(wire, face, tolerance);
@@ -4240,8 +4234,8 @@ function addHolesInFace$1(oc, face, holeWires) {
4240
4234
  }
4241
4235
  /** Remove all inner wires (holes) from a face. Returns a new face with only the outer boundary. */
4242
4236
  function removeHolesFromFace$1(oc, face) {
4243
- const outerWire = oc.BRepTools.OuterWire(face);
4244
- const surface = oc.BRep_Tool.Surface_2(face);
4237
+ const outerWire = oc.BRepTools_OuterWire(face);
4238
+ const surface = oc.BRep_Tool_Surface(face);
4245
4239
  try {
4246
4240
  const maker = new oc.BRepBuilderAPI_MakeFace_21(surface, outerWire, true);
4247
4241
  const result = maker.Face();
@@ -4263,7 +4257,7 @@ function makeFaceOnSurface$1(oc, surfaceOrFace, wire) {
4263
4257
  let surfaceOwned = false;
4264
4258
  try {
4265
4259
  if (surfaceOrFace.ShapeType !== void 0) {
4266
- surface = oc.BRep_Tool.Surface_2(surfaceOrFace);
4260
+ surface = oc.BRep_Tool_Surface(surfaceOrFace);
4267
4261
  surfaceOwned = true;
4268
4262
  }
4269
4263
  } catch {}
@@ -4578,7 +4572,7 @@ function projectEdges$1(oc, shape, cameraOrigin, cameraDirection, cameraXAxis) {
4578
4572
  group.outline,
4579
4573
  group.smooth,
4580
4574
  group.sharp
4581
- ]) if (!s.IsNull()) oc.BRepLib.BuildCurves3d_2(s);
4575
+ ]) if (!s.IsNull()) oc.BRepLib_BuildCurves3d(s);
4582
4576
  hlrShapes.delete();
4583
4577
  hlrHandle.delete();
4584
4578
  projector.delete();
@@ -4608,8 +4602,8 @@ function createXCAFDocument$1(oc, shapes) {
4608
4602
  nameStr.delete();
4609
4603
  oc.XCAFDoc_ShapeTool.SetAutoNaming(false);
4610
4604
  const mainLabel = doc.Main();
4611
- const shapeTool = oc.XCAFDoc_DocumentTool.ShapeTool(mainLabel).get();
4612
- const colorTool = oc.XCAFDoc_DocumentTool.ColorTool(mainLabel).get();
4605
+ const shapeTool = oc.XCAFDoc_DocumentTool_ShapeTool(mainLabel).get();
4606
+ const colorTool = oc.XCAFDoc_DocumentTool_ColorTool(mainLabel).get();
4613
4607
  for (const part of shapes) {
4614
4608
  const shapeNode = shapeTool.NewShape();
4615
4609
  shapeTool.SetShape(shapeNode, part.shape);
@@ -4678,8 +4672,8 @@ function exportSTEPConfigured$1(oc, shapes, options = {}) {
4678
4672
  const doc = new oc.TDocStd_Document(nameStr);
4679
4673
  nameStr.delete();
4680
4674
  const mainLabel = doc.Main();
4681
- const shapeTool = oc.XCAFDoc_DocumentTool.ShapeTool(mainLabel).get();
4682
- const colorTool = oc.XCAFDoc_DocumentTool.ColorTool(mainLabel).get();
4675
+ const shapeTool = oc.XCAFDoc_DocumentTool_ShapeTool(mainLabel).get();
4676
+ const colorTool = oc.XCAFDoc_DocumentTool_ColorTool(mainLabel).get();
4683
4677
  oc.XCAFDoc_ShapeTool.SetAutoNaming(false);
4684
4678
  for (const part of shapes) {
4685
4679
  const shapeNode = shapeTool.AddShape(part.shape, false, true);
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_drawFns = require("./drawFns-CvuNVDJc.cjs");
3
- const require_boolean2D = require("./boolean2D-Bsdb31mM.cjs");
2
+ const require_drawFns = require("./drawFns-NPXo-y9x.cjs");
3
+ const require_boolean2D = require("./boolean2D-D9bNqIv5.cjs");
4
4
  //#region src/sketching.ts
5
5
  /**
6
6
  * brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.