brepjs 20.5.0 → 20.6.0

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 (113) hide show
  1. package/README.md +1 -0
  2. package/dist/2d.cjs +9 -11
  3. package/dist/2d.js +9 -11
  4. package/dist/{adjacencyFns-1rxgJ6Hw.cjs → adjacencyFns-CmNvIFu1.cjs} +5 -6
  5. package/dist/{adjacencyFns-DeyXahej.js → adjacencyFns-DO9_F2YJ.js} +5 -6
  6. package/dist/{arrayAccess-DrUGPADn.js → arrayAccess-BpgouNir.js} +1 -2
  7. package/dist/{arrayAccess-e4H9cBfh.cjs → arrayAccess-DpJYARwv.cjs} +1 -2
  8. package/dist/{blueprint-Yyoiz-U1.cjs → blueprint-Ci2Mw5v-.cjs} +24 -37
  9. package/dist/{blueprint-rwJjYPzo.js → blueprint-DHKul4EN.js} +24 -37
  10. package/dist/{blueprintFns-Ce6OoPSX.cjs → blueprintFns-CbJPSd5r.cjs} +5 -7
  11. package/dist/{blueprintFns-Q3Sq-Fse.js → blueprintFns-D68_PxRl.js} +5 -7
  12. package/dist/{blueprintSketcher-FywUpRiV.js → blueprintSketcher-j9vJAniE.js} +19 -31
  13. package/dist/{blueprintSketcher-CzKbxeTk.cjs → blueprintSketcher-pVbM0BHf.cjs} +19 -31
  14. package/dist/{boolean2D-D8igCYc9.js → boolean2D-D6Oc8tBx.js} +13 -19
  15. package/dist/{boolean2D-BzZ9iBSn.cjs → boolean2D-Dq29HCr9.cjs} +13 -19
  16. package/dist/brepjs.cjs +113 -187
  17. package/dist/brepjs.js +113 -188
  18. package/dist/{bug-O02CsAmt.cjs → bug-CBcpIPuf.cjs} +2 -4
  19. package/dist/{bug-BdOHwn_e.js → bug-ClMTAJhe.js} +2 -4
  20. package/dist/{cameraFns-RHCb1F1s.cjs → cameraFns-BMXugx7m.cjs} +8 -11
  21. package/dist/{cameraFns-Cs6v3bWQ.js → cameraFns-DVZkA2eq.js} +8 -11
  22. package/dist/{constants-ITRzCnCp.js → constants-iraOnb2p.js} +1 -2
  23. package/dist/{constants-BOVyEYGH.cjs → constants-oee0S_x6.cjs} +1 -2
  24. package/dist/core.cjs +8 -8
  25. package/dist/core.js +8 -8
  26. package/dist/{cornerFinder-Dlae8IX5.js → cornerFinder-DSnn8gRP.js} +4 -5
  27. package/dist/{cornerFinder-Cji_BK-R.cjs → cornerFinder-DshfhGHG.cjs} +4 -5
  28. package/dist/{curveFns-KS1BWGhF.js → curveFns-CEb6TLxC.js} +3 -4
  29. package/dist/{curveFns-6-ULFrEB.cjs → curveFns-Cxq5lFqU.cjs} +3 -4
  30. package/dist/{drawFns-Ddlgp9gQ.cjs → drawFns-CH0q-0JP.cjs} +32 -45
  31. package/dist/{drawFns-3yRVBDgI.js → drawFns-DMhKXGgG.js} +32 -45
  32. package/dist/{errors-Zb3jBa0u.js → errors-B3espUT6.js} +3 -5
  33. package/dist/{errors-jwhfQJZK.cjs → errors-DoMAp7mQ.cjs} +3 -5
  34. package/dist/{faceFns-CZeHWke7.cjs → faceFns-B8ctN5Te.cjs} +6 -8
  35. package/dist/{faceFns-CTlJC5IY.js → faceFns-C-wc4fX-.js} +6 -8
  36. package/dist/{faceRoleFns-CWU1-Pm8.js → faceRoleFns-BPxzQF-n.js} +1 -2
  37. package/dist/{faceRoleFns-CtH_48MO.cjs → faceRoleFns-Db5bYj4Q.cjs} +1 -2
  38. package/dist/{healingFns-Ct3gEMvk.js → healingFns-CJfuZMw2.js} +16 -25
  39. package/dist/{healingFns-DwSpJZfg.cjs → healingFns-D3mNy1rp.cjs} +16 -25
  40. package/dist/{helpers-BN1mVMuZ.js → helpers-BXoAMWe3.js} +15 -21
  41. package/dist/{helpers-NRZVshPb.cjs → helpers-BhHbDu6-.cjs} +15 -21
  42. package/dist/{importFns-BEi-HsSw.cjs → importFns-DHaw1x5R.cjs} +12 -19
  43. package/dist/{importFns-0kHGg-b8.js → importFns-YZyGYu_M.js} +12 -19
  44. package/dist/io.cjs +2 -2
  45. package/dist/io.js +2 -2
  46. package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
  47. package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -2
  48. package/dist/{loftFns-B5mq1WDh.js → loftFns-CTTia_cZ.js} +7 -10
  49. package/dist/{loftFns-DL9UsQhd.cjs → loftFns-DVr6PaTM.cjs} +7 -10
  50. package/dist/{measureFns-CyDVZomf.js → measureFns-BmdVG0_8.js} +6 -8
  51. package/dist/{measureFns-D_GpQw5z.cjs → measureFns-C6wgH_1a.cjs} +6 -8
  52. package/dist/measurement.cjs +2 -2
  53. package/dist/measurement.js +2 -2
  54. package/dist/{meshFns-CAxkaRTm.cjs → meshFns-r_p0RRoO.cjs} +6 -8
  55. package/dist/{meshFns-COlno8TY.js → meshFns-uNRS602U.js} +6 -8
  56. package/dist/{occtWasmAdapter-CA6PmIIj.cjs → occtWasmAdapter-CxSY6Ty2.cjs} +37 -56
  57. package/dist/{occtWasmAdapter-BX10fyla.js → occtWasmAdapter-cnV8J7Y-.js} +37 -56
  58. package/dist/operations.cjs +2 -2
  59. package/dist/operations.js +2 -2
  60. package/dist/{originTrackingFns-DiHy5BZC.js → originTrackingFns-BIa3TdgX.js} +4 -5
  61. package/dist/{originTrackingFns-CWo6NWHK.cjs → originTrackingFns-DgJ-MTtE.cjs} +4 -5
  62. package/dist/{planeOps-DJuclNxa.cjs → planeOps-BDt05NAD.cjs} +5 -6
  63. package/dist/{planeOps-Cxws4Tiu.js → planeOps-BkwaqhUj.js} +5 -6
  64. package/dist/{primitiveFns-ZV3aMbqG.cjs → primitiveFns-CktCbLBo.cjs} +8 -10
  65. package/dist/{primitiveFns-CGJzS4MO.js → primitiveFns-h_zOAbmf.js} +8 -10
  66. package/dist/{principalBoxFns-5FSbxAj-.cjs → principalBoxFns-28BQIeo8.cjs} +7 -8
  67. package/dist/{principalBoxFns-BJgGEoik.js → principalBoxFns-DkP-681E.js} +7 -8
  68. package/dist/projection.cjs +1 -1
  69. package/dist/projection.js +1 -2
  70. package/dist/query.cjs +2 -2
  71. package/dist/query.js +2 -2
  72. package/dist/{refResolveFns-CpVZoeOT.js → refResolveFns-DUDJqfOM.js} +14 -21
  73. package/dist/{refResolveFns-Ct52Uw7R.cjs → refResolveFns-fSzDZ1rx.cjs} +14 -21
  74. package/dist/result.cjs +2 -2
  75. package/dist/result.js +2 -2
  76. package/dist/{rolldown-runtime-C0BPl7ul.cjs → rolldown-runtime-BW-eSwOZ.cjs} +1 -2
  77. package/dist/{shapeFns--1wNlcc_.js → shapeFns-B5hzkmwe.js} +5 -6
  78. package/dist/{shapeFns-C2j6oZ2u.cjs → shapeFns-DKDlt3k2.cjs} +5 -6
  79. package/dist/shapeRef.cjs +1 -1
  80. package/dist/shapeRef.js +1 -2
  81. package/dist/{shapeTypes-CqNJoSam.js → shapeTypes-Bva18qvE.js} +81 -160
  82. package/dist/{shapeTypes-DH2ShBU_.cjs → shapeTypes-CkxvJRpq.cjs} +81 -160
  83. package/dist/sketching.cjs +4 -5
  84. package/dist/sketching.js +4 -5
  85. package/dist/{solidBuilders-CgicU3le.cjs → solidBuilders-BFEnqrU0.cjs} +17 -23
  86. package/dist/{solidBuilders-IstbiWju.js → solidBuilders-BpTN-NfM.js} +17 -23
  87. package/dist/{surfaceBuilders-vYgSvgI6.cjs → surfaceBuilders-CTk2lGlw.cjs} +8 -12
  88. package/dist/{surfaceBuilders-8nLk2PWk.js → surfaceBuilders-DAZCPa5O.js} +8 -12
  89. package/dist/text.cjs +2 -2
  90. package/dist/text.js +2 -2
  91. package/dist/{textBlueprints-fa7VHJZz.cjs → textBlueprints-DbEWBdhF.cjs} +24 -32
  92. package/dist/{textBlueprints-C13NAA3C.js → textBlueprints-DuwP72D6.js} +23 -31
  93. package/dist/{textMetrics--cikHkGX.cjs → textMetrics-CbNBlPsl.cjs} +4 -6
  94. package/dist/{textMetrics-Dcc63qRm.js → textMetrics-q6RSXX9Z.js} +4 -6
  95. package/dist/{threadFns-BUQPg_vI.cjs → threadFns-5FXCN-9R.cjs} +21 -33
  96. package/dist/{threadFns-3U9x4v_M.js → threadFns-BcsScbp4.js} +21 -33
  97. package/dist/topology.cjs +9 -9
  98. package/dist/topology.js +9 -9
  99. package/dist/{topologyQueryFns-q2bGyuEV.cjs → topologyQueryFns-C6HwYYpi.cjs} +6 -9
  100. package/dist/{topologyQueryFns-DnfjQgP7.js → topologyQueryFns-CY6YiGsk.js} +6 -9
  101. package/dist/{types-D24Y27N0.js → types-CKXsIm9-.js} +1 -2
  102. package/dist/{types-KjA8tY4Y.cjs → types-CjF9Rofr.cjs} +1 -2
  103. package/dist/{validityTypes-r0A2YdNq.cjs → validityTypes-D0IDDMbY.cjs} +3 -4
  104. package/dist/{validityTypes-t7JpS0Ki.js → validityTypes-MiXYsBZi.js} +3 -4
  105. package/dist/{vecOps-CCnJt-yH.cjs → vecOps-CrGEPPQM.cjs} +1 -2
  106. package/dist/{vecOps-SKPRvPH-.js → vecOps-S-m9H_fe.js} +1 -2
  107. package/dist/vectors.cjs +4 -4
  108. package/dist/vectors.js +4 -4
  109. package/dist/worker.cjs +1 -1
  110. package/dist/worker.js +1 -2
  111. package/dist/{workerPool-XcYX2UZ0.js → workerPool-Bc5hmJc4.js} +5 -10
  112. package/dist/{workerPool-D30NsiIW.cjs → workerPool-D5tiNXrI.cjs} +5 -10
  113. package/package.json +10 -10
