brepjs 9.3.0 → 9.3.3

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 (57) hide show
  1. package/dist/2d.cjs +2 -2
  2. package/dist/2d.js +3 -3
  3. package/dist/{Blueprint-C4841kzg.js → Blueprint-D-l9y6vQ.js} +5 -5
  4. package/dist/{Blueprint-CN8uhMwg.cjs → Blueprint-pgzr1snT.cjs} +5 -5
  5. package/dist/{boolean2D-2Tk_kewK.cjs → boolean2D-DEQvy9jN.cjs} +7 -7
  6. package/dist/{boolean2D-DxxhOJKC.js → boolean2D-S1fQJkDs.js} +7 -7
  7. package/dist/{booleanFns--8WtoiU1.cjs → booleanFns-CKJpkL-W.cjs} +3 -3
  8. package/dist/{booleanFns-CUY3TpmS.js → booleanFns-Ct7VfmjG.js} +3 -3
  9. package/dist/brepjs.cjs +16 -16
  10. package/dist/brepjs.js +28 -28
  11. package/dist/core.cjs +1 -1
  12. package/dist/core.js +1 -1
  13. package/dist/{cornerFinder-C9Vk4odc.cjs → cornerFinder-BKSnwYl_.cjs} +1 -1
  14. package/dist/{cornerFinder-DqxDHC8E.js → cornerFinder-DiwhBI6W.js} +1 -1
  15. package/dist/{curveFns-CYIWO79S.cjs → curveFns-CJ_Rhqu7.cjs} +1 -1
  16. package/dist/{curveFns-LHbPhwMg.js → curveFns-Vcss8w3g.js} +1 -1
  17. package/dist/{drawFns-UVxLJGBe.cjs → drawFns-BMN2P_95.cjs} +10 -10
  18. package/dist/{drawFns-1wvr2ZHR.js → drawFns-DR-Pn6Ox.js} +10 -10
  19. package/dist/{faceFns-DSzkK92I.js → faceFns-CScUN5LN.js} +1 -1
  20. package/dist/{faceFns-BHJP2pvz.cjs → faceFns-Cqgs0uTB.cjs} +1 -1
  21. package/dist/{helpers-CXtMYc7c.js → helpers-BUdSB_hP.js} +4 -4
  22. package/dist/{helpers-AnHPajwn.cjs → helpers-orCR-9t0.cjs} +4 -4
  23. package/dist/io.cjs +3 -3
  24. package/dist/io.js +3 -3
  25. package/dist/kernel/brepkitAdapter.d.ts +5 -4
  26. package/dist/kernel/brepkitAdapter.d.ts.map +1 -1
  27. package/dist/kernel/defaultAdapter.d.ts +1 -0
  28. package/dist/kernel/defaultAdapter.d.ts.map +1 -1
  29. package/dist/kernel/types.d.ts +1 -0
  30. package/dist/kernel/types.d.ts.map +1 -1
  31. package/dist/{loft--Zftp4ii.js → loft-B6AuFlWT.js} +3 -3
  32. package/dist/{loft-Dwp5lD3s.cjs → loft-DttG6eeq.cjs} +3 -3
  33. package/dist/{measurement-BodokO6v.cjs → measurement-D61iSCBv.cjs} +2 -2
  34. package/dist/{measurement-DGkcXwNl.js → measurement-Xm1XusbA.js} +2 -2
  35. package/dist/measurement.cjs +1 -1
  36. package/dist/measurement.js +1 -1
  37. package/dist/{meshFns-C7fBvGa4.js → meshFns-B8LxlRhm.js} +2 -2
  38. package/dist/{meshFns-CpVstMGT.cjs → meshFns-CCrO47TM.cjs} +2 -2
  39. package/dist/{operations-BeUM_6r4.cjs → operations-B1uuSLB2.cjs} +3 -3
  40. package/dist/{operations-BUbjh4cf.js → operations-D-htN8K3.js} +3 -3
  41. package/dist/operations.cjs +2 -2
  42. package/dist/operations.js +2 -2
  43. package/dist/query.cjs +4 -4
  44. package/dist/query.js +5 -5
  45. package/dist/{shapeFns-BMKwZa-B.js → shapeFns-BiMiqVm0.js} +2 -2
  46. package/dist/{shapeFns-D6jXs2lM.cjs → shapeFns-BvwnrLYU.cjs} +2 -2
  47. package/dist/{shapeTypes-Dbddor5a.js → shapeTypes-D5th-THo.js} +8 -0
  48. package/dist/{shapeTypes-C5vVRDiO.cjs → shapeTypes-DIwQBQKB.cjs} +8 -0
  49. package/dist/sketching.cjs +2 -2
  50. package/dist/sketching.js +2 -2
  51. package/dist/{surfaceBuilders-DPAMXM4j.js → surfaceBuilders-CkDPvbwD.js} +2 -2
  52. package/dist/{surfaceBuilders-1q5sbHFp.cjs → surfaceBuilders-DbvODAS_.cjs} +2 -2
  53. package/dist/{topology-CPPDPk08.cjs → topology-BndoQLIN.cjs} +6 -6
  54. package/dist/{topology-E7m4YOQu.js → topology-BvUvMNMo.js} +6 -6
  55. package/dist/topology.cjs +6 -6
  56. package/dist/topology.js +6 -6
  57. package/package.json +1 -1
