brepjs 13.0.0 → 13.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 (85) hide show
  1. package/dist/2d.cjs +3 -3
  2. package/dist/2d.js +3 -3
  3. package/dist/{arrayAccess-CccV7jov.js → arrayAccess-Bz2OkAF_.js} +3 -3
  4. package/dist/{arrayAccess-BF8Hm4-H.cjs → arrayAccess-FwdVX3Nh.cjs} +3 -3
  5. package/dist/{blueprint-mSGgCL3V.js → blueprint-Bpa-w3WF.js} +8 -8
  6. package/dist/{blueprint-BP3P8Ado.cjs → blueprint-YPV8lQqg.cjs} +8 -8
  7. package/dist/{blueprintFns-DWFkjbDT.js → blueprintFns-D0RopDZS.js} +3 -3
  8. package/dist/{blueprintFns-BQ-MP_Vy.cjs → blueprintFns-iQsyPfTY.cjs} +3 -3
  9. package/dist/{boolean2D-D76Hc7Wx.cjs → boolean2D-CMXMxTgD.cjs} +10 -10
  10. package/dist/{boolean2D-Cqfwz60G.js → boolean2D-D_yuF0kT.js} +10 -10
  11. package/dist/{booleanFns-CYPXeNVN.cjs → booleanFns-o7EsqNGM.cjs} +5 -5
  12. package/dist/{booleanFns-B79ALtKn.js → booleanFns-omB4YLGU.js} +5 -5
  13. package/dist/brepjs.cjs +42 -311
  14. package/dist/brepjs.js +23 -306
  15. package/dist/core/errors.d.ts +6 -0
  16. package/dist/core/errors.d.ts.map +1 -1
  17. package/dist/core.cjs +3 -3
  18. package/dist/core.js +3 -3
  19. package/dist/{cornerFinder-sg0JNgux.cjs → cornerFinder-E2w1gRI3.cjs} +2 -2
  20. package/dist/{cornerFinder-BSwshSGB.js → cornerFinder-nn_mma6p.js} +2 -2
  21. package/dist/{curveFns-D_s3LdNT.js → curveFns-CzcOFFDX.js} +2 -2
  22. package/dist/{curveFns-CJjkUGyW.cjs → curveFns-DHFAK2lD.cjs} +2 -2
  23. package/dist/{drawFns-oyqai_HD.js → drawFns-4x9wOpZ3.js} +13 -13
  24. package/dist/{drawFns-0CYuQn0J.cjs → drawFns-DLPEVSbK.cjs} +13 -13
  25. package/dist/{errors-C85KVJr-.cjs → errors-BDTFTJ22.cjs} +6 -0
  26. package/dist/{errors-B1fl3mAU.js → errors-D7ZQfeqv.js} +6 -0
  27. package/dist/{extrudeFns-lDvV4ir2.js → extrudeFns-CDWViQSe.js} +2 -2
  28. package/dist/{extrudeFns-0kBZvqJz.cjs → extrudeFns-CqKzY5BT.cjs} +2 -2
  29. package/dist/{faceFns-Bne5RIvn.js → faceFns-6mY9O_5h.js} +2 -2
  30. package/dist/{faceFns-8BurpAGN.cjs → faceFns-DSUZvptN.cjs} +2 -2
  31. package/dist/{helpers-D8DIMw2U.cjs → helpers-BWZ7h12W.cjs} +6 -6
  32. package/dist/{helpers-CxexSe1n.js → helpers-C9PtrI6D.js} +6 -6
  33. package/dist/{historyFns-BAzQr6EP.cjs → historyFns-DIUNWvA3.cjs} +5 -5
  34. package/dist/{historyFns-BTeasREV.js → historyFns-r1owwcvA.js} +5 -5
  35. package/dist/{importFns-D__wN_Pq.cjs → importFns-CeDf0HmX.cjs} +36 -4
  36. package/dist/{importFns-clldr3EF.js → importFns-xg7LSAv6.js} +31 -5
  37. package/dist/index.d.ts +6 -1
  38. package/dist/index.d.ts.map +1 -1
  39. package/dist/io/stepConfigFns.d.ts +27 -0
  40. package/dist/io/stepConfigFns.d.ts.map +1 -0
  41. package/dist/io.cjs +3 -2
  42. package/dist/io.d.ts +1 -0
  43. package/dist/io.d.ts.map +1 -1
  44. package/dist/io.js +3 -3
  45. package/dist/{measureFns-C4WqH4OT.js → measureFns-B7pm7ulJ.js} +3 -3
  46. package/dist/{measureFns-DrMZGJ6r.cjs → measureFns-Dp2Znpf_.cjs} +3 -3
  47. package/dist/measurement.cjs +1 -1
  48. package/dist/measurement.js +1 -1
  49. package/dist/{meshFns--M5PTyHG.js → meshFns-1ARDwoZ4.js} +3 -3
  50. package/dist/{meshFns-DvOM43vV.cjs → meshFns-DHS9gepE.cjs} +3 -3
  51. package/dist/operations.cjs +2 -2
  52. package/dist/operations.js +2 -2
  53. package/dist/{planeOps-DPintPbl.js → planeOps-D4THn1al.js} +1 -1
  54. package/dist/{planeOps-DdkIuVjk.cjs → planeOps-DA5DmML2.cjs} +1 -1
  55. package/dist/primitiveFns-CfCgkRwY.js +1430 -0
  56. package/dist/primitiveFns-DtAy6t6n.cjs +1789 -0
  57. package/dist/query.cjs +2 -2
  58. package/dist/query.js +2 -2
  59. package/dist/result.cjs +1 -1
  60. package/dist/result.js +1 -1
  61. package/dist/{shapeTypes-D38b_BKF.js → shapeTypes-Beo7ikOL.js} +1 -1
  62. package/dist/{shapeTypes-GmE4D5Q_.cjs → shapeTypes-Du2qyM2n.cjs} +1 -1
  63. package/dist/sketching.cjs +2 -2
  64. package/dist/sketching.js +2 -2
  65. package/dist/{solidBuilders-FaTmd_PS.js → solidBuilders-8CBjeBfT.js} +3 -3
  66. package/dist/{solidBuilders-BqU0oT2q.cjs → solidBuilders-BePRwqfJ.cjs} +3 -3
  67. package/dist/{surfaceBuilders-DiCVk_Un.js → surfaceBuilders-BC0MvMK1.js} +3 -3
  68. package/dist/{surfaceBuilders-BzDQQ4EG.cjs → surfaceBuilders-BCiMuuGV.cjs} +3 -3
  69. package/dist/topology/evolutionFns.d.ts +71 -0
  70. package/dist/topology/evolutionFns.d.ts.map +1 -0
  71. package/dist/topology/healingFns.d.ts +17 -0
  72. package/dist/topology/healingFns.d.ts.map +1 -1
  73. package/dist/topology/modifierFns.d.ts +15 -0
  74. package/dist/topology/modifierFns.d.ts.map +1 -1
  75. package/dist/topology/positionFns.d.ts +15 -0
  76. package/dist/topology/positionFns.d.ts.map +1 -0
  77. package/dist/topology.cjs +17 -6
  78. package/dist/topology.d.ts +5 -1
  79. package/dist/topology.d.ts.map +1 -1
  80. package/dist/topology.js +7 -7
  81. package/dist/vectors.cjs +1 -1
  82. package/dist/vectors.js +1 -1
  83. package/package.json +1 -1
  84. package/dist/primitiveFns-BXufrcii.cjs +0 -1063
  85. package/dist/primitiveFns-u3Bbdvlw.js +0 -806
