brepjs 12.3.0 → 12.5.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 (65) hide show
  1. package/README.md +82 -259
  2. package/dist/2d/blueprints/Blueprint.d.ts +1 -1
  3. package/dist/2d/blueprints/Blueprint.d.ts.map +1 -1
  4. package/dist/2d.cjs +2 -2
  5. package/dist/2d.js +3 -3
  6. package/dist/{Blueprint-Bh6166KA.cjs → Blueprint-CoFJDAQd.cjs} +6 -6
  7. package/dist/{Blueprint-BBLKmtl9.js → Blueprint-CtuUvzex.js} +6 -6
  8. package/dist/{boolean2D-Bl4iyJfa.cjs → boolean2D-Dk-vLBdl.cjs} +8 -8
  9. package/dist/{boolean2D-D2s-G0Wm.js → boolean2D-x2irapGj.js} +8 -8
  10. package/dist/{booleanFns-DdbAk1KC.cjs → booleanFns-BJjYqwJ5.cjs} +3 -3
  11. package/dist/{booleanFns-CKWVFBtF.js → booleanFns-DtOkwLHI.js} +3 -3
  12. package/dist/brepjs.cjs +218 -17
  13. package/dist/brepjs.js +229 -28
  14. package/dist/core.cjs +1 -1
  15. package/dist/core.js +1 -1
  16. package/dist/{cornerFinder-zd2oBgyp.cjs → cornerFinder-BESZIitp.cjs} +2 -2
  17. package/dist/{cornerFinder-C-o3TN3q.js → cornerFinder-FY38t0zq.js} +2 -2
  18. package/dist/{curveFns-p0x8jy0i.cjs → curveFns-Ch87sD5O.cjs} +1 -1
  19. package/dist/{curveFns-DyVPTb1r.js → curveFns-LRNGcHXh.js} +1 -1
  20. package/dist/{drawFns-DXwZzno9.cjs → drawFns-BEeoD1yO.cjs} +16 -16
  21. package/dist/{drawFns-DpAQM_F6.js → drawFns-D8QyY7cg.js} +16 -16
  22. package/dist/{faceFns-CvR-ZEQA.js → faceFns-B6ebRh5I.js} +1 -1
  23. package/dist/{faceFns-SVADeb01.cjs → faceFns-BLTEPBKq.cjs} +1 -1
  24. package/dist/{helpers-3fsqd4mW.cjs → helpers-DNzVfe-Z.cjs} +4 -4
  25. package/dist/{helpers-F_D1WON3.js → helpers-DeFPsrcI.js} +4 -4
  26. package/dist/io.cjs +3 -3
  27. package/dist/io.js +3 -3
  28. package/dist/kernel/brepkitAdapter.d.ts +30 -0
  29. package/dist/kernel/brepkitAdapter.d.ts.map +1 -1
  30. package/dist/kernel/brepkitWasmTypes.d.ts +2 -2
  31. package/dist/kernel/brepkitWasmTypes.d.ts.map +1 -1
  32. package/dist/kernel/defaultAdapter.d.ts +34 -0
  33. package/dist/kernel/defaultAdapter.d.ts.map +1 -1
  34. package/dist/kernel/types.d.ts +68 -0
  35. package/dist/kernel/types.d.ts.map +1 -1
  36. package/dist/{loft-98s9uwpg.cjs → loft-DR1UN5uN.cjs} +4 -4
  37. package/dist/{loft-BvZFfPqO.js → loft-DsVv4yxU.js} +4 -4
  38. package/dist/{measurement-g8ldN7oe.cjs → measurement-DoYXRaKI.cjs} +2 -2
  39. package/dist/{measurement-vbHd9lpV.js → measurement-oWvhSVZG.js} +2 -2
  40. package/dist/measurement.cjs +1 -1
  41. package/dist/measurement.js +1 -1
  42. package/dist/{meshFns-CF-JdX5P.cjs → meshFns-BU2l_yOm.cjs} +2 -2
  43. package/dist/{meshFns-RN83Wiry.js → meshFns-HNwWuM4v.js} +2 -2
  44. package/dist/{operations-CrLZ6fyL.cjs → operations-D-gTZNtM.cjs} +6 -6
  45. package/dist/{operations-CxvdnWzU.js → operations-D_3rrfrE.js} +6 -6
  46. package/dist/operations.cjs +2 -2
  47. package/dist/operations.js +2 -2
  48. package/dist/query.cjs +4 -4
  49. package/dist/query.js +5 -5
  50. package/dist/{shapeFns-38GljA_p.js → shapeFns-CbXxLvV_.js} +2 -2
  51. package/dist/{shapeFns-BoN5g5Bx.cjs → shapeFns-DHlLNHTn.cjs} +2 -2
  52. package/dist/{shapeTypes-DTGA0liC.cjs → shapeTypes-7xEam9Ri.cjs} +103 -0
  53. package/dist/{shapeTypes-5DPsHB8i.js → shapeTypes-CpSaBLDv.js} +103 -0
  54. package/dist/sketching.cjs +2 -2
  55. package/dist/sketching.js +2 -2
  56. package/dist/{solidBuilders-BWkneWjU.js → solidBuilders-BXhh5hP2.js} +2 -2
  57. package/dist/{solidBuilders-CUc2rvWv.cjs → solidBuilders-BzfRBizW.cjs} +2 -2
  58. package/dist/{surfaceBuilders-tYoe8sri.cjs → surfaceBuilders-Be_ENWSA.cjs} +2 -2
  59. package/dist/{surfaceBuilders-CXbEDGBQ.js → surfaceBuilders-D7ZH2QNS.js} +2 -2
  60. package/dist/topology/adjacencyFns.d.ts.map +1 -1
  61. package/dist/{topology-CH4LBfQg.cjs → topology-BHnY7Szr.cjs} +8 -8
  62. package/dist/{topology-Bq7mZh3W.js → topology-C1eZ86dI.js} +8 -8
  63. package/dist/topology.cjs +6 -6
  64. package/dist/topology.js +6 -6
  65. package/package.json +5 -7