@@ -1,11 +1,11 @@
1
- const require_shapeTypes = require("./shapeTypes-DH2ShBU_.cjs");
2
- const require_topologyQueryFns = require("./topologyQueryFns-q2bGyuEV.cjs");
3
- const require_faceFns = require("./faceFns-CZeHWke7.cjs");
4
- const require_faceRoleFns = require("./faceRoleFns-CtH_48MO.cjs");
5
- const require_shapeFns = require("./shapeFns-C2j6oZ2u.cjs");
6
- const require_measureFns = require("./measureFns-D_GpQw5z.cjs");
7
- const require_adjacencyFns = require("./adjacencyFns-1rxgJ6Hw.cjs");
8
- //#region src/topology/shapeRef/scoring.ts
1
+ const require_shapeTypes = require("./shapeTypes-CkxvJRpq.cjs");
2
+ const require_topologyQueryFns = require("./topologyQueryFns-C6HwYYpi.cjs");
3
+ const require_faceFns = require("./faceFns-B8ctN5Te.cjs");
4
+ const require_faceRoleFns = require("./faceRoleFns-Db5bYj4Q.cjs");
5
+ const require_shapeFns = require("./shapeFns-DKDlt3k2.cjs");
6
+ const require_measureFns = require("./measureFns-C6wgH_1a.cjs");
7
+ const require_adjacencyFns = require("./adjacencyFns-CmNvIFu1.cjs");
8
+ // src/topology/shapeRef/scoring.ts
9
9
  /**
10
10
  * Default face scorer combining surface type, normal alignment, centroid proximity,
11
11
  * and area similarity.
@@ -47,8 +47,7 @@ function defaultScorer(hint, face) {
47
47
  }
48
48
  return score;
49
49
  }
50
- //#endregion
51
- //#region src/topology/shapeRef/shapeRefFns.ts
50
+ // src/topology/shapeRef/shapeRefFns.ts
52
51
  /** Snapshot the geometric properties of a face for later matching. */