package/dist/query.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_helpers = require("./helpers-D8DIMw2U.cjs");
3
- const require_cornerFinder = require("./cornerFinder-sg0JNgux.cjs");
2
+ const require_helpers = require("./helpers-BWZ7h12W.cjs");
3
+ const require_cornerFinder = require("./cornerFinder-E2w1gRI3.cjs");
4
4
  exports.cornerFinder = require_cornerFinder.cornerFinder;
5
5
  exports.edgeFinder = require_helpers.edgeFinder;
6
6
  exports.faceFinder = require_helpers.faceFinder;
package/dist/query.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-CxexSe1n.js";
2
- import { t as cornerFinder } from "./cornerFinder-BSwshSGB.js";
1
+ import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-C9PtrI6D.js";
2
+ import { t as cornerFinder } from "./cornerFinder-nn_mma6p.js";
3
3
  export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
package/dist/result.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_errors = require("./errors-C85KVJr-.cjs");
2
+ const require_errors = require("./errors-BDTFTJ22.cjs");
3
3
  exports.BrepBugError = require_errors.BrepBugError;
4
4
  exports.BrepErrorCode = require_errors.BrepErrorCode;
5
5
  exports.OK = require_errors.OK;
package/dist/result.js CHANGED
@@ -1,2 +1,2 @@
1
- import { B as unwrapOrElse, C as isErr, D as mapErr, F as tryCatch, I as tryCatchAsync, L as unwrap, M as pipeline, O as match, R as unwrapErr, T as map, _ as andThen, a as moduleInitError, b as flatMap, c as sketcherStateError, d as validationError, h as OK, i as kernelError, k as ok, l as typeCastError, m as bug, n as computationError, o as queryError, p as BrepBugError, r as ioError, t as BrepErrorCode, v as collect, w as isOk, y as err, z as unwrapOr } from "./errors-B1fl3mAU.js";
1
+ import { B as unwrapOrElse, C as isErr, D as mapErr, F as tryCatch, I as tryCatchAsync, L as unwrap, M as pipeline, O as match, R as unwrapErr, T as map, _ as andThen, a as moduleInitError, b as flatMap, c as sketcherStateError, d as validationError, h as OK, i as kernelError, k as ok, l as typeCastError, m as bug, n as computationError, o as queryError, p as BrepBugError, r as ioError, t as BrepErrorCode, v as collect, w as isOk, y as err, z as unwrapOr } from "./errors-D7ZQfeqv.js";
2
2
  export { BrepBugError, BrepErrorCode, OK, andThen, bug, collect, computationError, err, flatMap, ioError, isErr, isOk, kernelError, map, mapErr, match, moduleInitError, ok, pipeline, queryError, sketcherStateError, tryCatch, tryCatchAsync, typeCastError, unwrap, unwrapErr, unwrapOr, unwrapOrElse, validationError };
@@ -1,4 +1,4 @@
1
- import { k as ok, y as err } from "./errors-B1fl3mAU.js";
1
+ import { k as ok, y as err } from "./errors-D7ZQfeqv.js";
2
2
  //#region src/kernel/kernel2dTypes.ts
3
3
  /** Check if the kernel supports 2D geometry operations. */
