brepjs 7.2.0 → 7.3.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 (121) hide show
  1. package/README.md +1 -0
  2. package/dist/2d/blueprints/blueprintFns.d.ts +33 -64
  3. package/dist/2d/blueprints/blueprintFns.d.ts.map +1 -1
  4. package/dist/2d/blueprints/boolean2dFns.d.ts +6 -3
  5. package/dist/2d/blueprints/boolean2dFns.d.ts.map +1 -1
  6. package/dist/2d.cjs +57 -13
  7. package/dist/2d.d.ts +6 -2
  8. package/dist/2d.d.ts.map +1 -1
  9. package/dist/2d.js +59 -15
  10. package/dist/{Blueprint-DCoXzdIm.cjs → Blueprint-3Dyu0OL6.cjs} +7 -7
  11. package/dist/{Blueprint-9Gdmj67R.js → Blueprint-DSHD89bZ.js} +7 -7
  12. package/dist/{boolean2D-9E0ZB4yu.cjs → boolean2D-BwOpOv6L.cjs} +9 -9
  13. package/dist/{boolean2D-BfpQtXOQ.js → boolean2D-CtyE2hK5.js} +9 -9
  14. package/dist/{booleanFns-7VTkk7ns.cjs → booleanFns-5KSbtLBU.cjs} +2 -2
  15. package/dist/{booleanFns-CZzbd4sX.js → booleanFns-DcxqLQSG.js} +2 -2
  16. package/dist/brepjs.cjs +95 -30
  17. package/dist/brepjs.js +134 -69
  18. package/dist/{cast-Bx3PuKsP.js → cast-D1s7Im9E.js} +1 -1
  19. package/dist/{cast-CQ7SKb6A.cjs → cast-DsxJk_F0.cjs} +1 -1
  20. package/dist/core/errors.d.ts +19 -8
  21. package/dist/core/errors.d.ts.map +1 -1
  22. package/dist/core/kernelCall.d.ts +6 -0
  23. package/dist/core/kernelCall.d.ts.map +1 -1
  24. package/dist/core.cjs +2 -2
  25. package/dist/core.js +2 -2
  26. package/dist/{curveFns-DqT7DqLQ.cjs → curveFns-BilyYL_s.cjs} +1 -1
  27. package/dist/{curveFns-DFRn4NzJ.js → curveFns-CdVE4da7.js} +1 -1
  28. package/dist/{drawFns-jZkfPayI.cjs → drawFns-C6KQjmQj.cjs} +11 -11
  29. package/dist/{drawFns-CzYsisur.js → drawFns-CSbH7uoI.js} +11 -11
  30. package/dist/{errors-C7Inmd1n.cjs → errors-DK1VAdP4.cjs} +81 -17
  31. package/dist/{errors-EPHOk9hi.js → errors-wGhcJMpB.js} +82 -18
  32. package/dist/{faceFns-BOc1QawY.cjs → faceFns-B9if-FPW.cjs} +2 -2
  33. package/dist/{faceFns-SBxx55zv.js → faceFns-Bl6HHbqO.js} +2 -2
  34. package/dist/index.d.ts +8 -8
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/io.cjs +3 -3
  37. package/dist/io.js +3 -3
  38. package/dist/{loft-BJHEEDu4.js → loft-BlNndTOR.js} +3 -3
  39. package/dist/{loft-Cz36k5dM.cjs → loft-Cc5E5pAf.cjs} +3 -3
  40. package/dist/{measurement-DqiOwyhS.cjs → measurement-BVdZ9cG3.cjs} +1 -1
  41. package/dist/{measurement-DZUawVj4.js → measurement-D75pyJi1.js} +10 -10
  42. package/dist/measurement.cjs +1 -1
  43. package/dist/measurement.js +8 -8
  44. package/dist/{meshFns-OmRn9qly.cjs → meshFns-mVlogI3J.cjs} +1 -1
  45. package/dist/{meshFns-BanGVcaW.js → meshFns-p_kv--PW.js} +1 -1
  46. package/dist/operations/api.d.ts +4 -4
  47. package/dist/operations/api.d.ts.map +1 -1
  48. package/dist/operations/exporterFns.d.ts +4 -2
  49. package/dist/operations/exporterFns.d.ts.map +1 -1
  50. package/dist/operations/exporters.d.ts +3 -3
  51. package/dist/operations/exporters.d.ts.map +1 -1
  52. package/dist/operations/extrude.d.ts +6 -4
  53. package/dist/operations/extrude.d.ts.map +1 -1
  54. package/dist/operations/extrudeFns.d.ts +3 -3
  55. package/dist/operations/extrudeFns.d.ts.map +1 -1
  56. package/dist/operations/extrudeUtils.d.ts +3 -1
  57. package/dist/operations/extrudeUtils.d.ts.map +1 -1
  58. package/dist/operations/loft.d.ts +2 -2
  59. package/dist/operations/loft.d.ts.map +1 -1
  60. package/dist/operations/loftFns.d.ts +4 -2
  61. package/dist/operations/loftFns.d.ts.map +1 -1
  62. package/dist/{operations-C6ry44Xe.js → operations-CEV-gqkX.js} +5 -5
  63. package/dist/{operations-IwYUx4V_.cjs → operations-SRN-mfTx.cjs} +5 -5
  64. package/dist/operations.cjs +2 -2
  65. package/dist/operations.d.ts +3 -3
  66. package/dist/operations.d.ts.map +1 -1
  67. package/dist/operations.js +2 -2
  68. package/dist/{query-CMkm1olv.js → query-D7XclvBZ.js} +6 -6
  69. package/dist/{query-Dd1h9qFw.cjs → query-DkcMfh6j.cjs} +6 -6
  70. package/dist/query.cjs +1 -1
  71. package/dist/query.js +1 -1
  72. package/dist/result.cjs +1 -1
  73. package/dist/result.js +2 -2
  74. package/dist/{shapeFns-GaYcQL6U.js → shapeFns-BpCPVHFT.js} +2 -2
  75. package/dist/{shapeFns-Df3OAlpp.cjs → shapeFns-DjsWo98C.cjs} +2 -2
  76. package/dist/{shapeHelpers-XCWxPN_X.cjs → shapeHelpers-BBSVHPGk.cjs} +3 -3
  77. package/dist/{shapeHelpers-DL3Kro2n.js → shapeHelpers-C4QIp7u5.js} +3 -3
  78. package/dist/sketching/CompoundSketch.d.ts +2 -2
  79. package/dist/sketching/CompoundSketch.d.ts.map +1 -1
  80. package/dist/sketching/Sketch.d.ts +4 -4
  81. package/dist/sketching/Sketch.d.ts.map +1 -1
  82. package/dist/sketching/Sketcher.d.ts +3 -3
  83. package/dist/sketching/Sketcher.d.ts.map +1 -1
  84. package/dist/sketching/Sketcher2d.d.ts +3 -3
  85. package/dist/sketching/Sketcher2d.d.ts.map +1 -1
  86. package/dist/sketching/cannedSketches.d.ts +2 -2
  87. package/dist/sketching/cannedSketches.d.ts.map +1 -1
  88. package/dist/sketching/draw.d.ts +3 -3
  89. package/dist/sketching/draw.d.ts.map +1 -1
  90. package/dist/sketching/sketchFns.d.ts +5 -5
  91. package/dist/sketching/sketchFns.d.ts.map +1 -1
  92. package/dist/sketching/sketchLib.d.ts +2 -2
  93. package/dist/sketching/sketchLib.d.ts.map +1 -1
  94. package/dist/sketching/sketcherlib.d.ts +6 -4
  95. package/dist/sketching/sketcherlib.d.ts.map +1 -1
  96. package/dist/sketching.cjs +2 -2
  97. package/dist/sketching.d.ts +2 -2
  98. package/dist/sketching.d.ts.map +1 -1
  99. package/dist/sketching.js +2 -2
  100. package/dist/topology/api.d.ts +4 -3
  101. package/dist/topology/api.d.ts.map +1 -1
  102. package/dist/topology/index.d.ts +1 -1
  103. package/dist/topology/index.d.ts.map +1 -1
  104. package/dist/topology/modifierFns.d.ts.map +1 -1
  105. package/dist/topology/primitiveFns.d.ts +3 -3
  106. package/dist/topology/primitiveFns.d.ts.map +1 -1
  107. package/dist/topology/shapeHelpers.d.ts +2 -2
  108. package/dist/topology/shapeHelpers.d.ts.map +1 -1
  109. package/dist/topology/shapeModifiers.d.ts +3 -1
  110. package/dist/topology/shapeModifiers.d.ts.map +1 -1
  111. package/dist/topology/wrapperFns.d.ts +12 -5
  112. package/dist/topology/wrapperFns.d.ts.map +1 -1
  113. package/dist/{topology-q7nA7fzs.js → topology-BEMrS4WZ.js} +7 -7
  114. package/dist/{topology-CzVovLTs.cjs → topology-Bb1W3SyF.cjs} +7 -7
  115. package/dist/topology.cjs +7 -7
  116. package/dist/topology.js +7 -7
  117. package/dist/{vectors-Bhj7KHrb.js → vectors-CBuaMeZv.js} +1 -1
  118. package/dist/{vectors-CCdx6erh.cjs → vectors-ChWEZPwy.cjs} +1 -1
  119. package/dist/vectors.cjs +1 -1
  120. package/dist/vectors.js +1 -1
  121. package/package.json +2 -1
