brepjs 20.12.9 → 20.12.11

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 (95) hide show
  1. package/dist/2d.cjs +6 -6
  2. package/dist/2d.js +6 -6
  3. package/dist/{adjacencyFns-CfhGIMeR.cjs → adjacencyFns-DSGyqGyy.cjs} +3 -3
  4. package/dist/{adjacencyFns-1Cmjb2ot.js → adjacencyFns-DfPO5LGP.js} +3 -3
  5. package/dist/{blueprint-DbJVzU9F.cjs → blueprint-BY2aygt_.cjs} +5 -5
  6. package/dist/{blueprint-BVcuEefs.js → blueprint-DbNFPHzC.js} +5 -5
  7. package/dist/{blueprintFns-DePTHG1I.cjs → blueprintFns-AfHtvBKP.cjs} +2 -2
  8. package/dist/{blueprintFns-mD4pDyFP.js → blueprintFns-dU5V5WcD.js} +2 -2
  9. package/dist/{blueprintSketcher-B5CFmhjg.cjs → blueprintSketcher-DHp6AeEM.cjs} +3 -3
  10. package/dist/{blueprintSketcher-BrGmq-65.js → blueprintSketcher-nBI9PlsW.js} +3 -3
  11. package/dist/{boolean2D-CFKg1FJ_.cjs → boolean2D-C6TS6oFP.cjs} +4 -4
  12. package/dist/{boolean2D-BrHrY60M.js → boolean2D-DuWgyjOR.js} +4 -4
  13. package/dist/{booleanFns-CKDyqKz0.js → booleanFns-BwzBRGqj.js} +4 -4
  14. package/dist/{booleanFns-C640CeaY.cjs → booleanFns-D0qfjH0a.cjs} +4 -4
  15. package/dist/brepjs.cjs +72 -55
  16. package/dist/brepjs.js +72 -55
  17. package/dist/{cameraFns-hXUKJkLg.cjs → cameraFns-B9xKg36U.cjs} +3 -3
  18. package/dist/{cameraFns-DIbua1lC.js → cameraFns-CLkNCsYU.js} +3 -3
  19. package/dist/core.cjs +2 -2
  20. package/dist/core.js +2 -2
  21. package/dist/{cornerFinder-BYDkloVc.js → cornerFinder-CeyQ5JMA.js} +1 -1
  22. package/dist/{cornerFinder-ByBGU0r7.cjs → cornerFinder-Da8Dv4bp.cjs} +1 -1
  23. package/dist/{curveFns-Cqgtmhr0.cjs → curveFns-B8mm5cou.cjs} +1 -1
  24. package/dist/{curveFns-DphpaoQ4.js → curveFns-EsJgIpc6.js} +1 -1
  25. package/dist/{drawFns-Ch3ah8K9.js → drawFns-BQIHgHQg.js} +12 -12
  26. package/dist/{drawFns-GwVZX47o.cjs → drawFns-JZV96JGO.cjs} +12 -12
  27. package/dist/{faceFns-D4cDeMRf.js → faceFns-2jGPfqvB.js} +2 -2
  28. package/dist/{faceFns-BDqVGEoB.cjs → faceFns-Jo9hMVqL.cjs} +2 -2
  29. package/dist/{healingFns--vBKh5pa.js → healingFns-D6mUhe0Z.js} +85 -22
  30. package/dist/{healingFns-Fu7Xl8fu.cjs → healingFns-qioD81Of.cjs} +91 -22
  31. package/dist/{helpers-Wnq-YPWv.cjs → helpers-BvYkHZK7.cjs} +6 -6
  32. package/dist/{helpers-CroIo2SI.js → helpers-CsHdKbfF.js} +6 -6
  33. package/dist/{importFns-tHr15Lhm.cjs → importFns-BzzUvnKA.cjs} +5 -5
  34. package/dist/{importFns-D5Bt_44J.js → importFns-C8yUNPzJ.js} +5 -5
  35. package/dist/io/stepConfigFns.d.ts +1 -1
  36. package/dist/io.cjs +2 -2
  37. package/dist/io.js +2 -2
  38. package/dist/kernel/interfaces/modifierOps.d.ts +12 -0
  39. package/dist/kernel/occtWasm/helpers.d.ts +1 -0
  40. package/dist/kernel/occtWasm/modifierOps.d.ts +8 -0
  41. package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
  42. package/dist/kernel/occtWasm/occtWasmAdapter.d.ts +5 -0
  43. package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
  44. package/dist/kernel/occtWasm/occtWasmTypes.d.ts +4 -0
  45. package/dist/{loftFns-T0GxcPlB.cjs → loftFns-CnerVgTM.cjs} +1 -1
  46. package/dist/{loftFns-Bh_RuF7a.js → loftFns-jnQL_zpD.js} +1 -1
  47. package/dist/{measureFns-C3TZ5Fj9.js → measureFns-D3egqKcW.js} +3 -3
  48. package/dist/{measureFns-DGm6ndQY.cjs → measureFns-R85865k9.cjs} +3 -3
  49. package/dist/measurement.cjs +2 -2
  50. package/dist/measurement.js +2 -2
  51. package/dist/{meshFns-Go1XSyUh.js → meshFns-Bo4EQJFO.js} +4 -4
  52. package/dist/{meshFns-DDgZ3vpr.cjs → meshFns-Cs_qrlXI.cjs} +4 -4
  53. package/dist/{occtWasmAdapter-CZPZnpCe.cjs → occtWasmAdapter-BK--kx4R.cjs} +62 -12
  54. package/dist/{occtWasmAdapter-EM3EhKwk.js → occtWasmAdapter-C-Qi-jxS.js} +62 -12
  55. package/dist/operations.cjs +2 -2
  56. package/dist/operations.js +2 -2
  57. package/dist/{primitiveFns-CeRc4Sls.js → primitiveFns-NxbTqKy7.js} +5 -5
  58. package/dist/{primitiveFns-Dg_XWYtp.cjs → primitiveFns-eiM6OjWU.cjs} +5 -5
  59. package/dist/{principalBoxFns-BuK-ueAB.js → principalBoxFns-BgetPvvQ.js} +3 -3
  60. package/dist/{principalBoxFns-B5zdek3y.cjs → principalBoxFns-DepJW5im.cjs} +3 -3
  61. package/dist/projection.cjs +1 -1
  62. package/dist/projection.js +1 -1
  63. package/dist/query.cjs +2 -2
  64. package/dist/query.js +2 -2
  65. package/dist/{refResolveFns-WRcvVhV-.js → refResolveFns-Bl10yOGJ.js} +6 -6
  66. package/dist/{refResolveFns-CFwsYCKA.cjs → refResolveFns-DpWvqRm0.cjs} +6 -6
  67. package/dist/{shapeFns-DuxfaqTw.cjs → shapeFns-D47cmLG8.cjs} +2 -2
  68. package/dist/{shapeFns-CYjU8PsF.js → shapeFns-kFm-m8jh.js} +2 -2
  69. package/dist/shapeRef.cjs +1 -1
  70. package/dist/shapeRef.js +1 -1
  71. package/dist/{shapeTypes--7XBFlOD.cjs → shapeTypes-C06KHgTm.cjs} +1 -1
  72. package/dist/{shapeTypes-DvzbSivn.js → shapeTypes-DoPnZHn_.js} +1 -1
  73. package/dist/sketching.cjs +3 -3
  74. package/dist/sketching.js +3 -3
  75. package/dist/{solidBuilders-D0bIZX9K.cjs → solidBuilders-Dwm0hXn5.cjs} +3 -3
  76. package/dist/{solidBuilders-BqSVC4cB.js → solidBuilders-ZDGdvaTU.js} +3 -3
  77. package/dist/{surfaceBuilders--HOoTQad.js → surfaceBuilders-BBs6D6Km.js} +3 -3
  78. package/dist/{surfaceBuilders-CPQHyL_5.cjs → surfaceBuilders-D5kFAV1i.cjs} +3 -3
  79. package/dist/text.cjs +2 -2
  80. package/dist/text.js +2 -2
  81. package/dist/{textBlueprints-plsbHqiI.js → textBlueprints-BvZNjVwM.js} +8 -8
  82. package/dist/{textBlueprints-B4HzJzZM.cjs → textBlueprints-D3XhH1kb.cjs} +8 -8
  83. package/dist/{textMetrics-IIS6DUTr.js → textMetrics-BGPUxjiq.js} +1 -1
  84. package/dist/{textMetrics-CBwUIDI7.cjs → textMetrics-zk48vXsM.cjs} +1 -1
  85. package/dist/{threadFns-CmZFykpi.js → threadFns-CEr8JDsu.js} +7 -7
  86. package/dist/{threadFns-e8_26ZYw.cjs → threadFns-DNFoBBrH.cjs} +7 -7
  87. package/dist/topology/apiTypes.d.ts +6 -2
  88. package/dist/topology/chamferAngleFns.d.ts +24 -0
  89. package/dist/topology.cjs +9 -9
  90. package/dist/topology.js +9 -9
  91. package/dist/{topologyQueryFns-NszVx8a0.cjs → topologyQueryFns-BUhKY2Kj.cjs} +1 -1
  92. package/dist/{topologyQueryFns-BUzMuIs5.js → topologyQueryFns-yOGEI9hO.js} +1 -1
  93. package/dist/{validityTypes-CdY06B8c.js → validityTypes-CGrEOscY.js} +1 -1
  94. package/dist/{validityTypes-Ds4zNICF.cjs → validityTypes-lfyOkCQm.cjs} +1 -1
  95. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { A as UnsupportedKernelOperationError, C as reverseCurve2d$2, D as tangentCurve2d, E as serializeCurve2d$2, N as EXACT_BREP_CAPABILITIES, O as translateCurve2d$2, P as OCCT_CAPABILITIES, S as offsetCurve2d$2, T as scaleCurve2d$2, _ as makeCircle2d$2, a as buildAsciiSTL, b as mirrorAcrossAxis, c as createBBox2d, d as deserializeCurve2d$2, f as evaluateCurve2d$2, g as makeBezier2d$2, h as makeArc2dThreePoints, i as DEFAULT_STL_TOLERANCE, j as isUnsupportedKernelOperationError, k as quickHull, l as curveBounds, m as makeArc2dTangent, o as buildBinarySTL, p as intersectCurves2dFn, r as DEFAULT_STL_ANGULAR_TOLERANCE, s as addCurveToBBox, t as OcctWasmAdapter, u as curveTypeName, v as makeEllipse2d$2, w as rotateCurve2d$2, x as mirrorAtPoint, y as makeLine2d$2 } from "./occtWasmAdapter-EM3EhKwk.js";
