brepjs 9.3.8 → 9.3.10

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 (74) hide show
  1. package/dist/2d/blueprints/intersectionSegments.d.ts +6 -0
  2. package/dist/2d/blueprints/intersectionSegments.d.ts.map +1 -1
  3. package/dist/2d/lib/offset.d.ts.map +1 -1
  4. package/dist/2d.cjs +2 -2
  5. package/dist/2d.js +3 -3
  6. package/dist/{Blueprint-C_ny87tf.cjs → Blueprint-CYDtiBRw.cjs} +6 -6
  7. package/dist/{Blueprint-vLo9HuPx.js → Blueprint-DBFQJ5ME.js} +6 -6
  8. package/dist/{boolean2D-G9wVVewF.js → boolean2D-BDRf7DqS.js} +9 -9
  9. package/dist/{boolean2D-C_WtQSZM.cjs → boolean2D-FaadcaJX.cjs} +9 -9
  10. package/dist/{booleanFns-G0j8iAZV.cjs → booleanFns-DHFR4zO7.cjs} +4 -4
  11. package/dist/{booleanFns-gwskRu9F.js → booleanFns-GfGGPjuF.js} +4 -4
  12. package/dist/brepjs.cjs +80 -89
  13. package/dist/brepjs.js +125 -134
  14. package/dist/core/result.d.ts +14 -0
  15. package/dist/core/result.d.ts.map +1 -1
  16. package/dist/core.cjs +2 -2
  17. package/dist/core.js +2 -2
  18. package/dist/{cornerFinder-CrM1kbgV.js → cornerFinder-Bke7uLr6.js} +1 -1
  19. package/dist/{cornerFinder-56x6NzUP.cjs → cornerFinder-C1oci6gb.cjs} +1 -1
  20. package/dist/{curveFns-B7b2uHRl.js → curveFns-BteO-W-V.js} +1 -1
  21. package/dist/{curveFns-BsxQJoWM.cjs → curveFns-DOhZedkN.cjs} +1 -1
  22. package/dist/{drawFns-BIoGsiXr.cjs → drawFns-4kaeEGpt.cjs} +11 -11
  23. package/dist/{drawFns-BD92V6Nt.js → drawFns-D7fQtIj-.js} +11 -11
  24. package/dist/{errors-HU7EpHt3.cjs → errors-DiTn5EoC.cjs} +33 -0
  25. package/dist/{errors-C_XjfNt5.js → errors-lBwyc8YG.js} +34 -1
  26. package/dist/{faceFns-A6VJdsJc.cjs → faceFns-Cshr6Dql.cjs} +1 -1
  27. package/dist/{faceFns-DKAs23b7.js → faceFns-FViaMujJ.js} +1 -1
  28. package/dist/{helpers-C-dHgprx.cjs → helpers-aY6tdIRv.cjs} +4 -4
  29. package/dist/{helpers-BidbwB1g.js → helpers-j3ILUOP3.js} +4 -4
  30. package/dist/index.d.ts +2 -2
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/io.cjs +3 -3
  33. package/dist/io.js +3 -3
  34. package/dist/kernel/index.d.ts.map +1 -1
  35. package/dist/kernel/measureOps.d.ts +18 -0
  36. package/dist/kernel/measureOps.d.ts.map +1 -1
  37. package/dist/kernel/solverAdapter.d.ts +4 -1
  38. package/dist/kernel/solverAdapter.d.ts.map +1 -1
  39. package/dist/kernel/transformOps.d.ts +30 -0
  40. package/dist/kernel/transformOps.d.ts.map +1 -1
  41. package/dist/{loft-B0VRwdIS.cjs → loft-6RVa269J.cjs} +3 -3
  42. package/dist/{loft-BI8MUcCF.js → loft-CiXi_aga.js} +3 -3
  43. package/dist/{measurement-CyIBSu3o.js → measurement-BNrssBY_.js} +1 -1
  44. package/dist/{measurement-D5XQSvln.cjs → measurement-Crrs7ULW.cjs} +1 -1
  45. package/dist/measurement.cjs +1 -1
  46. package/dist/measurement.js +1 -1
  47. package/dist/{meshFns-BilAVkvY.js → meshFns-w1baxmAz.js} +2 -2
  48. package/dist/{meshFns-ClCp7nft.cjs → meshFns-xdRr7G4g.cjs} +2 -2
  49. package/dist/operations/historyFns.d.ts +10 -0
  50. package/dist/operations/historyFns.d.ts.map +1 -1
  51. package/dist/operations/mateFns.d.ts.map +1 -1
  52. package/dist/{operations-Bw3ZGLPJ.js → operations-CbE3WgWv.js} +64 -19
  53. package/dist/{operations-B1FSxszL.cjs → operations-Ds393Tne.cjs} +48 -3
  54. package/dist/operations.cjs +2 -2
  55. package/dist/operations.js +18 -18
  56. package/dist/query.cjs +3 -3
  57. package/dist/query.js +4 -4
  58. package/dist/result.cjs +1 -1
  59. package/dist/result.js +2 -2
  60. package/dist/{shapeFns-O9Ont1Dy.cjs → shapeFns-BvxOc2M_.cjs} +2 -2
  61. package/dist/{shapeFns-D9CKkCnS.js → shapeFns-DvwUGuOx.js} +2 -2
  62. package/dist/sketching.cjs +2 -2
  63. package/dist/sketching.js +2 -2
  64. package/dist/{surfaceBuilders-BX-btdhW.js → surfaceBuilders-C67Q29Gt.js} +2 -2
  65. package/dist/{surfaceBuilders-DwMD54OR.cjs → surfaceBuilders-mE9oGh7r.cjs} +2 -2
  66. package/dist/{topology-ChR-we6s.cjs → topology-DKWBbtZ3.cjs} +6 -6
  67. package/dist/{topology-DDO_RZ7P.js → topology-z4wgJE7T.js} +6 -6
  68. package/dist/topology.cjs +6 -6
  69. package/dist/topology.js +6 -6
  70. package/dist/{vectors-CpZfWX0T.js → vectors-B8RRTytu.js} +1 -1
  71. package/dist/{vectors-BwRTfFd1.cjs → vectors-DqQXtR8s.cjs} +1 -1
  72. package/dist/vectors.cjs +1 -1
  73. package/dist/vectors.js +1 -1
  74. package/package.json +2 -2
