brepjs 20.12.2 → 20.12.5

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 (100) hide show
  1. package/dist/2d.cjs +6 -6
  2. package/dist/2d.js +6 -6
  3. package/dist/{adjacencyFns-C0YD3Zrp.js → adjacencyFns-B2Po1gPs.js} +3 -3
  4. package/dist/{adjacencyFns-Cibtcqdl.cjs → adjacencyFns-Cho9v3Q3.cjs} +3 -3
  5. package/dist/{blueprint-p1SmFAfl.cjs → blueprint-ERmwk6zG.cjs} +5 -5
  6. package/dist/{blueprint-CLgJoNt5.js → blueprint-Zmt5-07y.js} +5 -5
  7. package/dist/{blueprintFns-DU8_o9zy.cjs → blueprintFns-B_sxtIo7.cjs} +2 -2
  8. package/dist/{blueprintFns-D4wl5Fft.js → blueprintFns-Dtm-XukP.js} +2 -2
  9. package/dist/{blueprintSketcher-BTJqAd7E.cjs → blueprintSketcher-CZyokLGJ.cjs} +3 -3
  10. package/dist/{blueprintSketcher-CmR6Mi91.js → blueprintSketcher-CwTAtrkY.js} +3 -3
  11. package/dist/{boolean2D-CEPQF4LP.cjs → boolean2D-CRuNKgXs.cjs} +4 -4
  12. package/dist/{boolean2D-C3bLz5i0.js → boolean2D-yUpS8onH.js} +4 -4
  13. package/dist/brepjs.cjs +128 -100
  14. package/dist/brepjs.js +128 -100
  15. package/dist/{cameraFns-CUX8VNKT.cjs → cameraFns-DB1IyMmS.cjs} +3 -3
  16. package/dist/{cameraFns-xUCRxpsa.js → cameraFns-DRok4UxZ.js} +3 -3
  17. package/dist/core.cjs +2 -2
  18. package/dist/core.js +2 -2
  19. package/dist/{cornerFinder-CBjvTijF.js → cornerFinder-D5qnDbtZ.js} +1 -1
  20. package/dist/{cornerFinder-BToeCt6c.cjs → cornerFinder-DfYBHHZG.cjs} +1 -1
  21. package/dist/{curveFns-AMqd_WaO.js → curveFns-BGPSFUWB.js} +1 -1
  22. package/dist/{curveFns-CMiP40Ko.cjs → curveFns-BKT4Sg8q.cjs} +1 -1
  23. package/dist/{drawFns-BOyA7iOt.cjs → drawFns-D8e5RiRe.cjs} +23 -15
  24. package/dist/{drawFns-DzqPMBHE.js → drawFns-aGufr-pr.js} +23 -15
  25. package/dist/{faceFns-C6fYNgZl.cjs → faceFns-Cx7cwUMx.cjs} +2 -2
  26. package/dist/{faceFns-DEDlLMcn.js → faceFns-lE2OvBfq.js} +2 -2
  27. package/dist/{healingFns-CJIIjQKh.js → healingFns-B94zSk1-.js} +5 -5
  28. package/dist/{healingFns-383ByJpH.cjs → healingFns-CcgyrL6h.cjs} +5 -5
  29. package/dist/{helpers-DxoCOnD_.cjs → helpers-C4f2MV-r.cjs} +14 -10
  30. package/dist/{helpers-i26hsY3T.js → helpers-CNgipe6l.js} +14 -10
  31. package/dist/{importFns-Fr6WPpl2.cjs → importFns-fIdcaMqt.cjs} +2 -2
  32. package/dist/{importFns-Bz4sXl93.js → importFns-gB1X3ti2.js} +2 -2
  33. package/dist/index.d.ts +2 -2
  34. package/dist/io.cjs +2 -2
  35. package/dist/io.js +2 -2
  36. package/dist/kernel/geometry2d.d.ts +7 -0
  37. package/dist/kernel/occtWasm/constructionOps.d.ts +1 -1
  38. package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
  39. package/dist/kernel/occtWasm/occtWasmAdapter.d.ts +1 -1
  40. package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
  41. package/dist/kernel/occtWasm/occtWasmTypes.d.ts +5 -0
  42. package/dist/{loftFns-BsFinbgs.cjs → loftFns-AHaYxJyS.cjs} +17 -2
  43. package/dist/{loftFns-pMh0ET-J.js → loftFns-mbyBvJ8Y.js} +17 -2
  44. package/dist/{measureFns-BuxKO1GV.js → measureFns-C94G0fH8.js} +102 -35
  45. package/dist/{measureFns-Ed7LXAhG.cjs → measureFns-CuabRDRL.cjs} +102 -35
  46. package/dist/measurement/measureFns.d.ts +3 -2
  47. package/dist/measurement.cjs +2 -2
  48. package/dist/measurement.js +2 -2
  49. package/dist/{meshFns-BNrdUhgG.cjs → meshFns-GXF5gPZL.cjs} +3 -3
  50. package/dist/{meshFns-LytwBtBQ.js → meshFns-jarDZKw1.js} +3 -3
  51. package/dist/{occtWasmAdapter-D1EXktNq.cjs → occtWasmAdapter-DeoeK2iJ.cjs} +39 -7
  52. package/dist/{occtWasmAdapter-RBm-JLoN.js → occtWasmAdapter-DlNmVNUn.js} +39 -7
  53. package/dist/operations/patternFns.d.ts +6 -1
  54. package/dist/operations.cjs +2 -2
  55. package/dist/operations.js +2 -2
  56. package/dist/{originTrackingFns-BqlxFeWq.js → originTrackingFns-BxeUD2NM.js} +2 -2
  57. package/dist/{originTrackingFns-BRJ2PZ8J.cjs → originTrackingFns-C-yuMV3m.cjs} +2 -2
  58. package/dist/{primitiveFns-wOdKnYBs.cjs → primitiveFns-BVAkYHVf.cjs} +7 -14
  59. package/dist/{primitiveFns-DrEUKZvX.js → primitiveFns-CualoFAk.js} +7 -14
  60. package/dist/{principalBoxFns-D8rqqCl2.cjs → principalBoxFns-DHh5_HCw.cjs} +3 -3
  61. package/dist/{principalBoxFns-C0UzVmfC.js → principalBoxFns-DtI7tVuS.js} +3 -3
  62. package/dist/projection.cjs +1 -1
  63. package/dist/projection.js +1 -1
  64. package/dist/query/finderCore.d.ts +7 -7
  65. package/dist/query.cjs +2 -2
  66. package/dist/query.js +2 -2
  67. package/dist/{refResolveFns-BqcjC50D.js → refResolveFns--SRyN2qa.js} +6 -6
  68. package/dist/{refResolveFns-C23E6pcj.cjs → refResolveFns-CaAw-ya3.cjs} +6 -6
  69. package/dist/{shapeFns-D7DcPxfx.js → shapeFns-CdrDroOM.js} +2 -2
  70. package/dist/{shapeFns-CHFmX5HQ.cjs → shapeFns-CwjjUOr0.cjs} +2 -2
  71. package/dist/shapeRef.cjs +1 -1
  72. package/dist/shapeRef.js +1 -1
  73. package/dist/{shapeTypes-HDVHzNk1.cjs → shapeTypes-D938X2mg.cjs} +1 -1
  74. package/dist/{shapeTypes-Db3yAgTO.js → shapeTypes-PNVEv6ga.js} +1 -1
  75. package/dist/sketching/sketchFns.d.ts +8 -3
  76. package/dist/sketching/sketches.d.ts +8 -0
  77. package/dist/sketching.cjs +3 -3
  78. package/dist/sketching.js +3 -3
  79. package/dist/{solidBuilders-DYumkmVa.cjs → solidBuilders-CAkBQKWb.cjs} +5 -5
  80. package/dist/{solidBuilders-CAiqZrAE.js → solidBuilders-Hft8Cr6a.js} +5 -5
  81. package/dist/{surfaceBuilders-o3H-x6Ca.cjs → surfaceBuilders-BKCiVf7T.cjs} +3 -3
  82. package/dist/{surfaceBuilders-CW6cUdk9.js → surfaceBuilders-CrO_BBKM.js} +3 -3
  83. package/dist/text.cjs +2 -2
  84. package/dist/text.js +2 -2
  85. package/dist/{textBlueprints-BE9fvro-.js → textBlueprints-B8q2a-nN.js} +52 -16
  86. package/dist/{textBlueprints-BSU9_W8u.cjs → textBlueprints-C9HeYc5a.cjs} +52 -16
  87. package/dist/{textMetrics-BHunx03s.cjs → textMetrics-1fhCSAGF.cjs} +1 -1
  88. package/dist/{textMetrics-DBqFVzjh.js → textMetrics-DJfTSy6w.js} +1 -1
  89. package/dist/{threadFns-DckgA8OY.cjs → threadFns-CVIEbOW3.cjs} +37 -29
  90. package/dist/{threadFns-DViBlfHh.js → threadFns-f2KwibLR.js} +36 -28
  91. package/dist/topology/apiTypes.d.ts +13 -7
  92. package/dist/topology/topologyQueryFns.d.ts +9 -1
  93. package/dist/topology.cjs +9 -9
  94. package/dist/topology.d.ts +1 -1
  95. package/dist/topology.js +9 -9
  96. package/dist/{topologyQueryFns-gyva7bvF.cjs → topologyQueryFns-4WYqtSFF.cjs} +1 -14
  97. package/dist/{topologyQueryFns-DKNVBMuN.js → topologyQueryFns-BZUY10TD.js} +1 -14
  98. package/dist/{validityTypes-BmqE7KfX.js → validityTypes-DAXIqwZM.js} +1 -1
  99. package/dist/{validityTypes-CwMwVFdY.cjs → validityTypes-tWSx_zAH.cjs} +1 -1
  100. package/package.json +2 -1
