brepjs 13.0.0 → 13.2.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 (110) hide show
  1. package/dist/2d.cjs +3 -3
  2. package/dist/2d.js +3 -3
  3. package/dist/{arrayAccess-CccV7jov.js → arrayAccess-Dps31ERU.js} +3 -3
  4. package/dist/{arrayAccess-BF8Hm4-H.cjs → arrayAccess-peFKE9Ob.cjs} +3 -3
  5. package/dist/{blueprint-mSGgCL3V.js → blueprint-DYCdRlW5.js} +8 -8
  6. package/dist/{blueprint-BP3P8Ado.cjs → blueprint-PLJan-W5.cjs} +8 -8
  7. package/dist/{blueprintFns-BQ-MP_Vy.cjs → blueprintFns-Bsx25BG7.cjs} +3 -3
  8. package/dist/{blueprintFns-DWFkjbDT.js → blueprintFns-eWh7NpZx.js} +3 -3
  9. package/dist/{boolean2D-Cqfwz60G.js → boolean2D-52qVCooY.js} +10 -10
  10. package/dist/{boolean2D-D76Hc7Wx.cjs → boolean2D-CtB21ajK.cjs} +10 -10
  11. package/dist/{booleanFns-CYPXeNVN.cjs → booleanFns-BrptUFkP.cjs} +25 -13
  12. package/dist/{booleanFns-B79ALtKn.js → booleanFns-iM6UPb8e.js} +25 -13
  13. package/dist/brepjs.cjs +43 -311
  14. package/dist/brepjs.js +23 -306
  15. package/dist/core/errors.d.ts +7 -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-BSwshSGB.js → cornerFinder-C7aDyYLJ.js} +2 -2
  20. package/dist/{cornerFinder-sg0JNgux.cjs → cornerFinder-SF-xmMO1.cjs} +2 -2
  21. package/dist/{curveFns-D_s3LdNT.js → curveFns-C-jU1_Y_.js} +2 -2
  22. package/dist/{curveFns-CJjkUGyW.cjs → curveFns-ywh7Ctyk.cjs} +2 -2
  23. package/dist/{drawFns-oyqai_HD.js → drawFns-D-0p86Lf.js} +13 -13
  24. package/dist/{drawFns-0CYuQn0J.cjs → drawFns-DknEB-Qs.cjs} +13 -13
  25. package/dist/{errors-B1fl3mAU.js → errors-B_T0aMQF.js} +7 -0
  26. package/dist/{errors-C85KVJr-.cjs → errors-DupKEMqI.cjs} +7 -0
  27. package/dist/{extrudeFns-0kBZvqJz.cjs → extrudeFns-CGCIbydL.cjs} +2 -2
  28. package/dist/{extrudeFns-lDvV4ir2.js → extrudeFns-LsH1rDMa.js} +2 -2
  29. package/dist/{faceFns-8BurpAGN.cjs → faceFns-8dGb8q3J.cjs} +2 -2
  30. package/dist/{faceFns-Bne5RIvn.js → faceFns-EnGcKFAr.js} +2 -2
  31. package/dist/{helpers-CxexSe1n.js → helpers-Rf0vhX6I.js} +6 -6
  32. package/dist/{helpers-D8DIMw2U.cjs → helpers-pQpV9Mwh.cjs} +6 -6
  33. package/dist/{historyFns-BTeasREV.js → historyFns-XkjLAQyu.js} +5 -5
  34. package/dist/{historyFns-BAzQr6EP.cjs → historyFns-lNalnOdR.cjs} +5 -5
  35. package/dist/{importFns-D__wN_Pq.cjs → importFns-BSH9cGIp.cjs} +36 -4
  36. package/dist/{importFns-clldr3EF.js → importFns-Bgs-FYAP.js} +31 -5
  37. package/dist/index.d.ts +8 -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/kernel/brepkit/booleanOps.d.ts +7 -1
  46. package/dist/kernel/brepkit/booleanOps.d.ts.map +1 -1
  47. package/dist/kernel/brepkit/brepkitAdapter.d.ts +5 -4
  48. package/dist/kernel/brepkit/brepkitAdapter.d.ts.map +1 -1
  49. package/dist/kernel/brepkit/evolutionOps.d.ts +4 -4
  50. package/dist/kernel/brepkit/evolutionOps.d.ts.map +1 -1
  51. package/dist/kernel/interfaces/booleanOps.d.ts +3 -1
  52. package/dist/kernel/interfaces/booleanOps.d.ts.map +1 -1
  53. package/dist/kernel/interfaces/evolutionOps.d.ts +4 -4
  54. package/dist/kernel/interfaces/evolutionOps.d.ts.map +1 -1
  55. package/dist/kernel/occt/booleanOps.d.ts +7 -1
  56. package/dist/kernel/occt/booleanOps.d.ts.map +1 -1
  57. package/dist/kernel/occt/defaultAdapter.d.ts +5 -4
  58. package/dist/kernel/occt/defaultAdapter.d.ts.map +1 -1
  59. package/dist/kernel/occt/evolutionOps.d.ts +2 -2
  60. package/dist/kernel/occt/evolutionOps.d.ts.map +1 -1
  61. package/dist/kernel/occt/historyOps.d.ts +4 -4
  62. package/dist/kernel/occt/historyOps.d.ts.map +1 -1
  63. package/dist/kernel/occt/wasmTypes/occtBuilders.d.ts +4 -0
  64. package/dist/kernel/occt/wasmTypes/occtBuilders.d.ts.map +1 -1
  65. package/dist/kernel/types.d.ts +30 -0
  66. package/dist/kernel/types.d.ts.map +1 -1
  67. package/dist/{measureFns-DrMZGJ6r.cjs → measureFns-CFdHa_fj.cjs} +3 -3
  68. package/dist/{measureFns-C4WqH4OT.js → measureFns-D7J6qUY_.js} +3 -3
  69. package/dist/measurement.cjs +1 -1
  70. package/dist/measurement.js +1 -1
  71. package/dist/{meshFns-DvOM43vV.cjs → meshFns-2XnDXgIh.cjs} +3 -3
  72. package/dist/{meshFns--M5PTyHG.js → meshFns-B7uklc4M.js} +3 -3
  73. package/dist/operations.cjs +2 -2
  74. package/dist/operations.js +2 -2
  75. package/dist/{planeOps-DPintPbl.js → planeOps-BuBXTLBr.js} +1 -1
  76. package/dist/{planeOps-DdkIuVjk.cjs → planeOps-cTxDywpG.cjs} +1 -1
  77. package/dist/primitiveFns-CASk8g16.js +1452 -0
  78. package/dist/primitiveFns-DKtvEA0i.cjs +1817 -0
  79. package/dist/query.cjs +2 -2
  80. package/dist/query.js +2 -2
  81. package/dist/result.cjs +1 -1
  82. package/dist/result.js +1 -1
  83. package/dist/{shapeTypes-GmE4D5Q_.cjs → shapeTypes-CElaawp7.cjs} +114 -9
  84. package/dist/{shapeTypes-D38b_BKF.js → shapeTypes-CYb8Byqj.js} +114 -9
  85. package/dist/sketching.cjs +2 -2
  86. package/dist/sketching.js +2 -2
  87. package/dist/{solidBuilders-FaTmd_PS.js → solidBuilders-ClJxiUa3.js} +3 -3
  88. package/dist/{solidBuilders-BqU0oT2q.cjs → solidBuilders-Cs4XyL58.cjs} +3 -3
  89. package/dist/{surfaceBuilders-DiCVk_Un.js → surfaceBuilders-DnGdDW8i.js} +3 -3
  90. package/dist/{surfaceBuilders-BzDQQ4EG.cjs → surfaceBuilders-ZUTb3z6i.cjs} +3 -3
  91. package/dist/topology/booleanDiagnosticFns.d.ts +18 -0
  92. package/dist/topology/booleanDiagnosticFns.d.ts.map +1 -0
  93. package/dist/topology/booleanFns.d.ts.map +1 -1
  94. package/dist/topology/evolutionFns.d.ts +71 -0
  95. package/dist/topology/evolutionFns.d.ts.map +1 -0
  96. package/dist/topology/healingFns.d.ts +17 -0
  97. package/dist/topology/healingFns.d.ts.map +1 -1
  98. package/dist/topology/modifierFns.d.ts +15 -0
  99. package/dist/topology/modifierFns.d.ts.map +1 -1
  100. package/dist/topology/positionFns.d.ts +15 -0
  101. package/dist/topology/positionFns.d.ts.map +1 -0
  102. package/dist/topology.cjs +18 -6
  103. package/dist/topology.d.ts +6 -1
  104. package/dist/topology.d.ts.map +1 -1
  105. package/dist/topology.js +7 -7
  106. package/dist/vectors.cjs +1 -1
  107. package/dist/vectors.js +1 -1
  108. package/package.json +1 -1
  109. package/dist/primitiveFns-BXufrcii.cjs +0 -1063
  110. package/dist/primitiveFns-u3Bbdvlw.js +0 -806