53
52
  function captureHint(face) {
54
53
  const surfaceType = require_faceFns.faceGeomType(face);
@@ -294,8 +293,7 @@ function resolveRef(ref, roles, currentShape, scorer) {
294
293
  reason: "not-found"
295
294
  };
296
295
  }
297
- //#endregion
298
- //#region src/topology/shapeRef/roleLookup.ts
296
+ // src/topology/shapeRef/roleLookup.ts
299
297
  /** Euclidean distance between two points. */
300
298
  function distance(a, b) {
301
299
  const dx = a[0] - b[0];
@@ -335,8 +333,7 @@ function facesForRole(shape, origin, role, roles) {
335
333
  if (hashes === void 0 || hashes.length === 0) return [];
336
334
  return require_topologyQueryFns.getFaces(shape).filter((f) => hashes.includes(require_shapeFns.getHashCode(f)));
337
335
  }
338
- //#endregion
339
- //#region src/topology/shapeRef/edgeRefFns.ts
336
+ // src/topology/shapeRef/edgeRefFns.ts
340
337
  function captureEdgeHint(edge) {
341
338
  const lengthResult = require_measureFns.measureLength(edge);
342
339
  return {
@@ -447,8 +444,7 @@ function resolveEdgeRef(ref, roles, shape) {
447
444
  reason: "not-found"
448
445
  };
449
446
  }
450
- //#endregion
451
- //#region src/topology/shapeRef/vertexRefFns.ts
447
+ // src/topology/shapeRef/vertexRefFns.ts
452
448
  /** A corner needs at least this many faces to pin a unique point. */
453
449
  var MIN_VERTEX_FACES = 3;
454
450
  /** Hint distances closer than this are indistinguishable (→ ambiguous). */
@@ -564,8 +560,7 @@ function resolveVertexRef(ref, roles, shape) {
564
560
  reason: "not-found"
565
561
  };
566
562
  }
567
- //#endregion
568
- //#region src/topology/shapeRef/derivedFaceRefFns.ts
563
+ // src/topology/shapeRef/derivedFaceRefFns.ts
569
564
  /** A face re-derives a bridged face when its normal is nearly identical. */
570
565
  var NORMAL_MATCH = .99;
571
566
  /** A generated face's normal has a positive component along BOTH bridged normals. */
@@ -681,8 +676,7 @@ function resolveDerivedFaceRef(ref, roles, shape) {
681
676
  reason: "not-found"
682
677
  };
683
678
  }
