brepjs 11.1.0 → 12.1.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 (62) hide show
  1. package/dist/2d.cjs +2 -2
  2. package/dist/2d.js +3 -3
  3. package/dist/{Blueprint-CLTPhRrX.cjs → Blueprint-CFdLzoy5.cjs} +5 -5
  4. package/dist/{Blueprint-ZYbZFf8k.js → Blueprint-DQ18yiAI.js} +5 -5
  5. package/dist/{boolean2D-2PgkEXQI.cjs → boolean2D-C5tjWX5T.cjs} +7 -7
  6. package/dist/{boolean2D-CcUukTCR.js → boolean2D-Dq3HF-Pd.js} +7 -7
  7. package/dist/{booleanFns-DYPtry1r.js → booleanFns-DdU6eLxI.js} +3 -3
  8. package/dist/{booleanFns-Dn_bhmQx.cjs → booleanFns-PbcD1St_.cjs} +3 -3
  9. package/dist/brepjs.cjs +17 -17
  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-DUQ49dbs.cjs → cornerFinder-BphV9OLn.cjs} +1 -1
  14. package/dist/{cornerFinder-D3_2q7Ky.js → cornerFinder-Dv3C7Yen.js} +1 -1
  15. package/dist/{curveFns-Cvg4yXNx.cjs → curveFns-CeHbFVDc.cjs} +1 -1
  16. package/dist/{curveFns-CLfpQUbp.js → curveFns-GOcBuoCc.js} +1 -1
  17. package/dist/{drawFns-DvmLmACS.js → drawFns-7fN_tn1I.js} +11 -11
  18. package/dist/{drawFns-BcvAmru-.cjs → drawFns-F5uDtd2v.cjs} +11 -11
  19. package/dist/{faceFns-D0NBukO3.cjs → faceFns-Bhlm333o.cjs} +1 -1
  20. package/dist/{faceFns-sDKg1cEY.js → faceFns-g5hzl_xe.js} +1 -1
  21. package/dist/{helpers-DjJq39y1.cjs → helpers-D3jdmQoR.cjs} +4 -4
  22. package/dist/{helpers-CY4IVewu.js → helpers-Vqsg_fss.js} +4 -4
  23. package/dist/io/objImportFns.d.ts.map +1 -1
  24. package/dist/io/svgImportFns.d.ts.map +1 -1
  25. package/dist/io.cjs +3 -3
  26. package/dist/io.js +3 -3
  27. package/dist/kernel/index.d.ts.map +1 -1
  28. package/dist/kernel/meshOps.d.ts +3 -18
  29. package/dist/kernel/meshOps.d.ts.map +1 -1
  30. package/dist/{loft-b_Pg0XM1.cjs → loft-B3ZDn94G.cjs} +4 -4
  31. package/dist/{loft-Df3ZQS7W.js → loft-BGHICbBS.js} +4 -4
  32. package/dist/{measurement-Fds3hmYm.cjs → measurement--jEL3ePF.cjs} +2 -2
  33. package/dist/{measurement-DyL_t_-5.js → measurement-Ce4oE8Fg.js} +2 -2
  34. package/dist/measurement.cjs +1 -1
  35. package/dist/measurement.js +1 -1
  36. package/dist/{meshFns-Dfcs9eAt.js → meshFns-bHjCcOZp.js} +2 -2
  37. package/dist/{meshFns-CAM0i3HL.cjs → meshFns-rTBykpgO.cjs} +2 -2
  38. package/dist/operations/roofFns.d.ts.map +1 -1
  39. package/dist/{operations-DK9ff35N.cjs → operations-Cb4gWPwL.cjs} +5 -5
  40. package/dist/{operations-DPASwyKc.js → operations-D3BtYsAB.js} +5 -5
  41. package/dist/operations.cjs +2 -2
  42. package/dist/operations.js +2 -2
  43. package/dist/projection/cameraFns.d.ts.map +1 -1
  44. package/dist/query/edgeFinder.d.ts.map +1 -1
  45. package/dist/query/faceFinder.d.ts.map +1 -1
  46. package/dist/query.cjs +4 -4
  47. package/dist/query.js +5 -5
  48. package/dist/{shapeFns-0s1aR_cC.cjs → shapeFns-BHSGfqFS.cjs} +2 -2
  49. package/dist/{shapeFns-DFi6DyHe.js → shapeFns-smSl7yhL.js} +2 -2
  50. package/dist/{shapeTypes-CHvr4HNj.cjs → shapeTypes-BzrjB5be.cjs} +4 -307
  51. package/dist/{shapeTypes-CGYrwYIi.js → shapeTypes-Py3LEyDe.js} +4 -307
  52. package/dist/sketching.cjs +2 -2
  53. package/dist/sketching.js +2 -2
  54. package/dist/{solidBuilders-DL3HLeGB.cjs → solidBuilders-DINhvxLC.cjs} +2 -2
  55. package/dist/{solidBuilders-Deq--0VP.js → solidBuilders-Jh5Bnm02.js} +2 -2
  56. package/dist/{surfaceBuilders-DJb4Wqp4.cjs → surfaceBuilders-BCd-ugN2.cjs} +2 -2
  57. package/dist/{surfaceBuilders-C_yplHt0.js → surfaceBuilders-CD_9kc1m.js} +2 -2
  58. package/dist/{topology-17JMovMt.cjs → topology-B15z3Ts4.cjs} +8 -8
  59. package/dist/{topology-CLQxNoar.js → topology-DmQY6469.js} +8 -8
  60. package/dist/topology.cjs +6 -6
  61. package/dist/topology.js +6 -6
  62. 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-CLTPhRrX.cjs");