@@ -83,28 +83,39 @@ export type BrepErrorCode = (typeof BrepErrorCode)[keyof typeof BrepErrorCode];
83
83
  * Every error carries a `kind` (category), a machine-readable `code`,
84
84
  * and a human-readable `message`. Optional `cause` preserves the
85
85
  * original exception, and `metadata` holds extra context.
86
+ *
87
+ * The optional `suggestion` field provides actionable recovery hints.
86
88
  */
87
89
  export interface BrepError {
88
90
  readonly kind: BrepErrorKind;
89
91
  readonly code: string;
90
92
  readonly message: string;
93
+ readonly suggestion?: string;
91
94
  readonly cause?: unknown;
92
95
  readonly metadata?: Readonly<Record<string, unknown>>;
93
96
  }
94
97
  /** Create an error for a failed OCCT kernel operation. */
95
- export declare function occtError(code: string, message: string, cause?: unknown, metadata?: Record<string, unknown>): BrepError;
98
+ export declare function occtError(code: string, message: string, cause?: unknown, metadata?: Record<string, unknown>, suggestion?: string): BrepError;
96
99
  /** Create an error for invalid input parameters. */
97
- export declare function validationError(code: string, message: string, cause?: unknown, metadata?: Record<string, unknown>): BrepError;
100
+ export declare function validationError(code: string, message: string, cause?: unknown, metadata?: Record<string, unknown>, suggestion?: string): BrepError;
98
101
  /** Create an error for a failed shape type cast or conversion. */
99
- export declare function typeCastError(code: string, message: string, cause?: unknown, metadata?: Record<string, unknown>): BrepError;
102
+ export declare function typeCastError(code: string, message: string, cause?: unknown, metadata?: Record<string, unknown>, suggestion?: string): BrepError;
100
103
  /** Create an error for an invalid sketcher state transition. */
101
- export declare function sketcherStateError(code: string, message: string, cause?: unknown, metadata?: Record<string, unknown>): BrepError;
104
+ export declare function sketcherStateError(code: string, message: string, cause?: unknown, metadata?: Record<string, unknown>, suggestion?: string): BrepError;
102
105
  /** Create an error for a module initialisation failure. */
103
- export declare function moduleInitError(code: string, message: string, cause?: unknown, metadata?: Record<string, unknown>): BrepError;
106
+ export declare function moduleInitError(code: string, message: string, cause?: unknown, metadata?: Record<string, unknown>, suggestion?: string): BrepError;
104
107
  /** Create an error for a failed geometric computation. */
105
- export declare function computationError(code: string, message: string, cause?: unknown, metadata?: Record<string, unknown>): BrepError;
108
+ export declare function computationError(code: string, message: string, cause?: unknown, metadata?: Record<string, unknown>, suggestion?: string): BrepError;
106
109
  /** Create an error for a file import/export failure. */
107
- export declare function ioError(code: string, message: string, cause?: unknown, metadata?: Record<string, unknown>): BrepError;
110
+ export declare function ioError(code: string, message: string, cause?: unknown, metadata?: Record<string, unknown>, suggestion?: string): BrepError;
108
111
  /** Create an error for a shape query failure (e.g. finder not unique). */