@@ -1,5 +1,5 @@
1
1
  import { KernelShape, ShapeType, SurfaceType } from '../kernel/types.js';
2
- import { AnyShape, Dimension, Edge, Face, Wire, Vertex, Shell, Solid, CompSolid, ShapeKind } from '../core/shapeTypes.js';
2
+ import { AnyShape, Dimension, Edge, Face, Wire, Vertex, Shell, Solid, CompSolid, Shape3D, ShapeKind } from '../core/shapeTypes.js';
3
3
  import { Vec3 } from '../core/types.js';
4
4
  /**
5
5
  * Count sub-shapes of a type without materialising (and disposing) a handle per
@@ -53,6 +53,7 @@ export declare function getCacheEntry(shape: AnyShape<Dimension>): TopoCacheEntr
53
53
  */
54
54
  export declare function invalidateShapeCache(shape: AnyShape<Dimension>): void;
55
55
  /** Get all edges of a shape as branded Edge handles. Results are cached per shape. */
56
+ export declare function getEdges(shape: Shape3D): Edge[];
56
57
  export declare function getEdges<D extends Dimension>(shape: AnyShape<D>): Edge<D>[];
57
58
  /**
58
59
  * Get all faces of a shape. Results are cached per shape.
@@ -60,10 +61,13 @@ export declare function getEdges<D extends Dimension>(shape: AnyShape<D>): Edge<
60
61
  * Returns `Face[]` — use `isOrientedFace()` or `orientedFace()` to narrow
61
62
  * individual faces to `OrientedFace` when the orientation guarantee is needed.
62
63
  */