@@ -4825,6 +4825,109 @@ class DefaultAdapter {
4825
4825
  z.delete();
4826
4826
  return ax;
4827
4827
  }
4828
+ // --- Unsupported brepkit-only methods ---
4829
+ export3MF(_shape, _tolerance) {
4830
+ throw new Error("export3MF is only available with the brepkit kernel");
4831
+ }
4832
+ exportGLB(_shape, _tolerance) {
4833
+ throw new Error("exportGLB is only available with the brepkit kernel");
4834
+ }
4835
+ exportOBJ(_shape, _tolerance) {
4836
+ throw new Error("exportOBJ is only available with the brepkit kernel");
4837
+ }
4838
+ exportPLY(_shape, _tolerance) {
4839
+ throw new Error("exportPLY is only available with the brepkit kernel");
4840
+ }
4841
+ import3MF(_data) {
4842
+ throw new Error("import3MF is only available with the brepkit kernel");
4843
+ }
4844
+ importOBJ(_data) {
4845
+ throw new Error("importOBJ is only available with the brepkit kernel");
4846
+ }
4847
+ importGLB(_data) {
4848
+ throw new Error("importGLB is only available with the brepkit kernel");
4849
+ }
4850
+ filletVariable(_shape, _spec) {
4851
+ throw new Error("filletVariable is only available with the brepkit kernel");
4852
+ }
4853
+ helicalSweep(_profile, _axisOrigin, _axisDirection, _radius, _pitch, _turns) {
4854
+ throw new Error("helicalSweep is only available with the brepkit kernel");
4855
+ }
4856
+ sweepWithOptions(_profile, _pathEdge, _contactMode, _scaleValues, _segments) {
4857
+ throw new Error("sweepWithOptions is only available with the brepkit kernel");
4858
+ }
4859
+ draft(_shape, _faces, _pullDirection, _neutralPlane, _angleDeg) {
4860
+ throw new Error("draft is only available with the brepkit kernel");
4861
+ }
4862
+ defeature(_shape, _faces) {
4863
+ throw new Error("defeature is only available with the brepkit kernel");
4864
+ }
4865
+ detectSmallFeatures(_shape, _areaThreshold, _tolerance) {
4866
+ throw new Error("detectSmallFeatures is only available with the brepkit kernel");
4867
+ }
4868
+ recognizeFeatures(_shape, _tolerance) {
4869
+ throw new Error("recognizeFeatures is only available with the brepkit kernel");
4870
+ }
4871
+ meshBoolean(_positionsA, _indicesA, _positionsB, _indicesB, _op, _tolerance) {
4872
+ throw new Error("meshBoolean is only available with the brepkit kernel");
4873
+ }
4874
+ edgeToFaceMap(_shape) {
4875
+ throw new Error("edgeToFaceMap is only available with the brepkit kernel");
4876
+ }
4877
+ sharedEdges(_faceA, _faceB) {
4878
+ throw new Error("sharedEdges is only available with the brepkit kernel");
4879
+ }
4880
+ adjacentFaces(_shape, _face) {
4881
+ throw new Error("adjacentFaces is only available with the brepkit kernel");
4882
+ }
4883
+ curveDegreeElevate(_edge, _elevateBy) {
4884
+ throw new Error("curveDegreeElevate is only available with the brepkit kernel");
4885
+ }
4886
+ curveKnotInsert(_edge, _knot, _times) {
4887
+ throw new Error("curveKnotInsert is only available with the brepkit kernel");
4888
+ }
4889
+ curveKnotRemove(_edge, _knot, _tolerance) {
4890
+ throw new Error("curveKnotRemove is only available with the brepkit kernel");
4891
+ }
4892
+ curveSplit(_edge, _param) {
4893
+ throw new Error("curveSplit is only available with the brepkit kernel");
4894
+ }
4895
+ approximateSurfaceLspia(_coords, _rows, _cols, _degreeU, _degreeV, _numCpsU, _numCpsV, _tolerance, _maxIterations) {
4896
+ throw new Error("approximateSurfaceLspia is only available with the brepkit kernel");
4897
+ }
4898
+ untrimFace(_face, _samplesPerCurve, _interiorSamples) {
4899
+ throw new Error("untrimFace is only available with the brepkit kernel");
4900
+ }
4901
+ mergeCoincidentVertices(_shape, _tolerance) {
4902
+ throw new Error("mergeCoincidentVertices is only available with the brepkit kernel");
4903
+ }
4904
+ removeDegenerateEdges(_shape, _tolerance) {
4905
+ throw new Error("removeDegenerateEdges is only available with the brepkit kernel");
4906
+ }
4907
+ fixFaceOrientations(_shape) {
4908
+ throw new Error("fixFaceOrientations is only available with the brepkit kernel");
4909
+ }
4910
+ classifyPointRobust(_shape, _point, _tolerance) {
4911
+ throw new Error("classifyPointRobust is only available with the brepkit kernel");
4912
+ }
4913
+ classifyPointWinding(_shape, _point, _tolerance) {
4914
+ throw new Error("classifyPointWinding is only available with the brepkit kernel");
4915
+ }
4916
+ executeBatch(_json) {
4917
+ throw new Error("executeBatch is only available with the brepkit kernel");
4918
+ }
4919
+ checkpoint() {
4920
+ throw new Error("checkpoint is only available with the brepkit kernel");
4921
+ }
4922
+ checkpointCount() {
4923
+ throw new Error("checkpointCount is only available with the brepkit kernel");
4924
+ }
4925
+ restoreCheckpoint(_cp) {
4926
+ throw new Error("restoreCheckpoint is only available with the brepkit kernel");
4927
+ }
4928
+ discardCheckpoint(_cp) {
4929
+ throw new Error("discardCheckpoint is only available with the brepkit kernel");
4930
+ }
4828
4931
  // --- Dispose ---