109
- export declare function queryError(code: string, message: string, cause?: unknown, metadata?: Record<string, unknown>): BrepError;
112
+ export declare function queryError(code: string, message: string, cause?: unknown, metadata?: Record<string, unknown>, suggestion?: string): BrepError;
113
+ /**
114
+ * Translate an OCCT error message into a user-friendly explanation.
115
+ * If no pattern matches, returns the original message.
116
+ *
117
+ * @param occtMessage - The raw error message from OCCT
118
+ * @returns User-friendly error message with actionable guidance
119
+ */
120
+ export declare function translateOcctError(occtMessage: string): string;
110
121
  //# sourceMappingURL=errors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/core/errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAMpD,8CAA8C;AAC9C,MAAM,MAAM,aAAa,GACrB,gBAAgB,GAChB,YAAY,GACZ,WAAW,GACX,gBAAgB,GAChB,aAAa,GACb,aAAa,GACb,IAAI,GACJ,OAAO,CAAC;AAMZ;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2EhB,CAAC;AAEX,qDAAqD;AACrD,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAM/E;;;;;;GAMG;AACH,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,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CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClC,UAAU,CAAC,EAAE,MAAM,GAClB,SAAS,CAEX;AAED,wDAAwD;AACxD,wBAAgB,OAAO,CACrB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,KAAK,CAAC,EAAE,OAAO,EACf,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClC,UAAU,CAAC,EAAE,MAAM,GAClB,SAAS,CAEX;AAED,0EAA0E;AAC1E,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,KAAK,CAAC,EAAE,OAAO,EACf,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClC,UAAU,CAAC,EAAE,MAAM,GAClB,SAAS,CAEX;AAyED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAQ9D"}
@@ -6,11 +6,17 @@ import { BrepErrorKind } from './errors.js';
6
6
  * Wrap a kernel call that returns an OcShape, automatically casting
7
7
  * the result into a branded AnyShape. On exception, returns an Err
8
8
  * with the given error code and message.
9
+ *
10
+ * OCCT error messages are automatically translated into user-friendly
11
+ * explanations when the error kind is OCCT_OPERATION.
9
12
  */
10
13
  export declare function kernelCall(fn: () => OcShape, code: string, message: string, kind?: BrepErrorKind): Result<AnyShape>;
11
14
  /**
12
15
  * Wrap a kernel call that returns an arbitrary value. On exception,
13
16
  * returns an Err with the given error code and message.
17
+ *
18
+ * OCCT error messages are automatically translated into user-friendly
19
+ * explanations when the error kind is OCCT_OPERATION.
14
20
  */
15
21
  export declare function kernelCallRaw<T>(fn: () => T, code: string, message: string, kind?: BrepErrorKind): Result<T>;
16
22
  //# sourceMappingURL=kernelCall.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"kernelCall.d.ts","sourceRoot":"","sources":["../../src/core/kernelCall.ts"],"names":[],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MAAM,EACf,IAAI,GAAE,aAAgC,GACrC,MAAM,CAAC,CAAC,CAAC,CASX"}
package/dist/core.cjs CHANGED
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const occtBoundary = require("./occtBoundary-du8_ex-p.cjs");
4
4
  const vecOps = require("./vecOps-CjRL1jau.cjs");
5
- const errors = require("./errors-C7Inmd1n.cjs");
6
- const vectors = require("./vectors-CCdx6erh.cjs");
5
+ const errors = require("./errors-DK1VAdP4.cjs");
6
+ const vectors = require("./vectors-ChWEZPwy.cjs");
7
7
  const shapeTypes = require("./shapeTypes-DKhwEnUM.cjs");
8
8
  const result = require("./result.cjs");
9
9
  exports.resolveDirection = occtBoundary.resolveDirection;
package/dist/core.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { r, t, a } from "./occtBoundary-CwegMzqc.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
- 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, m as m2, h as h2, j as j2, k as k2, o as o2, l as l2, q, s, t as t2, n as n2, p, u, r as r2, v as v2, w, x } from "./errors-EPHOk9hi.js";
4
- import { c as c3, a as a4, p as p2, r as r3, t as t3 } from "./vectors-Bhj7KHrb.js";
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, m as m2, h as h2, j as j2, k as k2, o as o2, l as l2, q, s, t as t2, n as n2, p, u, r as r2, v as v2, w, x } from "./errors-wGhcJMpB.js";
4
+ import { c as c3, a as a4, p as p2, r as r3, t as t3 } from "./vectors-CBuaMeZv.js";
5
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, w as w2 } from "./shapeTypes-BlSElW8z.js";
6
6
  import { BrepBugError, bug } from "./result.js";