@@ -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,GAAG,OAAO,CAE3D;AAMD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC,CAqC1D;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAe5E;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAe5F;AAED;;;;;GAKG;AACH,wBAA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ED;;;;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 +1 @@
1
- {"version":3,"file":"modifierFns.d.ts","sourceRoot":"","sources":["../../src/topology/modifierFns.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAgC,MAAM,sBAAsB,CAAC;AACnG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAG1D,OAAO,EAAE,KAAK,MAAM,EAA4B,MAAM,kBAAkB,CAAC;AAKzE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AA2IhD;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI,GAAG,KAAK,E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wBAAgB,KAAK,CACnB,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,aAAa,CAAC,IAAI,CAAC,EAC1B,SAAS,EAAE,MAAM,EACjB,SAAS,SAAO,GACf,MAAM,CAAC,UAAU,CAAC,CAoCpB;AAMD;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,SAAO,GAAG,MAAM,CAAC,UAAU,CAAC,CA0BhG;AAMD;;;;;;;;;;;;GAYG;AACH,wBAAgB,KAAK,CACnB,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,aAAa,CAAC,IAAI,CAAC,EAC1B,aAAa,EAAE,IAAI,EACnB,YAAY,EAAE,IAAI,EAClB,KAAK,EAAE,UAAU,GAChB,MAAM,CAAC,UAAU,CAAC,CAkFpB;AAMD,uEAAuE;AACvE,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,UAAU,EACjB,IAAI,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-8dGb8q3J.cjs");
3
+ const require_arrayAccess = require("./arrayAccess-peFKE9Ob.cjs");
4
+ const require_curveFns = require("./curveFns-ywh7Ctyk.cjs");
5
+ const require_meshFns = require("./meshFns-2XnDXgIh.cjs");
6
+ const require_booleanFns = require("./booleanFns-BrptUFkP.cjs");
7
+ const require_primitiveFns = require("./primitiveFns-DKtvEA0i.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,8 @@ 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;
19
+ exports.checkBoolean = require_primitiveFns.checkBoolean;
18
20
  exports.circle = require_primitiveFns.circle;
19
21
  exports.classifyPointOnFace = require_faceFns.classifyPointOnFace;
20
22
  exports.clearMeshCache = require_meshFns.clearMeshCache;
@@ -30,6 +32,7 @@ exports.curvePointAt = require_curveFns.curvePointAt;
30
32
  exports.curveStartPoint = require_curveFns.curveStartPoint;
31
33
  exports.curveTangentAt = require_curveFns.curveTangentAt;
32
34
  exports.cutAll = require_booleanFns.cutAll;
35
+ exports.cutWithEvolution = require_primitiveFns.cutWithEvolution;
33
36
  exports.cylinder = require_primitiveFns.cylinder;
34
37
  exports.deserializeShape = require_faceFns.fromBREP;
35
38
  exports.downcast = require_faceFns.downcast;
@@ -46,9 +49,13 @@ exports.faceGeomType = require_faceFns.faceGeomType;
46
49
  exports.faceOrientation = require_faceFns.faceOrientation;
47
50
  exports.facesOfEdge = require_primitiveFns.facesOfEdge;
48
51
  exports.filledFace = require_primitiveFns.filledFace;
52
+ exports.filletWithEvolution = require_primitiveFns.filletWithEvolution;
53
+ exports.fixSelfIntersection = require_primitiveFns.fixSelfIntersection;
54
+ exports.fixShape = require_primitiveFns.fixShape;
49
55
  exports.flipFaceOrientation = require_faceFns.flipFaceOrientation;
50
56
  exports.flipOrientation = require_curveFns.flipOrientation;
51
57
  exports.fuseAll = require_booleanFns.fuseAll;
58
+ exports.fuseWithEvolution = require_primitiveFns.fuseWithEvolution;
52
59
  exports.getBounds = require_arrayAccess.getBounds;
53
60
  exports.getCurveType = require_curveFns.getCurveType;
54
61
  exports.getEdges = require_arrayAccess.getEdges;
@@ -64,6 +71,7 @@ exports.healWire = require_primitiveFns.healWire;
64
71
  exports.helix = require_primitiveFns.helix;
65
72
  exports.innerWires = require_faceFns.innerWires;
66
73
  exports.interpolateCurve = require_curveFns.interpolateCurve;
74
+ exports.intersectWithEvolution = require_primitiveFns.intersectWithEvolution;
67
75
  exports.invalidateShapeCache = require_arrayAccess.invalidateShapeCache;
68
76
  exports.isCompSolid = require_faceFns.isCompSolid;
69
77
  exports.isEqualShape = require_arrayAccess.isEqualShape;
@@ -80,11 +88,14 @@ exports.offsetWire2D = require_curveFns.offsetWire2D;
80
88
  exports.outerWire = require_faceFns.outerWire;
81
89
  exports.pointOnSurface = require_faceFns.pointOnSurface;
82
90
  exports.polygon = require_primitiveFns.polygon;
91
+ exports.positionOnCurve = require_primitiveFns.positionOnCurve;
83
92
  exports.projectPointOnFace = require_faceFns.projectPointOnFace;
84
93
  exports.sewShells = require_primitiveFns.sewShells;
85
94
  exports.shapeType = require_faceFns.shapeType;
86
95
  exports.sharedEdges = require_primitiveFns.sharedEdges;
96
+ exports.shellWithEvolution = require_primitiveFns.shellWithEvolution;
87
97
  exports.solid = require_primitiveFns.solid;
98
+ exports.solidFromShell = require_primitiveFns.solidFromShell;
88
99
  exports.sphere = require_primitiveFns.sphere;
89
100
  exports.subFace = require_primitiveFns.subFace;
90
101
  exports.tangentArc = require_primitiveFns.tangentArc;
@@ -95,6 +106,7 @@ exports.toLineGeometryData = require_primitiveFns.toLineGeometryData;
95
106
  exports.torus = require_primitiveFns.torus;
96
107
  exports.uvBounds = require_faceFns.uvBounds;
97
108
  exports.uvCoordinates = require_faceFns.uvCoordinates;
109
+ exports.variableFillet = require_primitiveFns.variableFillet;
98
110
  exports.vertex = require_primitiveFns.vertex;
99
111
  exports.vertexPosition = require_arrayAccess.vertexPosition;
100
112
  exports.verticesOfEdge = require_primitiveFns.verticesOfEdge;
@@ -9,13 +9,18 @@
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 { checkBoolean } from './topology/booleanDiagnosticFns.js';
13
+ export { fuseWithEvolution, cutWithEvolution, intersectWithEvolution, filletWithEvolution, chamferWithEvolution, shellWithEvolution, type EvolutionResult, } from './topology/evolutionFns.js';
14
+ export type { ShapeEvolution } from './kernel/types.js';
12
15
  export { chamferDistAngle as chamferDistAngleShape } from './topology/chamferAngleFns.js';
16
+ export { variableFillet, type VariableFilletRadius } from './topology/modifierFns.js';
13
17
  export { getCurveType, curveStartPoint, curveEndPoint, curvePointAt, curveTangentAt, curveLength, curveIsClosed, curveIsPeriodic, curvePeriod, getOrientation, flipOrientation, offsetWire2D, interpolateCurve, approximateCurve, type InterpolateCurveOptions, type ApproximateCurveOptions, } from './topology/curveFns.js';
14
18
  export { getSurfaceType, faceGeomType, faceOrientation, flipFaceOrientation, uvBounds, pointOnSurface, uvCoordinates, normalAt, faceCenter, classifyPointOnFace, outerWire, innerWires, projectPointOnFace, type UVBounds, type PointProjectionResult, } from './topology/faceFns.js';
15
19
  export { facesOfEdge, edgesOfFace, wiresOfFace, verticesOfEdge, adjacentFaces, sharedEdges, } from './topology/adjacencyFns.js';
16
20
  export { exportSTEP, exportSTL, exportIGES, type ShapeMesh, type EdgeMesh, type MeshOptions, } from './topology/meshFns.js';
17
21
  export { clearMeshCache, createMeshCache, type MeshCacheContext } from './topology/meshCache.js';
18
22
  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';
23
+ export { positionOnCurve } from './topology/positionFns.js';
24
+ export { healSolid, healFace, healWire, autoHeal, fixShape, solidFromShell, fixSelfIntersection, type HealingReport, type AutoHealOptions, type HealingStepDiagnostic, } from './topology/healingFns.js';
20
25
  export { cast, downcast, shapeType, iterTopo, asTopo, isCompSolid, deserializeShape, type TopoEntity, type GenericTopo, } from './topology/index.js';
21
26
  //# 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,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,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,GACjC,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE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AM,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,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,GACjC,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAElE,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,KAAK,eAAe,GACrB,MAAM,4BAA4B,CAAC;AAEpC,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;A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,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-EnGcKFAr.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-Dps31ERU.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-C-jU1_Y_.js";
4
+ import { n as exportSTEP, o as clearMeshCache, r as exportSTL, s as createMeshCache, t as exportIGES } from "./meshFns-B7uklc4M.js";
5
+ import { i as fuseAll, n as cutAll } from "./booleanFns-iM6UPb8e.js";
6
+ import { $ as edgesOfFace, 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 adjacentFaces, S as tangentArc, T as vertex, U as variableFillet, W as positionOnCurve, X as shellWithEvolution, Y as intersectWithEvolution, Z as checkBoolean, _ as polygon, a as circle, at as toBufferGeometryData, b as sphere, c as cylinder, d as ellipsoid, et as facesOfEdge, f as face, g as offsetFace, h as line, i as bsplineApprox, it as chamferDistAngle, k as fixSelfIntersection, l as ellipse, m as helix, n as bezier, nt as verticesOfEdge, o as compound, ot as toGroupedBufferGeometryData, p as filledFace, q as filletWithEvolution, r as box, rt as wiresOfFace, s as cone, st as toLineGeometryData, t as addHoles, tt as sharedEdges, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-CASk8g16.js";
7
+ export { addHoles, adjacentFaces, approximateCurve, asTopo, autoHeal, bezier, box, bsplineApprox, cast, chamferDistAngle as chamferDistAngleShape, chamferWithEvolution, checkBoolean, 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-cTxDywpG.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-BuBXTLBr.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.2.0",
4
4
  "description": "Web CAD library with pluggable geometry kernel",
5
5
  "keywords": [
6
6
  "cad",