64
+ export declare function getFaces(shape: Shape3D): Face[];
63
65
  export declare function getFaces<D extends Dimension>(shape: AnyShape<D>): Face<D>[];
64
66
  /** Get all wires of a shape as branded Wire handles. Results are cached per shape. */
67
+ export declare function getWires(shape: Shape3D): Wire[];
65
68
  export declare function getWires<D extends Dimension>(shape: AnyShape<D>): Wire<D>[];
66
69
  /** Get all vertices of a shape as branded Vertex handles. Results are cached per shape. */
70
+ export declare function getVertices(shape: Shape3D): Vertex[];
67
71
  export declare function getVertices<D extends Dimension>(shape: AnyShape<D>): Vertex<D>[];
68
72
  /**
69
73
  * Get all solids of a shape as branded Solid handles. Results are cached per shape.
@@ -78,12 +82,16 @@ export declare function getShells(shape: AnyShape<Dimension>): Shell[];
78
82
  /** Get all compsolids of a shape as branded CompSolid handles. Results are cached per shape. */
79
83
  export declare function getCompSolids(shape: AnyShape<Dimension>): CompSolid[];
80
84
  /** Lazily iterate edges of a shape, yielding branded Edge handles one at a time. */
85
+ export declare function iterEdges(shape: Shape3D): Generator<Edge>;
81
86
  export declare function iterEdges<D extends Dimension>(shape: AnyShape<D>): Generator<Edge<D>>;