@@ -1,8 +1,10 @@
1
1
  import { q as getKernel, b as createKernelHandle, c as castShape, j as isShape3D, n as isWire, x as createSolid } from "./shapeTypes-d-jYnZuW.js";
2
2
  import { g as vecLength, v as vecAdd, j as vecNormalize, f as vecIsZero } from "./vecOps-ZDdZWbwT.js";
3
- import { e as err, x as validationError, u as unwrap, p as typeCastError, o as ok, B as BrepErrorCode, k as kernelError, i as ioError, b as computationError } from "./errors-C_XjfNt5.js";
4
- import { n as buildLawFromProfile } from "./loft-BI8MUcCF.js";
5
- import { j as fuseAll } from "./booleanFns-gwskRu9F.js";
3
+ import { e as err, x as validationError, u as unwrap, p as typeCastError, o as ok, B as BrepErrorCode, k as kernelError, i as ioError, b as computationError } from "./errors-lBwyc8YG.js";
4
+ import { n as buildLawFromProfile } from "./loft-CiXi_aga.js";
5
+ import { j as fuseAll } from "./booleanFns-GfGGPjuF.js";
6
+ import { q as toBREP } from "./shapeFns-DvwUGuOx.js";
7
+ import { j as fromBREP } from "./faceFns-FViaMujJ.js";
6
8
  function uuidv() {
7
9
  return (String([1e7]) + String(-1e3) + String(-4e3) + String(-8e3) + String(-1e11)).replace(
8
10
  /[018]/g,
@@ -458,12 +460,55 @@ function modifyStep(history, stepId, newParams, registry) {
458
460
  const modifiedHistory = { steps: modifiedSteps, shapes: history.shapes };
459
461
  return replayFrom(modifiedHistory, stepId, registry);
460
462
  }
463
+ function serializeHistory(history) {
464
+ const shapes = {};
465
+ for (const [id, shape] of history.shapes) {
466
+ try {
467
+ shapes[id] = toBREP(shape);
468
+ } catch (e) {
469
+ return err(
470
+ computationError(
471
+ "SERIALIZE_SHAPE_FAILED",
472
+ `Failed to serialize shape "${id}": ${e instanceof Error ? e.message : String(e)}`
473
+ )
474
+ );
475
+ }
476
+ }
477
+ return ok({ steps: history.steps, shapes });
478
+ }
479
+ function deserializeHistory(data) {
480
+ const shapes = /* @__PURE__ */ new Map();
481
+ for (const [id, brep] of Object.entries(data.shapes)) {
482
+ try {
483
+ const result = fromBREP(brep);
484
+ if (!result.ok) {
485
+ return err(
486
+ computationError(
487
+ "DESERIALIZE_SHAPE_FAILED",
488
+ `Failed to deserialize shape "${id}": ${result.error.message}`
489
+ )
490
+ );
491
+ }
492
+ shapes.set(id, result.value);
493
+ } catch (e) {
494
+ return err(
495
+ computationError(
496
+ "DESERIALIZE_SHAPE_FAILED",
497
+ `Failed to deserialize shape "${id}": ${e instanceof Error ? e.message : String(e)}`
498
+ )
499
+ );
500
+ }
501
+ }
502
+ return ok({ steps: data.steps, shapes });
503
+ }
461
504
  export {
462
- stepsFrom as A,
463
- supportExtrude as B,
464
- twistExtrude as C,
465
- undoLast as D,
466
- updateNode as E,
505
+ serializeHistory as A,
506
+ stepCount as B,
507
+ stepsFrom as C,
508
+ supportExtrude as D,
509
+ twistExtrude as E,
510
+ undoLast as F,
511
+ updateNode as G,
467
512
  addChild as a,
468
513
  addStep as b,
469
514
  circularPattern as c,
@@ -476,18 +521,18 @@ export {
476
521
  createHistory as j,
477
522
  createRegistry as k,
478
523
  linearPattern as l,
479
- exportAssemblySTEP as m,
480
- findNode as n,
481
- findStep as o,
482
- getShape as p,
483
- modifyStep as q,
524
+ deserializeHistory as m,
525
+ exportAssemblySTEP as n,
526
+ findNode as o,
527
+ findStep as p,
528
+ getShape as q,
484
529
  revolve as r,
485
530
  sweep as s,
486
- registerOperation as t,
487
- registerShape as u,
488
- removeChild as v,
531
+ modifyStep as t,
532
+ registerOperation as u,
533
+ registerShape as v,
489
534
  walkAssembly as w,
490
- replayFrom as x,
491
- replayHistory as y,
492
- stepCount as z
535
+ removeChild as x,
536
+ replayFrom as y,
537
+ replayHistory as z
493
538
  };
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
  const shapeTypes = require("./shapeTypes-CBhj5o2y.cjs");
3
3
  const vecOps = require("./vecOps-CjRL1jau.cjs");
4
- const errors = require("./errors-HU7EpHt3.cjs");
5
- const loft = require("./loft-B0VRwdIS.cjs");
6
- const booleanFns = require("./booleanFns-G0j8iAZV.cjs");
4
+ const errors = require("./errors-DiTn5EoC.cjs");
5
+ const loft = require("./loft-6RVa269J.cjs");
6
+ const booleanFns = require("./booleanFns-DHFR4zO7.cjs");
7
+ const shapeFns = require("./shapeFns-BvxOc2M_.cjs");
8
+ const faceFns = require("./faceFns-Cshr6Dql.cjs");
7
9
  function uuidv() {
8
10
  return (String([1e7]) + String(-1e3) + String(-4e3) + String(-8e3) + String(-1e11)).replace(
9
11
  /[018]/g,
@@ -459,6 +461,47 @@ function modifyStep(history, stepId, newParams, registry) {
459
461
  const modifiedHistory = { steps: modifiedSteps, shapes: history.shapes };
460
462
  return replayFrom(modifiedHistory, stepId, registry);
461
463
  }
464
+ function serializeHistory(history) {
465
+ const shapes = {};
466
+ for (const [id, shape] of history.shapes) {
467
+ try {
468
+ shapes[id] = shapeFns.toBREP(shape);
469
+ } catch (e) {
470
+ return errors.err(
471
+ errors.computationError(
472
+ "SERIALIZE_SHAPE_FAILED",
473
+ `Failed to serialize shape "${id}": ${e instanceof Error ? e.message : String(e)}`
474
+ )
475
+ );
476
+ }
477
+ }
478
+ return errors.ok({ steps: history.steps, shapes });
479
+ }
480
+ function deserializeHistory(data) {
481
+ const shapes = /* @__PURE__ */ new Map();
482
+ for (const [id, brep] of Object.entries(data.shapes)) {
483
+ try {
484
+ const result = faceFns.fromBREP(brep);
485
+ if (!result.ok) {
486
+ return errors.err(
487
+ errors.computationError(
488
+ "DESERIALIZE_SHAPE_FAILED",
489
+ `Failed to deserialize shape "${id}": ${result.error.message}`
490
+ )
491
+ );
492
+ }
493
+ shapes.set(id, result.value);
494
+ } catch (e) {
495
+ return errors.err(
496
+ errors.computationError(
497
+ "DESERIALIZE_SHAPE_FAILED",
498
+ `Failed to deserialize shape "${id}": ${e instanceof Error ? e.message : String(e)}`
499
+ )
500
+ );
501
+ }
502
+ }
503
+ return errors.ok({ steps: data.steps, shapes });
504
+ }
462
505
  exports.addChild = addChild;
463
506
  exports.addStep = addStep;
464
507
  exports.circularPattern = circularPattern;
@@ -469,6 +512,7 @@ exports.createAssembly = createAssembly;
469
512
  exports.createAssemblyNode = createAssemblyNode;
470
513
  exports.createHistory = createHistory;
471
514
  exports.createRegistry = createRegistry;
515
+ exports.deserializeHistory = deserializeHistory;
472
516
  exports.exportAssemblySTEP = exportAssemblySTEP;
473
517
  exports.extrude = extrude;
474
518
  exports.findNode = findNode;
@@ -482,6 +526,7 @@ exports.removeChild = removeChild;
482
526
  exports.replayFrom = replayFrom;
483
527
  exports.replayHistory = replayHistory;
484
528
  exports.revolve = revolve;
529
+ exports.serializeHistory = serializeHistory;
485
530
  exports.stepCount = stepCount;
486
531
  exports.stepsFrom = stepsFrom;
487
532
  exports.supportExtrude = supportExtrude;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const operations = require("./operations-B1FSxszL.cjs");
4
- const loft = require("./loft-B0VRwdIS.cjs");
3
+ const operations = require("./operations-Ds393Tne.cjs");
4
+ const loft = require("./loft-6RVa269J.cjs");
5
5
  exports.addChild = operations.addChild;
6
6
  exports.addStep = operations.addStep;
7
7
  exports.circularPattern = operations.circularPattern;
@@ -1,5 +1,5 @@
1
- import { a, b, c, d, f, g, h, i, j, k, m, n, o, p, l, q, t, u, v, x, y, z, A, B, s, C, D, E, w } from "./operations-Bw3ZGLPJ.js";
2
- import { b as b2, g as g2, l as l2, r } from "./loft-BI8MUcCF.js";
1
+ import { a, b, c, d, f, g, h, i, j, k, n, o, p, q, l, t, u, v, x, y, z, B, C, D, s, E, F, G, w } from "./operations-CbE3WgWv.js";
2
+ import { b as b2, g as g2, l as l2, r } from "./loft-CiXi_aga.js";
3
3
  export {
4
4
  a as addChild,
5
5
  b as addStep,
@@ -12,26 +12,26 @@ export {
12
12
  i as createAssemblyNode,
13
13
  j as createHistory,
14
14
  k as createRegistry,
15
- m as exportAssemblySTEP,
16
- n as findNode,
17
- o as findStep,
15
+ n as exportAssemblySTEP,
16
+ o as findNode,
17
+ p as findStep,
18
18
  g2 as genericSweep,
19
- p as getHistoryShape,
19
+ q as getHistoryShape,
20
20
  l as linearPattern,
21
21
  l2 as loft,
22
- q as modifyStep,
23
- t as registerOperation,
24
- u as registerShape,
25
- v as removeChild,
26
- x as replayFrom,
27
- y as replayHistory,
22
+ t as modifyStep,
23
+ u as registerOperation,
24
+ v as registerShape,
25
+ x as removeChild,
26
+ y as replayFrom,
27
+ z as replayHistory,
28
28
  r as revolution,
29
- z as stepCount,
30
- A as stepsFrom,
31
- B as supportExtrude,
29
+ B as stepCount,
30
+ C as stepsFrom,
31
+ D as supportExtrude,
32
32
  s as sweep,
33
- C as twistExtrude,
34
- D as undoLast,
35
- E as updateNode,
33
+ E as twistExtrude,
34
+ F as undoLast,
35
+ G as updateNode,
36
36
  w as walkAssembly
37
37
  };
package/dist/query.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const helpers = require("./helpers-C-dHgprx.cjs");
4
- const cornerFinder = require("./cornerFinder-56x6NzUP.cjs");
3
+ const helpers = require("./helpers-aY6tdIRv.cjs");
4
+ const cornerFinder = require("./cornerFinder-C1oci6gb.cjs");
5
5
  const shapeTypes = require("./shapeTypes-CBhj5o2y.cjs");
6
6
  const vecOps = require("./vecOps-CjRL1jau.cjs");
7
- const curveFns = require("./curveFns-BsxQJoWM.cjs");
7
+ const curveFns = require("./curveFns-DOhZedkN.cjs");
8
8
  function edgeDirectionFilter(dir, angle) {
9
9
  const d = vecOps.vecNormalize(helpers.resolveDir(dir));
10
10
  return (edge) => {
package/dist/query.js CHANGED
@@ -1,9 +1,9 @@
1
- import { l as createTypedFinder, o as distanceFromPointFilter, q as resolveDir } from "./helpers-BidbwB1g.js";
2
- import { m, g } from "./helpers-BidbwB1g.js";
3
- import { c } from "./cornerFinder-CrM1kbgV.js";
1
+ import { l as createTypedFinder, o as distanceFromPointFilter, q as resolveDir } from "./helpers-j3ILUOP3.js";
2
+ import { m, g } from "./helpers-j3ILUOP3.js";
3
+ import { c } from "./cornerFinder-Bke7uLr6.js";
4
4
  import { q as getKernel } from "./shapeTypes-d-jYnZuW.js";
5
5
  import { j as vecNormalize, d as vecDot, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
6
- import { b as getCurveType, i as curveLength } from "./curveFns-B7b2uHRl.js";
6
+ import { b as getCurveType, i as curveLength } from "./curveFns-BteO-W-V.js";
7
7
  function edgeDirectionFilter(dir, angle) {
8
8
  const d = vecNormalize(resolveDir(dir));
9
9
  return (edge) => {
package/dist/result.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const errors = require("./errors-HU7EpHt3.cjs");
3
+ const errors = require("./errors-DiTn5EoC.cjs");
4
4
  class BrepBugError extends Error {
5
5
  location;
6
6
  constructor(location, message) {
package/dist/result.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B, O, a, c, b, e, f, i, d, g, k, m, h, j, l, o, z, q, s, t, n, p, u, r, v, w, x } from "./errors-C_XjfNt5.js";
1
+ import { B, O, a, c, b, e, f, i, d, g, k, m, h, j, l, o, E, q, s, t, n, p, u, r, v, w, x } from "./errors-lBwyc8YG.js";
2
2
  class BrepBugError extends Error {
3
3
  location;
4
4
  constructor(location, message) {
@@ -29,7 +29,7 @@ export {
29
29
  j as match,
30
30
  l as moduleInitError,
31
31
  o as ok,
32
- z as pipeline,
32
+ E as pipeline,
33
33
  q as queryError,
34
34
  s as sketcherStateError,
35
35
  t as tryCatch,
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  const shapeTypes = require("./shapeTypes-CBhj5o2y.cjs");
3
3
  const vecOps = require("./vecOps-CjRL1jau.cjs");
4
- const faceFns = require("./faceFns-A6VJdsJc.cjs");
5
- const errors = require("./errors-HU7EpHt3.cjs");
4
+ const faceFns = require("./faceFns-Cshr6Dql.cjs");
5
+ const errors = require("./errors-DiTn5EoC.cjs");
6
6
  function clone(shape) {
7
7
  return shapeTypes.castShape(errors.unwrap(faceFns.downcast(shape.wrapped)));
8
8
  }
@@ -1,7 +1,7 @@
1
1
  import { q as getKernel, c as castShape, g as getShapeKind } from "./shapeTypes-d-jYnZuW.js";
2
2
  import { H as HASH_CODE_MAX, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
3
- import { i as iterTopo, d as downcast } from "./faceFns-DKAs23b7.js";
4
- import { u as unwrap } from "./errors-C_XjfNt5.js";
3
+ import { i as iterTopo, d as downcast } from "./faceFns-FViaMujJ.js";
4
+ import { u as unwrap } from "./errors-lBwyc8YG.js";
5
5
  function clone(shape) {
6
6
  return castShape(unwrap(downcast(shape.wrapped)));
7
7
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const drawFns = require("./drawFns-BIoGsiXr.cjs");
4
- const boolean2D = require("./boolean2D-C_WtQSZM.cjs");
3
+ const drawFns = require("./drawFns-4kaeEGpt.cjs");
4
+ const boolean2D = require("./boolean2D-FaadcaJX.cjs");
5
5
  exports.CompoundSketch = drawFns.CompoundSketch;
6
6
  exports.Drawing = drawFns.Drawing;
7
7
  exports.DrawingPen = drawFns.DrawingPen;
package/dist/sketching.js CHANGED
@@ -1,5 +1,5 @@
1
- import { C, D, a, S, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W } from "./drawFns-BD92V6Nt.js";
2
- import { B as B2, a as a2, F as F2, S as S2 } from "./boolean2D-G9wVVewF.js";
1
+ import { C, D, a, S, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W } from "./drawFns-D7fQtIj-.js";
2
+ import { B as B2, a as a2, F as F2, S as S2 } from "./boolean2D-BDRf7DqS.js";
3
3
  export {
4
4
  B2 as BaseSketcher2d,
5
5
  a2 as BlueprintSketcher,
@@ -1,6 +1,6 @@
1
1
  import { r as createWire, q as getKernel, s as createEdge, t as createFace, e as isFace } from "./shapeTypes-d-jYnZuW.js";
2
- import { o as ok, e as err, k as kernelError, x as validationError, a as andThen } from "./errors-C_XjfNt5.js";
3
- import { o as outerWire, c as cast } from "./faceFns-DKAs23b7.js";
2
+ import { o as ok, e as err, k as kernelError, x as validationError, a as andThen } from "./errors-lBwyc8YG.js";
3
+ import { o as outerWire, c as cast } from "./faceFns-FViaMujJ.js";
4
4
  function range(len) {
5
5
  return Array.from(Array(len).keys());
6
6
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const shapeTypes = require("./shapeTypes-CBhj5o2y.cjs");
3
- const errors = require("./errors-HU7EpHt3.cjs");
4
- const faceFns = require("./faceFns-A6VJdsJc.cjs");
3
+ const errors = require("./errors-DiTn5EoC.cjs");
4
+ const faceFns = require("./faceFns-Cshr6Dql.cjs");
5
5
  function range(len) {
6
6
  return Array.from(Array(len).keys());
7
7
  }
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
- const shapeFns = require("./shapeFns-O9Ont1Dy.cjs");
3
- require("./booleanFns-G0j8iAZV.cjs");
2
+ const shapeFns = require("./shapeFns-BvxOc2M_.cjs");
3
+ require("./booleanFns-DHFR4zO7.cjs");
4
4
  const shapeTypes = require("./shapeTypes-CBhj5o2y.cjs");
5
- const faceFns = require("./faceFns-A6VJdsJc.cjs");
6
- const errors = require("./errors-HU7EpHt3.cjs");
7
- require("./curveFns-BsxQJoWM.cjs");
5
+ const faceFns = require("./faceFns-Cshr6Dql.cjs");
6
+ const errors = require("./errors-DiTn5EoC.cjs");
7
+ require("./curveFns-DOhZedkN.cjs");
8
8
  const vecOps = require("./vecOps-CjRL1jau.cjs");
9
- require("./meshFns-ClCp7nft.cjs");
9
+ require("./meshFns-xdRr7G4g.cjs");
10
10
  function toBufferGeometryData(mesh) {
11
11
  return {
12
12
  position: mesh.vertices,
@@ -1,11 +1,11 @@
1
- import { c as getWires, a as getFaces } from "./shapeFns-D9CKkCnS.js";
2
- import "./booleanFns-gwskRu9F.js";
1
+ import { c as getWires, a as getFaces } from "./shapeFns-DvwUGuOx.js";
2
+ import "./booleanFns-GfGGPjuF.js";
3
3
  import { q as getKernel, c as castShape, j as isShape3D, l as isSolid, e as isFace, n as isWire } from "./shapeTypes-d-jYnZuW.js";
4
- import { d as downcast } from "./faceFns-DKAs23b7.js";
5
- import { e as err, x as validationError, k as kernelError, d as isErr, p as typeCastError, o as ok, u as unwrap, g as isOk, B as BrepErrorCode } from "./errors-C_XjfNt5.js";
6
- import "./curveFns-B7b2uHRl.js";
4
+ import { d as downcast } from "./faceFns-FViaMujJ.js";
5
+ import { e as err, x as validationError, k as kernelError, d as isErr, p as typeCastError, o as ok, u as unwrap, g as isOk, B as BrepErrorCode } from "./errors-lBwyc8YG.js";
6
+ import "./curveFns-BteO-W-V.js";
7
7
  import { H as HASH_CODE_MAX } from "./vecOps-ZDdZWbwT.js";
8
- import "./meshFns-BilAVkvY.js";
8
+ import "./meshFns-w1baxmAz.js";
9
9
  function toBufferGeometryData(mesh) {
10
10
  return {
11
11
  position: mesh.vertices,
package/dist/topology.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const shapeFns = require("./shapeFns-O9Ont1Dy.cjs");
4
- const booleanFns = require("./booleanFns-G0j8iAZV.cjs");
5
- const topology = require("./topology-ChR-we6s.cjs");
6
- const curveFns = require("./curveFns-BsxQJoWM.cjs");
7
- const faceFns = require("./faceFns-A6VJdsJc.cjs");
8
- const meshFns = require("./meshFns-ClCp7nft.cjs");
3
+ const shapeFns = require("./shapeFns-BvxOc2M_.cjs");
4
+ const booleanFns = require("./booleanFns-DHFR4zO7.cjs");
5
+ const topology = require("./topology-DKWBbtZ3.cjs");
6
+ const curveFns = require("./curveFns-DOhZedkN.cjs");
7
+ const faceFns = require("./faceFns-Cshr6Dql.cjs");
8
+ const meshFns = require("./meshFns-xdRr7G4g.cjs");
9
9
  exports.getBounds = shapeFns.getBounds;
10
10
  exports.getEdges = shapeFns.getEdges;
11
11
  exports.getFaces = shapeFns.getFaces;
package/dist/topology.js CHANGED
@@ -1,9 +1,9 @@
1
- import { h, d, a, f, e, c, x, i, y, z, A, B, v } from "./shapeFns-D9CKkCnS.js";
2
- import { k, j } from "./booleanFns-gwskRu9F.js";
3
- import { a as a2, b, c as c2, e as e2, f as f2, d as d2, g, j as j2, s, t, k as k2, l, v as v2, w } from "./topology-DDO_RZ7P.js";
4
- import { j as j3, a as a3, e as e3, k as k3, i as i2, l as l2, h as h2, d as d3, c as c3, f as f3, b as b2, g as g2, m, o } from "./curveFns-B7b2uHRl.js";
5
- import { l as l3, c as c4, m as m2, j as j4, d as d4, e as e4, f as f4, q, r, g as g3, k as k4, s as s2, i as i3, n, o as o2, p, t as t2, v as v3, u, h as h3 } from "./faceFns-DKAs23b7.js";
6
- import { c as c5, b as b3, e as e5, d as d5, f as f5 } from "./meshFns-BilAVkvY.js";
1
+ import { h, d, a, f, e, c, x, i, y, z, A, B, v } from "./shapeFns-DvwUGuOx.js";
2
+ import { k, j } from "./booleanFns-GfGGPjuF.js";
3
+ import { a as a2, b, c as c2, e as e2, f as f2, d as d2, g, j as j2, s, t, k as k2, l, v as v2, w } from "./topology-z4wgJE7T.js";
4
+ import { j as j3, a as a3, e as e3, k as k3, i as i2, l as l2, h as h2, d as d3, c as c3, f as f3, b as b2, g as g2, m, o } from "./curveFns-BteO-W-V.js";
5
+ import { l as l3, c as c4, m as m2, j as j4, d as d4, e as e4, f as f4, q, r, g as g3, k as k4, s as s2, i as i3, n, o as o2, p, t as t2, v as v3, u, h as h3 } from "./faceFns-FViaMujJ.js";
6
+ import { c as c5, b as b3, e as e5, d as d5, f as f5 } from "./meshFns-w1baxmAz.js";
7
7
  export {
8
8
  a2 as adjacentFaces,
9
9
  j3 as approximateCurve,
@@ -1,6 +1,6 @@
1
1
  import { a as toVec3 } from "./types-CWDdqcrq.js";
2
2
  import { j as vecNormalize, f as vecIsZero, b as vecCross, v as vecAdd, n as vecScale, o as vecSub, d as vecDot, m as vecRotate, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
3
- import { e as err, x as validationError, o as ok } from "./errors-C_XjfNt5.js";
3
+ import { e as err, x as validationError, o as ok } from "./errors-lBwyc8YG.js";
4
4
  function createPlane(origin, xDirection = null, normal = [0, 0, 1]) {
5
5
  const zDir = vecNormalize(normal);
6
6
  if (vecIsZero(zDir)) throw new Error("Plane normal must be non-zero");
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const types = require("./types-CA_xrgDq.cjs");
3
3
  const vecOps = require("./vecOps-CjRL1jau.cjs");
4
- const errors = require("./errors-HU7EpHt3.cjs");
4
+ const errors = require("./errors-DiTn5EoC.cjs");
5
5
  function createPlane(origin, xDirection = null, normal = [0, 0, 1]) {
6
6
  const zDir = vecOps.vecNormalize(normal);
7
7
  if (vecOps.vecIsZero(zDir)) throw new Error("Plane normal must be non-zero");
package/dist/vectors.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const types = require("./types-CA_xrgDq.cjs");
4
4
  const vecOps = require("./vecOps-CjRL1jau.cjs");
5
- const vectors = require("./vectors-BwRTfFd1.cjs");
5
+ const vectors = require("./vectors-DqQXtR8s.cjs");
6
6
  exports.resolveDirection = types.resolveDirection;
7
7
  exports.toVec2 = types.toVec2;
8
8
  exports.toVec3 = types.toVec3;
package/dist/vectors.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { r, t, a } from "./types-CWDdqcrq.js";
2
2
  import { D, R, v, a as a2, b, c, d, e, f, g, h, i, j, k, l, m, n, o } from "./vecOps-ZDdZWbwT.js";
3
- import { c as c2, a as a3, p, r as r2, t as t2 } from "./vectors-CpZfWX0T.js";
3
+ import { c as c2, a as a3, p, r as r2, t as t2 } from "./vectors-B8RRTytu.js";
4
4
  export {
5
5
  D as DEG2RAD,
6
6
  R as RAD2DEG,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brepjs",
3
- "version": "9.3.8",
3
+ "version": "9.3.10",
4
4
  "description": "Web CAD library with pluggable geometry kernel",
5
5
  "keywords": [
6
6
  "cad",
@@ -210,7 +210,7 @@
210
210
  "vitest": "4.0.18"
211
211
  },
212
212
  "peerDependencies": {
213
- "brepjs-opencascade": "^0.5.1 || ^0.6.0 || ^0.7.0 || ^0.8.0"
213
+ "brepjs-opencascade": "^0.5.1 || ^0.6.0 || ^0.7.0 || ^0.8.0 || ^0.9.0"
214
214
  },
215
215
  "peerDependenciesMeta": {
216
216
  "brepjs-opencascade": {