1
+ import { A as UnsupportedKernelOperationError, C as reverseCurve2d$2, D as tangentCurve2d, E as serializeCurve2d$2, N as EXACT_BREP_CAPABILITIES, O as translateCurve2d$2, P as OCCT_CAPABILITIES, S as offsetCurve2d$2, T as scaleCurve2d$2, _ as makeCircle2d$2, a as buildAsciiSTL, b as mirrorAcrossAxis, c as createBBox2d, d as deserializeCurve2d$2, f as evaluateCurve2d$2, g as makeBezier2d$2, h as makeArc2dThreePoints, i as DEFAULT_STL_TOLERANCE, j as isUnsupportedKernelOperationError, k as quickHull, l as curveBounds, m as makeArc2dTangent, o as buildBinarySTL, p as intersectCurves2dFn, r as DEFAULT_STL_ANGULAR_TOLERANCE, s as addCurveToBBox, t as OcctWasmAdapter, u as curveTypeName, v as makeEllipse2d$2, w as rotateCurve2d$2, x as mirrorAtPoint, y as makeLine2d$2 } from "./occtWasmAdapter-C-Qi-jxS.js";
2
2
  import { i as wasmIndex, r as vec3At } from "./bug-ClMTAJhe.js";
3
3
  // src/kernel/quality.ts
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_blueprintSketcher = require("./blueprintSketcher-B5CFmhjg.cjs");
3
- const require_drawFns = require("./drawFns-GwVZX47o.cjs");
4
- const require_textBlueprints = require("./textBlueprints-B4HzJzZM.cjs");
2
+ const require_blueprintSketcher = require("./blueprintSketcher-DHp6AeEM.cjs");
3
+ const require_drawFns = require("./drawFns-JZV96JGO.cjs");
4
+ const require_textBlueprints = require("./textBlueprints-D3XhH1kb.cjs");
5
5
  // src/sketching.ts