package/dist/2d.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const Blueprint = require("./Blueprint-CN8uhMwg.cjs");
4
- const boolean2D = require("./boolean2D-2Tk_kewK.cjs");
3
+ const Blueprint = require("./Blueprint-pgzr1snT.cjs");
4
+ const boolean2D = require("./boolean2D-DEQvy9jN.cjs");
5
5
  function reverseCurve(curve) {
6
6
  const cloned = curve.clone();
7
7
  cloned.reverse();
package/dist/2d.js CHANGED
@@ -1,6 +1,6 @@
1
- import { B as Blueprint } from "./Blueprint-C4841kzg.js";
2
- import { d, C } from "./Blueprint-C4841kzg.js";
3
- import { e, C as C2, f, l, g, n, k, q, o, p, r } from "./boolean2D-DxxhOJKC.js";
1
+ import { B as Blueprint } from "./Blueprint-D-l9y6vQ.js";
2
+ import { d, C } from "./Blueprint-D-l9y6vQ.js";
3
+ import { e, C as C2, f, l, g, n, k, q, o, p, r } from "./boolean2D-S1fQJkDs.js";
4
4
  function reverseCurve(curve) {
5
5
  const cloned = curve.clone();
6
6
  cloned.reverse();
@@ -1,12 +1,12 @@
1
1
  import { r as resolvePlane } from "./vectors-CpZfWX0T.js";
2
2
  import { a as toVec3 } from "./types-CWDdqcrq.js";
3
- import { q as getKernel, y as getKernel2D, z as registerForCleanup, A as unregisterFromCleanup, s as createEdge, r as createWire } from "./shapeTypes-Dbddor5a.js";
4
- import { u as uvBounds, f as faceGeomType, e as faceCenter, h as uvCoordinates, c as cast } from "./faceFns-DSzkK92I.js";
5
- import { g as getOrientation } from "./curveFns-LHbPhwMg.js";
3
+ import { q as getKernel, y as getKernel2D, z as registerForCleanup, A as unregisterFromCleanup, s as createEdge, r as createWire } from "./shapeTypes-D5th-THo.js";
4
+ import { u as uvBounds, f as faceGeomType, e as faceCenter, h as uvCoordinates, c as cast } from "./faceFns-CScUN5LN.js";
5
+ import { g as getOrientation } from "./curveFns-Vcss8w3g.js";
6
6
  import { o as ok, e as err, b as computationError, u as unwrap, x as validationError } from "./errors-C_XjfNt5.js";
7
- import { d as distance2d, s as samePoint, b as scalarMultiply2d, c as add2d, n as normalize2d, e as subtract2d, g as getSingleFace } from "./helpers-CXtMYc7c.js";
7
+ import { d as distance2d, s as samePoint, b as scalarMultiply2d, c as add2d, n as normalize2d, e as subtract2d, g as getSingleFace } from "./helpers-BUdSB_hP.js";
8
8
  import { R as RAD2DEG, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
9
- import { m as makeFace } from "./surfaceBuilders-DPAMXM4j.js";
9
+ import { m as makeFace } from "./surfaceBuilders-CkDPvbwD.js";
10
10
  import { bug } from "./result.js";
11
11
  function makePlane(plane, origin) {
12
12
  if (plane && typeof plane !== "string") {
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  const vectors = require("./vectors-BwRTfFd1.cjs");
3
3
  const types = require("./types-CA_xrgDq.cjs");
4
- const shapeTypes = require("./shapeTypes-C5vVRDiO.cjs");
5
- const faceFns = require("./faceFns-BHJP2pvz.cjs");
6
- const curveFns = require("./curveFns-CYIWO79S.cjs");
4
+ const shapeTypes = require("./shapeTypes-DIwQBQKB.cjs");
5
+ const faceFns = require("./faceFns-Cqgs0uTB.cjs");
6
+ const curveFns = require("./curveFns-CJ_Rhqu7.cjs");
7
7
  const errors = require("./errors-HU7EpHt3.cjs");
8
- const helpers = require("./helpers-AnHPajwn.cjs");
8
+ const helpers = require("./helpers-orCR-9t0.cjs");
9
9
  const vecOps = require("./vecOps-CjRL1jau.cjs");
10
- const surfaceBuilders = require("./surfaceBuilders-1q5sbHFp.cjs");
10
+ const surfaceBuilders = require("./surfaceBuilders-DbvODAS_.cjs");
11
11
  const result = require("./result.cjs");
12
12
  function makePlane(plane, origin) {
13
13
  if (plane && typeof plane !== "string") {
@@ -46,16 +46,16 @@ var __callDispose = (stack, error, hasError) => {
46
46
  };
47
47
  const vectors = require("./vectors-BwRTfFd1.cjs");
48
48
  const errors = require("./errors-HU7EpHt3.cjs");
49
- const faceFns = require("./faceFns-BHJP2pvz.cjs");
49
+ const faceFns = require("./faceFns-Cqgs0uTB.cjs");
50
50
  const types = require("./types-CA_xrgDq.cjs");
51
51
  const vecOps = require("./vecOps-CjRL1jau.cjs");
52
- const loft = require("./loft-Dwp5lD3s.cjs");
53
- const shapeTypes = require("./shapeTypes-C5vVRDiO.cjs");
54
- const curveFns = require("./curveFns-CYIWO79S.cjs");
55
- const surfaceBuilders = require("./surfaceBuilders-1q5sbHFp.cjs");
52
+ const loft = require("./loft-DttG6eeq.cjs");
53
+ const shapeTypes = require("./shapeTypes-DIwQBQKB.cjs");
54
+ const curveFns = require("./curveFns-CJ_Rhqu7.cjs");
55
+ const surfaceBuilders = require("./surfaceBuilders-DbvODAS_.cjs");
56
56
  const result = require("./result.cjs");
57
- const helpers = require("./helpers-AnHPajwn.cjs");
58
- const Blueprint = require("./Blueprint-CN8uhMwg.cjs");
57
+ const helpers = require("./helpers-orCR-9t0.cjs");
58
+ const Blueprint = require("./Blueprint-pgzr1snT.cjs");
59
59
  const intersectCurves = (first, second, precision = 1e-9) => {
60
60
  if (first.boundingBox.isOut(second.boundingBox))
61
61
  return errors.ok({ intersections: [], commonSegments: [], commonSegmentsPoints: [] });
@@ -45,16 +45,16 @@ var __callDispose = (stack, error, hasError) => {
45
45
  };
46
46
  import { a as createPlane } from "./vectors-CpZfWX0T.js";
47
47
  import { o as ok, e as err, b as computationError, u as unwrap, g as isOk } from "./errors-C_XjfNt5.js";
48
- import { d as downcast, u as uvBounds, p as pointOnSurface, n as normalAt } from "./faceFns-DSzkK92I.js";
48
+ import { d as downcast, u as uvBounds, p as pointOnSurface, n as normalAt } from "./faceFns-CScUN5LN.js";
49
49
  import { a as toVec3 } from "./types-CWDdqcrq.js";
50
50
  import { n as vecScale, j as vecNormalize, b as vecCross, D as DEG2RAD, R as RAD2DEG } from "./vecOps-ZDdZWbwT.js";
51
- import { r as revolution, c as complexExtrude, t as twistExtrude, b as basicFaceExtrusion, g as genericSweep, l as loft } from "./loft--Zftp4ii.js";
52
- import { y as getKernel2D, t as createFace, r as createWire, q as getKernel, s as createEdge, D as DisposalScope } from "./shapeTypes-Dbddor5a.js";
53
- import { d as curveStartPoint, c as curveTangentAt, e as curveIsClosed } from "./curveFns-LHbPhwMg.js";
54
- import { m as makeFace, l as makeNewFaceWithinFace, b as assembleWire, z as zip } from "./surfaceBuilders-DPAMXM4j.js";
51
+ import { r as revolution, c as complexExtrude, t as twistExtrude, b as basicFaceExtrusion, g as genericSweep, l as loft } from "./loft-B6AuFlWT.js";
52
+ import { y as getKernel2D, t as createFace, r as createWire, q as getKernel, s as createEdge, D as DisposalScope } from "./shapeTypes-D5th-THo.js";
53
+ import { d as curveStartPoint, c as curveTangentAt, e as curveIsClosed } from "./curveFns-Vcss8w3g.js";
54
+ import { m as makeFace, l as makeNewFaceWithinFace, b as assembleWire, z as zip } from "./surfaceBuilders-CkDPvbwD.js";
55
55
  import { bug } from "./result.js";
56
- import { s as samePoint$1, n as normalize2d, e as subtract2d, c as add2d, i as crossProduct2d, b as scalarMultiply2d, f as polarToCartesian, r as rotate2d, j as cartesianToPolar, d as distance2d, p as polarAngle2d, k as PRECISION_INTERSECTION } from "./helpers-CXtMYc7c.js";
57
- import { C as Curve2D, a as make2dSegmentCurve, j as approximateAsBSpline, b as make2dArcFromCenter, k as isPoint2D, g as make2dCircle, l as make2dThreePointArc, d as BoundingBox2d, v as viewbox, n as asSVG, B as Blueprint, o as make2dEllipseArc, p as make2dTangentArc, q as make2dBezierCurve, r as removeDuplicatePoints } from "./Blueprint-C4841kzg.js";
56
+ import { s as samePoint$1, n as normalize2d, e as subtract2d, c as add2d, i as crossProduct2d, b as scalarMultiply2d, f as polarToCartesian, r as rotate2d, j as cartesianToPolar, d as distance2d, p as polarAngle2d, k as PRECISION_INTERSECTION } from "./helpers-BUdSB_hP.js";
57
+ import { C as Curve2D, a as make2dSegmentCurve, j as approximateAsBSpline, b as make2dArcFromCenter, k as isPoint2D, g as make2dCircle, l as make2dThreePointArc, d as BoundingBox2d, v as viewbox, n as asSVG, B as Blueprint, o as make2dEllipseArc, p as make2dTangentArc, q as make2dBezierCurve, r as removeDuplicatePoints } from "./Blueprint-D-l9y6vQ.js";
58
58
  const intersectCurves = (first, second, precision = 1e-9) => {
59
59
  if (first.boundingBox.isOut(second.boundingBox))
60
60
  return ok({ intersections: [], commonSegments: [], commonSegmentsPoints: [] });
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
- const shapeTypes = require("./shapeTypes-C5vVRDiO.cjs");
2
+ const shapeTypes = require("./shapeTypes-DIwQBQKB.cjs");
3
3
  const errors = require("./errors-HU7EpHt3.cjs");
4
4
  const vectors = require("./vectors-BwRTfFd1.cjs");
5
5
  const vecOps = require("./vecOps-CjRL1jau.cjs");
6
- const shapeFns = require("./shapeFns-D6jXs2lM.cjs");
7
- const surfaceBuilders = require("./surfaceBuilders-1q5sbHFp.cjs");
6
+ const shapeFns = require("./shapeFns-BvwnrLYU.cjs");
7
+ const surfaceBuilders = require("./surfaceBuilders-DbvODAS_.cjs");
8
8
  const shapeTagStore = /* @__PURE__ */ new WeakMap();
9
9
  const tagMetadataStore = /* @__PURE__ */ new WeakMap();
10
10
  function getTagMap(shape) {
@@ -1,9 +1,9 @@
1
- import { q as getKernel, c as castShape, j as isShape3D } from "./shapeTypes-Dbddor5a.js";
1
+ import { q as getKernel, c as castShape, j as isShape3D } from "./shapeTypes-D5th-THo.js";
2
2
  import { o as ok, d as isErr, e as err, x as validationError, B as BrepErrorCode, p as typeCastError, k as kernelError } from "./errors-C_XjfNt5.js";
3
3
  import { r as resolvePlane } from "./vectors-CpZfWX0T.js";
4
4
  import { H as HASH_CODE_MAX, n as vecScale, v as vecAdd } from "./vecOps-ZDdZWbwT.js";
5
- import { a as getFaces, p as propagateOriginsFromEvolution, b as propagateOriginsByHash, c as getWires, d as getEdges, e as getVertices } from "./shapeFns-BMKwZa-B.js";
6
- import { m as makeFace } from "./surfaceBuilders-DPAMXM4j.js";
5
+ import { a as getFaces, p as propagateOriginsFromEvolution, b as propagateOriginsByHash, c as getWires, d as getEdges, e as getVertices } from "./shapeFns-BiMiqVm0.js";
6
+ import { m as makeFace } from "./surfaceBuilders-CkDPvbwD.js";
7
7
  const shapeTagStore = /* @__PURE__ */ new WeakMap();
8
8
  const tagMetadataStore = /* @__PURE__ */ new WeakMap();
9
9
  function getTagMap(shape) {
package/dist/brepjs.cjs CHANGED
@@ -45,30 +45,30 @@ var __callDispose = (stack, error, hasError) => {
45
45
  return next();
46
46
  };
47
47
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
48
- const shapeTypes = require("./shapeTypes-C5vVRDiO.cjs");
48
+ const shapeTypes = require("./shapeTypes-DIwQBQKB.cjs");
49
49
  const errors = require("./errors-HU7EpHt3.cjs");
50
50
  const vecOps = require("./vecOps-CjRL1jau.cjs");
51
- const Blueprint = require("./Blueprint-CN8uhMwg.cjs");
52
- const loft$2 = require("./loft-Dwp5lD3s.cjs");
53
- const operations = require("./operations-BeUM_6r4.cjs");
54
- const boolean2D = require("./boolean2D-2Tk_kewK.cjs");
51
+ const Blueprint = require("./Blueprint-pgzr1snT.cjs");
52
+ const loft$2 = require("./loft-DttG6eeq.cjs");
53
+ const operations = require("./operations-B1uuSLB2.cjs");
54
+ const boolean2D = require("./boolean2D-DEQvy9jN.cjs");
55
55
  const _2d = require("./2d.cjs");
56
- const helpers = require("./helpers-AnHPajwn.cjs");
56
+ const helpers = require("./helpers-orCR-9t0.cjs");
57
57
  const io = require("./io.cjs");
58
- const drawFns = require("./drawFns-UVxLJGBe.cjs");
58
+ const drawFns = require("./drawFns-BMN2P_95.cjs");
59
59
  const types = require("./types-CA_xrgDq.cjs");
60
60
  const vectors = require("./vectors-BwRTfFd1.cjs");
61
- const shapeFns = require("./shapeFns-D6jXs2lM.cjs");
62
- const booleanFns = require("./booleanFns--8WtoiU1.cjs");
63
- const topology = require("./topology-CPPDPk08.cjs");
64
- const curveFns = require("./curveFns-CYIWO79S.cjs");
65
- const faceFns = require("./faceFns-BHJP2pvz.cjs");
66
- const meshFns = require("./meshFns-CpVstMGT.cjs");
67
- const measurement = require("./measurement-BodokO6v.cjs");
68
- const surfaceBuilders = require("./surfaceBuilders-1q5sbHFp.cjs");
61
+ const shapeFns = require("./shapeFns-BvwnrLYU.cjs");
62
+ const booleanFns = require("./booleanFns-CKJpkL-W.cjs");
63
+ const topology = require("./topology-BndoQLIN.cjs");
64
+ const curveFns = require("./curveFns-CJ_Rhqu7.cjs");
65
+ const faceFns = require("./faceFns-Cqgs0uTB.cjs");
66
+ const meshFns = require("./meshFns-CCrO47TM.cjs");
67
+ const measurement = require("./measurement-D61iSCBv.cjs");
68
+ const surfaceBuilders = require("./surfaceBuilders-DbvODAS_.cjs");
69
69
  const query = require("./query.cjs");
70
70
  const result = require("./result.cjs");
71
- const cornerFinder = require("./cornerFinder-C9Vk4odc.cjs");
71
+ const cornerFinder = require("./cornerFinder-BKSnwYl_.cjs");
72
72
  const worker = require("./worker.cjs");
73
73
  function supportsProjection(kernel) {
74
74
  return "projectShape" in kernel;
package/dist/brepjs.js CHANGED
@@ -43,45 +43,45 @@ var __callDispose = (stack, error, hasError) => {
43
43
  };
44
44
  return next();
45
45
  };
46
- import { c as castShape, D as DisposalScope, q as getKernel, e as isFace, k as isShell, l as isSolid, j as isShape3D, x as createSolid, r as createWire, d as isEdge, n as isWire } from "./shapeTypes-Dbddor5a.js";
47
- import { u, s, t, a, b, B, v, g, C, i, f, h, m, E, F, w, o, p } from "./shapeTypes-Dbddor5a.js";
46
+ import { c as castShape, D as DisposalScope, q as getKernel, e as isFace, k as isShell, l as isSolid, j as isShape3D, x as createSolid, r as createWire, d as isEdge, n as isWire } from "./shapeTypes-D5th-THo.js";
47
+ import { u, s, t, a, b, B, v, g, C, i, f, h, m, E, F, w, o, p } from "./shapeTypes-D5th-THo.js";
48
48
  import { o as ok, y as translateKernelError, e as err, p as typeCastError, q as queryError, x as validationError, B as BrepErrorCode, k as kernelError, i as ioError, d as isErr, u as unwrap } from "./errors-C_XjfNt5.js";
49
49
  import { O, a as a2, c, b as b2, f as f2, g as g2, m as m2, h as h2, j, l, z, s as s2, t as t2, n, r, v as v2, w as w2 } from "./errors-C_XjfNt5.js";
50
50
  import { c as vecDistance, D as DEG2RAD, H as HASH_CODE_MAX, n as vecScale, j as vecNormalize, f as vecIsZero } from "./vecOps-ZDdZWbwT.js";
51
51
  import { R, v as v3, a as a3, b as b3, d, e, g as g3, h as h3, i as i2, k, l as l2, m as m3, o as o2 } from "./vecOps-ZDdZWbwT.js";
52
- import { B as B2, d as d2, C as C2, s as s3 } from "./Blueprint-C4841kzg.js";
53
- import { m as makeCompound, d as makeCone, e as makeCylinder, f as makeEllipsoid, h as makeOffset, w as weldShellsAndFaces, a as makeSolid, i as makeSphere, j as makeTorus, k as makeVertex } from "./loft--Zftp4ii.js";
54
- import { b as b4, g as g4, r as r2 } from "./loft--Zftp4ii.js";
55
- import { w as walkAssembly, e as extrude$1, r as revolve$1, s as sweep, c as circularPattern, l as linearPattern } from "./operations-BUbjh4cf.js";
56
- import { a as a4, b as b5, d as d3, f as f3, g as g5, h as h4, i as i3, j as j2, k as k2, m as m4, n as n2, o as o3, p as p2, q, t as t3, u as u2, v as v4, x, y, z as z2, A, B as B3, C as C3, D, E as E2 } from "./operations-BUbjh4cf.js";
57
- import { B as B4, a as a5, e as e2, C as C4, F as F2, S, f as f4, l as l3, g as g6, n as n3, k as k3, q as q2, o as o4, p as p3, r as r3 } from "./boolean2D-DxxhOJKC.js";
52
+ import { B as B2, d as d2, C as C2, s as s3 } from "./Blueprint-D-l9y6vQ.js";
53
+ import { m as makeCompound, d as makeCone, e as makeCylinder, f as makeEllipsoid, h as makeOffset, w as weldShellsAndFaces, a as makeSolid, i as makeSphere, j as makeTorus, k as makeVertex } from "./loft-B6AuFlWT.js";
54
+ import { b as b4, g as g4, r as r2 } from "./loft-B6AuFlWT.js";
55
+ import { w as walkAssembly, e as extrude$1, r as revolve$1, s as sweep, c as circularPattern, l as linearPattern } from "./operations-D-htN8K3.js";
56
+ import { a as a4, b as b5, d as d3, f as f3, g as g5, h as h4, i as i3, j as j2, k as k2, m as m4, n as n2, o as o3, p as p2, q, t as t3, u as u2, v as v4, x, y, z as z2, A, B as B3, C as C3, D, E as E2 } from "./operations-D-htN8K3.js";
57
+ import { B as B4, a as a5, e as e2, C as C4, F as F2, S, f as f4, l as l3, g as g6, n as n3, k as k3, q as q2, o as o4, p as p3, r as r3 } from "./boolean2D-S1fQJkDs.js";
58
58
  import { createBlueprint, curve2dBoundingBox, curve2dDistanceFrom, curve2dFirstPoint, curve2dIsOnCurve, curve2dLastPoint, curve2dParameter, curve2dSplitAt, curve2dTangentAt, getBounds2D, getOrientation2D, isInside2D, mirror2D, reverseCurve, rotate2D, scale2D, sketch2DOnFace, sketch2DOnPlane, stretch2D, toSVGPathD, translate2D } from "./2d.js";
59
- import { l as createTypedFinder, m as faceFinder } from "./helpers-CXtMYc7c.js";
60
- import { g as g7 } from "./helpers-CXtMYc7c.js";
59
+ import { l as createTypedFinder, m as faceFinder } from "./helpers-BUdSB_hP.js";
60
+ import { g as g7 } from "./helpers-BUdSB_hP.js";
61
61
  import { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportOBJ, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD } from "./io.js";
62
- import { C as C5, D as D2, a as a6, S as S2, b as b6, X, Y, c as c2, d as d4, e as e3, f as f5, Z, g as g8, h as h5, i as i4, j as j3, k as k4, l as l4, m as m5, n as n4, o as o5, p as p4, q as q3, r as r4, s as s4, t as t4, u as u3, v as v5, w as w3, x as x2, y as y2, z as z3, _, $, a0, a1, A as A2, a2 as a22, B as B5, E as E3, a3 as a32, F as F3, G, H, I, J, K, L, M, N, O as O2, P, Q, R as R2, T, U, a4 as a42, V, a5 as a52, a6 as a62, W } from "./drawFns-1wvr2ZHR.js";
62
+ import { C as C5, D as D2, a as a6, S as S2, b as b6, X, Y, c as c2, d as d4, e as e3, f as f5, Z, g as g8, h as h5, i as i4, j as j3, k as k4, l as l4, m as m5, n as n4, o as o5, p as p4, q as q3, r as r4, s as s4, t as t4, u as u3, v as v5, w as w3, x as x2, y as y2, z as z3, _, $, a0, a1, A as A2, a2 as a22, B as B5, E as E3, a3 as a32, F as F3, G, H, I, J, K, L, M, N, O as O2, P, Q, R as R2, T, U, a4 as a42, V, a5 as a52, a6 as a62, W } from "./drawFns-DR-Pn6Ox.js";
63
63
  import { a as toVec3 } from "./types-CWDdqcrq.js";
64
64
  import { r as r5, t as t5 } from "./types-CWDdqcrq.js";
65
65
  import { c as c3, a as a7, p as p5, r as r6, t as t6 } from "./vectors-CpZfWX0T.js";
66
- import { v as vertexPosition, a as getFaces, e as getVertices, d as getEdges, t as translate$1, p as propagateOriginsFromEvolution, h as applyMatrix$1, j as clone$1, k as describe$1, l as isEmpty$1, m as mirror$1, r as rotate$1, s as scale$1, n as simplify$1, o as toBREP$1, q as transformCopy$1, u as getBounds, c as getWires } from "./shapeFns-BMKwZa-B.js";
67
- import { w as w4, g as g9, f as f6, x as x3, i as i5, y as y3, z as z4, A as A3, B as B6, C as C6, D as D3 } from "./shapeFns-BMKwZa-B.js";
68
- import { p as propagateFaceTagsFromEvolution, a as propagateColorsFromEvolution, c as cut$1, f as fuse$1, i as intersect$1, s as section$1, b as sectionToFace$1, d as slice$1, e as split$1, g as fuseAll, h as cutAll } from "./booleanFns-CUY3TpmS.js";
69
- import { j as j4, k as k5, l as l5, m as m6, n as n5, o as o6, q as q4, r as r7, t as t7 } from "./booleanFns-CUY3TpmS.js";
70
- import { c as chamferDistAngle, h as heal$1, i as isValid$1 } from "./topology-E7m4YOQu.js";
71
- import { a as a8, b as b7, e as e4, f as f7, d as d5, g as g10, j as j5, s as s5, t as t8, k as k6, l as l6, v as v6, w as w5 } from "./topology-E7m4YOQu.js";
72
- import { e as curveIsClosed, d as curveStartPoint, c as curveTangentAt, h as curvePointAt, a as curveEndPoint, i as curveLength } from "./curveFns-LHbPhwMg.js";
73
- import { j as j6, k as k7, l as l7, f as f8, b as b8, g as g11, m as m7, o as o7 } from "./curveFns-LHbPhwMg.js";
74
- import { i as iterTopo, e as faceCenter, n as normalAt, j as fromBREP$1, k as innerWires, o as outerWire, g as getSurfaceType } from "./faceFns-DSzkK92I.js";
75
- import { l as l8, c as c4, m as m8, d as d6, f as f9, q as q5, r as r8, s as s6, p as p6, t as t9, v as v7, u as u4, h as h6 } from "./faceFns-DSzkK92I.js";
76
- import { m as mesh$1, a as meshEdges$1 } from "./meshFns-C7fBvGa4.js";
77
- import { c as c5, b as b9, e as e5, d as d7, f as f10 } from "./meshFns-C7fBvGa4.js";
78
- import { m as measureArea, a as measureSurfaceProps, b as measureVolumeProps, c as measureVolume } from "./measurement-DGkcXwNl.js";
79
- import { d as d8, e as e6, f as f11, g as g12, h as h7, i as i6 } from "./measurement-DGkcXwNl.js";
80
- import { h as addHolesInFace, g as makeBezierCurve, k as makeBSplineApproximation, i as makeCircle, j as makeEllipse, f as makeEllipseArc, m as makeFace, n as makeNonPlanarFace, c as makeHelix, a as makeLine, o as makePolygon, l as makeNewFaceWithinFace, e as makeTangentArc, d as makeThreePointArc, b as assembleWire } from "./surfaceBuilders-DPAMXM4j.js";
81
- import { p as p7 } from "./surfaceBuilders-DPAMXM4j.js";
66
+ import { v as vertexPosition, a as getFaces, e as getVertices, d as getEdges, t as translate$1, p as propagateOriginsFromEvolution, h as applyMatrix$1, j as clone$1, k as describe$1, l as isEmpty$1, m as mirror$1, r as rotate$1, s as scale$1, n as simplify$1, o as toBREP$1, q as transformCopy$1, u as getBounds, c as getWires } from "./shapeFns-BiMiqVm0.js";
67
+ import { w as w4, g as g9, f as f6, x as x3, i as i5, y as y3, z as z4, A as A3, B as B6, C as C6, D as D3 } from "./shapeFns-BiMiqVm0.js";
68
+ import { p as propagateFaceTagsFromEvolution, a as propagateColorsFromEvolution, c as cut$1, f as fuse$1, i as intersect$1, s as section$1, b as sectionToFace$1, d as slice$1, e as split$1, g as fuseAll, h as cutAll } from "./booleanFns-Ct7VfmjG.js";
69
+ import { j as j4, k as k5, l as l5, m as m6, n as n5, o as o6, q as q4, r as r7, t as t7 } from "./booleanFns-Ct7VfmjG.js";
70
+ import { c as chamferDistAngle, h as heal$1, i as isValid$1 } from "./topology-BvUvMNMo.js";
71
+ import { a as a8, b as b7, e as e4, f as f7, d as d5, g as g10, j as j5, s as s5, t as t8, k as k6, l as l6, v as v6, w as w5 } from "./topology-BvUvMNMo.js";
72
+ import { e as curveIsClosed, d as curveStartPoint, c as curveTangentAt, h as curvePointAt, a as curveEndPoint, i as curveLength } from "./curveFns-Vcss8w3g.js";
73
+ import { j as j6, k as k7, l as l7, f as f8, b as b8, g as g11, m as m7, o as o7 } from "./curveFns-Vcss8w3g.js";
74
+ import { i as iterTopo, e as faceCenter, n as normalAt, j as fromBREP$1, k as innerWires, o as outerWire, g as getSurfaceType } from "./faceFns-CScUN5LN.js";
75
+ import { l as l8, c as c4, m as m8, d as d6, f as f9, q as q5, r as r8, s as s6, p as p6, t as t9, v as v7, u as u4, h as h6 } from "./faceFns-CScUN5LN.js";
76
+ import { m as mesh$1, a as meshEdges$1 } from "./meshFns-B8LxlRhm.js";
77
+ import { c as c5, b as b9, e as e5, d as d7, f as f10 } from "./meshFns-B8LxlRhm.js";
78
+ import { m as measureArea, a as measureSurfaceProps, b as measureVolumeProps, c as measureVolume } from "./measurement-Xm1XusbA.js";
79
+ import { d as d8, e as e6, f as f11, g as g12, h as h7, i as i6 } from "./measurement-Xm1XusbA.js";
80
+ import { h as addHolesInFace, g as makeBezierCurve, k as makeBSplineApproximation, i as makeCircle, j as makeEllipse, f as makeEllipseArc, m as makeFace, n as makeNonPlanarFace, c as makeHelix, a as makeLine, o as makePolygon, l as makeNewFaceWithinFace, e as makeTangentArc, d as makeThreePointArc, b as assembleWire } from "./surfaceBuilders-CkDPvbwD.js";
81
+ import { p as p7 } from "./surfaceBuilders-CkDPvbwD.js";
82
82
  import { edgeFinder } from "./query.js";
83
83
  import { BrepBugError, bug } from "./result.js";
84
- import { c as c6 } from "./cornerFinder-DqxDHC8E.js";
84
+ import { c as c6 } from "./cornerFinder-DiwhBI6W.js";
85
85
  import { createOperationRegistry, createTaskQueue, createWorkerClient, createWorkerHandler, dequeueTask, enqueueTask, isDisposeRequest, isErrorResponse, isInitRequest, isOperationRequest, isQueueEmpty, isSuccessResponse, pendingCount, registerHandler, rejectAll } from "./worker.js";
86
86
  function supportsProjection(kernel) {
87
87
  return "projectShape" in kernel;
package/dist/core.cjs CHANGED
@@ -4,7 +4,7 @@ const types = require("./types-CA_xrgDq.cjs");
4
4
  const vecOps = require("./vecOps-CjRL1jau.cjs");
5
5
  const errors = require("./errors-HU7EpHt3.cjs");
6
6
  const vectors = require("./vectors-BwRTfFd1.cjs");
7
- const shapeTypes = require("./shapeTypes-C5vVRDiO.cjs");
7
+ const shapeTypes = require("./shapeTypes-DIwQBQKB.cjs");
8
8
  const result = require("./result.cjs");
9
9
  exports.resolveDirection = types.resolveDirection;
10
10
  exports.toVec2 = types.toVec2;
package/dist/core.js CHANGED
@@ -2,7 +2,7 @@ import { r, t, a } from "./types-CWDdqcrq.js";
2
2
  import { D, H, R, v, a as a2, b, c, d, e, f, g, h, i, j, k, l, m, n, o } from "./vecOps-ZDdZWbwT.js";
3
3
  import { O, a as a3, c as c2, b as b2, e as e2, f as f2, i as i2, d as d2, g as g2, k as k2, m as m2, h as h2, j as j2, l as l2, o as o2, q, s, t as t2, n as n2, p, u, r as r2, v as v2, w, x } from "./errors-C_XjfNt5.js";
4
4
  import { c as c3, a as a4, p as p2, r as r3, t as t3 } from "./vectors-CpZfWX0T.js";
5
- import { D as D2, c as c4, a as a5, b as b3, g as g3, i as i3, d as d3, e as e3, f as f3, h as h3, j as j3, k as k3, l as l3, m as m3, n as n3, w as w2, o as o3, p as p3 } from "./shapeTypes-Dbddor5a.js";
5
+ import { D as D2, c as c4, a as a5, b as b3, g as g3, i as i3, d as d3, e as e3, f as f3, h as h3, j as j3, k as k3, l as l3, m as m3, n as n3, w as w2, o as o3, p as p3 } from "./shapeTypes-D5th-THo.js";
6
6
  import { BrepBugError, bug } from "./result.js";
7
7
  export {
8
8
  BrepBugError,
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const helpers = require("./helpers-AnHPajwn.cjs");
2
+ const helpers = require("./helpers-orCR-9t0.cjs");
3
3
  const vecOps = require("./vecOps-CjRL1jau.cjs");
4
4
  const PI_2 = 2 * Math.PI;
5
5
  function positiveHalfAngle(angle) {
@@ -1,4 +1,4 @@
1
- import { a as angle2d, s as samePoint, d as distance2d } from "./helpers-CXtMYc7c.js";
1
+ import { a as angle2d, s as samePoint, d as distance2d } from "./helpers-BUdSB_hP.js";
2
2
  import { D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
3
3
  const PI_2 = 2 * Math.PI;
4
4
  function positiveHalfAngle(angle) {
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const shapeTypes = require("./shapeTypes-C5vVRDiO.cjs");
2
+ const shapeTypes = require("./shapeTypes-DIwQBQKB.cjs");
3
3
  const errors = require("./errors-HU7EpHt3.cjs");
4
4
  function getCurveType(shape) {
5
5
  return shapeTypes.getKernel().curveType(shape.wrapped);
@@ -1,4 +1,4 @@
1
- import { q as getKernel, c as castShape, d as isEdge, n as isWire } from "./shapeTypes-Dbddor5a.js";
1
+ import { q as getKernel, c as castShape, d as isEdge, n as isWire } from "./shapeTypes-D5th-THo.js";
2
2
  import { e as err, p as typeCastError, o as ok } from "./errors-C_XjfNt5.js";
3
3
  function getCurveType(shape) {
4
4
  return getKernel().curveType(shape.wrapped);
@@ -48,18 +48,18 @@ const errors = require("./errors-HU7EpHt3.cjs");
48
48
  const vectors = require("./vectors-BwRTfFd1.cjs");
49
49
  const types = require("./types-CA_xrgDq.cjs");
50
50
  const vecOps = require("./vecOps-CjRL1jau.cjs");
51
- const boolean2D = require("./boolean2D-2Tk_kewK.cjs");
52
- const faceFns = require("./faceFns-BHJP2pvz.cjs");
53
- const curveFns = require("./curveFns-CYIWO79S.cjs");
54
- const surfaceBuilders = require("./surfaceBuilders-1q5sbHFp.cjs");
55
- const shapeTypes = require("./shapeTypes-C5vVRDiO.cjs");
56
- const Blueprint = require("./Blueprint-CN8uhMwg.cjs");
51
+ const boolean2D = require("./boolean2D-DEQvy9jN.cjs");
52
+ const faceFns = require("./faceFns-Cqgs0uTB.cjs");
53
+ const curveFns = require("./curveFns-CJ_Rhqu7.cjs");
54
+ const surfaceBuilders = require("./surfaceBuilders-DbvODAS_.cjs");
55
+ const shapeTypes = require("./shapeTypes-DIwQBQKB.cjs");
56
+ const Blueprint = require("./Blueprint-pgzr1snT.cjs");
57
57
  const result = require("./result.cjs");
58
- const helpers = require("./helpers-AnHPajwn.cjs");
59
- const shapeFns = require("./shapeFns-D6jXs2lM.cjs");
60
- const loft = require("./loft-Dwp5lD3s.cjs");
58
+ const helpers = require("./helpers-orCR-9t0.cjs");
59
+ const shapeFns = require("./shapeFns-BvwnrLYU.cjs");
60
+ const loft = require("./loft-DttG6eeq.cjs");
61
61
  const opentype = require("opentype.js");
62
- const cornerFinder = require("./cornerFinder-C9Vk4odc.cjs");
62
+ const cornerFinder = require("./cornerFinder-BKSnwYl_.cjs");
63
63
  const stitchCurves = (curves, precision = 1e-7) => {
64
64
  const startPoints = new boolean2D.Flatbush(curves.length);
65
65
  curves.forEach((c) => {
@@ -47,18 +47,18 @@ import { u as unwrap, g as isOk, e as err, x as validationError, o as ok } from
47
47
  import { r as resolvePlane, b as planeToWorld, d as planeToLocal } from "./vectors-CpZfWX0T.js";
48
48
  import { a as toVec3 } from "./types-CWDdqcrq.js";
49
49
  import { n as vecScale, j as vecNormalize, v as vecAdd, o as vecSub, b as vecCross, m as vecRotate, R as RAD2DEG, g as vecLength, e as vecEquals, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
50
- import { b as Flatbush, c as convertSvgEllipseParams, d as defaultsSplineOptions, S as Sketch, r as roundedRectangleBlueprint, e as Blueprints, C as CompoundBlueprint, f as cut2D, i as intersectCurves, g as fuse2D, m as make2dOffset, h as filletCurves, j as chamferCurves, o as organiseBlueprints, a as BlueprintSketcher, k as intersect2D, B as BaseSketcher2d, p as polysidesBlueprint } from "./boolean2D-DxxhOJKC.js";
51
- import { d as downcast, c as cast, e as faceCenter, n as normalAt, o as outerWire } from "./faceFns-DSzkK92I.js";
52
- import { c as curveTangentAt, a as curveEndPoint, f as flipOrientation, b as getCurveType, o as offsetWire2D } from "./curveFns-LHbPhwMg.js";
53
- import { a as makeLine, d as makeThreePointArc, e as makeTangentArc, f as makeEllipseArc, g as makeBezierCurve, b as assembleWire, h as addHolesInFace, m as makeFace, i as makeCircle, j as makeEllipse, c as makeHelix, k as makeBSplineApproximation } from "./surfaceBuilders-DPAMXM4j.js";
54
- import { D as DisposalScope, q as getKernel, r as createWire, t as createFace, e as isFace, c as castShape } from "./shapeTypes-Dbddor5a.js";
55
- import { m as mirror, B as Blueprint, C as Curve2D, a as make2dSegmentCurve, b as make2dArcFromCenter, c as approximateAsSvgCompatibleCurve, d as BoundingBox2d, e as edgeToCurve, f as make2dInerpolatedBSplineCurve, g as make2dCircle, h as make2dEllipse, i as deserializeCurve2D } from "./Blueprint-C4841kzg.js";
50
+ import { b as Flatbush, c as convertSvgEllipseParams, d as defaultsSplineOptions, S as Sketch, r as roundedRectangleBlueprint, e as Blueprints, C as CompoundBlueprint, f as cut2D, i as intersectCurves, g as fuse2D, m as make2dOffset, h as filletCurves, j as chamferCurves, o as organiseBlueprints, a as BlueprintSketcher, k as intersect2D, B as BaseSketcher2d, p as polysidesBlueprint } from "./boolean2D-S1fQJkDs.js";
51
+ import { d as downcast, c as cast, e as faceCenter, n as normalAt, o as outerWire } from "./faceFns-CScUN5LN.js";
52
+ import { c as curveTangentAt, a as curveEndPoint, f as flipOrientation, b as getCurveType, o as offsetWire2D } from "./curveFns-Vcss8w3g.js";
53
+ import { a as makeLine, d as makeThreePointArc, e as makeTangentArc, f as makeEllipseArc, g as makeBezierCurve, b as assembleWire, h as addHolesInFace, m as makeFace, i as makeCircle, j as makeEllipse, c as makeHelix, k as makeBSplineApproximation } from "./surfaceBuilders-CkDPvbwD.js";
54
+ import { D as DisposalScope, q as getKernel, r as createWire, t as createFace, e as isFace, c as castShape } from "./shapeTypes-D5th-THo.js";
55
+ import { m as mirror, B as Blueprint, C as Curve2D, a as make2dSegmentCurve, b as make2dArcFromCenter, c as approximateAsSvgCompatibleCurve, d as BoundingBox2d, e as edgeToCurve, f as make2dInerpolatedBSplineCurve, g as make2dCircle, h as make2dEllipse, i as deserializeCurve2D } from "./Blueprint-D-l9y6vQ.js";
56
56
  import { bug } from "./result.js";
57
- import { d as distance2d, p as polarAngle2d, f as polarToCartesian, P as PRECISION_OFFSET, h as squareDistance2d, s as samePoint$1, e as subtract2d, c as add2d } from "./helpers-CXtMYc7c.js";
58
- import { d as getEdges } from "./shapeFns-BMKwZa-B.js";
59
- import { m as makeCompound, b as basicFaceExtrusion, r as revolution, a as makeSolid, c as complexExtrude, t as twistExtrude } from "./loft--Zftp4ii.js";
57
+ import { d as distance2d, p as polarAngle2d, f as polarToCartesian, P as PRECISION_OFFSET, h as squareDistance2d, s as samePoint$1, e as subtract2d, c as add2d } from "./helpers-BUdSB_hP.js";
58
+ import { d as getEdges } from "./shapeFns-BiMiqVm0.js";
59
+ import { m as makeCompound, b as basicFaceExtrusion, r as revolution, a as makeSolid, c as complexExtrude, t as twistExtrude } from "./loft-B6AuFlWT.js";
60
60
  import opentype from "opentype.js";
61
- import { c as cornerFinder } from "./cornerFinder-DqxDHC8E.js";
61
+ import { c as cornerFinder } from "./cornerFinder-DiwhBI6W.js";
62
62
  const stitchCurves = (curves, precision = 1e-7) => {
63
63
  const startPoints = new Flatbush(curves.length);
64
64
  curves.forEach((c) => {
@@ -1,4 +1,4 @@
1
- import { q as getKernel, c as castShape, j as isShape3D$1, n as isWire$1 } from "./shapeTypes-Dbddor5a.js";
1
+ import { q as getKernel, c as castShape, j as isShape3D$1, n as isWire$1 } from "./shapeTypes-D5th-THo.js";
2
2
  import { a as toVec3 } from "./types-CWDdqcrq.js";
3
3
  import { e as err, p as typeCastError, o as ok, u as unwrap } from "./errors-C_XjfNt5.js";
4
4
  const TOPO_ENUM = {
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const shapeTypes = require("./shapeTypes-C5vVRDiO.cjs");
2
+ const shapeTypes = require("./shapeTypes-DIwQBQKB.cjs");
3
3
  const types = require("./types-CA_xrgDq.cjs");
4
4
  const errors = require("./errors-HU7EpHt3.cjs");
5
5
  const TOPO_ENUM = {
@@ -1,10 +1,10 @@
1
1
  import { bug } from "./result.js";
2
- import { c as castShape, q as getKernel, e as isFace } from "./shapeTypes-Dbddor5a.js";
2
+ import { c as castShape, q as getKernel, e as isFace } from "./shapeTypes-D5th-THo.js";
3
3
  import { e as err, q as queryError, o as ok, u as unwrap } from "./errors-C_XjfNt5.js";
4
4
  import { j as vecNormalize, d as vecDot, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
5
- import { i as iterTopo, d as downcast, g as getSurfaceType, n as normalAt } from "./faceFns-DSzkK92I.js";
6
- import { m as measureArea } from "./measurement-DGkcXwNl.js";
7
- import { f as getHashCode, i as isSameShape } from "./shapeFns-BMKwZa-B.js";
5
+ import { i as iterTopo, d as downcast, g as getSurfaceType, n as normalAt } from "./faceFns-CScUN5LN.js";
6
+ import { m as measureArea } from "./measurement-Xm1XusbA.js";
7
+ import { f as getHashCode, i as isSameShape } from "./shapeFns-BiMiqVm0.js";
8
8
  const PRECISION_INTERSECTION = 1e-9;
9
9
  const PRECISION_OFFSET = 1e-8;
10
10
  const PRECISION_POINT = 1e-6;
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  const result = require("./result.cjs");
3
- const shapeTypes = require("./shapeTypes-C5vVRDiO.cjs");
3
+ const shapeTypes = require("./shapeTypes-DIwQBQKB.cjs");
4
4
  const errors = require("./errors-HU7EpHt3.cjs");
5
5
  const vecOps = require("./vecOps-CjRL1jau.cjs");
6
- const faceFns = require("./faceFns-BHJP2pvz.cjs");
7
- const measurement = require("./measurement-BodokO6v.cjs");
8
- const shapeFns = require("./shapeFns-D6jXs2lM.cjs");
6
+ const faceFns = require("./faceFns-Cqgs0uTB.cjs");
7
+ const measurement = require("./measurement-D61iSCBv.cjs");
8
+ const shapeFns = require("./shapeFns-BvwnrLYU.cjs");
9
9
  const PRECISION_INTERSECTION = 1e-9;
10
10
  const PRECISION_OFFSET = 1e-8;
11
11
  const PRECISION_POINT = 1e-6;
package/dist/io.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const shapeTypes = require("./shapeTypes-C5vVRDiO.cjs");
3
+ const shapeTypes = require("./shapeTypes-DIwQBQKB.cjs");
4
4
  const errors = require("./errors-HU7EpHt3.cjs");
5
- const meshFns = require("./meshFns-CpVstMGT.cjs");
6
- const Blueprint = require("./Blueprint-CN8uhMwg.cjs");
5
+ const meshFns = require("./meshFns-CCrO47TM.cjs");
6
+ const Blueprint = require("./Blueprint-pgzr1snT.cjs");
7
7
  function vec3At(arr, i) {
8
8
  const off = i * 3;
9
9
  return [arr[off], arr[off + 1], arr[off + 2]];
package/dist/io.js CHANGED
@@ -1,7 +1,7 @@
1
- import { q as getKernel, c as castShape } from "./shapeTypes-Dbddor5a.js";
1
+ import { q as getKernel, c as castShape } from "./shapeTypes-D5th-THo.js";
2
2
  import { e as err, i as ioError, o as ok } from "./errors-C_XjfNt5.js";
3
- import { e, d, f } from "./meshFns-C7fBvGa4.js";
4
- import { B as Blueprint, a as make2dSegmentCurve, l as make2dThreePointArc, q as make2dBezierCurve } from "./Blueprint-C4841kzg.js";
3
+ import { e, d, f } from "./meshFns-B8LxlRhm.js";
4
+ import { B as Blueprint, a as make2dSegmentCurve, l as make2dThreePointArc, q as make2dBezierCurve } from "./Blueprint-D-l9y6vQ.js";
5
5
  function vec3At(arr, i) {
6
6
  const off = i * 3;
7
7
  return [arr[off], arr[off + 1], arr[off + 2]];
@@ -63,6 +63,7 @@ export declare class BrepkitAdapter implements KernelAdapter {
63
63
  makeWire(edges: KernelShape[]): KernelShape;
64
64
  makeFace(wire: KernelShape, _planar?: boolean): KernelShape;
65
65
  makeBox(width: number, height: number, depth: number): KernelShape;
66
+ makeRectangle(width: number, height: number): KernelShape;
66
67
  makeCylinder(radius: number, height: number, center?: [number, number, number], direction?: [number, number, number]): KernelShape;
67
68
  makeSphere(radius: number, center?: [number, number, number]): KernelShape;
68
69
  makeCone(radius1: number, radius2: number, height: number, center?: [number, number, number], direction?: [number, number, number]): KernelShape;
@@ -150,7 +151,7 @@ export declare class BrepkitAdapter implements KernelAdapter {
150
151
  downcast(shape: KernelShape, _type?: ShapeType): KernelShape;
151
152
  hashCode(shape: KernelShape, upperBound: number): number;
152
153
  isNull(shape: KernelShape): boolean;
153
- shapeOrientation(_shape: KernelShape): ShapeOrientation;
154
+ shapeOrientation(shape: KernelShape): ShapeOrientation;
154
155
  vertexPosition(vertex: KernelShape): [number, number, number];
155
156
  surfaceType(face: KernelShape): SurfaceType;
156
157
  uvBounds(face: KernelShape): {
@@ -359,7 +360,7 @@ export declare class BrepkitAdapter implements KernelAdapter {
359
360
  distance: number;
360
361
  } | null;
361
362
  distanceBetweenCurves2d(c1: Curve2dHandle, c2: Curve2dHandle, p1s: number, p1e: number, p2s: number, p2e: number): number;
362
- approximateCurve2dAsBSpline(curve: Curve2dHandle, _tol: number, _cont: 'C0' | 'C1' | 'C2' | 'C3', _maxSeg: number): Curve2dHandle;
363
+ approximateCurve2dAsBSpline(curve: Curve2dHandle, tol: number, cont: 'C0' | 'C1' | 'C2' | 'C3', maxSeg: number): Curve2dHandle;
363
364
  decomposeBSpline2dToBeziers(curve: Curve2dHandle): Curve2dHandle[];
364
365
  createBoundingBox2d(): BBox2dHandle;
365
366
  addCurveToBBox2d(bbox: BBox2dHandle, curve: Curve2dHandle, tol: number): void;
@@ -396,10 +397,10 @@ export declare class BrepkitAdapter implements KernelAdapter {
396
397
  serializeCurve2d(curve: Curve2dHandle): string;
397
398
  deserializeCurve2d(data: string): Curve2dHandle;
398
399
  splitCurve2d(curve: Curve2dHandle, params: number[]): Curve2dHandle[];
399
- liftCurve2dToPlane(curve: Curve2dHandle, origin: [number, number, number], _z: [number, number, number], x: [number, number, number]): KernelShape;
400
+ liftCurve2dToPlane(curve: Curve2dHandle, origin: [number, number, number], planeZ: [number, number, number], planeX: [number, number, number]): KernelShape;
400
401
  buildEdgeOnSurface(curve: Curve2dHandle, surface: KernelType): KernelShape;
401
402
  extractSurfaceFromFace(face: KernelShape): KernelType;
402
- extractCurve2dFromEdge(edge: KernelShape, _face: KernelShape): Curve2dHandle;
403
+ extractCurve2dFromEdge(edge: KernelShape, face: KernelShape): Curve2dHandle;
403
404
  buildCurves3d(_wire: KernelShape): void;
404
405
  fixWireOnFace(wire: KernelShape, _face: KernelShape, _tolerance: number): KernelShape;
405
406
  fillSurface(wires: KernelShape[], _options?: Record<string, unknown>): KernelShape;