82
87
  /** Lazily iterate faces of a shape, yielding branded Face handles one at a time. */
88
+ export declare function iterFaces(shape: Shape3D): Generator<Face>;
83
89
  export declare function iterFaces<D extends Dimension>(shape: AnyShape<D>): Generator<Face<D>>;
84
90
  /** Lazily iterate wires of a shape, yielding branded Wire handles one at a time. */
91
+ export declare function iterWires(shape: Shape3D): Generator<Wire>;
85
92
  export declare function iterWires<D extends Dimension>(shape: AnyShape<D>): Generator<Wire<D>>;
86
93
  /** Lazily iterate vertices of a shape, yielding branded Vertex handles one at a time. */
94
+ export declare function iterVertices(shape: Shape3D): Generator<Vertex>;
87
95
  export declare function iterVertices<D extends Dimension>(shape: AnyShape<D>): Generator<Vertex<D>>;
88
96
  /** Lazily iterate solids of a shape, yielding branded Solid handles one at a time. */
89
97
  export declare function iterSolids(shape: AnyShape<Dimension>): Generator<Solid>;
package/dist/topology.cjs CHANGED
@@ -1,13 +1,13 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_topologyQueryFns = require("./topologyQueryFns-gyva7bvF.cjs");
3
- const require_faceFns = require("./faceFns-C6fYNgZl.cjs");
4
- const require_solidBuilders = require("./solidBuilders-DYumkmVa.cjs");
5
- const require_primitiveFns = require("./primitiveFns-wOdKnYBs.cjs");
6
- const require_shapeFns = require("./shapeFns-CHFmX5HQ.cjs");
7
- const require_curveFns = require("./curveFns-CMiP40Ko.cjs");
8
- const require_meshFns = require("./meshFns-BNrdUhgG.cjs");
9
- const require_healingFns = require("./healingFns-383ByJpH.cjs");
10
- const require_adjacencyFns = require("./adjacencyFns-Cibtcqdl.cjs");
2
+ const require_topologyQueryFns = require("./topologyQueryFns-4WYqtSFF.cjs");
3
+ const require_faceFns = require("./faceFns-Cx7cwUMx.cjs");
4
+ const require_solidBuilders = require("./solidBuilders-CAkBQKWb.cjs");
5
+ const require_primitiveFns = require("./primitiveFns-BVAkYHVf.cjs");
6
+ const require_shapeFns = require("./shapeFns-CwjjUOr0.cjs");
7
+ const require_curveFns = require("./curveFns-BKT4Sg8q.cjs");
8
+ const require_meshFns = require("./meshFns-GXF5gPZL.cjs");
9
+ const require_healingFns = require("./healingFns-CcgyrL6h.cjs");
10
+ const require_adjacencyFns = require("./adjacencyFns-Cho9v3Q3.cjs");
11
11
  exports.addHoles = require_primitiveFns.addHoles;
12
12
  exports.adjacentFaces = require_adjacencyFns.adjacentFaces;
13
13
  exports.approximateCurve = require_curveFns.approximateCurve;
@@ -17,7 +17,7 @@ export { chamferDistAngle as chamferDistAngleShape } from './topology/chamferAng
17
17
  export { variableFillet, type VariableFilletRadius } from './topology/modifierFns.js';
18
18
  export { getCurveType, curveStartPoint, curveEndPoint, curvePointAt, curveTangentAt, curveAxis, curveLength, curveIsClosed, curveIsPeriodic, curvePeriod, getOrientation, flipOrientation, offsetWire2D, interpolateCurve, approximateCurve, type InterpolateCurveOptions, type ApproximateCurveOptions, } from './topology/curveFns.js';