6
6
  /**
7
7
  * brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
package/dist/sketching.js CHANGED
@@ -1,6 +1,6 @@
1
- import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-BrGmq-65.js";
2
- import { A as sketchEllipse, C as DrawingPen, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, T as Drawing, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-Ch3ah8K9.js";
3
- import { a as Sketches, c as compoundSketchFace, d as sketchExtrude, f as sketchFace, g as sketchWires, h as sketchSweep, l as compoundSketchLoft, m as sketchRevolve, o as Sketch, p as sketchLoft, s as compoundSketchExtrude, u as compoundSketchRevolve, y as CompoundSketch } from "./textBlueprints-plsbHqiI.js";
1
+ import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-nBI9PlsW.js";
2
+ import { A as sketchEllipse, C as DrawingPen, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, T as Drawing, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-BQIHgHQg.js";
3
+ import { a as Sketches, c as compoundSketchFace, d as sketchExtrude, f as sketchFace, g as sketchWires, h as sketchSweep, l as compoundSketchLoft, m as sketchRevolve, o as Sketch, p as sketchLoft, s as compoundSketchExtrude, u as compoundSketchRevolve, y as CompoundSketch } from "./textBlueprints-BvZNjVwM.js";
4
4
  // src/sketching.ts
5
5
  /**
6
6
  * brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
@@ -1,8 +1,8 @@
1
- const require_shapeTypes = require("./shapeTypes--7XBFlOD.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-C06KHgTm.cjs");
2
2
  const require_errors = require("./errors-O_blYTWT.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-NszVx8a0.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-BUhKY2Kj.cjs");
4
4
  const require_constants = require("./constants-oee0S_x6.cjs");
5
- const require_faceFns = require("./faceFns-BDqVGEoB.cjs");
5
+ const require_faceFns = require("./faceFns-Jo9hMVqL.cjs");
6
6
  // src/topology/metadata/originTrackingFns.ts
7
7
  /**
8
8
  * Face origin tracking — tag faces with integer origins and propagate
@@ -1,8 +1,8 @@
1
- import { C as isSolid, G as _usingCtx, S as isShell, d as createSolid, f as createVertex, h as disposeResultShape, n as castResultShape, q as getKernel, s as createCompound, x as isShape3D } from "./shapeTypes-DvzbSivn.js";
1
+ import { C as isSolid, G as _usingCtx, S as isShell, d as createSolid, f as createVertex, h as disposeResultShape, n as castResultShape, q as getKernel, s as createCompound, x as isShape3D } from "./shapeTypes-DoPnZHn_.js";
2
2
  import { E as ok, g as err, l as typeCastError, m as andThen } from "./errors-BTccWbtE.js";
3
- import { C as subShapeHashes, c as getFaces, l as getOrCreateCache, r as getCacheEntry } from "./topologyQueryFns-BUzMuIs5.js";
3
+ import { C as subShapeHashes, c as getFaces, l as getOrCreateCache, r as getCacheEntry } from "./topologyQueryFns-yOGEI9hO.js";
4
4
  import { n as HASH_CODE_MAX } from "./constants-iraOnb2p.js";
5
- import { _ as cast, y as downcast } from "./faceFns-D4cDeMRf.js";
5
+ import { _ as cast, y as downcast } from "./faceFns-2jGPfqvB.js";
6
6
  // src/topology/metadata/originTrackingFns.ts
7
7
  /**
8
8
  * Face origin tracking — tag faces with integer origins and propagate
@@ -1,7 +1,7 @@
1
- import { G as _usingCtx, N as DisposalScope, c as createEdge, l as createFace, p as createWire, q as getKernel, y as isFace } from "./shapeTypes-DvzbSivn.js";
1
+ import { G as _usingCtx, N as DisposalScope, c as createEdge, l as createFace, p as createWire, q as getKernel, y as isFace } from "./shapeTypes-DoPnZHn_.js";
2
2
  import { E as ok, d as validationError, g as err, i as kernelError, m as andThen } from "./errors-BTccWbtE.js";
3
- import { a as isPlanarFace } from "./validityTypes-CdY06B8c.js";
4
- import { _ as cast, u as outerWire } from "./faceFns-D4cDeMRf.js";
3
+ import { a as isPlanarFace } from "./validityTypes-CGrEOscY.js";
4
+ import { _ as cast, u as outerWire } from "./faceFns-2jGPfqvB.js";
5
5
  // src/utils/range.ts
6
6
  /** Generate an array of integers `[0, 1, …, len - 1]`. */