4829
4932
  dispose(handle) {
4830
4933
  dispose(this.oc, handle);
@@ -4824,6 +4824,109 @@ class DefaultAdapter {
4824
4824
  z.delete();
4825
4825
  return ax;
4826
4826
  }
4827
+ // --- Unsupported brepkit-only methods ---
4828
+ export3MF(_shape, _tolerance) {
4829
+ throw new Error("export3MF is only available with the brepkit kernel");
4830
+ }
4831
+ exportGLB(_shape, _tolerance) {
4832
+ throw new Error("exportGLB is only available with the brepkit kernel");
4833
+ }
4834
+ exportOBJ(_shape, _tolerance) {
4835
+ throw new Error("exportOBJ is only available with the brepkit kernel");
4836
+ }
4837
+ exportPLY(_shape, _tolerance) {
4838
+ throw new Error("exportPLY is only available with the brepkit kernel");
4839
+ }
4840
+ import3MF(_data) {
4841
+ throw new Error("import3MF is only available with the brepkit kernel");
4842
+ }
4843
+ importOBJ(_data) {
4844
+ throw new Error("importOBJ is only available with the brepkit kernel");
4845
+ }
4846
+ importGLB(_data) {
4847
+ throw new Error("importGLB is only available with the brepkit kernel");
4848
+ }
4849
+ filletVariable(_shape, _spec) {
4850
+ throw new Error("filletVariable is only available with the brepkit kernel");
4851
+ }
4852
+ helicalSweep(_profile, _axisOrigin, _axisDirection, _radius, _pitch, _turns) {
4853
+ throw new Error("helicalSweep is only available with the brepkit kernel");
4854
+ }
4855
+ sweepWithOptions(_profile, _pathEdge, _contactMode, _scaleValues, _segments) {
4856
+ throw new Error("sweepWithOptions is only available with the brepkit kernel");
4857
+ }
4858
+ draft(_shape, _faces, _pullDirection, _neutralPlane, _angleDeg) {
4859
+ throw new Error("draft is only available with the brepkit kernel");
4860
+ }
4861
+ defeature(_shape, _faces) {
4862
+ throw new Error("defeature is only available with the brepkit kernel");
4863
+ }
4864
+ detectSmallFeatures(_shape, _areaThreshold, _tolerance) {
4865
+ throw new Error("detectSmallFeatures is only available with the brepkit kernel");
4866
+ }
4867
+ recognizeFeatures(_shape, _tolerance) {
4868
+ throw new Error("recognizeFeatures is only available with the brepkit kernel");
4869
+ }
4870
+ meshBoolean(_positionsA, _indicesA, _positionsB, _indicesB, _op, _tolerance) {
4871
+ throw new Error("meshBoolean is only available with the brepkit kernel");
4872
+ }
4873
+ edgeToFaceMap(_shape) {
4874
+ throw new Error("edgeToFaceMap is only available with the brepkit kernel");
4875
+ }
4876
+ sharedEdges(_faceA, _faceB) {
4877
+ throw new Error("sharedEdges is only available with the brepkit kernel");
4878
+ }
4879
+ adjacentFaces(_shape, _face) {
4880
+ throw new Error("adjacentFaces is only available with the brepkit kernel");
4881
+ }
4882
+ curveDegreeElevate(_edge, _elevateBy) {
4883
+ throw new Error("curveDegreeElevate is only available with the brepkit kernel");
4884
+ }
4885
+ curveKnotInsert(_edge, _knot, _times) {
4886
+ throw new Error("curveKnotInsert is only available with the brepkit kernel");
4887
+ }
4888
+ curveKnotRemove(_edge, _knot, _tolerance) {
4889
+ throw new Error("curveKnotRemove is only available with the brepkit kernel");
4890
+ }
4891
+ curveSplit(_edge, _param) {
4892
+ throw new Error("curveSplit is only available with the brepkit kernel");
4893
+ }
4894
+ approximateSurfaceLspia(_coords, _rows, _cols, _degreeU, _degreeV, _numCpsU, _numCpsV, _tolerance, _maxIterations) {
4895
+ throw new Error("approximateSurfaceLspia is only available with the brepkit kernel");
4896
+ }
4897
+ untrimFace(_face, _samplesPerCurve, _interiorSamples) {
4898
+ throw new Error("untrimFace is only available with the brepkit kernel");
4899
+ }
4900
+ mergeCoincidentVertices(_shape, _tolerance) {
4901
+ throw new Error("mergeCoincidentVertices is only available with the brepkit kernel");
4902
+ }
4903
+ removeDegenerateEdges(_shape, _tolerance) {
4904
+ throw new Error("removeDegenerateEdges is only available with the brepkit kernel");
4905
+ }
4906
+ fixFaceOrientations(_shape) {
4907
+ throw new Error("fixFaceOrientations is only available with the brepkit kernel");
4908
+ }
4909
+ classifyPointRobust(_shape, _point, _tolerance) {
4910
+ throw new Error("classifyPointRobust is only available with the brepkit kernel");
4911
+ }
4912
+ classifyPointWinding(_shape, _point, _tolerance) {
4913
+ throw new Error("classifyPointWinding is only available with the brepkit kernel");
4914
+ }
4915
+ executeBatch(_json) {
4916
+ throw new Error("executeBatch is only available with the brepkit kernel");
4917
+ }
4918
+ checkpoint() {
4919
+ throw new Error("checkpoint is only available with the brepkit kernel");
4920
+ }
4921
+ checkpointCount() {
4922
+ throw new Error("checkpointCount is only available with the brepkit kernel");
4923
+ }
4924
+ restoreCheckpoint(_cp) {
4925
+ throw new Error("restoreCheckpoint is only available with the brepkit kernel");
4926
+ }
4927
+ discardCheckpoint(_cp) {
4928
+ throw new Error("discardCheckpoint is only available with the brepkit kernel");
4929
+ }
4827
4930
  // --- Dispose ---
4828
4931
  dispose(handle) {
4829
4932
  dispose(this.oc, handle);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const drawFns = require("./drawFns-DXwZzno9.cjs");
4
- const boolean2D = require("./boolean2D-Bl4iyJfa.cjs");
3
+ const drawFns = require("./drawFns-BEeoD1yO.cjs");
4
+ const boolean2D = require("./boolean2D-Dk-vLBdl.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-DpAQM_F6.js";
2
- import { B as B2, a as a2, F as F2, S as S2 } from "./boolean2D-D2s-G0Wm.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-D8QyY7cg.js";
2
+ import { B as B2, a as a2, F as F2, S as S2 } from "./boolean2D-x2irapGj.js";
3
3
  export {
4
4
  B2 as BaseSketcher2d,
5
5
  a2 as BlueprintSketcher,
@@ -1,6 +1,6 @@
1
- import { B as getKernel, q as isShell, C as createCompound, E as createVertex, F as createSolid, p as isShape3D, r as isSolid } from "./shapeTypes-5DPsHB8i.js";
1
+ import { B as getKernel, q as isShell, C as createCompound, E as createVertex, F as createSolid, p as isShape3D, r as isSolid } from "./shapeTypes-CpSaBLDv.js";
2
2
  import { r as unwrap, e as err, p as typeCastError, o as ok, a as andThen } from "./errors-B7kgv0cd.js";
3
- import { c as cast, d as downcast } from "./faceFns-CvR-ZEQA.js";
3
+ import { c as cast, d as downcast } from "./faceFns-B6ebRh5I.js";
4
4
  function weldShapes(facesOrShells) {
5
5
  const sewn = getKernel().sew(facesOrShells.map((s) => s.wrapped));
6
6
  return unwrap(cast(unwrap(downcast(sewn))));
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
- const shapeTypes = require("./shapeTypes-DTGA0liC.cjs");
2
+ const shapeTypes = require("./shapeTypes-7xEam9Ri.cjs");
3
3
  const errors = require("./errors-9fDehDNc.cjs");
4
- const faceFns = require("./faceFns-SVADeb01.cjs");
4
+ const faceFns = require("./faceFns-BLTEPBKq.cjs");
5
5
  function weldShapes(facesOrShells) {
6
6
  const sewn = shapeTypes.getKernel().sew(facesOrShells.map((s) => s.wrapped));
7
7
  return errors.unwrap(faceFns.cast(errors.unwrap(faceFns.downcast(sewn))));
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
- const shapeTypes = require("./shapeTypes-DTGA0liC.cjs");
2
+ const shapeTypes = require("./shapeTypes-7xEam9Ri.cjs");
3
3
  const errors = require("./errors-9fDehDNc.cjs");
4
- const faceFns = require("./faceFns-SVADeb01.cjs");
4
+ const faceFns = require("./faceFns-BLTEPBKq.cjs");
5
5
  function range(len) {
6
6
  return Array.from(Array(len).keys());
7
7
  }
@@ -1,6 +1,6 @@
1
- import { G as createWire, B as getKernel, H as createEdge, I as createFace, k as isFace } from "./shapeTypes-5DPsHB8i.js";
1
+ import { G as createWire, B as getKernel, H as createEdge, I as createFace, k as isFace } from "./shapeTypes-CpSaBLDv.js";
2
2
  import { o as ok, e as err, k as kernelError, y as validationError, a as andThen } from "./errors-B7kgv0cd.js";
3
- import { o as outerWire, c as cast } from "./faceFns-CvR-ZEQA.js";
3
+ import { o as outerWire, c as cast } from "./faceFns-B6ebRh5I.js";
4
4
  function range(len) {
5
5
  return Array.from(Array(len).keys());
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"adjacencyFns.d.ts","sourceRoot":"","sources":["../../src/topology/adjacencyFns.ts"],"names":[],"m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eFns = require("./shapeFns-DHlLNHTn.cjs");
3
3
  const errors = require("./errors-9fDehDNc.cjs");
4
- const shapeTypes = require("./shapeTypes-DTGA0liC.cjs");
4
+ const shapeTypes = require("./shapeTypes-7xEam9Ri.cjs");
5
5
  const vecOps = require("./vecOps-CjRL1jau.cjs");
6
- const surfaceBuilders = require("./surfaceBuilders-tYoe8sri.cjs");
7
- const solidBuilders = require("./solidBuilders-CUc2rvWv.cjs");
8
- require("./booleanFns-DdbAk1KC.cjs");
9
- const faceFns = require("./faceFns-SVADeb01.cjs");
10
- require("./curveFns-p0x8jy0i.cjs");
11
- require("./meshFns-CF-JdX5P.cjs");
6
+ const surfaceBuilders = require("./surfaceBuilders-Be_ENWSA.cjs");
7
+ const solidBuilders = require("./solidBuilders-BzfRBizW.cjs");
8
+ require("./booleanFns-BJjYqwJ5.cjs");
9
+ const faceFns = require("./faceFns-BLTEPBKq.cjs");
10
+ require("./curveFns-Ch87sD5O.cjs");
11
+ require("./meshFns-BU2l_yOm.cjs");
12
12
  function toBufferGeometryData(mesh) {
13
13
  return {
14
14
  position: mesh.vertices,
@@ -1,13 +1,13 @@
1
- import { c as getWires, a as getFaces, u as translate } from "./shapeFns-38GljA_p.js";
1
+ import { c as getWires, a as getFaces, u as translate } from "./shapeFns-CbXxLvV_.js";
2
2
  import { e as err, y as validationError, k as kernelError, d as isErr, p as typeCastError, o as ok, r as unwrap, g as isOk, B as BrepErrorCode, a as andThen } from "./errors-B7kgv0cd.js";
3
- import { B as getKernel, c as castShape, p as isShape3D, r as isSolid, k as isFace, u as isWire, F as createSolid, f as isClosedWire } from "./shapeTypes-5DPsHB8i.js";
3
+ import { B as getKernel, c as castShape, p as isShape3D, r as isSolid, k as isFace, u as isWire, F as createSolid, f as isClosedWire } from "./shapeTypes-CpSaBLDv.js";
4
4
  import { H as HASH_CODE_MAX, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
5
- import { h as addHolesInFace, g as makeBezierCurve, k as makeBSplineApproximation, i as makeCircle, j as makeEllipse, f as makeEllipseArc, m as makeFace, o as makeNonPlanarFace, c as makeHelix, a as makeLine, p as makePolygon, l as makeNewFaceWithinFace, e as makeTangentArc, d as makeThreePointArc, b as assembleWire } from "./surfaceBuilders-CXbEDGBQ.js";
6
- import { a as makeCompound, d as makeCone, c as makeCylinder, e as makeEllipsoid, f as makeOffset, w as weldShellsAndFaces, b as makeSolid, g as makeSphere, h as makeTorus, m as makeVertex } from "./solidBuilders-BWkneWjU.js";
7
- import "./booleanFns-CKWVFBtF.js";
8
- import { d as downcast } from "./faceFns-CvR-ZEQA.js";
9
- import "./curveFns-DyVPTb1r.js";
10
- import "./meshFns-RN83Wiry.js";
5
+ import { h as addHolesInFace, g as makeBezierCurve, k as makeBSplineApproximation, i as makeCircle, j as makeEllipse, f as makeEllipseArc, m as makeFace, o as makeNonPlanarFace, c as makeHelix, a as makeLine, p as makePolygon, l as makeNewFaceWithinFace, e as makeTangentArc, d as makeThreePointArc, b as assembleWire } from "./surfaceBuilders-D7ZH2QNS.js";
6
+ import { a as makeCompound, d as makeCone, c as makeCylinder, e as makeEllipsoid, f as makeOffset, w as weldShellsAndFaces, b as makeSolid, g as makeSphere, h as makeTorus, m as makeVertex } from "./solidBuilders-BXhh5hP2.js";
7
+ import "./booleanFns-DtOkwLHI.js";
8
+ import { d as downcast } from "./faceFns-B6ebRh5I.js";
9
+ import "./curveFns-LRNGcHXh.js";
10
+ import "./meshFns-HNwWuM4v.js";
11
11
  function toBufferGeometryData(mesh) {
12
12
  return {
13
13
  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-BoN5g5Bx.cjs");
4
- const topology = require("./topology-CH4LBfQg.cjs");
5
- const booleanFns = require("./booleanFns-DdbAk1KC.cjs");
6
- const curveFns = require("./curveFns-p0x8jy0i.cjs");
7
- const faceFns = require("./faceFns-SVADeb01.cjs");
8
- const meshFns = require("./meshFns-CF-JdX5P.cjs");
3
+ const shapeFns = require("./shapeFns-DHlLNHTn.cjs");
4
+ const topology = require("./topology-BHnY7Szr.cjs");
5
+ const booleanFns = require("./booleanFns-BJjYqwJ5.cjs");
6
+ const curveFns = require("./curveFns-Ch87sD5O.cjs");
7
+ const faceFns = require("./faceFns-BLTEPBKq.cjs");
8
+ const meshFns = require("./meshFns-BU2l_yOm.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-38GljA_p.js";
2
- import { a as a2, b, d as d2, e as e2, f as f2, g, c as c2, j, k, l, m, n, o, p, q, r, s, t, u, v as v2, w, x as x2, y as y2, z as z2, A as A2, B as B2, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q } from "./topology-Bq7mZh3W.js";
3
- import { k as k2, j as j2 } from "./booleanFns-CKWVFBtF.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 as m2, o as o2 } from "./curveFns-DyVPTb1r.js";
5
- import { l as l3, c as c4, m as m3, j as j4, d as d4, e as e4, f as f4, q as q2, r as r2, g as g3, k as k4, s as s2, i as i3, n as n2, o as o3, p as p2, t as t2, w as w2, u as u2, h as h3 } from "./faceFns-CvR-ZEQA.js";
6
- import { c as c5, b as b3, e as e5, d as d5, f as f5 } from "./meshFns-RN83Wiry.js";
1
+ import { h, d, a, f, e, c, x, i, y, z, A, B, v } from "./shapeFns-CbXxLvV_.js";
2
+ import { a as a2, b, d as d2, e as e2, f as f2, g, c as c2, j, k, l, m, n, o, p, q, r, s, t, u, v as v2, w, x as x2, y as y2, z as z2, A as A2, B as B2, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q } from "./topology-C1eZ86dI.js";
3
+ import { k as k2, j as j2 } from "./booleanFns-DtOkwLHI.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 as m2, o as o2 } from "./curveFns-LRNGcHXh.js";
5
+ import { l as l3, c as c4, m as m3, j as j4, d as d4, e as e4, f as f4, q as q2, r as r2, g as g3, k as k4, s as s2, i as i3, n as n2, o as o3, p as p2, t as t2, w as w2, u as u2, h as h3 } from "./faceFns-B6ebRh5I.js";
6
+ import { c as c5, b as b3, e as e5, d as d5, f as f5 } from "./meshFns-HNwWuM4v.js";
7
7
  export {
8
8
  a2 as addHoles,
9
9
  b as adjacentFaces,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brepjs",
3
- "version": "12.3.0",
3
+ "version": "12.5.0",
4
4
  "description": "Web CAD library with pluggable geometry kernel",
5
5
  "keywords": [
6
6
  "cad",
@@ -182,13 +182,11 @@
182
182
  "bench:json": "BENCH_KERNELS=both BENCH_OUTPUT_JSON=1 vitest run --config vitest.bench.config.ts",
183
183
  "check:boundaries:staged": "bash scripts/check-layer-boundaries.sh --staged",
184
184
  "check:readme-reminders": "bash scripts/check-readme-reminders.sh",
185
- "example": "npx tsx",
186
185
  "knip": "knip",
187
186
  "validate": "bash scripts/validate-change.sh",
188
187
  "size": "size-limit",
189
188
  "docs:api": "typedoc",
190
189
  "docs:generate-lookup": "npx tsx scripts/generate-function-lookup.ts",
191
- "docs:generate-previews": "npx tsx scripts/generate-example-previews.ts",
192
190
  "prepare": "husky && bash scripts/ensure-wasm.sh"
193
191
  },
194
192
  "devDependencies": {
@@ -199,22 +197,22 @@
199
197
  "@types/opentype.js": "1.3.9",
200
198
  "@vitest/coverage-v8": "4.0.18",
201
199
  "brepjs-opencascade": "*",
202
- "brepkit-wasm": "1.0.2",
200
+ "brepkit-wasm": "1.0.5",
203
201
  "eslint": "10.0.3",
204
202
  "husky": "9.1.7",
205
203
  "knip": "5.86.0",
206
- "lint-staged": "16.3.2",
204
+ "lint-staged": "16.3.3",
207
205
  "prettier": "3.8.1",
208
206
  "size-limit": "12.0.1",
209
207
  "typedoc": "0.28.17",
210
208
  "typescript": "5.9.3",
211
- "typescript-eslint": "8.56.1",
209
+ "typescript-eslint": "8.57.0",
212
210
  "vite": "7.3.1",
213
211
  "vite-plugin-dts": "4.5.4",
214
212
  "vitest": "4.0.18"
215
213
  },
216
214
  "peerDependencies": {
217
- "brepjs-opencascade": "^0.5.1 || ^0.6.0 || ^0.7.0 || ^0.8.0 || ^0.9.0",
215
+ "brepjs-opencascade": "^0.5.1 || ^0.6.0 || ^0.7.0 || ^0.8.0 || ^0.9.0 || ^0.10.0",
218
216
  "brepkit-wasm": "^0.10.1 || ^1.0.0"
219
217
  },
220
218
  "peerDependenciesMeta": {