19
19
  export { getNurbsCurveData, getNurbsSurfaceData } from './topology/nurbsFns.js';
20
- export { getSurfaceType, faceGeomType, faceOrientation, flipFaceOrientation, uvBounds, pointOnSurface, uvCoordinates, normalAt, faceCenter, faceAxis, classifyPointOnFace, outerWire, innerWires, projectPointOnFace, type UVBounds, type PointProjectionResult, } from './topology/faceFns.js';
20
+ export { getSurfaceType, faceGeomType, faceOrientation, flipFaceOrientation, uvBounds, pointOnSurface, uvCoordinates, normalAt, faceCenter, faceAxis, classifyPointOnFace, outerWire, innerWires, projectPointOnFace, type SurfaceType, type UVBounds, type PointProjectionResult, } from './topology/faceFns.js';
21
21
  export { facesOfEdge, edgesOfFace, wiresOfFace, verticesOfEdge, adjacentFaces, sharedEdges, } from './topology/adjacencyFns.js';
22
22
  export { exportSTEP, exportSTL, exportIGES, type ShapeMesh, type EdgeMesh, type MeshOptions, } from './topology/meshFns.js';
23
23
  export { clearMeshCache, createMeshCache, type MeshCacheContext } from './topology/meshCache.js';
package/dist/topology.js CHANGED
@@ -1,10 +1,10 @@
1
- import { _ as iterFaces, b as iterVertices, c as getFaces, f as getVertices, g as iterEdges, m as invalidateShapeCache, n as getBounds, p as getWires, s as getEdges, w as vertexPosition, x as iterWires } from "./topologyQueryFns-DKNVBMuN.js";
2
- import { C as shapeType, S as iterTopo, _ as cast, a as faceOrientation, b as fromBREP, c as innerWires, d as pointOnSurface, f as projectPointOnFace, g as asTopo, h as uvCoordinates, i as faceGeomType, l as normalAt, m as uvBounds, n as faceAxis, o as flipFaceOrientation, r as faceCenter, s as getSurfaceType, t as classifyPointOnFace, u as outerWire, x as isCompSolid, y as downcast } from "./faceFns-DEDlLMcn.js";
3
- import { h as fuseAll, p as cutAll } from "./solidBuilders-CAiqZrAE.js";
4
- import { C as threePointArc, D as wireLoop, E as wire, S as tangentArc, T as vertex, _ 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, 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 } from "./primitiveFns-DrEUKZvX.js";
5
- import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-D7DcPxfx.js";
6
- import { a as curveIsPeriodic, c as curvePointAt, d as flipOrientation, f as getCurveType, h as offsetWire2D, i as curveIsClosed, l as curveStartPoint, m as interpolateCurve, n as curveAxis, o as curveLength, p as getOrientation, r as curveEndPoint, s as curvePeriod, t as approximateCurve, u as curveTangentAt } from "./curveFns-AMqd_WaO.js";
7
- import { d as clearMeshCache, f as createMeshCache, n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-LytwBtBQ.js";
8
- import { A as variableFillet, F as toLineGeometryData, M as toGroupedBufferGeometryData, S as chamferDistAngle, _ as checkBoolean, a as healFace, b as getNurbsCurveData, d as chamferWithEvolution, f as cutWithEvolution, g as shellWithEvolution, h as intersectWithEvolution, j as toBufferGeometryData, l as solidFromShell, m as fuseWithEvolution, n as fixSelfIntersection, o as healSolid, p as filletWithEvolution, r as fixShape, s as healWire, t as autoHeal, u as positionOnCurve, v as cutAllBisect, x as getNurbsSurfaceData, y as fuseAllBisect } from "./healingFns-CJIIjQKh.js";
9
- import { i as facesOfEdge, l as wiresOfFace, n as adjacentFaces, o as sharedEdges, r as edgesOfFace, s as verticesOfEdge } from "./adjacencyFns-C0YD3Zrp.js";
1
+ import { _ as iterFaces, b as iterVertices, c as getFaces, f as getVertices, g as iterEdges, m as invalidateShapeCache, n as getBounds, p as getWires, s as getEdges, w as vertexPosition, x as iterWires } from "./topologyQueryFns-BZUY10TD.js";
2
+ import { C as shapeType, S as iterTopo, _ as cast, a as faceOrientation, b as fromBREP, c as innerWires, d as pointOnSurface, f as projectPointOnFace, g as asTopo, h as uvCoordinates, i as faceGeomType, l as normalAt, m as uvBounds, n as faceAxis, o as flipFaceOrientation, r as faceCenter, s as getSurfaceType, t as classifyPointOnFace, u as outerWire, x as isCompSolid, y as downcast } from "./faceFns-lE2OvBfq.js";
3
+ import { h as fuseAll, p as cutAll } from "./solidBuilders-Hft8Cr6a.js";
4
+ import { C as threePointArc, D as wireLoop, E as wire, S as tangentArc, T as vertex, _ 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, 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 } from "./primitiveFns-CualoFAk.js";
5
+ import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-CdrDroOM.js";
6
+ import { a as curveIsPeriodic, c as curvePointAt, d as flipOrientation, f as getCurveType, h as offsetWire2D, i as curveIsClosed, l as curveStartPoint, m as interpolateCurve, n as curveAxis, o as curveLength, p as getOrientation, r as curveEndPoint, s as curvePeriod, t as approximateCurve, u as curveTangentAt } from "./curveFns-BGPSFUWB.js";
7
+ import { d as clearMeshCache, f as createMeshCache, n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-jarDZKw1.js";
8
+ import { A as variableFillet, F as toLineGeometryData, M as toGroupedBufferGeometryData, S as chamferDistAngle, _ as checkBoolean, a as healFace, b as getNurbsCurveData, d as chamferWithEvolution, f as cutWithEvolution, g as shellWithEvolution, h as intersectWithEvolution, j as toBufferGeometryData, l as solidFromShell, m as fuseWithEvolution, n as fixSelfIntersection, o as healSolid, p as filletWithEvolution, r as fixShape, s as healWire, t as autoHeal, u as positionOnCurve, v as cutAllBisect, x as getNurbsSurfaceData, y as fuseAllBisect } from "./healingFns-B94zSk1-.js";
9
+ import { i as facesOfEdge, l as wiresOfFace, n as adjacentFaces, o as sharedEdges, r as edgesOfFace, s as verticesOfEdge } from "./adjacencyFns-B2Po1gPs.js";
10
10
  export { addHoles, adjacentFaces, approximateCurve, asTopo, autoHeal, bezier, box, bsplineApprox, cast, chamferDistAngle as chamferDistAngleShape, chamferWithEvolution, checkBoolean, circle, classifyPointOnFace, clearMeshCache, compound, cone, createMeshCache, curveAxis, curveEndPoint, curveIsClosed, curveIsPeriodic, curveLength, curvePeriod, curvePointAt, curveStartPoint, curveTangentAt, cutAll, cutAllBisect, cutWithEvolution, cylinder, fromBREP as deserializeShape, downcast, edgesOfFace, ellipse, ellipseArc, ellipsoid, exportIGES, exportSTEP, exportSTL, face, faceAxis, faceCenter, faceGeomType, faceOrientation, facesOfEdge, filledFace, filletWithEvolution, fixSelfIntersection, fixShape, flipFaceOrientation, flipOrientation, fuseAll, fuseAllBisect, fuseWithEvolution, getBounds, getCurveType, getEdges, getFaces, getHashCode, getNurbsCurveData, getNurbsSurfaceData, 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 };
@@ -1,4 +1,4 @@
1
- const require_shapeTypes = require("./shapeTypes-HDVHzNk1.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-D938X2mg.cjs");
2
2
  const require_errors = require("./errors-O_blYTWT.cjs");
3
3
  const require_constants = require("./constants-oee0S_x6.cjs");
4
4
  // src/core/kernelErrorTranslation.ts
@@ -282,7 +282,6 @@ function getCacheEntry(shape) {
282
282
  function invalidateShapeCache(shape) {
283
283
  disposeCacheEntry(shape.wrapped);
284
284
  }
285
- /** Get all edges of a shape as branded Edge handles. Results are cached per shape. */
286
285
  function getEdges(shape) {
287
286
  const cache = getOrCreateCache(shape);
288
287
  if (cache.edges) return cache.edges;
@@ -290,12 +289,6 @@ function getEdges(shape) {
290
289
  cache.edges = edges;
291
290
  return edges;
292
291
  }
293
- /**
294
- * Get all faces of a shape. Results are cached per shape.
295
- *
296
- * Returns `Face[]` — use `isOrientedFace()` or `orientedFace()` to narrow
297
- * individual faces to `OrientedFace` when the orientation guarantee is needed.
298
- */
299
292
  function getFaces(shape) {
300
293
  const cache = getOrCreateCache(shape);
301
294
  if (cache.faces) return cache.faces;
@@ -303,7 +296,6 @@ function getFaces(shape) {
303
296
  cache.faces = faces;
304
297
  return faces;
305
298
  }
306
- /** Get all wires of a shape as branded Wire handles. Results are cached per shape. */
307
299
  function getWires(shape) {
308
300
  const cache = getOrCreateCache(shape);
309
301
  if (cache.wires) return cache.wires;
@@ -311,7 +303,6 @@ function getWires(shape) {
311
303
  cache.wires = wires;
312
304
  return wires;
313
305
  }
314
- /** Get all vertices of a shape as branded Vertex handles. Results are cached per shape. */
315
306
  function getVertices(shape) {
316
307
  const cache = getOrCreateCache(shape);
317
308
  if (cache.vertices) return cache.vertices;
@@ -349,19 +340,15 @@ function getCompSolids(shape) {
349
340
  cache.compSolids = compSolids;
350
341
  return compSolids;
351
342
  }
352
- /** Lazily iterate edges of a shape, yielding branded Edge handles one at a time. */
353
343
  function* iterEdges(shape) {
354
344
  for (const e of require_shapeTypes.getKernel().iterShapes(shape.wrapped, "edge")) yield require_shapeTypes.castResultShapeWithKnownType(e, "edge");
355
345
  }
356
- /** Lazily iterate faces of a shape, yielding branded Face handles one at a time. */
357
346
  function* iterFaces(shape) {
358
347
  for (const f of require_shapeTypes.getKernel().iterShapes(shape.wrapped, "face")) yield require_shapeTypes.castResultShapeWithKnownType(f, "face");
359
348
  }
360
- /** Lazily iterate wires of a shape, yielding branded Wire handles one at a time. */
361
349
  function* iterWires(shape) {
362
350
  for (const w of require_shapeTypes.getKernel().iterShapes(shape.wrapped, "wire")) yield require_shapeTypes.castResultShapeWithKnownType(w, "wire");
363
351
  }
364
- /** Lazily iterate vertices of a shape, yielding branded Vertex handles one at a time. */
365
352
  function* iterVertices(shape) {
366
353
  for (const v of require_shapeTypes.getKernel().iterShapes(shape.wrapped, "vertex")) yield require_shapeTypes.castResultShapeWithKnownType(v, "vertex");
367
354
  }
@@ -1,4 +1,4 @@
1
- import { G as _usingCtx, N as DisposalScope, O as getOrQueryType, n as castResultShape, q as getKernel, r as castResultShapeWithKnownType } from "./shapeTypes-Db3yAgTO.js";
1
+ import { G as _usingCtx, N as DisposalScope, O as getOrQueryType, n as castResultShape, q as getKernel, r as castResultShapeWithKnownType } from "./shapeTypes-PNVEv6ga.js";
2
2
  import { E as ok, g as err } from "./errors-BTccWbtE.js";
3
3
  import { n as HASH_CODE_MAX } from "./constants-iraOnb2p.js";
4
4
  // src/core/kernelErrorTranslation.ts
@@ -282,7 +282,6 @@ function getCacheEntry(shape) {
282
282
  function invalidateShapeCache(shape) {
283
283
  disposeCacheEntry(shape.wrapped);
284
284
  }
285
- /** Get all edges of a shape as branded Edge handles. Results are cached per shape. */
286
285
  function getEdges(shape) {
287
286
  const cache = getOrCreateCache(shape);
288
287
  if (cache.edges) return cache.edges;
@@ -290,12 +289,6 @@ function getEdges(shape) {
290
289
  cache.edges = edges;
291
290
  return edges;
292
291
  }
293
- /**
294
- * Get all faces of a shape. Results are cached per shape.
295
- *
296
- * Returns `Face[]` — use `isOrientedFace()` or `orientedFace()` to narrow
297
- * individual faces to `OrientedFace` when the orientation guarantee is needed.
298
- */
299
292
  function getFaces(shape) {
300
293
  const cache = getOrCreateCache(shape);
301
294
  if (cache.faces) return cache.faces;
@@ -303,7 +296,6 @@ function getFaces(shape) {
303
296
  cache.faces = faces;
304
297
  return faces;
305
298
  }
306
- /** Get all wires of a shape as branded Wire handles. Results are cached per shape. */
307
299
  function getWires(shape) {
308
300
  const cache = getOrCreateCache(shape);
309
301
  if (cache.wires) return cache.wires;
@@ -311,7 +303,6 @@ function getWires(shape) {
311
303
  cache.wires = wires;
312
304
  return wires;
313
305
  }
314
- /** Get all vertices of a shape as branded Vertex handles. Results are cached per shape. */
315
306
  function getVertices(shape) {
316
307
  const cache = getOrCreateCache(shape);
317
308
  if (cache.vertices) return cache.vertices;
@@ -349,19 +340,15 @@ function getCompSolids(shape) {
349
340
  cache.compSolids = compSolids;
350
341
  return compSolids;
351
342
  }
352
- /** Lazily iterate edges of a shape, yielding branded Edge handles one at a time. */
353
343
  function* iterEdges(shape) {
354
344
  for (const e of getKernel().iterShapes(shape.wrapped, "edge")) yield castResultShapeWithKnownType(e, "edge");
355
345
  }
356
- /** Lazily iterate faces of a shape, yielding branded Face handles one at a time. */
357
346
  function* iterFaces(shape) {
358
347
  for (const f of getKernel().iterShapes(shape.wrapped, "face")) yield castResultShapeWithKnownType(f, "face");
359
348
  }
360
- /** Lazily iterate wires of a shape, yielding branded Wire handles one at a time. */
361
349
  function* iterWires(shape) {
362
350
  for (const w of getKernel().iterShapes(shape.wrapped, "wire")) yield castResultShapeWithKnownType(w, "wire");
363
351
  }
364
- /** Lazily iterate vertices of a shape, yielding branded Vertex handles one at a time. */
365
352
  function* iterVertices(shape) {
366
353
  for (const v of getKernel().iterShapes(shape.wrapped, "vertex")) yield castResultShapeWithKnownType(v, "vertex");
367
354
  }
@@ -1,4 +1,4 @@
1
- import { q as getKernel } from "./shapeTypes-Db3yAgTO.js";
1
+ import { q as getKernel } from "./shapeTypes-PNVEv6ga.js";
2
2
  import { E as ok, g as err } from "./errors-BTccWbtE.js";
3
3
  // src/core/validityTypes.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- const require_shapeTypes = require("./shapeTypes-HDVHzNk1.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-D938X2mg.cjs");
2
2
  const require_errors = require("./errors-O_blYTWT.cjs");
3
3
  // src/core/validityTypes.ts
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brepjs",
3
- "version": "20.12.2",
3
+ "version": "20.12.5",
4
4
  "description": "Exact B-Rep CAD in TypeScript on OpenCascade WebAssembly, with a pluggable geometry kernel",
5
5
  "keywords": [
6
6
  "cad",
@@ -223,6 +223,7 @@
223
223
  "prepublishOnly": "npm run build",
224
224
  "prepack": "bash scripts/validate-pack.sh",
225
225
  "typecheck": "tsgo --noEmit",
226
+ "typecheck:tests": "tsgo --noEmit -p tsconfig.typecheck-tests.json",
226
227
  "typecheck:tsc": "tsc --noEmit",
227
228
  "lint": "eslint src/",
228
229
  "lint:fix": "eslint src/ --fix",