7
7
  export {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const occtBoundary = require("./occtBoundary-du8_ex-p.cjs");
3
3
  const shapeTypes = require("./shapeTypes-DKhwEnUM.cjs");
4
- const errors = require("./errors-C7Inmd1n.cjs");
4
+ const errors = require("./errors-DK1VAdP4.cjs");
5
5
  let CURVE_TYPES_MAP = null;
6
6
  const getCurveTypesMap = (refresh) => {
7
7
  if (CURVE_TYPES_MAP && !refresh) return CURVE_TYPES_MAP;
@@ -1,6 +1,6 @@
1
1
  import { g as getKernel } from "./occtBoundary-CwegMzqc.js";
2
2
  import { c as castShape, d as isEdge, m as isWire } from "./shapeTypes-BlSElW8z.js";
3
- import { e as err, p as typeCastError, l as ok, u as unwrap } from "./errors-EPHOk9hi.js";
3
+ import { e as err, p as typeCastError, l as ok, u as unwrap } from "./errors-wGhcJMpB.js";
4
4
  let CURVE_TYPES_MAP = null;
5
5
  const getCurveTypesMap = (refresh) => {
6
6
  if (CURVE_TYPES_MAP && !refresh) return CURVE_TYPES_MAP;
@@ -1,19 +1,19 @@
1
1
  "use strict";
2
- const errors = require("./errors-C7Inmd1n.cjs");
3
- const shapeHelpers = require("./shapeHelpers-XCWxPN_X.cjs");
4
- const vectors = require("./vectors-CCdx6erh.cjs");
2
+ const errors = require("./errors-DK1VAdP4.cjs");
3
+ const shapeHelpers = require("./shapeHelpers-BBSVHPGk.cjs");
4
+ const vectors = require("./vectors-ChWEZPwy.cjs");
5
5
  const occtBoundary = require("./occtBoundary-du8_ex-p.cjs");
6
6
  const vecOps = require("./vecOps-CjRL1jau.cjs");
7
- const boolean2D = require("./boolean2D-9E0ZB4yu.cjs");
8
- const faceFns = require("./faceFns-BOc1QawY.cjs");
9
- const curveFns = require("./curveFns-DqT7DqLQ.cjs");
7
+ const boolean2D = require("./boolean2D-BwOpOv6L.cjs");
8
+ const faceFns = require("./faceFns-B9if-FPW.cjs");
9
+ const curveFns = require("./curveFns-BilyYL_s.cjs");
10
10
  const shapeTypes = require("./shapeTypes-DKhwEnUM.cjs");
11
- const cast = require("./cast-CQ7SKb6A.cjs");
12
- const Blueprint = require("./Blueprint-DCoXzdIm.cjs");
11
+ const cast = require("./cast-DsxJk_F0.cjs");
12
+ const Blueprint = require("./Blueprint-3Dyu0OL6.cjs");
13
13
  const result = require("./result.cjs");
14
- const query = require("./query-Dd1h9qFw.cjs");
15
- const shapeFns = require("./shapeFns-Df3OAlpp.cjs");
16
- const loft = require("./loft-Cz36k5dM.cjs");
14
+ const query = require("./query-DkcMfh6j.cjs");
15
+ const shapeFns = require("./shapeFns-DjsWo98C.cjs");
16
+ const loft = require("./loft-Cc5E5pAf.cjs");
17
17
  const opentype = require("opentype.js");
18
18
  const stitchCurves = (curves, precision = 1e-7) => {
19
19
  const startPoints = new boolean2D.Flatbush(curves.length);
@@ -1,18 +1,18 @@
1
- import { u as unwrap, g as isOk, e as err, x as validationError, l as ok } from "./errors-EPHOk9hi.js";
2
- import { m as makeLine, x as makeThreePointArc, v as makeTangentArc, l as makeEllipseArc, e as makeBezierCurve, a as assembleWire, h as makeCompound, d as addHolesInFace, s as makeSolid, o as makeFace, g as makeCircle, k as makeEllipse, b as makeHelix, f as makeBSplineApproximation } from "./shapeHelpers-DL3Kro2n.js";
3
- import { r as resolvePlane, b as planeToWorld, d as planeToLocal } from "./vectors-Bhj7KHrb.js";
1
+ import { u as unwrap, g as isOk, e as err, x as validationError, l as ok } from "./errors-wGhcJMpB.js";
2
+ import { m as makeLine, x as makeThreePointArc, v as makeTangentArc, l as makeEllipseArc, e as makeBezierCurve, a as assembleWire, h as makeCompound, d as addHolesInFace, s as makeSolid, o as makeFace, g as makeCircle, k as makeEllipse, b as makeHelix, f as makeBSplineApproximation } from "./shapeHelpers-C4QIp7u5.js";
3
+ import { r as resolvePlane, b as planeToWorld, d as planeToLocal } from "./vectors-CBuaMeZv.js";
4
4
  import { g as getKernel, a as toVec3, c as makeOcAx2 } from "./occtBoundary-CwegMzqc.js";
5
5
  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";
6
- import { h as Flatbush, j as convertSvgEllipseParams, k as defaultsSplineConfig, S as Sketch, r as roundedRectangleBlueprint, b as Blueprints, C as CompoundBlueprint, c as cut2D, l as intersectCurves, f as fuse2D, m as make2dOffset, n as filletCurves, q as chamferCurves, o as organiseBlueprints, a as BlueprintSketcher, i as intersect2D, B as BaseSketcher2d, p as polysidesBlueprint } from "./boolean2D-BfpQtXOQ.js";
7
- import { f as faceCenter, n as normalAt, o as outerWire } from "./faceFns-SBxx55zv.js";
8
- import { a as curveTangentAt, d as curveEndPoint, l as getCurveType, o as offsetWire2D } from "./curveFns-DFRn4NzJ.js";
6
+ import { h as Flatbush, j as convertSvgEllipseParams, k as defaultsSplineConfig, S as Sketch, r as roundedRectangleBlueprint, b as Blueprints, C as CompoundBlueprint, c as cut2D, l as intersectCurves, f as fuse2D, m as make2dOffset, n as filletCurves, q as chamferCurves, o as organiseBlueprints, a as BlueprintSketcher, i as intersect2D, B as BaseSketcher2d, p as polysidesBlueprint } from "./boolean2D-CtyE2hK5.js";
7
+ import { f as faceCenter, n as normalAt, o as outerWire } from "./faceFns-Bl6HHbqO.js";
8
+ import { a as curveTangentAt, d as curveEndPoint, l as getCurveType, o as offsetWire2D } from "./curveFns-CdVE4da7.js";
9
9
  import { s as createWire, o as localGC, q as createFace, e as isFace, n as gcWithScope, c as castShape } from "./shapeTypes-BlSElW8z.js";
10
- import { d as downcast, c as cast } from "./cast-Bx3PuKsP.js";
11
- import { n as mirror, B as Blueprint, C as Curve2D, c as make2dSegmentCurve, g as make2dArcFromCenter, o as approximateAsSvgCompatibleCurve, a as BoundingBox2d, p as edgeToCurve, q as make2dInerpolatedBSplineCurve, e as make2dCircle, s as make2dEllipse, t as deserializeCurve2D } from "./Blueprint-9Gdmj67R.js";
10
+ import { d as downcast, c as cast } from "./cast-D1s7Im9E.js";
11
+ import { n as mirror, B as Blueprint, C as Curve2D, c as make2dSegmentCurve, g as make2dArcFromCenter, o as approximateAsSvgCompatibleCurve, a as BoundingBox2d, p as edgeToCurve, q as make2dInerpolatedBSplineCurve, e as make2dCircle, s as make2dEllipse, t as deserializeCurve2D } from "./Blueprint-DSHD89bZ.js";
12
12
  import { bug } from "./result.js";
13
- import { i as distance2d, k as polarAngle2d, p as polarToCartesian, l as PRECISION_OFFSET, m as squareDistance2d, s as samePoint$1, a as subtract2d, b as add2d, c as cornerFinder } from "./query-CMkm1olv.js";
14
- import { g as getEdges } from "./shapeFns-GaYcQL6U.js";
15
- import { b as basicFaceExtrusion, r as revolution, c as complexExtrude, t as twistExtrude } from "./loft-BJHEEDu4.js";
13
+ import { i as distance2d, k as polarAngle2d, p as polarToCartesian, l as PRECISION_OFFSET, m as squareDistance2d, s as samePoint$1, a as subtract2d, b as add2d, c as cornerFinder } from "./query-D7XclvBZ.js";
14
+ import { g as getEdges } from "./shapeFns-BpCPVHFT.js";
15
+ import { b as basicFaceExtrusion, r as revolution, c as complexExtrude, t as twistExtrude } from "./loft-BlNndTOR.js";
16
16
  import opentype from "opentype.js";
17
17
  const stitchCurves = (curves, precision = 1e-7) => {
18
18
  const startPoints = new Flatbush(curves.length);
@@ -163,34 +163,97 @@ const BrepErrorCode = {
163
163
  // Query errors
164
164
  FINDER_NOT_UNIQUE: "FINDER_NOT_UNIQUE"
165
165
  };
166
- function makeError(kind, code, message, cause, metadata) {
166
+ function makeError(kind, code, message, cause, metadata, suggestion) {
167
167
  const base = { kind, code, message, cause };
168
+ if (suggestion) {
169
+ const withSuggestion = { ...base, suggestion };
170
+ if (metadata) return { ...withSuggestion, metadata };
171
+ return withSuggestion;
172
+ }
168
173
  if (metadata) return { ...base, metadata };
169
174
  return base;
170
175
  }
171
- function occtError(code, message, cause, metadata) {
172
- return makeError("OCCT_OPERATION", code, message, cause, metadata);
176
+ function occtError(code, message, cause, metadata, suggestion) {
177
+ return makeError("OCCT_OPERATION", code, message, cause, metadata, suggestion);
178
+ }
179
+ function validationError(code, message, cause, metadata, suggestion) {
180
+ return makeError("VALIDATION", code, message, cause, metadata, suggestion);
173
181
  }
174
- function validationError(code, message, cause, metadata) {
175
- return makeError("VALIDATION", code, message, cause, metadata);
182
+ function typeCastError(code, message, cause, metadata, suggestion) {
183
+ return makeError("TYPE_CAST", code, message, cause, metadata, suggestion);
176
184
  }
177
- function typeCastError(code, message, cause, metadata) {
178
- return makeError("TYPE_CAST", code, message, cause, metadata);
185
+ function sketcherStateError(code, message, cause, metadata, suggestion) {
186
+ return makeError("SKETCHER_STATE", code, message, cause, metadata, suggestion);
179
187
  }
180
- function sketcherStateError(code, message, cause, metadata) {
181
- return makeError("SKETCHER_STATE", code, message, cause, metadata);
188
+ function moduleInitError(code, message, cause, metadata, suggestion) {
189
+ return makeError("MODULE_INIT", code, message, cause, metadata, suggestion);
182
190
  }
183
- function moduleInitError(code, message, cause, metadata) {
184
- return makeError("MODULE_INIT", code, message, cause, metadata);
191
+ function computationError(code, message, cause, metadata, suggestion) {
192
+ return makeError("COMPUTATION", code, message, cause, metadata, suggestion);
185
193
  }
186
- function computationError(code, message, cause, metadata) {
187
- return makeError("COMPUTATION", code, message, cause, metadata);
194
+ function ioError(code, message, cause, metadata, suggestion) {
195
+ return makeError("IO", code, message, cause, metadata, suggestion);
188
196
  }
189
- function ioError(code, message, cause, metadata) {
190
- return makeError("IO", code, message, cause, metadata);
197
+ function queryError(code, message, cause, metadata, suggestion) {
198
+ return makeError("QUERY", code, message, cause, metadata, suggestion);
191
199
  }
192
- function queryError(code, message, cause, metadata) {
193
- return makeError("QUERY", code, message, cause, metadata);
200
+ const OCCT_ERROR_PATTERNS = [
201
+ {
202
+ pattern: /invalid edge configuration|edges?.*(not|fail|invalid)/i,
203
+ translation: "The edges may not form a continuous loop. Check that edges connect end-to-end without gaps."
204
+ },
205
+ {
206
+ pattern: /BRepAlgoAPI.*failed|boolean.*operation.*failed/i,
207
+ translation: "Boolean operation failed. Common causes: overlapping faces, zero-thickness geometry, or degenerate shapes. Try healing input shapes first."
208
+ },
209
+ {
210
+ pattern: /fillet.*radius.*too.*large|fillet.*failed/i,
211
+ translation: "Fillet operation failed. The radius may be too large for the selected edges. Try reducing the radius or check that edges have enough room."
212
+ },
213
+ {
214
+ pattern: /chamfer.*failed|chamfer.*distance.*too.*large/i,
215
+ translation: "Chamfer operation failed. The distance may be too large for the selected edges. Try reducing the distance or check edge geometry."
216
+ },
217
+ {
218
+ pattern: /shell.*failed|offset.*failed/i,
219
+ translation: "Shell/offset operation failed. The thickness may be too large, or the shape may have complex geometry. Try reducing thickness."
220
+ },
221
+ {
222
+ pattern: /sweep.*failed|pipe.*failed/i,
223
+ translation: "Sweep operation failed. Check that the profile and spine are compatible, and that the spine has no sharp twists or self-intersections."
224
+ },
225
+ {
226
+ pattern: /loft.*failed/i,
227
+ translation: "Loft operation failed. Profiles may be incompatible or have different orientations. Ensure profiles are ordered consistently."
228
+ },
229
+ {
230
+ pattern: /extrude.*failed|prism.*failed/i,
231
+ translation: "Extrusion failed. The profile may be invalid or self-intersecting. Check that the profile forms a valid closed wire."
232
+ },
233
+ {
234
+ pattern: /revolve.*failed|revolution.*failed/i,
235
+ translation: "Revolution operation failed. The profile may intersect the axis of revolution, or the angle may be invalid."
236
+ },
237
+ {
238
+ pattern: /self.*intersect|self-intersect/i,
239
+ translation: "Shape has self-intersections. The operation resulted in overlapping geometry. Simplify the input or adjust parameters."
240
+ },
241
+ {
242
+ pattern: /degener|degenerat/i,
243
+ translation: "Degenerate geometry detected. The shape has edges or faces with zero length/area. Check input geometry for collapsed elements."
244
+ },
245
+ {
246
+ pattern: /BRepCheck.*fail|shape.*invalid|shape.*not.*valid/i,
247
+ translation: "Shape validation failed. The resulting shape has invalid topology. Try healing the shape or checking input geometry."
248
+ }
249
+ ];
250
+ function translateOcctError(occtMessage) {
251
+ for (const { pattern, translation } of OCCT_ERROR_PATTERNS) {
252
+ if (pattern.test(occtMessage)) {
253
+ return `${translation} (OCCT: ${occtMessage})`;
254
+ }
255
+ }
256
+ return occtMessage;
194
257
  }
195
258
  exports.BrepErrorCode = BrepErrorCode;
196
259
  exports.OK = OK;
@@ -211,6 +274,7 @@ exports.ok = ok;
211
274
  exports.pipeline = pipeline;
212
275
  exports.queryError = queryError;
213
276
  exports.sketcherStateError = sketcherStateError;
277
+ exports.translateOcctError = translateOcctError;
214
278
  exports.tryCatch = tryCatch;
215
279
  exports.tryCatchAsync = tryCatchAsync;
216
280
  exports.typeCastError = typeCastError;
@@ -162,34 +162,97 @@ const BrepErrorCode = {
162
162
  // Query errors
163
163
  FINDER_NOT_UNIQUE: "FINDER_NOT_UNIQUE"
164
164
  };
165
- function makeError(kind, code, message, cause, metadata) {
165
+ function makeError(kind, code, message, cause, metadata, suggestion) {
166
166
  const base = { kind, code, message, cause };
167
+ if (suggestion) {
168
+ const withSuggestion = { ...base, suggestion };
169
+ if (metadata) return { ...withSuggestion, metadata };
170
+ return withSuggestion;
171
+ }
167
172
  if (metadata) return { ...base, metadata };
168
173
  return base;
169
174
  }
170
- function occtError(code, message, cause, metadata) {
171
- return makeError("OCCT_OPERATION", code, message, cause, metadata);
175
+ function occtError(code, message, cause, metadata, suggestion) {
176
+ return makeError("OCCT_OPERATION", code, message, cause, metadata, suggestion);
177
+ }
178
+ function validationError(code, message, cause, metadata, suggestion) {
179
+ return makeError("VALIDATION", code, message, cause, metadata, suggestion);
172
180
  }
173
- function validationError(code, message, cause, metadata) {
174
- return makeError("VALIDATION", code, message, cause, metadata);
181
+ function typeCastError(code, message, cause, metadata, suggestion) {
182
+ return makeError("TYPE_CAST", code, message, cause, metadata, suggestion);
175
183
  }
176
- function typeCastError(code, message, cause, metadata) {
177
- return makeError("TYPE_CAST", code, message, cause, metadata);
184
+ function sketcherStateError(code, message, cause, metadata, suggestion) {
185
+ return makeError("SKETCHER_STATE", code, message, cause, metadata, suggestion);
178
186
  }
179
- function sketcherStateError(code, message, cause, metadata) {
180
- return makeError("SKETCHER_STATE", code, message, cause, metadata);
187
+ function moduleInitError(code, message, cause, metadata, suggestion) {
188
+ return makeError("MODULE_INIT", code, message, cause, metadata, suggestion);
181
189
  }
182
- function moduleInitError(code, message, cause, metadata) {
183
- return makeError("MODULE_INIT", code, message, cause, metadata);
190
+ function computationError(code, message, cause, metadata, suggestion) {
191
+ return makeError("COMPUTATION", code, message, cause, metadata, suggestion);
184
192
  }
185
- function computationError(code, message, cause, metadata) {
186
- return makeError("COMPUTATION", code, message, cause, metadata);
193
+ function ioError(code, message, cause, metadata, suggestion) {
194
+ return makeError("IO", code, message, cause, metadata, suggestion);
187
195
  }
188
- function ioError(code, message, cause, metadata) {
189
- return makeError("IO", code, message, cause, metadata);
196
+ function queryError(code, message, cause, metadata, suggestion) {
197
+ return makeError("QUERY", code, message, cause, metadata, suggestion);
190
198
  }
191
- function queryError(code, message, cause, metadata) {
192
- return makeError("QUERY", code, message, cause, metadata);
199
+ const OCCT_ERROR_PATTERNS = [
200
+ {
201
+ pattern: /invalid edge configuration|edges?.*(not|fail|invalid)/i,
202
+ translation: "The edges may not form a continuous loop. Check that edges connect end-to-end without gaps."
203
+ },
204
+ {
205
+ pattern: /BRepAlgoAPI.*failed|boolean.*operation.*failed/i,
206
+ translation: "Boolean operation failed. Common causes: overlapping faces, zero-thickness geometry, or degenerate shapes. Try healing input shapes first."
207
+ },
208
+ {
209
+ pattern: /fillet.*radius.*too.*large|fillet.*failed/i,
210
+ translation: "Fillet operation failed. The radius may be too large for the selected edges. Try reducing the radius or check that edges have enough room."
211
+ },
212
+ {
213
+ pattern: /chamfer.*failed|chamfer.*distance.*too.*large/i,
214
+ translation: "Chamfer operation failed. The distance may be too large for the selected edges. Try reducing the distance or check edge geometry."
215
+ },
216
+ {
217
+ pattern: /shell.*failed|offset.*failed/i,
218
+ translation: "Shell/offset operation failed. The thickness may be too large, or the shape may have complex geometry. Try reducing thickness."
219
+ },
220
+ {
221
+ pattern: /sweep.*failed|pipe.*failed/i,
222
+ translation: "Sweep operation failed. Check that the profile and spine are compatible, and that the spine has no sharp twists or self-intersections."
223
+ },
224
+ {
225
+ pattern: /loft.*failed/i,
226
+ translation: "Loft operation failed. Profiles may be incompatible or have different orientations. Ensure profiles are ordered consistently."
227
+ },
228
+ {
229
+ pattern: /extrude.*failed|prism.*failed/i,
230
+ translation: "Extrusion failed. The profile may be invalid or self-intersecting. Check that the profile forms a valid closed wire."
231
+ },
232
+ {
233
+ pattern: /revolve.*failed|revolution.*failed/i,
234
+ translation: "Revolution operation failed. The profile may intersect the axis of revolution, or the angle may be invalid."
235
+ },
236
+ {
237
+ pattern: /self.*intersect|self-intersect/i,
238
+ translation: "Shape has self-intersections. The operation resulted in overlapping geometry. Simplify the input or adjust parameters."
239
+ },
240
+ {
241
+ pattern: /degener|degenerat/i,
242
+ translation: "Degenerate geometry detected. The shape has edges or faces with zero length/area. Check input geometry for collapsed elements."
243
+ },
244
+ {
245
+ pattern: /BRepCheck.*fail|shape.*invalid|shape.*not.*valid/i,
246
+ translation: "Shape validation failed. The resulting shape has invalid topology. Try healing the shape or checking input geometry."
247
+ }
248
+ ];
249
+ function translateOcctError(occtMessage) {
250
+ for (const { pattern, translation } of OCCT_ERROR_PATTERNS) {
251
+ if (pattern.test(occtMessage)) {
252
+ return `${translation} (OCCT: ${occtMessage})`;
253
+ }
254
+ }
255
+ return occtMessage;
193
256
  }
194
257
  export {
195
258
  BrepErrorCode as B,
@@ -218,5 +281,6 @@ export {
218
281
  unwrapOr as v,
219
282
  unwrapOrElse as w,
220
283
  validationError as x,
221
- pipeline as y
284
+ translateOcctError as y,
285
+ pipeline as z
222
286
  };
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  const occtBoundary = require("./occtBoundary-du8_ex-p.cjs");
3
3
  const shapeTypes = require("./shapeTypes-DKhwEnUM.cjs");
4
- const errors = require("./errors-C7Inmd1n.cjs");
5
- const cast = require("./cast-CQ7SKb6A.cjs");
4
+ const errors = require("./errors-DK1VAdP4.cjs");
5
+ const cast = require("./cast-DsxJk_F0.cjs");
6
6
  function getSurfaceType(face) {
7
7
  const oc = occtBoundary.getKernel().oc;
8
8
  const r = shapeTypes.gcWithScope();
@@ -1,7 +1,7 @@
1
1
  import { g as getKernel, a as toVec3, d as toOcPnt } from "./occtBoundary-CwegMzqc.js";
2
2
  import { c as castShape, n as gcWithScope } from "./shapeTypes-BlSElW8z.js";
3
- import { u as unwrap, e as err, p as typeCastError, l as ok } from "./errors-EPHOk9hi.js";
4
- import { i as iterTopo, d as downcast } from "./cast-Bx3PuKsP.js";
3
+ import { u as unwrap, e as err, p as typeCastError, l as ok } from "./errors-wGhcJMpB.js";
4
+ import { i as iterTopo, d as downcast } from "./cast-D1s7Im9E.js";
5
5
  function getSurfaceType(face) {
6
6
  const oc = getKernel().oc;
7
7
  const r = gcWithScope();
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { default as Sketcher } from './sketching/Sketcher.js';
2
2
  import { default as FaceSketcher, BaseSketcher2d, BlueprintSketcher } from './sketching/Sketcher2d.js';
3
- import { GenericSketcher, SplineConfig } from './sketching/sketcherlib.js';
3
+ import { GenericSketcher, SplineOptions, SplineConfig } from './sketching/sketcherlib.js';
4
4
  /**
5
5
  * brepjs — Public API
6
6
  */
@@ -14,8 +14,8 @@ export { isPoint, type Point } from './core/geometry.js';
14
14
  export { makePlane } from './core/geometryHelpers.js';
15
15
  export { findCurveType } from './core/definitionMaps.js';
16
16
  export type { CurveType } from './core/definitionMaps.js';
17
- export { cast, downcast, shapeType, iterTopo, asTopo, isCompSolid, deserializeShape, type TopoEntity, type GenericTopo, applyGlue, isNumber, isChamferRadius, isFilletRadius, type ChamferRadius, type RadiusConfig, type CurveLike, } from './topology/index.js';
18
- export { basicFaceExtrusion, revolution, genericSweep, type GenericSweepConfig, } from './operations/extrude.js';
17
+ export { cast, downcast, shapeType, iterTopo, asTopo, isCompSolid, deserializeShape, type TopoEntity, type GenericTopo, applyGlue, isNumber, isChamferRadius, isFilletRadius, type ChamferRadius, type RadiusOptions, type RadiusConfig, type CurveLike, } from './topology/index.js';
18
+ export { basicFaceExtrusion, revolution, genericSweep, type GenericSweepOptions, type GenericSweepConfig, } from './operations/extrude.js';
19
19
  export { type AssemblyExporter, createAssembly } from './operations/exporters.js';
20
20
  export { type Point2D, BoundingBox2d, Curve2D, axis2d } from './2d/lib/index.js';
21
21
  export { default as Blueprint } from './2d/blueprints/Blueprint.js';
@@ -27,7 +27,7 @@ export { fuseBlueprints, cutBlueprints, intersectBlueprints, } from './2d/bluepr
27
27
  export { fuse2D, cut2D, intersect2D, type Shape2D } from './2d/blueprints/boolean2D.js';
28
28
  export type { ScaleMode } from './2d/curves.js';
29
29
  export { reverseCurve, curve2dBoundingBox, curve2dFirstPoint, curve2dLastPoint, curve2dSplitAt, curve2dParameter, curve2dTangentAt, curve2dIsOnCurve, curve2dDistanceFrom, } from './2d/lib/curve2dFns.js';
30
- export { createBlueprint, blueprintBoundingBox, blueprintOrientation, translateBlueprint, rotateBlueprint, scaleBlueprint, mirrorBlueprint, stretchBlueprint, blueprintToSVGPathD, blueprintIsInside, sketchBlueprintOnPlane, sketchBlueprintOnFace, } from './2d/blueprints/blueprintFns.js';
30
+ export { createBlueprint, getBounds2D, getOrientation2D, isInside2D, toSVGPathD, translate2D, rotate2D, scale2D, mirror2D, stretch2D, sketch2DOnPlane, sketch2DOnFace, blueprintBoundingBox, blueprintOrientation, translateBlueprint, rotateBlueprint, scaleBlueprint, mirrorBlueprint, stretchBlueprint, blueprintToSVGPathD, blueprintIsInside, sketchBlueprintOnPlane, sketchBlueprintOnFace, } from './2d/blueprints/blueprintFns.js';
31
31
  export { fuseBlueprint2D, cutBlueprint2D, intersectBlueprint2D, } from './2d/blueprints/boolean2dFns.js';
32
32
  export { getSingleFace, type SingleFace } from './query/helpers.js';
33
33
  export { exportOBJ } from './io/objExportFns.js';
@@ -36,7 +36,7 @@ export { exportDXF, blueprintToDXF, type DXFEntity, type DXFExportOptions, } fro
36
36
  export { exportThreeMF, type ThreeMFExportOptions } from './io/threemfExportFns.js';
37
37
  export { importSVGPathD, importSVG, type SVGImportOptions } from './io/svgImportFns.js';
38
38
  export { Sketcher, FaceSketcher, BaseSketcher2d, BlueprintSketcher };
39
- export type { GenericSketcher, SplineConfig };
39
+ export type { GenericSketcher, SplineOptions, SplineConfig };
40
40
  export type { SketchInterface } from './sketching/sketchLib.js';
41
41
  export { default as Sketch } from './sketching/Sketch.js';
42
42
  export { default as CompoundSketch } from './sketching/CompoundSketch.js';
@@ -70,8 +70,8 @@ export { clearMeshCache, createMeshCache, type MeshCacheContext } from './topolo
70
70
  export { toBufferGeometryData, toLineGeometryData, toGroupedBufferGeometryData, type BufferGeometryData, type LineGeometryData, type GroupedBufferGeometryData, type BufferGeometryGroup, } from './topology/threeHelpers.js';
71
71
  export { fuseAll, cutAll, type BooleanOptions } from './topology/booleanFns.js';
72
72
  export { healSolid, healFace, healWire, autoHeal, type HealingReport, type AutoHealOptions, type HealingStepDiagnostic, } from './topology/healingFns.js';
73
- export { sweep, supportExtrude, complexExtrude, twistExtrude, type SweepConfig, type ExtrusionProfile, } from './operations/extrudeFns.js';
74
- export { exportAssemblySTEP, type ShapeConfig, type SupportedUnit, } from './operations/exporterFns.js';
73
+ export { sweep, supportExtrude, complexExtrude, twistExtrude, type SweepOptions, type SweepConfig, type ExtrusionProfile, } from './operations/extrudeFns.js';
74
+ export { exportAssemblySTEP, type ShapeOptions, type ShapeConfig, type SupportedUnit, } from './operations/exporterFns.js';
75
75
  export { linearPattern, circularPattern } from './operations/patternFns.js';
76
76
  export { createAssemblyNode, addChild, removeChild, updateNode, findNode, walkAssembly, countNodes, collectShapes, type AssemblyNode, type AssemblyNodeOptions, } from './operations/assemblyFns.js';
77
77
  export { createHistory, addStep, undoLast, findStep, getShape as getHistoryShape, stepCount, stepsFrom, registerShape, createRegistry, registerOperation, replayHistory, replayFrom, modifyStep, type OperationStep, type ModelHistory, type OperationFn, type OperationRegistry as HistoryOperationRegistry, } from './operations/historyFns.js';
@@ -85,7 +85,7 @@ export type { Shapeable, WrappedMarker, FinderFn, FilletRadius, ChamferDistance,
85
85
  export { resolve, resolve3D } from './topology/apiTypes.js';
86
86
  export { box, cylinder, sphere, cone, torus, ellipsoid, line, circle, ellipse, helix, threePointArc, ellipseArc, bsplineApprox, bezier, tangentArc, wire, face, filledFace, subFace, polygon, vertex, compound, solid, offsetFace, sewShells, addHoles, type BoxOptions, type CylinderOptions, type SphereOptions, type ConeOptions, type TorusOptions, type EllipsoidOptions, type CircleOptions, type EllipseOptions, type HelixOptions, type EllipseArcOptions, } from './topology/primitiveFns.js';
87
87
  export { translate, rotate, mirror, scale, clone, fuse, cut, intersect, section, split, slice, fillet, chamfer, shell, offset, thicken, heal, simplify, mesh, meshEdges, describe, toBREP, fromBREP, isValid, isEmpty, type RotateOptions, type MirrorOptions, type ScaleOptions, } from './topology/api.js';
88
- export { extrude, revolve, loft, type RevolveOptions, type LoftConfig as CleanLoftConfig, type SweepConfig as CleanSweepConfig, } from './operations/api.js';
88
+ export { extrude, revolve, loft, type RevolveOptions, type LoftOptions as CleanLoftOptions, type LoftConfig as CleanLoftConfig, type SweepOptions as CleanSweepOptions, type SweepConfig as CleanSweepConfig, } from './operations/api.js';
89
89
  export { drill, pocket, boss, mirrorJoin, rectangularPattern } from './topology/compoundOpsFns.js';
90
90
  export { shape, BrepWrapperError, type Wrapped, type Wrapped3D, type WrappedCurve, type WrappedFace, } from './topology/wrapperFns.js';
91
91
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAI1D,OAAO,EACL,EAAE,EACF,GAAG,EACH,EAAE,EACF,IAAI,EACJ,KAAK,EACL,GAAG,EACH,MAAM,EACN,OAAO,EACP,OAAO,EACP,MAAM,EACN,QAAQ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cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,iBAAiB,GACvB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EAEL,SAAS,EACT,MAAM,EACN,MAAM,EACN,KAAK,EACL,KAAK,EAEL,IAAI,EACJ,GAAG,EACH,SAAS,EACT,OAAO,EACP,KAAK,EACL,KAAK,EAEL,MAAM,EACN,OAAO,EACP,KAAK,EACL,MAAM,EACN,OAAO,EAEP,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,OAAO,EACP,OAAO,EAEP,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,YAAY,GAClB,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EACL,OAAO,EACP,OAAO,EACP,IAAI,EACJ,KAAK,cAAc,EACnB,KAAK,WAAW,IAAI,gBAAgB,EACpC,KAAK,UAAU,IAAI,eAAe,EAClC,KAAK,YAAY,IAAI,iBAAiB,EACtC,KAAK,WAAW,IAAI,gBAAgB,GACrC,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAInG,OAAO,EACL,KAAK,EACL,gBAAgB,EAChB,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,WAAW,GACjB,MAAM,0BAA0B,CAAC"}
package/dist/io.cjs CHANGED
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const occtBoundary = require("./occtBoundary-du8_ex-p.cjs");
4
4
  const shapeTypes = require("./shapeTypes-DKhwEnUM.cjs");
5
- const errors = require("./errors-C7Inmd1n.cjs");
6
- const meshFns = require("./meshFns-OmRn9qly.cjs");
7
- const Blueprint = require("./Blueprint-DCoXzdIm.cjs");
5
+ const errors = require("./errors-DK1VAdP4.cjs");
6
+ const meshFns = require("./meshFns-mVlogI3J.cjs");
7
+ const Blueprint = require("./Blueprint-3Dyu0OL6.cjs");
8
8
  function vec3At(arr, i) {
9
9
  const off = i * 3;
10
10
  return [arr[off], arr[off + 1], arr[off + 2]];
package/dist/io.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { g as getKernel, n as uniqueId } from "./occtBoundary-CwegMzqc.js";
2
2
  import { c as castShape, n as gcWithScope } from "./shapeTypes-BlSElW8z.js";
3
- import { e as err, i as ioError, l as ok } from "./errors-EPHOk9hi.js";
4
- import { e, d, f } from "./meshFns-BanGVcaW.js";
5
- import { B as Blueprint, c as make2dSegmentCurve, f as make2dThreePointArc, l as make2dBezierCurve } from "./Blueprint-9Gdmj67R.js";
3
+ import { e as err, i as ioError, l as ok } from "./errors-wGhcJMpB.js";
4
+ import { e, d, f } from "./meshFns-p_kv--PW.js";
5
+ import { B as Blueprint, c as make2dSegmentCurve, f as make2dThreePointArc, l as make2dBezierCurve } from "./Blueprint-DSHD89bZ.js";
6
6
  function vec3At(arr, i) {
7
7
  const off = i * 3;
8
8
  return [arr[off], arr[off + 1], arr[off + 2]];