7
7
  function range(len) {
@@ -1,7 +1,7 @@
1
- const require_shapeTypes = require("./shapeTypes--7XBFlOD.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-C06KHgTm.cjs");
2
2
  const require_errors = require("./errors-O_blYTWT.cjs");
3
- const require_validityTypes = require("./validityTypes-Ds4zNICF.cjs");
4
- const require_faceFns = require("./faceFns-BDqVGEoB.cjs");
3
+ const require_validityTypes = require("./validityTypes-lfyOkCQm.cjs");
4
+ const require_faceFns = require("./faceFns-Jo9hMVqL.cjs");
5
5
  // src/utils/range.ts
6
6
  /** Generate an array of integers `[0, 1, …, len - 1]`. */
7
7
  function range(len) {
package/dist/text.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_textBlueprints = require("./textBlueprints-B4HzJzZM.cjs");
3
- const require_textMetrics = require("./textMetrics-CBwUIDI7.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-D3XhH1kb.cjs");
3
+ const require_textMetrics = require("./textMetrics-zk48vXsM.cjs");
4
4
  exports.fontMetrics = require_textMetrics.fontMetrics;
5
5
  exports.getFont = require_textBlueprints.getFont;
6
6
  exports.loadFont = require_textBlueprints.loadFont;
package/dist/text.js CHANGED
@@ -1,3 +1,3 @@
1
- import { i as setFallbackFont, n as getFont, r as loadFont, t as textBlueprints } from "./textBlueprints-plsbHqiI.js";
2
- import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-IIS6DUTr.js";
1
+ import { i as setFallbackFont, n as getFont, r as loadFont, t as textBlueprints } from "./textBlueprints-BvZNjVwM.js";
2
+ import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-BGPUxjiq.js";
3
3
  export { fontMetrics, getFont, loadFont, setFallbackFont, sketchText, textBlueprints, textMetrics };
@@ -1,19 +1,19 @@
1
- import { d as createSolid, h as disposeResultShape, l as createFace, m as disposeDowncastSource, n as castResultShape, p as createWire, q as getKernel, x as isShape3D } from "./shapeTypes-DvzbSivn.js";
1
+ import { d as createSolid, h as disposeResultShape, l as createFace, m as disposeDowncastSource, n as castResultShape, p as createWire, q as getKernel, x as isShape3D } from "./shapeTypes-DoPnZHn_.js";
2
2
  import { n as bug } from "./bug-ClMTAJhe.js";
3
3
  import { E as ok, P as unwrap, d as validationError, g as err, i as kernelError, l as typeCastError, r as ioError, t as BrepErrorCode } from "./errors-BTccWbtE.js";
4
4
  import { n as HASH_CODE_MAX } from "./constants-iraOnb2p.js";
5
5
  import { r as toVec3 } from "./types-CKXsIm9-.js";
6
6
  import { c as vecLength, d as vecNormalize, h as vecScale, i as vecDistance, r as vecCross, t as vecAdd } from "./vecOps-S-m9H_fe.js";
7
7
  import { n as createPlane } from "./planeOps-D3yDuMux.js";
8
- import { v as copyShape } from "./faceFns-D4cDeMRf.js";
9
- import { o as makeSolid, t as makeCompound } from "./solidBuilders-BqSVC4cB.js";
10
- import { r as cutAll } from "./booleanFns-CKDyqKz0.js";
8
+ import { v as copyShape } from "./faceFns-2jGPfqvB.js";
9
+ import { o as makeSolid, t as makeCompound } from "./solidBuilders-ZDGdvaTU.js";
10
+ import { r as cutAll } from "./booleanFns-BwzBRGqj.js";
11
11
  import { i as setFaceRoles } from "./faceRoleFns-BPxzQF-n.js";
12
- import { l as curveStartPoint, u as curveTangentAt } from "./curveFns-DphpaoQ4.js";
12
+ import { l as curveStartPoint, u as curveTangentAt } from "./curveFns-EsJgIpc6.js";
13
13
  import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-BpgouNir.js";
14
- import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders--HOoTQad.js";
15
- import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-BrGmq-65.js";
16
- import { c as twistExtrude, r as complexExtrude, s as sweep, t as loft } from "./loftFns-Bh_RuF7a.js";
14
+ import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-BBs6D6Km.js";
15
+ import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-nBI9PlsW.js";
16
+ import { c as twistExtrude, r as complexExtrude, s as sweep, t as loft } from "./loftFns-jnQL_zpD.js";
17
17
  import opentype from "opentype.js";
18
18
  // src/topology/shapeRef/extrudeRoleFns.ts
19
19
  /** Match tolerance as a fraction of the extrusion's size. */
@@ -1,20 +1,20 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-BW-eSwOZ.cjs");
2
- const require_shapeTypes = require("./shapeTypes--7XBFlOD.cjs");
2
+ const require_shapeTypes = require("./shapeTypes-C06KHgTm.cjs");
3
3
  const require_bug = require("./bug-CBcpIPuf.cjs");
4
4
  const require_errors = require("./errors-O_blYTWT.cjs");
5
5
  const require_constants = require("./constants-oee0S_x6.cjs");
6
6
  const require_types = require("./types-CjF9Rofr.cjs");
7
7
  const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
8
8
  const require_planeOps = require("./planeOps-DZfLToKZ.cjs");
9
- const require_faceFns = require("./faceFns-BDqVGEoB.cjs");
10
- const require_solidBuilders = require("./solidBuilders-D0bIZX9K.cjs");
11
- const require_booleanFns = require("./booleanFns-C640CeaY.cjs");
9
+ const require_faceFns = require("./faceFns-Jo9hMVqL.cjs");
10
+ const require_solidBuilders = require("./solidBuilders-Dwm0hXn5.cjs");
11
+ const require_booleanFns = require("./booleanFns-D0qfjH0a.cjs");
12
12
  const require_faceRoleFns = require("./faceRoleFns-Db5bYj4Q.cjs");
13
- const require_curveFns = require("./curveFns-Cqgtmhr0.cjs");
13
+ const require_curveFns = require("./curveFns-B8mm5cou.cjs");
14
14
  const require_arrayAccess = require("./arrayAccess-DpJYARwv.cjs");
15
- const require_surfaceBuilders = require("./surfaceBuilders-CPQHyL_5.cjs");
16
- const require_blueprintSketcher = require("./blueprintSketcher-B5CFmhjg.cjs");
17
- const require_loftFns = require("./loftFns-T0GxcPlB.cjs");
15
+ const require_surfaceBuilders = require("./surfaceBuilders-D5kFAV1i.cjs");
16
+ const require_blueprintSketcher = require("./blueprintSketcher-DHp6AeEM.cjs");
17
+ const require_loftFns = require("./loftFns-CnerVgTM.cjs");
18
18
  let opentype_js = require("opentype.js");
19
19
  opentype_js = require_rolldown_runtime.__toESM(opentype_js, 1);
20
20
  // src/topology/shapeRef/extrudeRoleFns.ts
@@ -1,5 +1,5 @@
1
1
  import { E as ok, d as validationError, g as err, t as BrepErrorCode } from "./errors-BTccWbtE.js";
2
- import { _ as wrapSketchData, a as Sketches, n as getFont, t as textBlueprints, y as CompoundSketch } from "./textBlueprints-plsbHqiI.js";
2
+ import { _ as wrapSketchData, a as Sketches, n as getFont, t as textBlueprints, y as CompoundSketch } from "./textBlueprints-BvZNjVwM.js";
3
3
  // src/text/sketchText.ts
4
4
  /**
5
5
  * Render text as 3D sketch outlines on a plane.
@@ -1,5 +1,5 @@
1
1
  const require_errors = require("./errors-O_blYTWT.cjs");
2
- const require_textBlueprints = require("./textBlueprints-B4HzJzZM.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-D3XhH1kb.cjs");
3
3
  // src/text/sketchText.ts
4
4
  /**
5
5
  * Render text as 3D sketch outlines on a plane.
@@ -1,12 +1,12 @@
1
- import { F as createKernelHandle, G as _usingCtx, N as DisposalScope, n as castResultShape, q as getKernel, x as isShape3D } from "./shapeTypes-DvzbSivn.js";
1
+ import { F as createKernelHandle, G as _usingCtx, N as DisposalScope, n as castResultShape, q as getKernel, x as isShape3D } from "./shapeTypes-DoPnZHn_.js";
2
2
  import { E as ok, d as validationError, g as err, n as computationError, r as ioError, t as BrepErrorCode, x as isOk } from "./errors-BTccWbtE.js";
3
3
  import { d as vecNormalize, s as vecIsZero } from "./vecOps-S-m9H_fe.js";
4
- import { b as fromBREP } from "./faceFns-D4cDeMRf.js";
5
- import { a as fuseAll } from "./booleanFns-CKDyqKz0.js";
6
- import { E as wire, h as line } from "./primitiveFns-CeRc4Sls.js";
7
- import { s as toBREP, t as clone } from "./shapeFns-CYjU8PsF.js";
8
- import { t as loft } from "./loftFns-Bh_RuF7a.js";
9
- import { c as resolveRefParams } from "./refResolveFns-WRcvVhV-.js";
4
+ import { b as fromBREP } from "./faceFns-2jGPfqvB.js";
5
+ import { a as fuseAll } from "./booleanFns-BwzBRGqj.js";
6
+ import { E as wire, h as line } from "./primitiveFns-NxbTqKy7.js";
7
+ import { s as toBREP, t as clone } from "./shapeFns-kFm-m8jh.js";
8
+ import { t as loft } from "./loftFns-jnQL_zpD.js";
9
+ import { c as resolveRefParams } from "./refResolveFns-Bl10yOGJ.js";
10
10
  // src/utils/uuid.ts
11
11
  /** Generate a v4-style UUID string using `crypto.getRandomValues`. */
12
12
  function uuidv() {
@@ -1,12 +1,12 @@
1
- const require_shapeTypes = require("./shapeTypes--7XBFlOD.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-C06KHgTm.cjs");
2
2
  const require_errors = require("./errors-O_blYTWT.cjs");
3
3
  const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
4
- const require_faceFns = require("./faceFns-BDqVGEoB.cjs");
5
- const require_booleanFns = require("./booleanFns-C640CeaY.cjs");
6
- const require_primitiveFns = require("./primitiveFns-Dg_XWYtp.cjs");
7
- const require_shapeFns = require("./shapeFns-DuxfaqTw.cjs");
8
- const require_loftFns = require("./loftFns-T0GxcPlB.cjs");
9
- const require_refResolveFns = require("./refResolveFns-CFwsYCKA.cjs");
4
+ const require_faceFns = require("./faceFns-Jo9hMVqL.cjs");
5
+ const require_booleanFns = require("./booleanFns-D0qfjH0a.cjs");
6
+ const require_primitiveFns = require("./primitiveFns-eiM6OjWU.cjs");
7
+ const require_shapeFns = require("./shapeFns-D47cmLG8.cjs");
8
+ const require_loftFns = require("./loftFns-CnerVgTM.cjs");
9
+ const require_refResolveFns = require("./refResolveFns-DpWvqRm0.cjs");
10
10
  // src/utils/uuid.ts
11
11
  /** Generate a v4-style UUID string using `crypto.getRandomValues`. */
12
12
  function uuidv() {
@@ -28,8 +28,12 @@ export type FilletRadius = number | [number, number] | ((edge: Edge<Dimension>)
28
28
  *
29
29
  * - `number` — equal distance
30
30
  * - `[number, number]` — asymmetric distances (dist1, dist2)
31
- * - `{ distance, angle }` — distance-angle mode (replaces chamferDistAngleShape)
32
- * - callback — per-edge distance; return `null` to skip an edge
31
+ * - `{ distance, angle }` — distance-angle mode (replaces chamferDistAngleShape); angle in degrees
32
+ * - callback — per-edge value of any of the above; return `null` (or a non-positive
33
+ * distance) to skip an edge. The edges it keeps must all get plain distances or all
34
+ * get `{ distance, angle }`: mixing the two is an `INVALID_CHAMFER_DISTANCE` error.
35
+ * Different `{ distance, angle }` values per edge need a kernel that chamfers each
36
+ * edge by its own (occt-wasm 5.9.0+); elsewhere they are an `UNSUPPORTED_CAPABILITY` error.
33
37
  */
34
38
  export type ChamferDistance = number | [number, number] | {
35
39
  distance: number;
@@ -15,3 +15,27 @@ import { Result } from '../core/result.js';
15
15
  * @remarks Uses `BRepFilletAPI_MakeChamfer.AddDA(dist, angle, edge, face)` internally.
16
16
  */
17
17
  export declare function chamferDistAngle(shape: Shape3D, edges: Edge[], distance: number, angleDeg: number): Result<Shape3D>;
18
+ /** An edge and the distance-angle chamfer to put on it. */
19
+ export interface EdgeDistAngle {
20
+ readonly edge: Edge;
21
+ /** Setback on the edge's reference face; must be positive. */
22
+ readonly distance: number;
23
+ /** Angle from the reference face in degrees, in the range (0, 90). */
24
+ readonly angle: number;
25
+ }
26
+ /**
27
+ * Chamfer each edge by its own distance and angle, in one operation.
28
+ *
29
+ * Edges that all share one distance and angle go through
30
+ * {@link chamferDistAngle}, which every kernel provides. Different values need
31
+ * a kernel with a per-edge distance-angle chamfer (occt-wasm 5.9.0 or later);
32
+ * on any other kernel the result is an `UNSUPPORTED_CAPABILITY` error. On
33
+ * occt-wasm the edges of one tangent-continuous contour must share their
34
+ * distance and angle, or the result is `CHAMFER_ANGLE_FAILED`.
35
+ *
36
+ * @param shape - The 3D shape to chamfer.
37
+ * @param entries - Each edge with its distance and angle (must not be empty).
38
+ * @returns Ok with the chamfered shape, or Err on invalid input, an unsupported
39
+ * kernel, or kernel failure.
40
+ */
41
+ export declare function chamferDistAngles(shape: Shape3D, entries: ReadonlyArray<EdgeDistAngle>): Result<Shape3D>;
package/dist/topology.cjs CHANGED
@@ -1,13 +1,13 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_topologyQueryFns = require("./topologyQueryFns-NszVx8a0.cjs");
3
- const require_faceFns = require("./faceFns-BDqVGEoB.cjs");
4
- const require_booleanFns = require("./booleanFns-C640CeaY.cjs");
5
- const require_primitiveFns = require("./primitiveFns-Dg_XWYtp.cjs");
6
- const require_shapeFns = require("./shapeFns-DuxfaqTw.cjs");
7
- const require_curveFns = require("./curveFns-Cqgtmhr0.cjs");
8
- const require_meshFns = require("./meshFns-DDgZ3vpr.cjs");
9
- const require_healingFns = require("./healingFns-Fu7Xl8fu.cjs");
10
- const require_adjacencyFns = require("./adjacencyFns-CfhGIMeR.cjs");
2
+ const require_topologyQueryFns = require("./topologyQueryFns-BUhKY2Kj.cjs");
3
+ const require_faceFns = require("./faceFns-Jo9hMVqL.cjs");
4
+ const require_booleanFns = require("./booleanFns-D0qfjH0a.cjs");
5
+ const require_primitiveFns = require("./primitiveFns-eiM6OjWU.cjs");
6
+ const require_shapeFns = require("./shapeFns-D47cmLG8.cjs");
7
+ const require_curveFns = require("./curveFns-B8mm5cou.cjs");
8
+ const require_meshFns = require("./meshFns-Cs_qrlXI.cjs");
9
+ const require_healingFns = require("./healingFns-qioD81Of.cjs");
10
+ const require_adjacencyFns = require("./adjacencyFns-DSGyqGyy.cjs");
11
11
  exports.addHoles = require_primitiveFns.addHoles;
12
12
  exports.adjacentFaces = require_adjacencyFns.adjacentFaces;
13
13
  exports.approximateCurve = require_curveFns.approximateCurve;
package/dist/topology.js CHANGED
@@ -1,10 +1,10 @@
1
- import { _ as iterFaces, b as iterVertices, c as getFaces, f as getVertices, g as iterEdges, m as invalidateShapeCache, n as getBounds, p as getWires, s as getEdges, w as vertexPosition, x as iterWires } from "./topologyQueryFns-BUzMuIs5.js";
2
- import { C as shapeType, S as iterTopo, _ as cast, a as faceOrientation, b as fromBREP, c as innerWires, d as pointOnSurface, f as projectPointOnFace, g as asTopo, h as uvCoordinates, i as faceGeomType, l as normalAt, m as uvBounds, n as faceAxis, o as flipFaceOrientation, r as faceCenter, s as getSurfaceType, t as classifyPointOnFace, u as outerWire, x as isCompSolid, y as downcast } from "./faceFns-D4cDeMRf.js";
3
- import { a as fuseAll, r as cutAll } from "./booleanFns-CKDyqKz0.js";
4
- import { C as threePointArc, D as wireLoop, E as wire, S as tangentArc, T as vertex, _ as polygon, a as circle, b as sphere, c as cylinder, d as ellipsoid, f as face, g as offsetFace, h as line, i as bsplineApprox, l as ellipse, m as helix, n as bezier, o as compound, p as filledFace, r as box, s as cone, t as addHoles, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-CeRc4Sls.js";
5
- import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-CYjU8PsF.js";
6
- import { a as curveIsPeriodic, c as curvePointAt, d as flipOrientation, f as getCurveType, h as offsetWire2D, i as curveIsClosed, l as curveStartPoint, m as interpolateCurve, n as curveAxis, o as curveLength, p as getOrientation, r as curveEndPoint, s as curvePeriod, t as approximateCurve, u as curveTangentAt } from "./curveFns-DphpaoQ4.js";
7
- import { f as clearMeshCache, n as exportSTEP, p as createMeshCache, r as exportSTL, t as exportIGES } from "./meshFns-Go1XSyUh.js";
8
- import { A as variableFillet, F as toLineGeometryData, M as toGroupedBufferGeometryData, S as chamferDistAngle, _ as checkBoolean, a as healFace, b as getNurbsCurveData, d as chamferWithEvolution, f as cutWithEvolution, g as shellWithEvolution, h as intersectWithEvolution, j as toBufferGeometryData, l as solidFromShell, m as fuseWithEvolution, n as fixSelfIntersection, o as healSolid, p as filletWithEvolution, r as fixShape, s as healWire, t as autoHeal, u as positionOnCurve, v as cutAllBisect, x as getNurbsSurfaceData, y as fuseAllBisect } from "./healingFns--vBKh5pa.js";
9
- import { i as facesOfEdge, l as wiresOfFace, n as adjacentFaces, o as sharedEdges, r as edgesOfFace, s as verticesOfEdge } from "./adjacencyFns-1Cmjb2ot.js";
1
+ import { _ as iterFaces, b as iterVertices, c as getFaces, f as getVertices, g as iterEdges, m as invalidateShapeCache, n as getBounds, p as getWires, s as getEdges, w as vertexPosition, x as iterWires } from "./topologyQueryFns-yOGEI9hO.js";
2
+ import { C as shapeType, S as iterTopo, _ as cast, a as faceOrientation, b as fromBREP, c as innerWires, d as pointOnSurface, f as projectPointOnFace, g as asTopo, h as uvCoordinates, i as faceGeomType, l as normalAt, m as uvBounds, n as faceAxis, o as flipFaceOrientation, r as faceCenter, s as getSurfaceType, t as classifyPointOnFace, u as outerWire, x as isCompSolid, y as downcast } from "./faceFns-2jGPfqvB.js";
3
+ import { a as fuseAll, r as cutAll } from "./booleanFns-BwzBRGqj.js";
4
+ import { C as threePointArc, D as wireLoop, E as wire, S as tangentArc, T as vertex, _ as polygon, a as circle, b as sphere, c as cylinder, d as ellipsoid, f as face, g as offsetFace, h as line, i as bsplineApprox, l as ellipse, m as helix, n as bezier, o as compound, p as filledFace, r as box, s as cone, t as addHoles, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-NxbTqKy7.js";
5
+ import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-kFm-m8jh.js";
6
+ import { a as curveIsPeriodic, c as curvePointAt, d as flipOrientation, f as getCurveType, h as offsetWire2D, i as curveIsClosed, l as curveStartPoint, m as interpolateCurve, n as curveAxis, o as curveLength, p as getOrientation, r as curveEndPoint, s as curvePeriod, t as approximateCurve, u as curveTangentAt } from "./curveFns-EsJgIpc6.js";
7
+ import { f as clearMeshCache, n as exportSTEP, p as createMeshCache, r as exportSTL, t as exportIGES } from "./meshFns-Bo4EQJFO.js";
8
+ import { I as toLineGeometryData, M as toBufferGeometryData, N as toGroupedBufferGeometryData, S as chamferDistAngle, _ as checkBoolean, a as healFace, b as getNurbsCurveData, d as chamferWithEvolution, f as cutWithEvolution, g as shellWithEvolution, h as intersectWithEvolution, j as variableFillet, l as solidFromShell, m as fuseWithEvolution, n as fixSelfIntersection, o as healSolid, p as filletWithEvolution, r as fixShape, s as healWire, t as autoHeal, u as positionOnCurve, v as cutAllBisect, x as getNurbsSurfaceData, y as fuseAllBisect } from "./healingFns-D6mUhe0Z.js";
9
+ import { i as facesOfEdge, l as wiresOfFace, n as adjacentFaces, o as sharedEdges, r as edgesOfFace, s as verticesOfEdge } from "./adjacencyFns-DfPO5LGP.js";
10
10
  export { addHoles, adjacentFaces, approximateCurve, asTopo, autoHeal, bezier, box, bsplineApprox, cast, chamferDistAngle as chamferDistAngleShape, chamferWithEvolution, checkBoolean, circle, classifyPointOnFace, clearMeshCache, compound, cone, createMeshCache, curveAxis, curveEndPoint, curveIsClosed, curveIsPeriodic, curveLength, curvePeriod, curvePointAt, curveStartPoint, curveTangentAt, cutAll, cutAllBisect, cutWithEvolution, cylinder, fromBREP as deserializeShape, downcast, edgesOfFace, ellipse, ellipseArc, ellipsoid, exportIGES, exportSTEP, exportSTL, face, faceAxis, faceCenter, faceGeomType, faceOrientation, facesOfEdge, filledFace, filletWithEvolution, fixSelfIntersection, fixShape, flipFaceOrientation, flipOrientation, fuseAll, fuseAllBisect, fuseWithEvolution, getBounds, getCurveType, getEdges, getFaces, getHashCode, getNurbsCurveData, getNurbsSurfaceData, getOrientation, getSurfaceType, getVertices, getWires, healFace, healSolid, healWire, helix, innerWires, interpolateCurve, intersectWithEvolution, invalidateShapeCache, isCompSolid, isEqualShape, isSameShape, iterEdges, iterFaces, iterTopo, iterVertices, iterWires, line, normalAt, offsetFace, offsetWire2D, outerWire, pointOnSurface, polygon, positionOnCurve, projectPointOnFace, sewShells, shapeType, sharedEdges, shellWithEvolution, solid, solidFromShell, sphere, subFace, tangentArc, threePointArc, toBufferGeometryData, toGroupedBufferGeometryData, toLineGeometryData, torus, uvBounds, uvCoordinates, variableFillet, vertex, vertexPosition, verticesOfEdge, wire, wireLoop, wiresOfFace };
@@ -1,4 +1,4 @@
1
- const require_shapeTypes = require("./shapeTypes--7XBFlOD.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-C06KHgTm.cjs");
2
2
  const require_errors = require("./errors-O_blYTWT.cjs");
3
3
  const require_constants = require("./constants-oee0S_x6.cjs");
4
4
  // src/core/kernelErrorTranslation.ts
@@ -1,4 +1,4 @@
1
- import { G as _usingCtx, N as DisposalScope, O as getOrQueryType, n as castResultShape, q as getKernel, r as castResultShapeWithKnownType } from "./shapeTypes-DvzbSivn.js";
1
+ import { G as _usingCtx, N as DisposalScope, O as getOrQueryType, n as castResultShape, q as getKernel, r as castResultShapeWithKnownType } from "./shapeTypes-DoPnZHn_.js";
2
2
  import { E as ok, g as err } from "./errors-BTccWbtE.js";
3
3
  import { n as HASH_CODE_MAX } from "./constants-iraOnb2p.js";
4
4
  // src/core/kernelErrorTranslation.ts
@@ -1,4 +1,4 @@
1
- import { q as getKernel } from "./shapeTypes-DvzbSivn.js";
1
+ import { q as getKernel } from "./shapeTypes-DoPnZHn_.js";
2
2
  import { E as ok, g as err } from "./errors-BTccWbtE.js";
3
3
  // src/core/validityTypes.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- const require_shapeTypes = require("./shapeTypes--7XBFlOD.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-C06KHgTm.cjs");
2
2
  const require_errors = require("./errors-O_blYTWT.cjs");
3
3
  // src/core/validityTypes.ts
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brepjs",
3
- "version": "20.12.9",
3
+ "version": "20.12.11",
4
4
  "description": "Exact B-Rep CAD in TypeScript on OpenCascade WebAssembly, with a pluggable geometry kernel",
5
5
  "keywords": [
6
6
  "cad",
@@ -281,7 +281,7 @@
281
281
  "knip": "6.27.0",
282
282
  "lint-staged": "17.6.0",
283
283
  "lz-string": "1.5.0",
284
- "occt-wasm": "5.9.0",
284
+ "occt-wasm": "5.10.0",
285
285
  "prettier": "3.9.10",
286
286
  "puppeteer": "25.14.0",
287
287
  "size-limit": "14.2.0",