684
- //#endregion
685
- //#region src/topology/shapeRef/refResolveFns.ts
679
+ // src/topology/shapeRef/refResolveFns.ts
686
680
  function isRefObject(v) {
687
681
  return typeof v === "object" && v !== null && "origin" in v;
688
682
  }
@@ -806,7 +800,6 @@ function resolveRefParams(params, shape) {
806
800
  for (const [key, value] of Object.entries(params)) out[key] = resolveValue(value);
807
801
  return out;
808
802
  }
809
- //#endregion
810
803
  Object.defineProperty(exports, "assignRoles", {
811
804
  enumerable: true,
812
805
  get: function() {
package/dist/result.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_bug = require("./bug-O02CsAmt.cjs");
3
- const require_errors = require("./errors-jwhfQJZK.cjs");
2
+ const require_bug = require("./bug-CBcpIPuf.cjs");
3
+ const require_errors = require("./errors-DoMAp7mQ.cjs");
4
4
  exports.BrepBugError = require_bug.BrepBugError;
5
5
  exports.BrepErrorCode = require_errors.BrepErrorCode;
6
6
  exports.OK = require_errors.OK;
package/dist/result.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as bug, t as BrepBugError } from "./bug-BdOHwn_e.js";
2
- import { E as ok, F as unwrapErr, I as unwrapOr, L as unwrapOrElse, M as tryCatch, N as tryCatchAsync, P as unwrap, S as map, T as match, _ as flatMap, a as moduleInitError, b as isErr, c as sketcherStateError, d as validationError, f as OK, g as err, h as collect, i as kernelError, k as pipeline, l as typeCastError, m as andThen, n as computationError, o as queryError, r as ioError, t as BrepErrorCode, w as mapErr, x as isOk } from "./errors-Zb3jBa0u.js";
1
+ import { n as bug, t as BrepBugError } from "./bug-ClMTAJhe.js";
2
+ import { E as ok, F as unwrapErr, I as unwrapOr, L as unwrapOrElse, M as tryCatch, N as tryCatchAsync, P as unwrap, S as map, T as match, _ as flatMap, a as moduleInitError, b as isErr, c as sketcherStateError, d as validationError, f as OK, g as err, h as collect, i as kernelError, k as pipeline, l as typeCastError, m as andThen, n as computationError, o as queryError, r as ioError, t as BrepErrorCode, w as mapErr, x as isOk } from "./errors-B3espUT6.js";
3
3
  export { BrepBugError, BrepErrorCode, OK, andThen, bug, collect, computationError, err, flatMap, ioError, isErr, isOk, kernelError, map, mapErr, match, moduleInitError, ok, pipeline, queryError, sketcherStateError, tryCatch, tryCatchAsync, typeCastError, unwrap, unwrapErr, unwrapOr, unwrapOrElse, validationError };
@@ -1,4 +1,4 @@
1
- //#region \0rolldown/runtime.js
1
+ // \0rolldown/runtime.js
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -28,7 +28,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  value: mod,
29
29
  enumerable: true
30
30
  }) : target, mod));