4
4
  function supportsKernel2D(kernel) {
@@ -1,4 +1,4 @@
1
- const require_errors = require("./errors-C85KVJr-.cjs");
1
+ const require_errors = require("./errors-BDTFTJ22.cjs");
2
2
  //#region src/kernel/kernel2dTypes.ts
3
3
  /** Check if the kernel supports 2D geometry operations. */
4
4
  function supportsKernel2D(kernel) {
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_drawFns = require("./drawFns-0CYuQn0J.cjs");
3
- const require_boolean2D = require("./boolean2D-D76Hc7Wx.cjs");
2
+ const require_drawFns = require("./drawFns-DLPEVSbK.cjs");
3
+ const require_boolean2D = require("./boolean2D-CMXMxTgD.cjs");
4
4
  //#region src/sketching.ts
5
5
  /**
6
6
  * brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
package/dist/sketching.js CHANGED
@@ -1,5 +1,5 @@
1
- import { d as FaceSketcher, f as Sketch, l as BaseSketcher2d, u as BlueprintSketcher } from "./boolean2D-Cqfwz60G.js";
2
- import { $ as sketchFaceOffset, A as DrawingPen, B as drawSingleCircle, F as drawParametricFunction, H as drawText, I as drawPointsInterpolation, L as drawPolysides, M as draw, N as drawCircle, P as drawEllipse, Q as sketchEllipse, R as drawRectangle, S as drawProjection, V as drawSingleEllipse, X as polysideInnerRadius, Y as makeBaseBox, Z as sketchCircle, _ as sketchLoft, a as drawingIntersect, at as Sketcher, b as sketchWires, c as rotateDrawing, d as compoundSketchExtrude, et as sketchHelix, f as compoundSketchFace, g as sketchFace, h as sketchExtrude, i as drawingFuse, it as sketchRoundedRectangle, j as deserializeDrawing, k as Drawing, l as scaleDrawing, m as compoundSketchRevolve, n as drawingCut, nt as sketchPolysides, o as drawingToSketchOnPlane, ot as Sketches, p as compoundSketchLoft, r as drawingFillet, rt as sketchRectangle, s as mirrorDrawing, st as CompoundSketch, t as drawingChamfer, tt as sketchParametricFunction, u as translateDrawing, v as sketchRevolve, x as drawFaceOutline, y as sketchSweep, z as drawRoundedRectangle } from "./drawFns-oyqai_HD.js";
1
+ import { d as FaceSketcher, f as Sketch, l as BaseSketcher2d, u as BlueprintSketcher } from "./boolean2D-D_yuF0kT.js";
2
+ import { $ as sketchFaceOffset, A as DrawingPen, B as drawSingleCircle, F as drawParametricFunction, H as drawText, I as drawPointsInterpolation, L as drawPolysides, M as draw, N as drawCircle, P as drawEllipse, Q as sketchEllipse, R as drawRectangle, S as drawProjection, V as drawSingleEllipse, X as polysideInnerRadius, Y as makeBaseBox, Z as sketchCircle, _ as sketchLoft, a as drawingIntersect, at as Sketcher, b as sketchWires, c as rotateDrawing, d as compoundSketchExtrude, et as sketchHelix, f as compoundSketchFace, g as sketchFace, h as sketchExtrude, i as drawingFuse, it as sketchRoundedRectangle, j as deserializeDrawing, k as Drawing, l as scaleDrawing, m as compoundSketchRevolve, n as drawingCut, nt as sketchPolysides, o as drawingToSketchOnPlane, ot as Sketches, p as compoundSketchLoft, r as drawingFillet, rt as sketchRectangle, s as mirrorDrawing, st as CompoundSketch, t as drawingChamfer, tt as sketchParametricFunction, u as translateDrawing, v as sketchRevolve, x as drawFaceOutline, y as sketchSweep, z as drawRoundedRectangle } from "./drawFns-4x9wOpZ3.js";
3
3
  //#region src/sketching.ts
4
4
  /**
5
5
  * brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
@@ -1,6 +1,6 @@
1
- import { Y as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-D38b_BKF.js";
2
- import { L as unwrap, _ as andThen, k as ok, l as typeCastError, y as err } from "./errors-B1fl3mAU.js";
3
- import { _ as downcast, g as cast } from "./faceFns-Bne5RIvn.js";
1
+ import { Y as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-Beo7ikOL.js";
2
+ import { L as unwrap, _ as andThen, k as ok, l as typeCastError, y as err } from "./errors-D7ZQfeqv.js";
3
+ import { _ as downcast, g as cast } from "./faceFns-6mY9O_5h.js";
4
4
  //#region src/topology/shapeUtils.ts
5
5
  /**
6
6
  * Shape assembly utilities — welding and sewing operations.
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-GmE4D5Q_.cjs");
2
- const require_errors = require("./errors-C85KVJr-.cjs");
3
- const require_faceFns = require("./faceFns-8BurpAGN.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-Du2qyM2n.cjs");
2
+ const require_errors = require("./errors-BDTFTJ22.cjs");
3
+ const require_faceFns = require("./faceFns-DSUZvptN.cjs");
4
4
  //#region src/topology/shapeUtils.ts
5
5
  /**
6
6
  * Shape assembly utilities — welding and sewing operations.
@@ -1,6 +1,6 @@
1
- import { Y as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-D38b_BKF.js";
2
- import { _ as andThen, d as validationError, i as kernelError, k as ok, y as err } from "./errors-B1fl3mAU.js";
3
- import { g as cast, l as outerWire } from "./faceFns-Bne5RIvn.js";
1
+ import { Y as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-Beo7ikOL.js";
2
+ import { _ as andThen, d as validationError, i as kernelError, k as ok, y as err } from "./errors-D7ZQfeqv.js";
3
+ import { g as cast, l as outerWire } from "./faceFns-6mY9O_5h.js";
4
4
  //#region src/utils/range.ts
5
5
  /** Generate an array of integers `[0, 1, …, len - 1]`. */
6
6
  function range(len) {
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-GmE4D5Q_.cjs");
2
- const require_errors = require("./errors-C85KVJr-.cjs");
3
- const require_faceFns = require("./faceFns-8BurpAGN.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-Du2qyM2n.cjs");
2
+ const require_errors = require("./errors-BDTFTJ22.cjs");
3
+ const require_faceFns = require("./faceFns-DSUZvptN.cjs");
4
4
  //#region src/utils/range.ts
5
5
  /** Generate an array of integers `[0, 1, …, len - 1]`. */
6
6
  function range(len) {
@@ -0,0 +1,71 @@
1
+ import { Edge, Face, Shape3D } from '../core/shapeTypes.js';
2
+ import { ValidSolid } from '../core/validityTypes.js';
3
+ import { Result } from '../core/result.js';
4
+ import { BooleanOptions, ShapeEvolution } from '../kernel/types.js';
5
+ /** Result of an operation with face evolution tracking. */
6
+ export interface EvolutionResult<T> {
7
+ readonly shape: T;
8
+ readonly evolution: ShapeEvolution;
9
+ }
10
+ /**
11
+ * Fuse two 3D shapes together (boolean union), returning both the result
12
+ * shape and the face evolution data.
13
+ *
14
+ * @param a - The first operand.
15
+ * @param b - The second operand.
16
+ * @param options - Boolean operation options.
17
+ * @returns Ok with the fused shape and evolution, or Err on failure.
18
+ */
19
+ export declare function fuseWithEvolution(a: ValidSolid, b: ValidSolid, options?: BooleanOptions): Result<EvolutionResult<ValidSolid>>;
20
+ export declare function fuseWithEvolution(a: Shape3D, b: Shape3D, options?: BooleanOptions): Result<EvolutionResult<Shape3D>>;
21
+ /**
22
+ * Cut a tool shape from a base shape (boolean subtraction), returning both
23
+ * the result shape and the face evolution data.
24
+ *
25
+ * @param base - The shape to cut from.
26
+ * @param tool - The shape to subtract.
27
+ * @param options - Boolean operation options.
28
+ * @returns Ok with the cut shape and evolution, or Err on failure.
29
+ */
30
+ export declare function cutWithEvolution(base: ValidSolid, tool: ValidSolid, options?: BooleanOptions): Result<EvolutionResult<ValidSolid>>;
31
+ export declare function cutWithEvolution(base: Shape3D, tool: Shape3D, options?: BooleanOptions): Result<EvolutionResult<Shape3D>>;
32
+ /**
33
+ * Compute the intersection of two shapes (boolean common), returning both
34
+ * the result shape and the face evolution data.
35
+ *
36
+ * @param a - The first operand.
37
+ * @param b - The second operand.
38
+ * @param options - Boolean operation options.
39
+ * @returns Ok with the intersection and evolution, or Err on failure.
40
+ */
41
+ export declare function intersectWithEvolution(a: ValidSolid, b: ValidSolid, options?: BooleanOptions): Result<EvolutionResult<ValidSolid>>;
42
+ export declare function intersectWithEvolution(a: Shape3D, b: Shape3D, options?: BooleanOptions): Result<EvolutionResult<Shape3D>>;
43
+ /**
44
+ * Apply a fillet (rounded edge) to selected edges, returning both
45
+ * the result shape and the face evolution data.
46
+ *
47
+ * @param shape - The shape to modify.
48
+ * @param edges - Edges to fillet. Pass `undefined` to fillet all edges.
49
+ * @param radius - Constant radius, variable radius `[r1, r2]`, or per-edge callback.
50
+ */
51
+ export declare function filletWithEvolution(shape: ValidSolid, edges: ReadonlyArray<Edge> | undefined, radius: number | [number, number] | ((edge: Edge) => number | [number, number] | null)): Result<EvolutionResult<ValidSolid>>;
52
+ /**
53
+ * Apply a chamfer (beveled edge) to selected edges, returning both
54
+ * the result shape and the face evolution data.
55
+ *
56
+ * @param shape - The shape to modify.
57
+ * @param edges - Edges to chamfer. Pass `undefined` to chamfer all edges.
58
+ * @param distance - Symmetric distance, asymmetric `[d1, d2]`, or per-edge callback.
59
+ */
60
+ export declare function chamferWithEvolution(shape: ValidSolid, edges: ReadonlyArray<Edge> | undefined, distance: number | [number, number] | ((edge: Edge) => number | [number, number] | null)): Result<EvolutionResult<ValidSolid>>;
61
+ /**
62
+ * Create a hollow shell by removing faces and offsetting remaining walls,
63
+ * returning both the result shape and the face evolution data.
64
+ *
65
+ * @param shape - The solid to hollow out.
66
+ * @param faces - Faces to remove.
67
+ * @param thickness - Wall thickness.
68
+ * @param tolerance - Shell operation tolerance (default 1e-3).
69
+ */
70
+ export declare function shellWithEvolution(shape: ValidSolid, faces: ReadonlyArray<Face>, thickness: number, tolerance?: number): Result<EvolutionResult<Shape3D>>;
71
+ //# sourceMappingURL=evolutionFns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evolutionFns.d.ts","sourceRoot":"","sources":["../../src/topology/evolutionFns.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAG1D,OAAO,EAAE,KAAK,MAAM,EAAkB,MAAM,kBAAkB,CAAC;AAE/D,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAWxE,2DAA2D;AAC3D,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;IAClB,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC;CACpC;AA4FD;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,CAAC,EAAE,UAAU,EACb,CAAC,EAAE,UAAU,EACb,OAAO,CAAC,EAAE,cAAc,GACvB,MAAM,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,CAAC;AACvC,wBAAgB,iBAAiB,CAC/B,CAAC,EAAE,OAAO,EACV,CAAC,EAAE,OAAO,EACV,OAAO,CAAC,EAAE,cAAc,GACvB,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC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AAK,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC,GACvF,MAAM,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,CA4ErC;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,aAAa,CAAC,IAAI,CAAC,EAC1B,SAAS,EAAE,MAAM,EACjB,SAAS,SAAO,GACf,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAoClC"}
@@ -72,4 +72,21 @@ export declare function autoHeal(shape: AnyShape<Dimension>, options?: AutoHealO
72
72
  shape: AnyShape<Dimension>;
73
73
  report: HealingReport;
74
74
  }>;
75
+ /**
76
+ * General-purpose shape repair using ShapeFix_Shape.
77
+ * Fixes orientations, missing curves, and other common issues.
78
+ */
79
+ export declare function fixShape<D extends Dimension>(shape: AnyShape<D>): Result<AnyShape<D>>;
80
+ /**
81
+ * Convert a closed shell into a solid.
82
+ *
83
+ * The shell must be closed (all faces share edges) for the conversion to succeed.
84
+ */
85
+ export declare function solidFromShell(shell: AnyShape): Result<ValidSolid>;
86
+ /**
87
+ * Fix self-intersections in a wire.
88
+ *
89
+ * Uses ShapeFix_Wire to detect and repair self-intersecting edges.
90
+ */
91
+ export declare function fixSelfIntersection(wire: Wire): Result<Wire>;
75
92
  //# sourceMappingURL=healingFns.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"healingFns.d.ts","sourceRoot":"","sources":["../../src/topology/healingFns.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAE/F,OAAO,EAAE,KAAK,MAAM,EAAiB,MAAM,kBAAkB,CAAC;AAQ9D;;GAEG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,GAA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AAC;CAC5D;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,EAC1B,OAAO,CAAC,EAAE,eAAe,GACxB,MAAM,CAAC;IAAE,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC;IAAC,MAAM,EAAE,aAAa,CAAA;CAAE,CAAC,CAuI/D;AAMD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAQrF;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM,CAAC,UAAU,CAAC,CAwBlE;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,CAkB5D"}
@@ -58,4 +58,19 @@ export declare function offset(shape: ValidSolid, distance: number, tolerance?:
58
58
  * @param angle - Constant angle in degrees, or per-face callback returning degrees (null to skip).
59
59
  */
60
60
  export declare function draft(shape: ValidSolid, faces: ReadonlyArray<Face>, pullDirection: Vec3, neutralPlane: Vec3, angle: DraftAngle): Result<ValidSolid>;
61
+ /** Specification for a radius point along a variable-radius fillet. */
62
+ export interface VariableFilletRadius {
63
+ readonly param: number;
64
+ readonly radius: number;
65
+ }
66
+ /**
67
+ * Apply a variable-radius fillet to an edge.
68
+ *
69
+ * The radius varies along the edge according to the provided spec points.
70
+ * Each point specifies a normalized parameter (0 = start, 1 = end) and radius.
71
+ *
72
+ * **Cross-kernel note:** Only brepkit supports variable-radius fillet.
73
+ * Returns UNSUPPORTED_CAPABILITY error on OCCT.
74
+ */
75
+ export declare function variableFillet(shape: ValidSolid, edge: Edge, radii: ReadonlyArray<VariableFilletRadius>): Result<ValidSolid>;
61
76
  //# sourceMappingURL=modifierFns.d.ts.map
@@ -1 +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AAI,EAAE,IAAI,EACV,KAAK,EAAE,aAAa,CAAC,oBAAoB,CAAC,GACzC,MAAM,CAAC,UAAU,CAAC,CAiDpB"}
@@ -0,0 +1,15 @@
1
+ import { Shape3D, Edge, Wire } from '../core/shapeTypes.js';
2
+ import { Result } from '../core/result.js';
3
+ /**
4
+ * Position a shape at a point along a spine curve with Frenet frame orientation.
5
+ *
6
+ * The shape is translated and rotated so its origin aligns with the curve point
7
+ * and its Z axis aligns with the curve tangent at the given parameter.
8
+ *
9
+ * @param shape - The shape to position.
10
+ * @param spine - The spine curve (Edge or Wire) to position along.
11
+ * @param param - Normalized parameter (0 = start, 1 = end).
12
+ * @returns The repositioned shape.
13
+ */
14
+ export declare function positionOnCurve(shape: Shape3D, spine: Edge | Wire, param: number): Result<Shape3D>;
15
+ //# sourceMappingURL=positionFns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"positionFns.d.ts","sourceRoot":"","sources":["../../src/topology/positionFns.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAEhE,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,kBAAkB,CAAC;AAGxD;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,OAAO,EACd,KAAK,EAAE,IAAI,GAAG,IAAI,EAClB,KAAK,EAAE,MAAM,GACZ,MAAM,CAAC,OAAO,CAAC,CAuBjB"}
package/dist/topology.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_faceFns = require("./faceFns-8BurpAGN.cjs");
3
- const require_arrayAccess = require("./arrayAccess-BF8Hm4-H.cjs");
4
- const require_curveFns = require("./curveFns-CJjkUGyW.cjs");
5
- const require_meshFns = require("./meshFns-DvOM43vV.cjs");
6
- const require_booleanFns = require("./booleanFns-CYPXeNVN.cjs");
7
- const require_primitiveFns = require("./primitiveFns-BXufrcii.cjs");
2
+ const require_faceFns = require("./faceFns-DSUZvptN.cjs");
3
+ const require_arrayAccess = require("./arrayAccess-FwdVX3Nh.cjs");
4
+ const require_curveFns = require("./curveFns-DHFAK2lD.cjs");
5
+ const require_meshFns = require("./meshFns-DHS9gepE.cjs");
6
+ const require_booleanFns = require("./booleanFns-o7EsqNGM.cjs");
7
+ const require_primitiveFns = require("./primitiveFns-DtAy6t6n.cjs");
8
8
  exports.addHoles = require_primitiveFns.addHoles;
9
9
  exports.adjacentFaces = require_primitiveFns.adjacentFaces;
10
10
  exports.approximateCurve = require_curveFns.approximateCurve;
@@ -15,6 +15,7 @@ exports.box = require_primitiveFns.box;
15
15
  exports.bsplineApprox = require_primitiveFns.bsplineApprox;
16
16
  exports.cast = require_faceFns.cast;
17
17
  exports.chamferDistAngleShape = require_primitiveFns.chamferDistAngle;
18
+ exports.chamferWithEvolution = require_primitiveFns.chamferWithEvolution;
18
19
  exports.circle = require_primitiveFns.circle;
19
20
  exports.classifyPointOnFace = require_faceFns.classifyPointOnFace;
20
21
  exports.clearMeshCache = require_meshFns.clearMeshCache;
@@ -30,6 +31,7 @@ exports.curvePointAt = require_curveFns.curvePointAt;
30
31
  exports.curveStartPoint = require_curveFns.curveStartPoint;
31
32
  exports.curveTangentAt = require_curveFns.curveTangentAt;
32
33
  exports.cutAll = require_booleanFns.cutAll;
34
+ exports.cutWithEvolution = require_primitiveFns.cutWithEvolution;
33
35
  exports.cylinder = require_primitiveFns.cylinder;
34
36
  exports.deserializeShape = require_faceFns.fromBREP;
35
37
  exports.downcast = require_faceFns.downcast;
@@ -46,9 +48,13 @@ exports.faceGeomType = require_faceFns.faceGeomType;
46
48
  exports.faceOrientation = require_faceFns.faceOrientation;
47
49
  exports.facesOfEdge = require_primitiveFns.facesOfEdge;
48
50
  exports.filledFace = require_primitiveFns.filledFace;
51
+ exports.filletWithEvolution = require_primitiveFns.filletWithEvolution;
52
+ exports.fixSelfIntersection = require_primitiveFns.fixSelfIntersection;
53
+ exports.fixShape = require_primitiveFns.fixShape;
49
54
  exports.flipFaceOrientation = require_faceFns.flipFaceOrientation;
50
55
  exports.flipOrientation = require_curveFns.flipOrientation;
51
56
  exports.fuseAll = require_booleanFns.fuseAll;
57
+ exports.fuseWithEvolution = require_primitiveFns.fuseWithEvolution;
52
58
  exports.getBounds = require_arrayAccess.getBounds;
53
59
  exports.getCurveType = require_curveFns.getCurveType;
54
60
  exports.getEdges = require_arrayAccess.getEdges;
@@ -64,6 +70,7 @@ exports.healWire = require_primitiveFns.healWire;
64
70
  exports.helix = require_primitiveFns.helix;
65
71
  exports.innerWires = require_faceFns.innerWires;
66
72
  exports.interpolateCurve = require_curveFns.interpolateCurve;
73
+ exports.intersectWithEvolution = require_primitiveFns.intersectWithEvolution;
67
74
  exports.invalidateShapeCache = require_arrayAccess.invalidateShapeCache;
68
75
  exports.isCompSolid = require_faceFns.isCompSolid;
69
76
  exports.isEqualShape = require_arrayAccess.isEqualShape;
@@ -80,11 +87,14 @@ exports.offsetWire2D = require_curveFns.offsetWire2D;
80
87
  exports.outerWire = require_faceFns.outerWire;
81
88
  exports.pointOnSurface = require_faceFns.pointOnSurface;
82
89
  exports.polygon = require_primitiveFns.polygon;
90
+ exports.positionOnCurve = require_primitiveFns.positionOnCurve;
83
91
  exports.projectPointOnFace = require_faceFns.projectPointOnFace;
84
92
  exports.sewShells = require_primitiveFns.sewShells;
85
93
  exports.shapeType = require_faceFns.shapeType;
86
94
  exports.sharedEdges = require_primitiveFns.sharedEdges;
95
+ exports.shellWithEvolution = require_primitiveFns.shellWithEvolution;
87
96
  exports.solid = require_primitiveFns.solid;
97
+ exports.solidFromShell = require_primitiveFns.solidFromShell;
88
98
  exports.sphere = require_primitiveFns.sphere;
89
99
  exports.subFace = require_primitiveFns.subFace;
90
100
  exports.tangentArc = require_primitiveFns.tangentArc;
@@ -95,6 +105,7 @@ exports.toLineGeometryData = require_primitiveFns.toLineGeometryData;
95
105
  exports.torus = require_primitiveFns.torus;
96
106
  exports.uvBounds = require_faceFns.uvBounds;
97
107
  exports.uvCoordinates = require_faceFns.uvCoordinates;
108
+ exports.variableFillet = require_primitiveFns.variableFillet;
98
109
  exports.vertex = require_primitiveFns.vertex;
99
110
  exports.vertexPosition = require_arrayAccess.vertexPosition;
100
111
  exports.verticesOfEdge = require_primitiveFns.verticesOfEdge;
@@ -9,13 +9,17 @@
9
9
  export { getHashCode, isSameShape, isEqualShape, getEdges, getFaces, getWires, getVertices, iterEdges, iterFaces, iterWires, iterVertices, getBounds, vertexPosition, invalidateShapeCache, type Bounds3D, type ShapeDescription, } from './topology/shapeFns.js';
10
10
  export { box, cylinder, sphere, cone, torus, ellipsoid, line, circle, ellipse, helix, threePointArc, ellipseArc, bsplineApprox, bezier, tangentArc, wire, wireLoop, face, filledFace, subFace, polygon, vertex, compound, solid, sewShells, offsetFace, addHoles, type CylinderOptions, type SphereOptions, type ConeOptions, type TorusOptions, type CircleOptions, type HelixOptions, type EllipseArcOptions, type BSplineApproximationOptions, } from './topology/primitiveFns.js';
11
11
  export { fuseAll, cutAll, type BooleanOptions } from './topology/booleanFns.js';
12
+ export { fuseWithEvolution, cutWithEvolution, intersectWithEvolution, filletWithEvolution, chamferWithEvolution, shellWithEvolution, type EvolutionResult, } from './topology/evolutionFns.js';
13
+ export type { ShapeEvolution } from './kernel/types.js';
12
14
  export { chamferDistAngle as chamferDistAngleShape } from './topology/chamferAngleFns.js';
15
+ export { variableFillet, type VariableFilletRadius } from './topology/modifierFns.js';
13
16
  export { getCurveType, curveStartPoint, curveEndPoint, curvePointAt, curveTangentAt, curveLength, curveIsClosed, curveIsPeriodic, curvePeriod, getOrientation, flipOrientation, offsetWire2D, interpolateCurve, approximateCurve, type InterpolateCurveOptions, type ApproximateCurveOptions, } from './topology/curveFns.js';
14
17
  export { getSurfaceType, faceGeomType, faceOrientation, flipFaceOrientation, uvBounds, pointOnSurface, uvCoordinates, normalAt, faceCenter, classifyPointOnFace, outerWire, innerWires, projectPointOnFace, type UVBounds, type PointProjectionResult, } from './topology/faceFns.js';
15
18
  export { facesOfEdge, edgesOfFace, wiresOfFace, verticesOfEdge, adjacentFaces, sharedEdges, } from './topology/adjacencyFns.js';
16
19
  export { exportSTEP, exportSTL, exportIGES, type ShapeMesh, type EdgeMesh, type MeshOptions, } from './topology/meshFns.js';
17
20
  export { clearMeshCache, createMeshCache, type MeshCacheContext } from './topology/meshCache.js';
18
21
  export { toBufferGeometryData, toLineGeometryData, toGroupedBufferGeometryData, type BufferGeometryData, type LineGeometryData, type GroupedBufferGeometryData, type BufferGeometryGroup, } from './topology/threeHelpers.js';
19
- export { healSolid, healFace, healWire, autoHeal, type HealingReport, type AutoHealOptions, type HealingStepDiagnostic, } from './topology/healingFns.js';
22
+ export { positionOnCurve } from './topology/positionFns.js';
23
+ export { healSolid, healFace, healWire, autoHeal, fixShape, solidFromShell, fixSelfIntersection, type HealingReport, type AutoHealOptions, type HealingStepDiagnostic, } from './topology/healingFns.js';
20
24
  export { cast, downcast, shapeType, iterTopo, asTopo, isCompSolid, deserializeShape, type TopoEntity, type GenericTopo, } from './topology/index.js';
21
25
  //# sourceMappingURL=topology.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"topology.d.ts","sourceRoot":"","sources":["../src/topology.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EACL,WAAW,EACX,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,SAAS,EACT,SAAS,EACT,SAAS,EACT,YAAY,EACZ,SAAS,EACT,cAAc,EACd,oBAAoB,EACpB,KAAK,QAAQ,EACb,KAAK,gBAAgB,GACtB,MAAM,wBAAwB,CAAC;AAIhC,OAAO,EACL,GAAG,EACH,QAAQ,EACR,MAAM,EACN,IAAI,EACJ,KAAK,EACL,SAAS,EACT,IAAI,EACJ,MAAM,EACN,OAAO,EACP,KAAK,EACL,aAAa,EACb,UAAU,EACV,a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AAE,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAIjG,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,2BAA2B,EAC3B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,GACzB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EACL,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,qBAAqB,GAC3B,MAAM,0BAA0B,CAAC;AAIlC,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,MAAM,EACN,WAAW,EACX,gBAAgB,EAChB,KAAK,UAAU,EACf,KAAK,WAAW,GACjB,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"topology.d.ts","sourceRoot":"","sources":["../src/topology.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EACL,WAAW,EACX,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,SAAS,EACT,SAAS,EACT,SAAS,EACT,YAAY,EACZ,SAAS,EACT,cAAc,EACd,oBAAoB,EACpB,KAAK,QAAQ,EACb,KAAK,gBAAgB,GACtB,MAAM,wBAAwB,CAAC;AAIhC,OAAO,EACL,GAAG,EACH,QAAQ,EACR,MAAM,EACN,IAAI,EACJ,KAAK,EACL,SAAS,EACT,IAAI,EACJ,MAAM,EACN,OAAO,EACP,KAAK,EACL,aAAa,EACb,UAAU,EACV,aAAa,EACb,MAAM,EACN,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,OAAO,EACP,OAAO,EACP,MAAM,EACN,QAAQ,EACR,KAAK,EACL,SAAS,EACT,UAAU,EACV,QAAQ,EACR,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KA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AE,cAAc,EAAE,eAAe,EAAE,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAIjG,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,2BAA2B,EAC3B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,GACzB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAI5D,OAAO,EACL,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,mBAAmB,EACnB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,qBAAqB,GAC3B,MAAM,0BAA0B,CAAC;AAIlC,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,MAAM,EACN,WAAW,EACX,gBAAgB,EAChB,KAAK,UAAU,EACf,KAAK,WAAW,GACjB,MAAM,qBAAqB,CAAC"}
package/dist/topology.js CHANGED
@@ -1,7 +1,7 @@
1
- import { _ as downcast, a as flipFaceOrientation, b as iterTopo, c as normalAt, d as projectPointOnFace, g as cast, h as asTopo, i as faceOrientation, l as outerWire, m as uvCoordinates, n as faceCenter, o as getSurfaceType, p as uvBounds, r as faceGeomType, s as innerWires, t as classifyPointOnFace, u as pointOnSurface, v as fromBREP, x as shapeType, y as isCompSolid } from "./faceFns-Bne5RIvn.js";
2
- import { B as invalidateShapeCache, F as getEdges, G as vertexPosition, H as iterFaces, I as getFaces, P as getBounds, R as getVertices, U as iterVertices, V as iterEdges, W as iterWires, a as getHashCode, c as isSameShape, s as isEqualShape, z as getWires } from "./arrayAccess-CccV7jov.js";
3
- import { a as curveLength, c as curveStartPoint, d as getCurveType, f as getOrientation, i as curveIsPeriodic, l as curveTangentAt, m as offsetWire2D, n as curveEndPoint, o as curvePeriod, p as interpolateCurve, r as curveIsClosed, s as curvePointAt, t as approximateCurve, u as flipOrientation } from "./curveFns-D_s3LdNT.js";
4
- import { n as exportSTEP, o as clearMeshCache, r as exportSTL, s as createMeshCache, t as exportIGES } from "./meshFns--M5PTyHG.js";
5
- import { i as fuseAll, n as cutAll } from "./booleanFns-B79ALtKn.js";
6
- import { A as healFace, B as chamferDistAngle, C as threePointArc, D as wireLoop, E as wire, F as edgesOfFace, H as toGroupedBufferGeometryData, I as facesOfEdge, L as sharedEdges, M as healWire, O as autoHeal, P as adjacentFaces, R as verticesOfEdge, S as tangentArc, T as vertex, U as toLineGeometryData, V as toBufferGeometryData, _ as polygon, a as circle, b as sphere, c as cylinder, d as ellipsoid, f as face, g as offsetFace, h as line, i as bsplineApprox, j as healSolid, l as ellipse, m as helix, n as bezier, o as compound, p as filledFace, r as box, s as cone, t as addHoles, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid, z as wiresOfFace } from "./primitiveFns-u3Bbdvlw.js";
7
- export { addHoles, adjacentFaces, approximateCurve, asTopo, autoHeal, bezier, box, bsplineApprox, cast, chamferDistAngle as chamferDistAngleShape, circle, classifyPointOnFace, clearMeshCache, compound, cone, createMeshCache, curveEndPoint, curveIsClosed, curveIsPeriodic, curveLength, curvePeriod, curvePointAt, curveStartPoint, curveTangentAt, cutAll, cylinder, fromBREP as deserializeShape, downcast, edgesOfFace, ellipse, ellipseArc, ellipsoid, exportIGES, exportSTEP, exportSTL, face, faceCenter, faceGeomType, faceOrientation, facesOfEdge, filledFace, flipFaceOrientation, flipOrientation, fuseAll, getBounds, getCurveType, getEdges, getFaces, getHashCode, getOrientation, getSurfaceType, getVertices, getWires, healFace, healSolid, healWire, helix, innerWires, interpolateCurve, invalidateShapeCache, isCompSolid, isEqualShape, isSameShape, iterEdges, iterFaces, iterTopo, iterVertices, iterWires, line, normalAt, offsetFace, offsetWire2D, outerWire, pointOnSurface, polygon, projectPointOnFace, sewShells, shapeType, sharedEdges, solid, sphere, subFace, tangentArc, threePointArc, toBufferGeometryData, toGroupedBufferGeometryData, toLineGeometryData, torus, uvBounds, uvCoordinates, vertex, vertexPosition, verticesOfEdge, wire, wireLoop, wiresOfFace };
1
+ import { _ as downcast, a as flipFaceOrientation, b as iterTopo, c as normalAt, d as projectPointOnFace, g as cast, h as asTopo, i as faceOrientation, l as outerWire, m as uvCoordinates, n as faceCenter, o as getSurfaceType, p as uvBounds, r as faceGeomType, s as innerWires, t as classifyPointOnFace, u as pointOnSurface, v as fromBREP, x as shapeType, y as isCompSolid } from "./faceFns-6mY9O_5h.js";
2
+ import { B as invalidateShapeCache, F as getEdges, G as vertexPosition, H as iterFaces, I as getFaces, P as getBounds, R as getVertices, U as iterVertices, V as iterEdges, W as iterWires, a as getHashCode, c as isSameShape, s as isEqualShape, z as getWires } from "./arrayAccess-Bz2OkAF_.js";
3
+ import { a as curveLength, c as curveStartPoint, d as getCurveType, f as getOrientation, i as curveIsPeriodic, l as curveTangentAt, m as offsetWire2D, n as curveEndPoint, o as curvePeriod, p as interpolateCurve, r as curveIsClosed, s as curvePointAt, t as approximateCurve, u as flipOrientation } from "./curveFns-CzcOFFDX.js";
4
+ import { n as exportSTEP, o as clearMeshCache, r as exportSTL, s as createMeshCache, t as exportIGES } from "./meshFns-1ARDwoZ4.js";
5
+ import { i as fuseAll, n as cutAll } from "./booleanFns-omB4YLGU.js";
6
+ import { $ as facesOfEdge, A as fixShape, C as threePointArc, D as wireLoop, E as wire, G as chamferWithEvolution, I as solidFromShell, J as fuseWithEvolution, K as cutWithEvolution, M as healFace, N as healSolid, O as autoHeal, P as healWire, Q as edgesOfFace, S as tangentArc, T as vertex, U as variableFillet, W as positionOnCurve, X as shellWithEvolution, Y as intersectWithEvolution, Z as adjacentFaces, _ as polygon, a as circle, at as toGroupedBufferGeometryData, b as sphere, c as cylinder, d as ellipsoid, et as sharedEdges, f as face, g as offsetFace, h as line, i as bsplineApprox, it as toBufferGeometryData, k as fixSelfIntersection, l as ellipse, m as helix, n as bezier, nt as wiresOfFace, o as compound, ot as toLineGeometryData, p as filledFace, q as filletWithEvolution, r as box, rt as chamferDistAngle, s as cone, t as addHoles, tt as verticesOfEdge, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-CfCgkRwY.js";
7
+ export { addHoles, adjacentFaces, approximateCurve, asTopo, autoHeal, bezier, box, bsplineApprox, cast, chamferDistAngle as chamferDistAngleShape, chamferWithEvolution, circle, classifyPointOnFace, clearMeshCache, compound, cone, createMeshCache, curveEndPoint, curveIsClosed, curveIsPeriodic, curveLength, curvePeriod, curvePointAt, curveStartPoint, curveTangentAt, cutAll, cutWithEvolution, cylinder, fromBREP as deserializeShape, downcast, edgesOfFace, ellipse, ellipseArc, ellipsoid, exportIGES, exportSTEP, exportSTL, face, faceCenter, faceGeomType, faceOrientation, facesOfEdge, filledFace, filletWithEvolution, fixSelfIntersection, fixShape, flipFaceOrientation, flipOrientation, fuseAll, fuseWithEvolution, getBounds, getCurveType, getEdges, getFaces, getHashCode, getOrientation, getSurfaceType, getVertices, getWires, healFace, healSolid, healWire, helix, innerWires, interpolateCurve, intersectWithEvolution, invalidateShapeCache, isCompSolid, isEqualShape, isSameShape, iterEdges, iterFaces, iterTopo, iterVertices, iterWires, line, normalAt, offsetFace, offsetWire2D, outerWire, pointOnSurface, polygon, positionOnCurve, projectPointOnFace, sewShells, shapeType, sharedEdges, shellWithEvolution, solid, solidFromShell, sphere, subFace, tangentArc, threePointArc, toBufferGeometryData, toGroupedBufferGeometryData, toLineGeometryData, torus, uvBounds, uvCoordinates, variableFillet, vertex, vertexPosition, verticesOfEdge, wire, wireLoop, wiresOfFace };
package/dist/vectors.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_vecOps = require("./vecOps-4iBMiet9.cjs");
3
3
  const require_types = require("./types-BD-VVaWB.cjs");
4
- const require_planeOps = require("./planeOps-DdkIuVjk.cjs");
4
+ const require_planeOps = require("./planeOps-DA5DmML2.cjs");
5
5
  exports.DEG2RAD = require_vecOps.DEG2RAD;
6
6
  exports.RAD2DEG = require_vecOps.RAD2DEG;
7
7
  exports.createNamedPlane = require_planeOps.createNamedPlane;
package/dist/vectors.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { _ as DEG2RAD, a as vecDot, c as vecLength, d as vecNormalize, f as vecProjectToPlane, g as vecSub, h as vecScale, i as vecDistance, l as vecLengthSq, m as vecRotate, n as vecAngle, o as vecEquals, p as vecRepr, r as vecCross, s as vecIsZero, t as vecAdd, u as vecNegate, y as RAD2DEG } from "./vecOps-B9-MTeC8.js";
2
2
  import { n as toVec2, r as toVec3, t as resolveDirection } from "./types-Bb4KK_iG.js";
3
- import { i as pivotPlane, n as createPlane, o as resolvePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-DPintPbl.js";
3
+ import { i as pivotPlane, n as createPlane, o as resolvePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-D4THn1al.js";
4
4
  export { DEG2RAD, RAD2DEG, createNamedPlane, createPlane, pivotPlane, resolveDirection, resolvePlane, toVec2, toVec3, translatePlane, vecAdd, vecAngle, vecCross, vecDistance, vecDot, vecEquals, vecIsZero, vecLength, vecLengthSq, vecNegate, vecNormalize, vecProjectToPlane, vecRepr, vecRotate, vecScale, vecSub };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brepjs",
3
- "version": "13.0.0",
3
+ "version": "13.1.0",
4
4
  "description": "Web CAD library with pluggable geometry kernel",
5
5
  "keywords": [
6
6
  "cad",