4
- const boolean2D = require("./boolean2D-2PgkEXQI.cjs");
3
+ const Blueprint = require("./Blueprint-CFdLzoy5.cjs");
4
+ const boolean2D = require("./boolean2D-C5tjWX5T.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-ZYbZFf8k.js";
2
- import { d, C } from "./Blueprint-ZYbZFf8k.js";
3
- import { e, C as C2, f, l, g, n, k, q, o, p, r } from "./boolean2D-CcUukTCR.js";
1
+ import { B as Blueprint } from "./Blueprint-DQ18yiAI.js";
2
+ import { d, C } from "./Blueprint-DQ18yiAI.js";
3
+ import { e, C as C2, f, l, g, n, k, q, o, p, r } from "./boolean2D-Dq3HF-Pd.js";
4
4
  function reverseCurve(curve) {
5
5
  const cloned = curve.clone();
6
6
  cloned.reverse();
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  const vectors = require("./vectors-TlfO1hu2.cjs");
3
3
  const types = require("./types-CA_xrgDq.cjs");
4
- const shapeTypes = require("./shapeTypes-CHvr4HNj.cjs");
5
- const faceFns = require("./faceFns-D0NBukO3.cjs");
6
- const curveFns = require("./curveFns-Cvg4yXNx.cjs");
4
+ const shapeTypes = require("./shapeTypes-BzrjB5be.cjs");
5
+ const faceFns = require("./faceFns-Bhlm333o.cjs");
6
+ const curveFns = require("./curveFns-CeHbFVDc.cjs");
7
7
  const errors = require("./errors-9fDehDNc.cjs");
8
- const helpers = require("./helpers-DjJq39y1.cjs");
8
+ const helpers = require("./helpers-D3jdmQoR.cjs");
9
9
  const vecOps = require("./vecOps-CjRL1jau.cjs");
10
- const surfaceBuilders = require("./surfaceBuilders-DJb4Wqp4.cjs");
10
+ const surfaceBuilders = require("./surfaceBuilders-BCd-ugN2.cjs");
11
11
  const result = require("./result.cjs");
12
12
  function makePlane(plane, origin) {
13
13
  if (plane && typeof plane !== "string") {
@@ -1,12 +1,12 @@
1
1
  import { r as resolvePlane } from "./vectors-cec8p8NQ.js";
2
2
  import { a as toVec3 } from "./types-CWDdqcrq.js";
3
- import { B as getKernel, J as getKernel2D, K as registerForCleanup, L as unregisterFromCleanup, H as createEdge, G as createWire } from "./shapeTypes-CGYrwYIi.js";
4
- import { u as uvBounds, f as faceGeomType, e as faceCenter, h as uvCoordinates, c as cast } from "./faceFns-sDKg1cEY.js";
5
- import { g as getOrientation } from "./curveFns-CLfpQUbp.js";
3
+ import { B as getKernel, J as getKernel2D, K as registerForCleanup, L as unregisterFromCleanup, H as createEdge, G as createWire } from "./shapeTypes-Py3LEyDe.js";
4
+ import { u as uvBounds, f as faceGeomType, e as faceCenter, h as uvCoordinates, c as cast } from "./faceFns-g5hzl_xe.js";
5
+ import { g as getOrientation } from "./curveFns-GOcBuoCc.js";
6
6
  import { o as ok, e as err, b as computationError, r as unwrap, y as validationError } from "./errors-B7kgv0cd.js";
7
- import { d as distance2d, s as samePoint, b as scalarMultiply2d, c as add2d, e as subtract2d, g as getSingleFace } from "./helpers-CY4IVewu.js";
7
+ import { d as distance2d, s as samePoint, b as scalarMultiply2d, c as add2d, e as subtract2d, g as getSingleFace } from "./helpers-Vqsg_fss.js";
8
8
  import { R as RAD2DEG, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
9
- import { m as makeFace } from "./surfaceBuilders-C_yplHt0.js";
9
+ import { m as makeFace } from "./surfaceBuilders-CD_9kc1m.js";
10
10
  import { bug } from "./result.js";
11
11
  function makePlane(plane, origin) {
12
12
  if (plane && typeof plane !== "string") {
@@ -46,16 +46,16 @@ var __callDispose = (stack, error, hasError) => {
46
46
  };
47
47
  const vectors = require("./vectors-TlfO1hu2.cjs");
48
48
  const errors = require("./errors-9fDehDNc.cjs");
49
- const faceFns = require("./faceFns-D0NBukO3.cjs");
49
+ const faceFns = require("./faceFns-Bhlm333o.cjs");
50
50
  const types = require("./types-CA_xrgDq.cjs");
51
51
  const vecOps = require("./vecOps-CjRL1jau.cjs");
52
- const loft = require("./loft-b_Pg0XM1.cjs");
53
- const shapeTypes = require("./shapeTypes-CHvr4HNj.cjs");
54
- const curveFns = require("./curveFns-Cvg4yXNx.cjs");
55
- const surfaceBuilders = require("./surfaceBuilders-DJb4Wqp4.cjs");
52
+ const loft = require("./loft-B3ZDn94G.cjs");
53
+ const shapeTypes = require("./shapeTypes-BzrjB5be.cjs");
54
+ const curveFns = require("./curveFns-CeHbFVDc.cjs");
55
+ const surfaceBuilders = require("./surfaceBuilders-BCd-ugN2.cjs");
56
56
  const result = require("./result.cjs");
57
- const helpers = require("./helpers-DjJq39y1.cjs");
58
- const Blueprint = require("./Blueprint-CLTPhRrX.cjs");
57
+ const helpers = require("./helpers-D3jdmQoR.cjs");
58
+ const Blueprint = require("./Blueprint-CFdLzoy5.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-cec8p8NQ.js";
47
47
  import { o as ok, e as err, b as computationError, r as unwrap, g as isOk } from "./errors-B7kgv0cd.js";
48
- import { d as downcast, u as uvBounds, p as pointOnSurface, n as normalAt } from "./faceFns-sDKg1cEY.js";
48
+ import { d as downcast, u as uvBounds, p as pointOnSurface, n as normalAt } from "./faceFns-g5hzl_xe.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-Df3ZQS7W.js";
52
- import { J as getKernel2D, I as createFace, G as createWire, B as getKernel, H as createEdge, D as DisposalScope } from "./shapeTypes-CGYrwYIi.js";
53
- import { d as curveStartPoint, c as curveTangentAt, e as curveIsClosed } from "./curveFns-CLfpQUbp.js";
54
- import { m as makeFace, l as makeNewFaceWithinFace, b as assembleWire, z as zip } from "./surfaceBuilders-C_yplHt0.js";
51
+ import { r as revolution, c as complexExtrude, t as twistExtrude, b as basicFaceExtrusion, g as genericSweep, l as loft } from "./loft-BGHICbBS.js";
52
+ import { J as getKernel2D, I as createFace, G as createWire, B as getKernel, H as createEdge, D as DisposalScope } from "./shapeTypes-Py3LEyDe.js";
53
+ import { d as curveStartPoint, c as curveTangentAt, e as curveIsClosed } from "./curveFns-GOcBuoCc.js";
54
+ import { m as makeFace, l as makeNewFaceWithinFace, b as assembleWire, z as zip } from "./surfaceBuilders-CD_9kc1m.js";
55
55
  import { bug } from "./result.js";
56
- import { s as samePoint$1, 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-CY4IVewu.js";
57
- import { C as Curve2D, a as make2dSegmentCurve, j as approximateAsBSpline, n as normalize2d, b as make2dArcFromCenter, k as isPoint2D, g as make2dCircle, l as make2dThreePointArc, d as BoundingBox2d, v as viewbox, o as asSVG, B as Blueprint, p as make2dEllipseArc, q as make2dTangentArc, r as make2dBezierCurve, s as removeDuplicatePoints } from "./Blueprint-ZYbZFf8k.js";
56
+ import { s as samePoint$1, 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-Vqsg_fss.js";
57
+ import { C as Curve2D, a as make2dSegmentCurve, j as approximateAsBSpline, n as normalize2d, b as make2dArcFromCenter, k as isPoint2D, g as make2dCircle, l as make2dThreePointArc, d as BoundingBox2d, v as viewbox, o as asSVG, B as Blueprint, p as make2dEllipseArc, q as make2dTangentArc, r as make2dBezierCurve, s as removeDuplicatePoints } from "./Blueprint-DQ18yiAI.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,9 +1,9 @@
1
- import { B as getKernel, c as castShape, p as isShape3D } from "./shapeTypes-CGYrwYIi.js";
1
+ import { B as getKernel, c as castShape, p as isShape3D } from "./shapeTypes-Py3LEyDe.js";
2
2
  import { o as ok, d as isErr, e as err, y as validationError, B as BrepErrorCode, p as typeCastError, k as kernelError } from "./errors-B7kgv0cd.js";
3
3
  import { r as resolvePlane } from "./vectors-cec8p8NQ.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, g as getFaceOrigins, c as getWires, d as getEdges, e as getVertices } from "./shapeFns-DFi6DyHe.js";
6
- import { m as makeFace } from "./surfaceBuilders-C_yplHt0.js";
5
+ import { a as getFaces, p as propagateOriginsFromEvolution, b as propagateOriginsByHash, g as getFaceOrigins, c as getWires, d as getEdges, e as getVertices } from "./shapeFns-smSl7yhL.js";
6
+ import { m as makeFace } from "./surfaceBuilders-CD_9kc1m.js";
7
7
  const shapeTagStore = /* @__PURE__ */ new WeakMap();
8
8
  const tagMetadataStore = /* @__PURE__ */ new WeakMap();
9
9
  function hasFaceTags(shape) {
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
- const shapeTypes = require("./shapeTypes-CHvr4HNj.cjs");
2
+ const shapeTypes = require("./shapeTypes-BzrjB5be.cjs");
3
3
  const errors = require("./errors-9fDehDNc.cjs");
4
4
  const vectors = require("./vectors-TlfO1hu2.cjs");
5
5
  const vecOps = require("./vecOps-CjRL1jau.cjs");
6
- const shapeFns = require("./shapeFns-0s1aR_cC.cjs");
7
- const surfaceBuilders = require("./surfaceBuilders-DJb4Wqp4.cjs");
6
+ const shapeFns = require("./shapeFns-BHSGfqFS.cjs");
7
+ const surfaceBuilders = require("./surfaceBuilders-BCd-ugN2.cjs");
8
8
  const shapeTagStore = /* @__PURE__ */ new WeakMap();
9
9
  const tagMetadataStore = /* @__PURE__ */ new WeakMap();
10
10
  function hasFaceTags(shape) {
package/dist/brepjs.cjs CHANGED
@@ -45,31 +45,31 @@ 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-CHvr4HNj.cjs");
48
+ const shapeTypes = require("./shapeTypes-BzrjB5be.cjs");
49
49
  const errors = require("./errors-9fDehDNc.cjs");
50
50
  const vecOps = require("./vecOps-CjRL1jau.cjs");
51
- const Blueprint = require("./Blueprint-CLTPhRrX.cjs");
52
- const loft$2 = require("./loft-b_Pg0XM1.cjs");
53
- const operations = require("./operations-DK9ff35N.cjs");
54
- const boolean2D = require("./boolean2D-2PgkEXQI.cjs");
51
+ const Blueprint = require("./Blueprint-CFdLzoy5.cjs");
52
+ const loft$2 = require("./loft-B3ZDn94G.cjs");
53
+ const operations = require("./operations-Cb4gWPwL.cjs");
54
+ const boolean2D = require("./boolean2D-C5tjWX5T.cjs");
55
55
  const _2d = require("./2d.cjs");
56
- const helpers = require("./helpers-DjJq39y1.cjs");
56
+ const helpers = require("./helpers-D3jdmQoR.cjs");
57
57
  const io = require("./io.cjs");
58
- const drawFns = require("./drawFns-BcvAmru-.cjs");
58
+ const drawFns = require("./drawFns-F5uDtd2v.cjs");
59
59
  const types = require("./types-CA_xrgDq.cjs");
60
60
  const vectors = require("./vectors-TlfO1hu2.cjs");
61
- const shapeFns = require("./shapeFns-0s1aR_cC.cjs");
62
- const booleanFns = require("./booleanFns-Dn_bhmQx.cjs");
63
- const topology = require("./topology-17JMovMt.cjs");
64
- const curveFns = require("./curveFns-Cvg4yXNx.cjs");
65
- const faceFns = require("./faceFns-D0NBukO3.cjs");
66
- const meshFns = require("./meshFns-CAM0i3HL.cjs");
67
- const measurement = require("./measurement-Fds3hmYm.cjs");
68
- const surfaceBuilders = require("./surfaceBuilders-DJb4Wqp4.cjs");
61
+ const shapeFns = require("./shapeFns-BHSGfqFS.cjs");
62
+ const booleanFns = require("./booleanFns-PbcD1St_.cjs");
63
+ const topology = require("./topology-B15z3Ts4.cjs");
64
+ const curveFns = require("./curveFns-CeHbFVDc.cjs");
65
+ const faceFns = require("./faceFns-Bhlm333o.cjs");
66
+ const meshFns = require("./meshFns-rTBykpgO.cjs");
67
+ const measurement = require("./measurement--jEL3ePF.cjs");
68
+ const surfaceBuilders = require("./surfaceBuilders-BCd-ugN2.cjs");
69
69
  const query = require("./query.cjs");
70
- const solidBuilders = require("./solidBuilders-DL3HLeGB.cjs");
70
+ const solidBuilders = require("./solidBuilders-DINhvxLC.cjs");
71
71
  const result = require("./result.cjs");
72
- const cornerFinder = require("./cornerFinder-DUQ49dbs.cjs");
72
+ const cornerFinder = require("./cornerFinder-BphV9OLn.cjs");
73
73
  const worker = require("./worker.cjs");
74
74
  function supportsProjection(kernel) {
75
75
  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, B as getKernel, k as isFace, q as isShell, r as isSolid, p as isShape3D, F as createSolid, G as createWire, j as isEdge, u as isWire } from "./shapeTypes-CGYrwYIi.js";
47
- import { M, N, O, a, C, H, I, b, d, P, E, g, Q, i, e, f, h, l, m, n, o, s, t, v, w, R, x, S, y, z, A } from "./shapeTypes-CGYrwYIi.js";
46
+ import { c as castShape, D as DisposalScope, B as getKernel, k as isFace, q as isShell, r as isSolid, p as isShape3D, F as createSolid, G as createWire, j as isEdge, u as isWire } from "./shapeTypes-Py3LEyDe.js";
47
+ import { M, N, O, a, C, H, I, b, d, P, E, g, Q, i, e, f, h, l, m, n, o, s, t, v, w, R, x, S, y, z, A } from "./shapeTypes-Py3LEyDe.js";
48
48
  import { o as ok, z as translateKernelError, e as err, p as typeCastError, q as queryError, y as validationError, B as BrepErrorCode, k as kernelError, i as ioError, d as isErr, r as unwrap } from "./errors-B7kgv0cd.js";
49
49
  import { O as O2, A as A2, a as a2, c, b as b2, f as f2, C as C2, g as g2, m as m2, h as h2, j, l as l2, D, E as E2, F, s as s2, G, H as H2, t as t2, n as n2, u, v as v2, w as w2, x as x2, I as I2 } from "./errors-B7kgv0cd.js";
50
50
  import { c as vecDistance, H as HASH_CODE_MAX, n as vecScale, j as vecNormalize, f as vecIsZero } from "./vecOps-ZDdZWbwT.js";
51
51
  import { D as D2, R as R2, v as v3, a as a3, b as b3, d as d2, e as e2, g as g3, h as h3, i as i2, k, l as l3, m as m3, o as o2 } from "./vecOps-ZDdZWbwT.js";
52
- import { B, d as d3, C as C3, t as t3 } from "./Blueprint-ZYbZFf8k.js";
53
- import { b as b4, g as g4, r } from "./loft-Df3ZQS7W.js";
54
- import { w as walkAssembly, e as extrude$1, r as revolve$1, s as sweep, c as circularPattern, l as linearPattern } from "./operations-DPASwyKc.js";
55
- import { a as a4, b as b5, d as d4, f as f3, g as g5, h as h4, i as i3, j as j2, k as k2, m as m4, n as n3, o as o3, p, q, t as t4, u as u2, v as v4, x as x3, y as y2, z as z2, A as A3, B as B2, C as C4, D as D3, E as E3, F as F2, G as G2 } from "./operations-DPASwyKc.js";
56
- import { B as B3, a as a5, e as e3, C as C5, F as F3, S as S2, f as f4, l as l4, g as g6, n as n4, k as k3, q as q2, o as o4, p as p2, r as r2 } from "./boolean2D-CcUukTCR.js";
52
+ import { B, d as d3, C as C3, t as t3 } from "./Blueprint-DQ18yiAI.js";
53
+ import { b as b4, g as g4, r } from "./loft-BGHICbBS.js";
54
+ import { w as walkAssembly, e as extrude$1, r as revolve$1, s as sweep, c as circularPattern, l as linearPattern } from "./operations-D3BtYsAB.js";
55
+ import { a as a4, b as b5, d as d4, f as f3, g as g5, h as h4, i as i3, j as j2, k as k2, m as m4, n as n3, o as o3, p, q, t as t4, u as u2, v as v4, x as x3, y as y2, z as z2, A as A3, B as B2, C as C4, D as D3, E as E3, F as F2, G as G2 } from "./operations-D3BtYsAB.js";
56
+ import { B as B3, a as a5, e as e3, C as C5, F as F3, S as S2, f as f4, l as l4, g as g6, n as n4, k as k3, q as q2, o as o4, p as p2, r as r2 } from "./boolean2D-Dq3HF-Pd.js";
57
57
  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";
58
- import { l as createTypedFinder, m as faceFinder } from "./helpers-CY4IVewu.js";
59
- import { g as g7 } from "./helpers-CY4IVewu.js";
58
+ import { l as createTypedFinder, m as faceFinder } from "./helpers-Vqsg_fss.js";
59
+ import { g as g7 } from "./helpers-Vqsg_fss.js";
60
60
  import { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportOBJ, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD } from "./io.js";
61
- import { C as C6, D as D4, a as a6, S as S3, b as b6, X, Y, c as c2, d as d5, e as e4, f as f5, Z, g as g8, h as h5, i as i4, j as j3, k as k4, l as l5, m as m5, n as n5, o as o5, p as p3, q as q3, r as r3, s as s3, t as t5, u as u3, v as v5, w as w3, x as x4, y as y3, z as z3, _, $, a0, a1, A as A4, a2 as a22, B as B4, E as E4, a3 as a32, F as F4, G as G3, H as H3, I as I3, J, K, L, M as M2, N as N2, O as O3, P as P2, Q as Q2, R as R3, T, U, a4 as a42, V, a5 as a52, a6 as a62, W } from "./drawFns-DvmLmACS.js";
61
+ import { C as C6, D as D4, a as a6, S as S3, b as b6, X, Y, c as c2, d as d5, e as e4, f as f5, Z, g as g8, h as h5, i as i4, j as j3, k as k4, l as l5, m as m5, n as n5, o as o5, p as p3, q as q3, r as r3, s as s3, t as t5, u as u3, v as v5, w as w3, x as x4, y as y3, z as z3, _, $, a0, a1, A as A4, a2 as a22, B as B4, E as E4, a3 as a32, F as F4, G as G3, H as H3, I as I3, J, K, L, M as M2, N as N2, O as O3, P as P2, Q as Q2, R as R3, T, U, a4 as a42, V, a5 as a52, a6 as a62, W } from "./drawFns-7fN_tn1I.js";
62
62
  import { a as toVec3 } from "./types-CWDdqcrq.js";
63
63
  import { r as r4, t as t6 } from "./types-CWDdqcrq.js";
64
64
  import { c as c3, a as a7, p as p4, r as r5, t as t7 } from "./vectors-cec8p8NQ.js";
65
- import { v as vertexPosition, a as getFaces, e as getVertices, d as getEdges, h as getBounds, p as propagateOriginsFromEvolution, g as getFaceOrigins, j as applyMatrix$1, k as clone$1, l as describe$1, m as isEmpty$1, n as mirror$1, r as rotate$1, s as scale$1, o as simplify$1, t as toBREP$1, q as transformCopy$1, u as translate$1, c as getWires } from "./shapeFns-DFi6DyHe.js";
66
- import { w as w4, f as f6, x as x5, i as i5, y as y4, z as z4, A as A5, B as B5, C as C7, D as D5 } from "./shapeFns-DFi6DyHe.js";
67
- import { p as propagateFaceTagsFromEvolution, a as propagateColorsFromEvolution, h as hasFaceTags, b as hasColorMetadata, c as cut$1, f as fuse$1, i as intersect$1, s as section$1, d as sectionToFace$1, e as slice$1, g as split$1, j as fuseAll, k as cutAll } from "./booleanFns-DYPtry1r.js";
68
- import { l as l6, m as m6, n as n6, o as o6, q as q4, r as r6, t as t8, u as u4, v as v6 } from "./booleanFns-DYPtry1r.js";
69
- import { c as chamferDistAngle, h as heal$1, i as isValid$1 } from "./topology-CLQxNoar.js";
70
- import { a as a8, b as b7, d as d6, e as e5, f as f7, g as g9, j as j4, k as k5, l as l7, m as m7, n as n7, o as o7, p as p5, q as q5, r as r7, s as s4, t as t9, u as u5, v as v7, w as w5, x as x6, y as y5, z as z5, A as A6, B as B6, C as C8, D as D6, E as E5, F as F5, G as G4, H as H4, I as I4, J as J2, K as K2, L as L2, M as M3, N as N3, O as O4, P as P3, Q as Q3 } from "./topology-CLQxNoar.js";
71
- import { e as curveIsClosed, d as curveStartPoint, c as curveTangentAt, h as curvePointAt, a as curveEndPoint, i as curveLength } from "./curveFns-CLfpQUbp.js";
72
- import { j as j5, k as k6, l as l8, f as f8, b as b8, g as g10, m as m8, o as o8 } from "./curveFns-CLfpQUbp.js";
73
- 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-sDKg1cEY.js";
74
- import { l as l9, c as c4, m as m9, d as d7, f as f9, q as q6, r as r8, s as s5, p as p6, t as t10, v as v8, u as u6, h as h6 } from "./faceFns-sDKg1cEY.js";
75
- import { m as mesh$1, a as meshEdges$1 } from "./meshFns-Dfcs9eAt.js";
76
- import { c as c5, b as b9, e as e6, d as d8, f as f10 } from "./meshFns-Dfcs9eAt.js";
77
- import { m as measureArea, a as measureSurfaceProps, b as measureVolumeProps, c as measureVolume } from "./measurement-DyL_t_-5.js";
78
- import { d as d9, e as e7, f as f11, g as g11, h as h7, i as i6 } from "./measurement-DyL_t_-5.js";
79
- import { m as makeFace } from "./surfaceBuilders-C_yplHt0.js";
80
- import { n as n8 } from "./surfaceBuilders-C_yplHt0.js";
65
+ import { v as vertexPosition, a as getFaces, e as getVertices, d as getEdges, h as getBounds, p as propagateOriginsFromEvolution, g as getFaceOrigins, j as applyMatrix$1, k as clone$1, l as describe$1, m as isEmpty$1, n as mirror$1, r as rotate$1, s as scale$1, o as simplify$1, t as toBREP$1, q as transformCopy$1, u as translate$1, c as getWires } from "./shapeFns-smSl7yhL.js";
66
+ import { w as w4, f as f6, x as x5, i as i5, y as y4, z as z4, A as A5, B as B5, C as C7, D as D5 } from "./shapeFns-smSl7yhL.js";
67
+ import { p as propagateFaceTagsFromEvolution, a as propagateColorsFromEvolution, h as hasFaceTags, b as hasColorMetadata, c as cut$1, f as fuse$1, i as intersect$1, s as section$1, d as sectionToFace$1, e as slice$1, g as split$1, j as fuseAll, k as cutAll } from "./booleanFns-DdU6eLxI.js";
68
+ import { l as l6, m as m6, n as n6, o as o6, q as q4, r as r6, t as t8, u as u4, v as v6 } from "./booleanFns-DdU6eLxI.js";
69
+ import { c as chamferDistAngle, h as heal$1, i as isValid$1 } from "./topology-DmQY6469.js";
70
+ import { a as a8, b as b7, d as d6, e as e5, f as f7, g as g9, j as j4, k as k5, l as l7, m as m7, n as n7, o as o7, p as p5, q as q5, r as r7, s as s4, t as t9, u as u5, v as v7, w as w5, x as x6, y as y5, z as z5, A as A6, B as B6, C as C8, D as D6, E as E5, F as F5, G as G4, H as H4, I as I4, J as J2, K as K2, L as L2, M as M3, N as N3, O as O4, P as P3, Q as Q3 } from "./topology-DmQY6469.js";
71
+ import { e as curveIsClosed, d as curveStartPoint, c as curveTangentAt, h as curvePointAt, a as curveEndPoint, i as curveLength } from "./curveFns-GOcBuoCc.js";
72
+ import { j as j5, k as k6, l as l8, f as f8, b as b8, g as g10, m as m8, o as o8 } from "./curveFns-GOcBuoCc.js";
73
+ 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-g5hzl_xe.js";
74
+ import { l as l9, c as c4, m as m9, d as d7, f as f9, q as q6, r as r8, s as s5, p as p6, t as t10, v as v8, u as u6, h as h6 } from "./faceFns-g5hzl_xe.js";
75
+ import { m as mesh$1, a as meshEdges$1 } from "./meshFns-bHjCcOZp.js";
76
+ import { c as c5, b as b9, e as e6, d as d8, f as f10 } from "./meshFns-bHjCcOZp.js";
77
+ import { m as measureArea, a as measureSurfaceProps, b as measureVolumeProps, c as measureVolume } from "./measurement-Ce4oE8Fg.js";
78
+ import { d as d9, e as e7, f as f11, g as g11, h as h7, i as i6 } from "./measurement-Ce4oE8Fg.js";
79
+ import { m as makeFace } from "./surfaceBuilders-CD_9kc1m.js";
80
+ import { n as n8 } from "./surfaceBuilders-CD_9kc1m.js";
81
81
  import { edgeFinder } from "./query.js";
82
- import { c as makeCylinder } from "./solidBuilders-Deq--0VP.js";
82
+ import { c as makeCylinder } from "./solidBuilders-Jh5Bnm02.js";
83
83
  import { BrepBugError, bug } from "./result.js";
84
- import { c as c6 } from "./cornerFinder-D3_2q7Ky.js";
84
+ import { c as c6 } from "./cornerFinder-Dv3C7Yen.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-9fDehDNc.cjs");
6
6
  const vectors = require("./vectors-TlfO1hu2.cjs");
7
- const shapeTypes = require("./shapeTypes-CHvr4HNj.cjs");
7
+ const shapeTypes = require("./shapeTypes-BzrjB5be.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, y } from "./errors-B7kgv0cd.js";
4
4
  import { c as c3, a as a4, p as p2, r as r3, t as t3 } from "./vectors-cec8p8NQ.js";
5
- import { D as D2, c as c4, a as a5, b as b3, d as d3, g as g3, i as i3, e as e3, f as f3, h as h3, j as j3, k as k3, l as l3, m as m3, n as n3, o as o3, p as p3, q as q2, r as r4, s as s2, t as t4, u as u2, v as v3, w as w2, x as x2, y as y2, z, A } from "./shapeTypes-CGYrwYIi.js";
5
+ import { D as D2, c as c4, a as a5, b as b3, d as d3, g as g3, i as i3, e as e3, f as f3, h as h3, j as j3, k as k3, l as l3, m as m3, n as n3, o as o3, p as p3, q as q2, r as r4, s as s2, t as t4, u as u2, v as v3, w as w2, x as x2, y as y2, z, A } from "./shapeTypes-Py3LEyDe.js";
6
6
  import { BrepBugError, bug } from "./result.js";
7
7
  export {
8
8
  BrepBugError,
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const vecOps = require("./vecOps-CjRL1jau.cjs");
3
- const helpers = require("./helpers-DjJq39y1.cjs");
3
+ const helpers = require("./helpers-D3jdmQoR.cjs");
4
4
  const PI_2 = 2 * Math.PI;
5
5
  function positiveHalfAngle(angle) {
6
6
  const limitedAngle = angle % PI_2;
@@ -1,5 +1,5 @@
1
1
  import { D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
2
- import { a as angle2d, s as samePoint, d as distance2d } from "./helpers-CY4IVewu.js";
2
+ import { a as angle2d, s as samePoint, d as distance2d } from "./helpers-Vqsg_fss.js";
3
3
  const PI_2 = 2 * Math.PI;
4
4
  function positiveHalfAngle(angle) {
5
5
  const limitedAngle = angle % PI_2;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const shapeTypes = require("./shapeTypes-CHvr4HNj.cjs");
2
+ const shapeTypes = require("./shapeTypes-BzrjB5be.cjs");
3
3
  const errors = require("./errors-9fDehDNc.cjs");
4
4
  function getCurveType(shape) {
5
5
  return shapeTypes.getKernel().curveType(shape.wrapped);
@@ -1,4 +1,4 @@
1
- import { B as getKernel, c as castShape, j as isEdge, u as isWire } from "./shapeTypes-CGYrwYIi.js";
1
+ import { B as getKernel, c as castShape, j as isEdge, u as isWire } from "./shapeTypes-Py3LEyDe.js";
2
2
  import { e as err, p as typeCastError, o as ok } from "./errors-B7kgv0cd.js";
3
3
  function getCurveType(shape) {
4
4
  return getKernel().curveType(shape.wrapped);
@@ -47,19 +47,19 @@ import { r as unwrap, g as isOk, e as err, y as validationError, o as ok } from
47
47
  import { r as resolvePlane, b as planeToWorld, d as planeToLocal } from "./vectors-cec8p8NQ.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-CcUukTCR.js";
51
- import { d as downcast, c as cast, e as faceCenter, n as normalAt, o as outerWire } from "./faceFns-sDKg1cEY.js";
52
- import { c as curveTangentAt, a as curveEndPoint, f as flipOrientation, b as getCurveType, o as offsetWire2D } from "./curveFns-CLfpQUbp.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-C_yplHt0.js";
54
- import { D as DisposalScope, B as getKernel, G as createWire, I as createFace, k as isFace, c as castShape } from "./shapeTypes-CGYrwYIi.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-ZYbZFf8k.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-Dq3HF-Pd.js";
51
+ import { d as downcast, c as cast, e as faceCenter, n as normalAt, o as outerWire } from "./faceFns-g5hzl_xe.js";
52
+ import { c as curveTangentAt, a as curveEndPoint, f as flipOrientation, b as getCurveType, o as offsetWire2D } from "./curveFns-GOcBuoCc.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-CD_9kc1m.js";
54
+ import { D as DisposalScope, B as getKernel, G as createWire, I as createFace, k as isFace, c as castShape } from "./shapeTypes-Py3LEyDe.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-DQ18yiAI.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-CY4IVewu.js";
58
- import { d as getEdges } from "./shapeFns-DFi6DyHe.js";
59
- import { a as makeCompound, b as makeSolid } from "./solidBuilders-Deq--0VP.js";
60
- import { b as basicFaceExtrusion, r as revolution, c as complexExtrude, t as twistExtrude } from "./loft-Df3ZQS7W.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-Vqsg_fss.js";
58
+ import { d as getEdges } from "./shapeFns-smSl7yhL.js";
59
+ import { a as makeCompound, b as makeSolid } from "./solidBuilders-Jh5Bnm02.js";
60
+ import { b as basicFaceExtrusion, r as revolution, c as complexExtrude, t as twistExtrude } from "./loft-BGHICbBS.js";
61
61
  import opentype from "opentype.js";
62
- import { c as cornerFinder } from "./cornerFinder-D3_2q7Ky.js";
62
+ import { c as cornerFinder } from "./cornerFinder-Dv3C7Yen.js";
63
63
  const stitchCurves = (curves, precision = 1e-7) => {
64
64
  const startPoints = new Flatbush(curves.length);
65
65
  curves.forEach((c) => {
@@ -48,19 +48,19 @@ const errors = require("./errors-9fDehDNc.cjs");
48
48
  const vectors = require("./vectors-TlfO1hu2.cjs");
49
49
  const types = require("./types-CA_xrgDq.cjs");
50
50
  const vecOps = require("./vecOps-CjRL1jau.cjs");
51
- const boolean2D = require("./boolean2D-2PgkEXQI.cjs");
52
- const faceFns = require("./faceFns-D0NBukO3.cjs");
53
- const curveFns = require("./curveFns-Cvg4yXNx.cjs");
54
- const surfaceBuilders = require("./surfaceBuilders-DJb4Wqp4.cjs");
55
- const shapeTypes = require("./shapeTypes-CHvr4HNj.cjs");
56
- const Blueprint = require("./Blueprint-CLTPhRrX.cjs");
51
+ const boolean2D = require("./boolean2D-C5tjWX5T.cjs");
52
+ const faceFns = require("./faceFns-Bhlm333o.cjs");
53
+ const curveFns = require("./curveFns-CeHbFVDc.cjs");
54
+ const surfaceBuilders = require("./surfaceBuilders-BCd-ugN2.cjs");
55
+ const shapeTypes = require("./shapeTypes-BzrjB5be.cjs");
56
+ const Blueprint = require("./Blueprint-CFdLzoy5.cjs");
57
57
  const result = require("./result.cjs");
58
- const helpers = require("./helpers-DjJq39y1.cjs");
59
- const shapeFns = require("./shapeFns-0s1aR_cC.cjs");
60
- const solidBuilders = require("./solidBuilders-DL3HLeGB.cjs");
61
- const loft = require("./loft-b_Pg0XM1.cjs");
58
+ const helpers = require("./helpers-D3jdmQoR.cjs");
59
+ const shapeFns = require("./shapeFns-BHSGfqFS.cjs");
60
+ const solidBuilders = require("./solidBuilders-DINhvxLC.cjs");
61
+ const loft = require("./loft-B3ZDn94G.cjs");
62
62
  const opentype = require("opentype.js");
63
- const cornerFinder = require("./cornerFinder-DUQ49dbs.cjs");
63
+ const cornerFinder = require("./cornerFinder-BphV9OLn.cjs");
64
64
  const stitchCurves = (curves, precision = 1e-7) => {
65
65
  const startPoints = new boolean2D.Flatbush(curves.length);
66
66
  curves.forEach((c) => {
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const shapeTypes = require("./shapeTypes-CHvr4HNj.cjs");
2
+ const shapeTypes = require("./shapeTypes-BzrjB5be.cjs");
3
3
  const types = require("./types-CA_xrgDq.cjs");
4
4
  const errors = require("./errors-9fDehDNc.cjs");
5
5
  const TOPO_ENUM = {
@@ -1,4 +1,4 @@
1
- import { B as getKernel, c as castShape, p as isShape3D$1, u as isWire$1 } from "./shapeTypes-CGYrwYIi.js";
1
+ import { B as getKernel, c as castShape, p as isShape3D$1, u as isWire$1 } from "./shapeTypes-Py3LEyDe.js";
2
2
  import { a as toVec3 } from "./types-CWDdqcrq.js";
3
3
  import { e as err, p as typeCastError, o as ok, r as unwrap } from "./errors-B7kgv0cd.js";
4
4
  const TOPO_ENUM = {
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
- const shapeTypes = require("./shapeTypes-CHvr4HNj.cjs");
2
+ const shapeTypes = require("./shapeTypes-BzrjB5be.cjs");
3
3
  const errors = require("./errors-9fDehDNc.cjs");
4
4
  const vecOps = require("./vecOps-CjRL1jau.cjs");
5
- const faceFns = require("./faceFns-D0NBukO3.cjs");
6
- const measurement = require("./measurement-Fds3hmYm.cjs");
7
- const shapeFns = require("./shapeFns-0s1aR_cC.cjs");
5
+ const faceFns = require("./faceFns-Bhlm333o.cjs");
6
+ const measurement = require("./measurement--jEL3ePF.cjs");
7
+ const shapeFns = require("./shapeFns-BHSGfqFS.cjs");
8
8
  const PRECISION_INTERSECTION = 1e-9;
9
9
  const PRECISION_OFFSET = 1e-8;
10
10
  const PRECISION_POINT = 1e-6;
@@ -1,9 +1,9 @@
1
- import { c as castShape, B as getKernel, k as isFace } from "./shapeTypes-CGYrwYIi.js";
1
+ import { c as castShape, B as getKernel, k as isFace } from "./shapeTypes-Py3LEyDe.js";
2
2
  import { r as unwrap, e as err, q as queryError, o as ok } from "./errors-B7kgv0cd.js";
3
3
  import { j as vecNormalize, d as vecDot, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
4
- import { i as iterTopo, d as downcast, g as getSurfaceType, n as normalAt } from "./faceFns-sDKg1cEY.js";
5
- import { m as measureArea } from "./measurement-DyL_t_-5.js";
6
- import { f as getHashCode, i as isSameShape } from "./shapeFns-DFi6DyHe.js";
4
+ import { i as iterTopo, d as downcast, g as getSurfaceType, n as normalAt } from "./faceFns-g5hzl_xe.js";
5
+ import { m as measureArea } from "./measurement-Ce4oE8Fg.js";
6
+ import { f as getHashCode, i as isSameShape } from "./shapeFns-smSl7yhL.js";
7
7
  const PRECISION_INTERSECTION = 1e-9;
8
8
  const PRECISION_OFFSET = 1e-8;
9
9
  const PRECISION_POINT = 1e-6;
@@ -1 +1 @@
1
- {"version":3,"file":"objImportFns.d.ts","sourceRoot":"","sources":["../../src/io/objImportFns.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,mBAAmB,CAAC;AAGzD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAuC5E"}
1
+ {"version":3,"file":"objImportFns.d.ts","sourceRoot":"","sources":["../../src/io/objImportFns.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,mBAAmB,CAAC;AAGzD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAuC5E"}
@@ -1 +1 @@
1
- {"version":3,"file":"svgImportFns.d.ts","sourceRoot":"","sources":["../../src/io/svgImportFns.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AASH,OAAO,SAAS,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,mBAAmB,CAAC;AAkVzD,+CAA+C;AAC/C,MAAM,WAAW,gBAAgB;IAC/B,uEAAuE;IACvE,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,CAe/D;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC,CAuChE"}
1
+ {"version":3,"file":"svgImportFns.d.ts","sourceRoot":"","sources":["../../src/io/svgImportFns.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AASH,OAAO,SAAS,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,mBAAmB,CAAC;AAkVzD,+CAA+C;AAC/C,MAAM,WAAW,gBAAgB;IAC/B,uEAAuE;IACvE,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,CAe/D;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC,CAuChE"}
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-CHvr4HNj.cjs");
3
+ const shapeTypes = require("./shapeTypes-BzrjB5be.cjs");
4
4
  const errors = require("./errors-9fDehDNc.cjs");
5
- const meshFns = require("./meshFns-CAM0i3HL.cjs");
6
- const Blueprint = require("./Blueprint-CLTPhRrX.cjs");
5
+ const meshFns = require("./meshFns-rTBykpgO.cjs");
6
+ const Blueprint = require("./Blueprint-CFdLzoy5.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 { B as getKernel, c as castShape } from "./shapeTypes-CGYrwYIi.js";
1
+ import { B as getKernel, c as castShape } from "./shapeTypes-Py3LEyDe.js";
2
2
  import { e as err, i as ioError, o as ok } from "./errors-B7kgv0cd.js";
3
- import { e, d, f } from "./meshFns-Dfcs9eAt.js";
4
- import { B as Blueprint, a as make2dSegmentCurve, l as make2dThreePointArc, r as make2dBezierCurve } from "./Blueprint-ZYbZFf8k.js";
3
+ import { e, d, f } from "./meshFns-bHjCcOZp.js";
4
+ import { B as Blueprint, a as make2dSegmentCurve, l as make2dThreePointArc, r as make2dBezierCurve } from "./Blueprint-DQ18yiAI.js";
5
5
  function vec3At(arr, i) {
6
6
  const off = i * 3;
7
7
  return [arr[off], arr[off + 1], arr[off + 2]];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/kernel/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAe7D;;;GAGG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,IAAI,CAIvE;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,aAAa,CAcpD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,kBAAkB,CAM3E;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,EACrE,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,CAAC,GACV,CAAC,CAYH;AAED,gEAAgE;AAChE,wBAAgB,UAAU,CAAC,EAAE,EAAE,cAAc,GAAG,IAAI,CAQnD;AAED,YAAY,EACV,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,cAAc,IAAI,mBAAmB,EACrC,cAAc,EACd,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,eAAe,GAChB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAE1F,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/kernel/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAc7D;;;GAGG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,IAAI,CAIvE;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,aAAa,CAcpD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,kBAAkB,CAM3E;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,EACrE,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,CAAC,GACV,CAAC,CAYH;AAED,gEAAgE;AAChE,wBAAgB,UAAU,CAAC,EAAE,EAAE,cAAc,GAAG,IAAI,CAOnD;AAED,YAAY,EACV,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,cAAc,IAAI,mBAAmB,EACrC,cAAc,EACd,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,eAAe,GAChB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAE1F,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1,28 +1,13 @@
1
1
  import { KernelInstance, KernelShape, MeshOptions, KernelMeshResult, KernelEdgeMeshResult } from './types.js';
2
- /** Reset detection cache (called when kernel is re-initialized). */
3
- export declare function resetMeshDetectionCache(): void;
4
2
  /**
5
3
  * Meshes a shape using C++ bulk extraction.
6
- */
7
- export declare function meshBulk(oc: KernelInstance, shape: KernelShape, options: MeshOptions): KernelMeshResult;
8
- /**
9
- * Meshes a shape using JS-side TopExp_Explorer extraction.
10
- */
11
- export declare function meshJS(oc: KernelInstance, shape: KernelShape, options: MeshOptions): KernelMeshResult;
12
- /**
13
- * Meshes a shape, using C++ bulk extraction when available.
4
+ *
5
+ * Single WASM call handles meshing, vertex/normal/UV extraction, face
6
+ * grouping, and triangle winding correction.
14
7
  */
15
8
  export declare function mesh(oc: KernelInstance, shape: KernelShape, options: MeshOptions): KernelMeshResult;
16
9
  /**
17
10
  * Extracts edge meshes using C++ bulk extraction.
18
11
  */
19
- export declare function meshEdgesBulk(oc: KernelInstance, shape: KernelShape, tolerance: number, angularTolerance: number): KernelEdgeMeshResult;
20
- /**
21
- * Extracts edge meshes using JS-side extraction.
22
- */
23
- export declare function meshEdgesJS(oc: KernelInstance, shape: KernelShape, tolerance: number, angularTolerance: number): KernelEdgeMeshResult;
24
- /**
25
- * Extracts edge meshes, using C++ bulk extraction when available.
26
- */
27
12
  export declare function meshEdges(oc: KernelInstance, shape: KernelShape, tolerance: number, angularTolerance: number): KernelEdgeMeshResult;
28
13
  //# sourceMappingURL=meshOps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"meshOps.d.ts","sourceRoot":"","sources":["../../src/kernel/meshOps.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,YAAY,CAAC;AAoCpB,oEAAoE;AACpE,wBAAgB,uBAAuB,IAAI,IAAI,CAE9C;AAkBD;;GAEG;AACH,wBAAgB,QAAQ,CACtB,EAAE,EAAE,cAAc,EAClB,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,WAAW,GACnB,gBAAgB,CA4DlB;AAED;;GAEG;AACH,wBAAgB,MAAM,CACpB,EAAE,EAAE,cAAc,EAClB,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,WAAW,GACnB,gBAAgB,CAqIlB;AAED;;GAEG;AACH,wBAAgB,IAAI,CAClB,EAAE,EAAE,cAAc,EAClB,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,WAAW,GACnB,gBAAgB,CAalB;AAED;;GAEG;AACH,wBAAgB,aAAa,CAC3B,EAAE,EAAE,cAAc,EAClB,KAAK,EAAE,WAAW,EAClB,SAAS,EAAE,MAAM,EACjB,gBAAgB,EAAE,MAAM,GACvB,oBAAoB,CAuBtB;AAED;;GAEG;AACH,wBAAgB,WAAW,CACzB,EAAE,EAAE,cAAc,EAClB,KAAK,EAAE,WAAW,EAClB,SAAS,EAAE,MAAM,EACjB,gBAAgB,EAAE,MAAM,GACvB,oBAAoB,CA8ItB;AAED;;GAEG;AACH,wBAAgB,SAAS,CACvB,EAAE,EAAE,cAAc,EAClB,KAAK,EAAE,WAAW,EAClB,SAAS,EAAE,MAAM,EACjB,gBAAgB,EAAE,MAAM,GACvB,oBAAoB,CAKtB"}
1
+ {"version":3,"file":"meshOps.d.ts","sourceRoot":"","sources":["../../src/kernel/meshOps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,YAAY,CAAC;AASpB;;;;;GAKG;AACH,wBAAgB,IAAI,CAClB,EAAE,EAAE,cAAc,EAClB,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,WAAW,GACnB,gBAAgB,CA+ClB;AAED;;GAEG;AACH,wBAAgB,SAAS,CACvB,EAAE,EAAE,cAAc,EAClB,KAAK,EAAE,WAAW,EAClB,SAAS,EAAE,MAAM,EACjB,gBAAgB,EAAE,MAAM,GACvB,oBAAoB,CAuBtB"}
@@ -44,13 +44,13 @@ var __callDispose = (stack, error, hasError) => {
44
44
  };
45
45
  return next();
46
46
  };
47
- const shapeTypes = require("./shapeTypes-CHvr4HNj.cjs");
47
+ const shapeTypes = require("./shapeTypes-BzrjB5be.cjs");
48
48
  const types = require("./types-CA_xrgDq.cjs");
49
49
  const vecOps = require("./vecOps-CjRL1jau.cjs");
50
- const faceFns = require("./faceFns-D0NBukO3.cjs");
50
+ const faceFns = require("./faceFns-Bhlm333o.cjs");
51
51
  const errors = require("./errors-9fDehDNc.cjs");
52
- const surfaceBuilders = require("./surfaceBuilders-DJb4Wqp4.cjs");
53
- const solidBuilders = require("./solidBuilders-DL3HLeGB.cjs");
52
+ const surfaceBuilders = require("./surfaceBuilders-BCd-ugN2.cjs");
53
+ const solidBuilders = require("./solidBuilders-DINhvxLC.cjs");
54
54
  function buildLawFromProfile(extrusionLength, { profile, endFactor = 1 }) {
55
55
  if (profile !== "s-curve" && profile !== "linear") {
56
56
  return errors.err(
@@ -43,13 +43,13 @@ var __callDispose = (stack, error, hasError) => {
43
43
  };
44
44
  return next();
45
45
  };
46
- import { B as getKernel, F as createSolid, D as DisposalScope } from "./shapeTypes-CGYrwYIi.js";
46
+ import { B as getKernel, F as createSolid, D as DisposalScope } from "./shapeTypes-Py3LEyDe.js";
47
47
  import { a as toVec3 } from "./types-CWDdqcrq.js";
48
48
  import { g as vecLength, D as DEG2RAD, v as vecAdd } from "./vecOps-ZDdZWbwT.js";
49
- import { d as downcast, c as cast, a as isShape3D, b as isWire } from "./faceFns-sDKg1cEY.js";
49
+ import { d as downcast, c as cast, a as isShape3D, b as isWire } from "./faceFns-g5hzl_xe.js";
50
50
  import { e as err, y as validationError, o as ok, r as unwrap, a as andThen, p as typeCastError, k as kernelError } from "./errors-B7kgv0cd.js";
51
- import { a as makeLine, b as assembleWire, c as makeHelix } from "./surfaceBuilders-C_yplHt0.js";
52
- import { m as makeVertex } from "./solidBuilders-Deq--0VP.js";
51
+ import { a as makeLine, b as assembleWire, c as makeHelix } from "./surfaceBuilders-CD_9kc1m.js";
52
+ import { m as makeVertex } from "./solidBuilders-Jh5Bnm02.js";
53
53
  function buildLawFromProfile(extrusionLength, { profile, endFactor = 1 }) {
54
54
  if (profile !== "s-curve" && profile !== "linear") {
55
55
  return err(
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
- const shapeTypes = require("./shapeTypes-CHvr4HNj.cjs");
3
- const faceFns = require("./faceFns-D0NBukO3.cjs");
2
+ const shapeTypes = require("./shapeTypes-BzrjB5be.cjs");
3
+ const faceFns = require("./faceFns-Bhlm333o.cjs");
4
4
  let cache = /* @__PURE__ */ new WeakMap();
5
5
  function getCachedMeasurement(shape, key) {
6
6
  return cache.get(shape)?.get(key);
@@ -1,5 +1,5 @@
1
- import { B as getKernel } from "./shapeTypes-CGYrwYIi.js";
2
- import { u as uvBounds } from "./faceFns-sDKg1cEY.js";
1
+ import { B as getKernel } from "./shapeTypes-Py3LEyDe.js";
2
+ import { u as uvBounds } from "./faceFns-g5hzl_xe.js";
3
3
  let cache = /* @__PURE__ */ new WeakMap();
4
4
  function getCachedMeasurement(shape, key) {
5
5
  return cache.get(shape)?.get(key);