31
- //#endregion
32
31
  Object.defineProperty(exports, "__exportAll", {
33
32
  enumerable: true,
34
33
  get: function() {
@@ -1,8 +1,8 @@
1
- import { q as getKernel } from "./shapeTypes-CqNJoSam.js";
2
- import { t as BrepErrorCode } from "./errors-Zb3jBa0u.js";
3
- import { E as kernelCallRaw, T as kernelCall } from "./topologyQueryFns-DnfjQgP7.js";
4
- import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
5
- //#region src/topology/shapeFns.ts
1
+ import { q as getKernel } from "./shapeTypes-Bva18qvE.js";
2
+ import { t as BrepErrorCode } from "./errors-B3espUT6.js";
3
+ import { E as kernelCallRaw, T as kernelCall } from "./topologyQueryFns-CY6YiGsk.js";
4
+ import { n as HASH_CODE_MAX } from "./constants-iraOnb2p.js";
5
+ // src/topology/shapeFns.ts
6
6
  /**
7
7
  * Shape identity, introspection, and serialization functions.
8
8
  *
@@ -39,5 +39,4 @@ function isEqualShape(a, b) {
39
39
  function simplify(shape) {
40
40
  return kernelCall(() => getKernel().simplify(shape.wrapped), BrepErrorCode.SIMPLIFY_FAILED, "Failed to simplify shape");
41
41
  }
42
- //#endregion
43
42
  export { isSameShape as a, isEqualShape as i, getHashCode as n, simplify as o, isEmpty as r, toBREP as s, clone as t };
@@ -1,8 +1,8 @@
1
- const require_shapeTypes = require("./shapeTypes-DH2ShBU_.cjs");
2
- const require_errors = require("./errors-jwhfQJZK.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-q2bGyuEV.cjs");
4
- const require_constants = require("./constants-BOVyEYGH.cjs");
5
- //#region src/topology/shapeFns.ts
1
+ const require_shapeTypes = require("./shapeTypes-CkxvJRpq.cjs");
2
+ const require_errors = require("./errors-DoMAp7mQ.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-C6HwYYpi.cjs");
4
+ const require_constants = require("./constants-oee0S_x6.cjs");
5
+ // src/topology/shapeFns.ts
6
6
  /**
7
7
  * Shape identity, introspection, and serialization functions.
8
8
  *
@@ -39,7 +39,6 @@ function isEqualShape(a, b) {
39
39
  function simplify(shape) {
40
40
  return require_topologyQueryFns.kernelCall(() => require_shapeTypes.getKernel().simplify(shape.wrapped), require_errors.BrepErrorCode.SIMPLIFY_FAILED, "Failed to simplify shape");
41
41
  }
42
- //#endregion
43
42
  Object.defineProperty(exports, "clone", {
44
43
  enumerable: true,
45
44
  get: function() {
package/dist/shapeRef.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_refResolveFns = require("./refResolveFns-Ct52Uw7R.cjs");
2
+ const require_refResolveFns = require("./refResolveFns-fSzDZ1rx.cjs");
3
3
  exports.assignRoles = require_refResolveFns.assignRoles;
4
4
  exports.captureHint = require_refResolveFns.captureHint;
5
5
  exports.createDerivedFaceRef = require_refResolveFns.createDerivedFaceRef;
package/dist/shapeRef.js CHANGED
@@ -1,2 +1 @@
1
- import { _ as createRef, a as isVertexRef, b as defaultScorer, c as resolveRefParams, d as createVertexRef, f as resolveVertexRef, g as captureHint, h as assignRoles, i as isLineageRef, l as createDerivedFaceRef, m as resolveEdgeRef, n as isEdgeRef, o as resolveLineageRef, p as createEdgeRef, r as isFaceRef, s as resolveRefIn, t as isDerivedFaceRef, u as resolveDerivedFaceRef, v as resolveRef, y as updateRoles } from "./refResolveFns-CpVZoeOT.js";
2
- export { assignRoles, captureHint, createDerivedFaceRef, createEdgeRef, createRef, createVertexRef, defaultScorer, isDerivedFaceRef, isEdgeRef, isFaceRef, isLineageRef, isVertexRef, resolveDerivedFaceRef, resolveEdgeRef, resolveLineageRef, resolveRef, resolveRefIn, resolveRefParams, resolveVertexRef, updateRoles };
1
+ export { h as assignRoles, g as captureHint, l as createDerivedFaceRef, p as createEdgeRef, _ as createRef, d as createVertexRef, b as defaultScorer, t as isDerivedFaceRef, n as isEdgeRef, r as isFaceRef, i as isLineageRef, a as isVertexRef, u as resolveDerivedFaceRef, m as resolveEdgeRef, o as resolveLineageRef, v as resolveRef, s as resolveRefIn, c as resolveRefParams, f as resolveVertexRef, y as updateRoles } from "./refResolveFns-DUDJqfOM.js";