brepjs 18.118.16 → 18.118.17

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.
package/dist/brepjs.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_textBlueprints = require("./textBlueprints-LhCdarzc.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-CIxoPVNr.cjs");
3
3
  const require_shapeTypes = require("./shapeTypes-C4gRoPYX.cjs");
4
4
  const require_occtWasmAdapter = require("./occtWasmAdapter-CWX5KCl8.cjs");
5
5
  const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
@@ -15,12 +15,12 @@ const require_curveFns = require("./curveFns-C2zZ7Xuq.cjs");
15
15
  const require_meshFns = require("./meshFns-Df26UzQ9.cjs");
16
16
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
17
17
  const require_surfaceBuilders = require("./surfaceBuilders-DWHDogVL.cjs");
18
- const require_solidBuilders = require("./solidBuilders-CHzmSo67.cjs");
19
- const require_healingFns = require("./healingFns-BZ-TOacm.cjs");
20
- const require_threadFns = require("./threadFns-BTFqC3XF.cjs");
18
+ const require_solidBuilders = require("./solidBuilders-Fx5tx02P.cjs");
19
+ const require_healingFns = require("./healingFns-B8VDmaAb.cjs");
20
+ const require_threadFns = require("./threadFns-B3aDvw2M.cjs");
21
21
  const require_blueprintSketcher = require("./blueprintSketcher-CGnohIOe.cjs");
22
22
  const require_helpers = require("./helpers-D0be4TzF.cjs");
23
- const require_drawFns = require("./drawFns-DkgFZ0pe.cjs");
23
+ const require_drawFns = require("./drawFns-BYid1Vz3.cjs");
24
24
  const require_measureFns = require("./measureFns-cK6MSs6B.cjs");
25
25
  const require_cornerFinder = require("./cornerFinder-Bss_mZV9.cjs");
26
26
  const require_boolean2D = require("./boolean2D-DnBT9gQ5.cjs");
@@ -28,11 +28,11 @@ const require_blueprintFns = require("./blueprintFns-CF-6WzuR.cjs");
28
28
  const require_importFns = require("./importFns-CvlUuJ59.cjs");
29
29
  const require_loftFns = require("./loftFns-Dp5LpTWq.cjs");
30
30
  const require_cameraFns = require("./cameraFns-Ckw5prda.cjs");
31
- const require_textMetrics = require("./textMetrics-DAx0Uue6.cjs");
31
+ const require_textMetrics = require("./textMetrics-BemswcrN.cjs");
32
32
  const require_adjacencyFns = require("./adjacencyFns-BdxIbZtR.cjs");
33
33
  const require_refResolveFns = require("./refResolveFns-BLM5XlZR.cjs");
34
34
  const require_workerPool = require("./workerPool-D30NsiIW.cjs");
35
- const require_primitiveFns = require("./primitiveFns-DZkzMLUq.cjs");
35
+ const require_primitiveFns = require("./primitiveFns-DHJm67jI.cjs");
36
36
  //#region src/topology/shapeBooleans.ts
37
37
  var BOPAlgo_GlueShift = 1;
38
38
  var BOPAlgo_GlueFull = 2;
package/dist/brepjs.js CHANGED
@@ -13,25 +13,25 @@ import { a as curveIsPeriodic, c as curvePointAt, d as flipOrientation, f as get
13
13
  import { a as meshEdges$1, c as meshMultiLOD, d as createMeshCache, i as mesh$1, l as buildMeshCacheKey, n as exportSTEP, o as meshLODs, r as exportSTL, s as meshLODsProgressive, t as exportIGES, u as clearMeshCache } from "./meshFns-CKXYSlFr.js";
14
14
  import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
15
15
  import { _ as makeThreePointArc, d as makeCircle, h as makeLine, l as makeBSplineInterpolation, n as fill, r as makeFace, s as assembleWire } from "./surfaceBuilders-HAF4Xtow.js";
16
- import { _ as section$1, b as split$1, d as booleanPipeline, f as cut$2, g as intersect$2, h as fuseAll$2, m as fuse$2, p as cutAll$2, r as makeCylinder, t as makeCompound, v as sectionToFace$1, y as slice$1 } from "./solidBuilders-CgEPRock.js";
17
- import { A as toBufferGeometryData, C as shellWithEvolution, D as getNurbsCurveData, E as fuseAllBisect, M as toLODGeometryData, N as toLODGeometryLevels, O as getNurbsSurfaceData, P as toLineGeometryData, S as intersectWithEvolution, T as cutAllBisect, _ as positionOnCurve, a as healFace, b as filletWithEvolution, c as isValid$1, d as draft$1, f as fillet$1, g as variableFillet, h as thicken$1, i as heal$1, j as toGroupedBufferGeometryData, k as chamferDistAngle, l as solidFromShell, m as shell$1, n as fixSelfIntersection, o as healSolid, p as offset$1, r as fixShape, s as healWire, t as autoHeal, u as chamfer$1, v as chamferWithEvolution, w as checkBoolean, x as fuseWithEvolution, y as cutWithEvolution } from "./healingFns-BhB_G0L0.js";
18
- import { A as setJointValue, B as createAssemblyNode, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, F as quatMultiply, G as circularPattern, H as removeChild, I as quatRotate, J as exportAssemblySTEP, K as gridPattern, L as addChild, M as sphericalJoint, N as quatFromAxisAngle, O as prismaticJoint, P as quatFromTo, R as collectShapes, S as addJoint, T as jointTransform, U as updateNode, V as findNode, W as walkAssembly, Y as createAssembly, _ as exportURDF, a as deserializeHistory, b as inverseKinematics, c as modifyStep, d as replayFrom, f as replayHistory, g as undoLast, h as stepsFrom, i as createRegistry, j as setJointValues, k as revoluteJoint, l as registerOperation, m as stepCount, n as addStep, o as findStep, p as serializeHistory, q as linearPattern, r as createHistory, s as getShape, t as thread, u as registerShape, v as importURDF, w as forwardKinematics, x as jointTrajectory, y as jointsFromDH, z as countNodes } from "./threadFns-D8l2-Gek.js";
16
+ import { _ as section$1, b as split$1, d as booleanPipeline, f as cut$2, g as intersect$2, h as fuseAll$2, m as fuse$2, p as cutAll$2, r as makeCylinder, t as makeCompound, v as sectionToFace$1, y as slice$1 } from "./solidBuilders-DvxdtivM.js";
17
+ import { A as toBufferGeometryData, C as shellWithEvolution, D as getNurbsCurveData, E as fuseAllBisect, M as toLODGeometryData, N as toLODGeometryLevels, O as getNurbsSurfaceData, P as toLineGeometryData, S as intersectWithEvolution, T as cutAllBisect, _ as positionOnCurve, a as healFace, b as filletWithEvolution, c as isValid$1, d as draft$1, f as fillet$1, g as variableFillet, h as thicken$1, i as heal$1, j as toGroupedBufferGeometryData, k as chamferDistAngle, l as solidFromShell, m as shell$1, n as fixSelfIntersection, o as healSolid, p as offset$1, r as fixShape, s as healWire, t as autoHeal, u as chamfer$1, v as chamferWithEvolution, w as checkBoolean, x as fuseWithEvolution, y as cutWithEvolution } from "./healingFns-DaEQGJui.js";
18
+ import { A as setJointValue, B as createAssemblyNode, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, F as quatMultiply, G as circularPattern, H as removeChild, I as quatRotate, J as exportAssemblySTEP, K as gridPattern, L as addChild, M as sphericalJoint, N as quatFromAxisAngle, O as prismaticJoint, P as quatFromTo, R as collectShapes, S as addJoint, T as jointTransform, U as updateNode, V as findNode, W as walkAssembly, Y as createAssembly, _ as exportURDF, a as deserializeHistory, b as inverseKinematics, c as modifyStep, d as replayFrom, f as replayHistory, g as undoLast, h as stepsFrom, i as createRegistry, j as setJointValues, k as revoluteJoint, l as registerOperation, m as stepCount, n as addStep, o as findStep, p as serializeHistory, q as linearPattern, r as createHistory, s as getShape, t as thread, u as registerShape, v as importURDF, w as forwardKinematics, x as jointTrajectory, y as jointsFromDH, z as countNodes } from "./threadFns-BEZMeIi5.js";
19
19
  import { n as BaseSketcher2d, r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-CY9DgQqk.js";
20
20
  import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-zVYq0h_A.js";
21
- import { A as sketchEllipse, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-ChMP3Ysr.js";
21
+ import { A as sketchEllipse, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-CsRxuGdg.js";
22
22
  import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, i as measureCurvatureAtMid, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, r as measureCurvatureAt, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-Bbgcgo9U.js";
23
23
  import { t as cornerFinder } from "./cornerFinder-BEe90gzY.js";
24
24
  import { a as fuseBlueprints, c as roundedRectangleBlueprint, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-CaAwVwCR.js";
25
25
  import { S as reverseCurve, _ as curve2dIsOnCurve, a as isInside2D, b as curve2dSplitAt, c as scale2D, d as stretch2D, f as toSVGPathD, g as curve2dFirstPoint, h as curve2dDistanceFrom, i as getOrientation2D, l as sketchOnFace2D, m as curve2dBoundingBox, n as createCompoundBlueprint, o as mirror2D, p as translate2D, r as getBounds2D, s as rotate2D, t as createBlueprint, u as sketchOnPlane2D, v as curve2dLastPoint, x as curve2dTangentAt, y as curve2dParameter } from "./blueprintFns-Ci1QVESM.js";
26
26
  import { a as importSVG, c as blueprintToDXF, d as exportGltf, f as exportOBJ, i as exportSTEPConfigured, l as exportDXF, n as importSTEP, o as importSVGPathD, r as importSTL, s as exportThreeMF, t as importIGES, u as exportGlb } from "./importFns-TbwuxynG.js";
27
27
  import { a as revolve$1, c as multiSectionSweep, d as twistExtrude, i as extrudeAll, l as supportExtrude, n as loftAll, o as complexExtrude, r as extrude$1, s as guidedSweep, t as loft$1, u as sweep$1 } from "./loftFns-DdTfJpXF.js";
28
- import { a as Sketch, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, n as getFont, o as compoundSketchExtrude, p as sketchRevolve, r as loadFont, s as compoundSketchFace, t as textBlueprints, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-DQ8gY3Z1.js";
28
+ import { a as Sketch, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, n as getFont, o as compoundSketchExtrude, p as sketchRevolve, r as loadFont, s as compoundSketchFace, t as textBlueprints, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-mxrKsEdY.js";
29
29
  import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-CythF7Ob.js";
30
- import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-janJT7Ie.js";
30
+ import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-CpDoDF7q.js";
31
31
  import { a as sharedEdges, c as wiresOfFace, i as facesOfVertex, n as edgesOfFace, o as verticesOfEdge, r as facesOfEdge, s as verticesOfFace, t as adjacentFaces } from "./adjacencyFns-qxeJWyj-.js";
32
32
  import { _ as createRef, a as isVertexRef, b as defaultScorer, c as resolveRefParams, d as createVertexRef, f as resolveVertexRef, g as captureHint, h as assignRoles, i as isLineageRef, l as createDerivedFaceRef, m as resolveEdgeRef, n as isEdgeRef, o as resolveLineageRef, p as createEdgeRef, r as isFaceRef, s as resolveRefIn, t as isDerivedFaceRef, u as resolveDerivedFaceRef, v as resolveRef, y as updateRoles } from "./refResolveFns-_niAxNu8.js";
33
33
  import { _ as isSuccessResponse, a as createWorkerClient, c as enqueueTask, d as rejectAll, f as isBatchRequest, g as isOperationRequest, h as isInitRequest, i as registerHandler, l as isEmpty$1, m as isErrorResponse, n as createOperationRegistry, o as createTaskQueue, p as isDisposeRequest, r as createWorkerHandler, s as dequeueTask, t as createWorkerPool, u as pendingCount } from "./workerPool-XcYX2UZ0.js";
34
- import { C as threePointArc, D as wireLoop, E as wire, S as tangentArc, T as vertex, _ as polygon, a as circle, b as sphere$1, 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$1, x as subFace, y as solid } from "./primitiveFns-1otQpjcN.js";
34
+ import { C as threePointArc, D as wireLoop, E as wire, S as tangentArc, T as vertex, _ as polygon, a as circle, b as sphere$1, 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$1, x as subFace, y as solid } from "./primitiveFns-CdHAHxuq.js";
35
35
  //#region \0rolldown/runtime.js
36
36
  var __defProp = Object.defineProperty;
37
37
  var __exportAll = (all, no_symbols) => {
@@ -1,4 +1,4 @@
1
- const require_textBlueprints = require("./textBlueprints-LhCdarzc.cjs");
1
+ const require_textBlueprints = require("./textBlueprints-CIxoPVNr.cjs");
2
2
  const require_shapeTypes = require("./shapeTypes-C4gRoPYX.cjs");
3
3
  const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
4
4
  const require_errors = require("./errors-CXJtc4I7.cjs");
@@ -15,7 +15,7 @@ import { _ as samePoint$1, b as subtract2d, c as PRECISION_OFFSET, l as add2d, y
15
15
  import { _ as Curve2D, a as edgeToCurve, c as make2dCircle, d as make2dInerpolatedBSplineCurve, f as make2dSegmentCurve, g as approximateAsSvgCompatibleCurve, i as curvesAsEdgesOnPlane, l as make2dEllipse, o as make2dArcFromCenter, t as Blueprint, v as deserializeCurve2D, y as BoundingBox2d } from "./blueprint-dqI319c7.js";
16
16
  import { t as cornerFinder } from "./cornerFinder-BEe90gzY.js";
17
17
  import { c as roundedRectangleBlueprint, n as fuse2D, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-CaAwVwCR.js";
18
- import { _ as wrapSketchDataArray, a as Sketch, g as wrapSketchData, i as Sketches, t as textBlueprints } from "./textBlueprints-DQ8gY3Z1.js";
18
+ import { _ as wrapSketchDataArray, a as Sketch, g as wrapSketchData, i as Sketches, t as textBlueprints } from "./textBlueprints-mxrKsEdY.js";
19
19
  import { i as projectEdges, t as cameraFromPlane } from "./cameraFns-CythF7Ob.js";
20
20
  //#region src/2d/lib/stitching.ts
21
21
  /**
@@ -5,7 +5,7 @@ const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  const require_faceFns = require("./faceFns-BbmIuuFt.cjs");
6
6
  const require_shapeFns = require("./shapeFns-m5OBBpM4.cjs");
7
7
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
8
- const require_solidBuilders = require("./solidBuilders-CHzmSo67.cjs");
8
+ const require_solidBuilders = require("./solidBuilders-Fx5tx02P.cjs");
9
9
  //#region src/topology/threeHelpers.ts
10
10
  /**
11
11
  * Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
@@ -5,7 +5,7 @@ import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
5
5
  import { y as downcast } from "./faceFns-ClvSac1T.js";
6
6
  import { _ as collectInputFaceHashes, y as propagateAllMetadata } from "./shapeFns-Gzaax25v.js";
7
7
  import { t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
8
- import { f as cut, h as fuseAll, m as fuse, p as cutAll } from "./solidBuilders-CgEPRock.js";
8
+ import { f as cut, h as fuseAll, m as fuse, p as cutAll } from "./solidBuilders-DvxdtivM.js";
9
9
  //#region src/topology/threeHelpers.ts
10
10
  /**
11
11
  * Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_threadFns = require("./threadFns-BTFqC3XF.cjs");
2
+ const require_threadFns = require("./threadFns-B3aDvw2M.cjs");
3
3
  const require_loftFns = require("./loftFns-Dp5LpTWq.cjs");
4
4
  exports.addChild = require_threadFns.addChild;
5
5
  exports.addJoint = require_threadFns.addJoint;
@@ -1,3 +1,3 @@
1
- import { A as setJointValue, B as createAssemblyNode, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, G as circularPattern, H as removeChild, J as exportAssemblySTEP, K as gridPattern, L as addChild, M as sphericalJoint, O as prismaticJoint, R as collectShapes, S as addJoint, T as jointTransform, U as updateNode, V as findNode, W as walkAssembly, Y as createAssembly, _ as exportURDF, b as inverseKinematics, c as modifyStep, d as replayFrom, f as replayHistory, g as undoLast, h as stepsFrom, i as createRegistry, j as setJointValues, k as revoluteJoint, l as registerOperation, m as stepCount, n as addStep, o as findStep, q as linearPattern, r as createHistory, s as getShape, t as thread, u as registerShape, v as importURDF, w as forwardKinematics, x as jointTrajectory, y as jointsFromDH, z as countNodes } from "./threadFns-D8l2-Gek.js";
1
+ import { A as setJointValue, B as createAssemblyNode, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, G as circularPattern, H as removeChild, J as exportAssemblySTEP, K as gridPattern, L as addChild, M as sphericalJoint, O as prismaticJoint, R as collectShapes, S as addJoint, T as jointTransform, U as updateNode, V as findNode, W as walkAssembly, Y as createAssembly, _ as exportURDF, b as inverseKinematics, c as modifyStep, d as replayFrom, f as replayHistory, g as undoLast, h as stepsFrom, i as createRegistry, j as setJointValues, k as revoluteJoint, l as registerOperation, m as stepCount, n as addStep, o as findStep, q as linearPattern, r as createHistory, s as getShape, t as thread, u as registerShape, v as importURDF, w as forwardKinematics, x as jointTrajectory, y as jointsFromDH, z as countNodes } from "./threadFns-BEZMeIi5.js";
2
2
  import { d as twistExtrude, l as supportExtrude, o as complexExtrude, u as sweep } from "./loftFns-DdTfJpXF.js";
3
3
  export { addChild, addJoint, addStep, circularPattern, collectShapes, complexExtrude, countNodes, createAssembly, createAssemblyNode, createHistory, createRegistry, cylindricalJoint, exportAssemblySTEP, exportURDF, findNode, findStep, forwardKinematics, getShape as getHistoryShape, gridPattern, importURDF, inverseKinematics, jointTrajectory, jointTransform, jointsFromDH, linearPattern, mechanismDOF, modifyStep, planarJoint, prismaticJoint, registerOperation, registerShape, removeChild, replayFrom, replayHistory, revoluteJoint, setJointValue, setJointValues, sphericalJoint, stepCount, stepsFrom, supportExtrude, sweep, thread, twistExtrude, undoLast, updateNode, walkAssembly };
@@ -3,7 +3,7 @@ import { A as ok, b as err, d as validationError, v as andThen } from "./errors-
3
3
  import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
4
4
  import { g as translate } from "./shapeFns-Gzaax25v.js";
5
5
  import { _ as makeThreePointArc, a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, g as makeTangentArc, h as makeLine, i as makeNewFaceWithinFace, m as makeHelix, o as makePolygon, p as makeEllipseArc, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeBezierCurve } from "./surfaceBuilders-HAF4Xtow.js";
6
- import { a as makeOffset, c as makeTorus, i as makeEllipsoid, l as makeVertex, n as makeCone, o as makeSolid, r as makeCylinder, s as makeSphere, t as makeCompound, u as weldShellsAndFaces } from "./solidBuilders-CgEPRock.js";
6
+ import { a as makeOffset, c as makeTorus, i as makeEllipsoid, l as makeVertex, n as makeCone, o as makeSolid, r as makeCylinder, s as makeSphere, t as makeCompound, u as weldShellsAndFaces } from "./solidBuilders-DvxdtivM.js";
7
7
  //#region src/topology/primitiveFns.ts
8
8
  /**
9
9
  * Create a box with the given dimensions.
@@ -3,7 +3,7 @@ const require_errors = require("./errors-CXJtc4I7.cjs");
3
3
  const require_constants = require("./constants-BOVyEYGH.cjs");
4
4
  const require_shapeFns = require("./shapeFns-m5OBBpM4.cjs");
5
5
  const require_surfaceBuilders = require("./surfaceBuilders-DWHDogVL.cjs");
6
- const require_solidBuilders = require("./solidBuilders-CHzmSo67.cjs");
6
+ const require_solidBuilders = require("./solidBuilders-Fx5tx02P.cjs");
7
7
  //#region src/topology/primitiveFns.ts
8
8
  /**
9
9
  * Create a box with the given dimensions.
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_textBlueprints = require("./textBlueprints-LhCdarzc.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-CIxoPVNr.cjs");
3
3
  const require_blueprintSketcher = require("./blueprintSketcher-CGnohIOe.cjs");
4
- const require_drawFns = require("./drawFns-DkgFZ0pe.cjs");
4
+ const require_drawFns = require("./drawFns-BYid1Vz3.cjs");
5
5
  //#region src/sketching.ts
6
6
  /**
7
7
  * brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
package/dist/sketching.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-CY9DgQqk.js";
2
- import { A as sketchEllipse, C as DrawingPen, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, T as Drawing, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-ChMP3Ysr.js";
3
- import { a as Sketch, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, o as compoundSketchExtrude, p as sketchRevolve, s as compoundSketchFace, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-DQ8gY3Z1.js";
2
+ import { A as sketchEllipse, C as DrawingPen, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, T as Drawing, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-CsRxuGdg.js";
3
+ import { a as Sketch, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, o as compoundSketchExtrude, p as sketchRevolve, s as compoundSketchFace, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-mxrKsEdY.js";
4
4
  //#region src/sketching.ts
5
5
  /**
6
6
  * brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
@@ -1,4 +1,4 @@
1
- import { L as getShapeKind, S as isSolid, b as isShape3D, d as createVertex, m as disposeResultShape, nt as getKernel, o as createCompound, p as disposeDowncastSource, r as castShape, t as castResultShape, u as createSolid, x as isShell } from "./shapeTypes-BalkiKtK.js";
1
+ import { L as getShapeKind, S as isSolid, b as isShape3D, d as createVertex, et as _usingCtx, m as disposeResultShape, nt as getKernel, o as createCompound, p as disposeDowncastSource, r as castShape, t as castResultShape, u as createSolid, x as isShell } from "./shapeTypes-BalkiKtK.js";
2
2
  import { A as ok, R as unwrap, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, v as andThen, w as isErr } from "./errors-DNWJsfVU.js";
3
3
  import { f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-vDjZw1k2.js";
4
4
  import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
@@ -455,7 +455,7 @@ function booleanPipelineFallback(base, steps, options) {
455
455
  */
456
456
  /** Sew faces/shells into a single shape using the kernel's sewing algorithm. */
457
457
  function weldShapes(facesOrShells) {
458
- return unwrap(cast(unwrap(downcast(getKernel().sew(facesOrShells.map((s) => s.wrapped))))));
458
+ return castResultShape(getKernel().sew(facesOrShells.map((s) => s.wrapped)));
459
459
  }
460
460
  /**
461
461
  * Welds faces and shells into a single shell.
@@ -578,11 +578,20 @@ function makeCompound(shapeArray) {
578
578
  * @category Solids
579
579
  */
580
580
  function makeSolid(facesOrShells) {
581
- const shell = weldShapes(facesOrShells);
582
- return andThen(cast(getKernel().solidFromShell(shell.wrapped)), (solid) => {
583
- if (!isSolid(solid)) return err(typeCastError("SOLID_BUILD_FAILED", "Could not make a solid of faces and shells"));
581
+ try {
582
+ var _usingCtx$1 = _usingCtx();
583
+ const shell = _usingCtx$1.u(weldShapes(facesOrShells));
584
+ const solid = castResultShape(getKernel().solidFromShell(shell.wrapped));
585
+ if (!isSolid(solid)) {
586
+ disposeResultShape(solid);
587
+ return err(typeCastError("SOLID_BUILD_FAILED", "Could not make a solid of faces and shells"));
588
+ }
584
589
  return ok(solid);
585
- });
590
+ } catch (_) {
591
+ _usingCtx$1.e = _;
592
+ } finally {
593
+ _usingCtx$1.d();
594
+ }
586
595
  }
587
596
  //#endregion
588
597
  export { section as _, makeOffset as a, split as b, makeTorus as c, booleanPipeline as d, cut as f, intersect as g, fuseAll as h, makeEllipsoid as i, makeVertex as l, fuse as m, makeCone as n, makeSolid as o, cutAll as p, makeCylinder as r, makeSphere as s, makeCompound as t, weldShellsAndFaces as u, sectionToFace as v, slice as y };
@@ -455,7 +455,7 @@ function booleanPipelineFallback(base, steps, options) {
455
455
  */
456
456
  /** Sew faces/shells into a single shape using the kernel's sewing algorithm. */
457
457
  function weldShapes(facesOrShells) {
458
- return require_errors.unwrap(require_faceFns.cast(require_errors.unwrap(require_faceFns.downcast(require_shapeTypes.getKernel().sew(facesOrShells.map((s) => s.wrapped))))));
458
+ return require_shapeTypes.castResultShape(require_shapeTypes.getKernel().sew(facesOrShells.map((s) => s.wrapped)));
459
459
  }
460
460
  /**
461
461
  * Welds faces and shells into a single shell.
@@ -578,11 +578,20 @@ function makeCompound(shapeArray) {
578
578
  * @category Solids
579
579
  */
580
580
  function makeSolid(facesOrShells) {
581
- const shell = weldShapes(facesOrShells);
582
- return require_errors.andThen(require_faceFns.cast(require_shapeTypes.getKernel().solidFromShell(shell.wrapped)), (solid) => {
583
- if (!require_shapeTypes.isSolid(solid)) return require_errors.err(require_errors.typeCastError("SOLID_BUILD_FAILED", "Could not make a solid of faces and shells"));
581
+ try {
582
+ var _usingCtx$1 = require_shapeTypes._usingCtx();
583
+ const shell = _usingCtx$1.u(weldShapes(facesOrShells));
584
+ const solid = require_shapeTypes.castResultShape(require_shapeTypes.getKernel().solidFromShell(shell.wrapped));
585
+ if (!require_shapeTypes.isSolid(solid)) {
586
+ require_shapeTypes.disposeResultShape(solid);
587
+ return require_errors.err(require_errors.typeCastError("SOLID_BUILD_FAILED", "Could not make a solid of faces and shells"));
588
+ }
584
589
  return require_errors.ok(solid);
585
- });
590
+ } catch (_) {
591
+ _usingCtx$1.e = _;
592
+ } finally {
593
+ _usingCtx$1.d();
594
+ }
586
595
  }
587
596
  //#endregion
588
597
  Object.defineProperty(exports, "booleanPipeline", {
package/dist/text.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_textBlueprints = require("./textBlueprints-LhCdarzc.cjs");
3
- const require_textMetrics = require("./textMetrics-DAx0Uue6.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-CIxoPVNr.cjs");
3
+ const require_textMetrics = require("./textMetrics-BemswcrN.cjs");
4
4
  exports.fontMetrics = require_textMetrics.fontMetrics;
5
5
  exports.getFont = require_textBlueprints.getFont;
6
6
  exports.loadFont = require_textBlueprints.loadFont;
package/dist/text.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as getFont, r as loadFont, t as textBlueprints } from "./textBlueprints-DQ8gY3Z1.js";
2
- import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-janJT7Ie.js";
1
+ import { n as getFont, r as loadFont, t as textBlueprints } from "./textBlueprints-mxrKsEdY.js";
2
+ import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-CpDoDF7q.js";
3
3
  export { fontMetrics, getFont, loadFont, sketchText, textBlueprints, textMetrics };
@@ -38,7 +38,7 @@ const require_faceFns = require("./faceFns-BbmIuuFt.cjs");
38
38
  const require_curveFns = require("./curveFns-C2zZ7Xuq.cjs");
39
39
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
40
40
  const require_surfaceBuilders = require("./surfaceBuilders-DWHDogVL.cjs");
41
- const require_solidBuilders = require("./solidBuilders-CHzmSo67.cjs");
41
+ const require_solidBuilders = require("./solidBuilders-Fx5tx02P.cjs");
42
42
  const require_blueprintSketcher = require("./blueprintSketcher-CGnohIOe.cjs");
43
43
  const require_loftFns = require("./loftFns-Dp5LpTWq.cjs");
44
44
  let opentype_js = require("opentype.js");
@@ -181,7 +181,7 @@ function sketchRevolve(sketch, revolutionAxis, { origin } = {}) {
181
181
  0,
182
182
  1
183
183
  ]));
184
- face.delete();
184
+ face[Symbol.dispose]();
185
185
  sketch.delete();
186
186
  return solid;
187
187
  }
@@ -206,7 +206,9 @@ function sketchExtrude(sketch, extrusionDistance, { extrusionDirection, extrusio
206
206
  sketch.delete();
207
207
  return solid;
208
208
  }
209
- const solid = require_errors.unwrap(require_loftFns.extrude(require_errors.unwrap(require_surfaceBuilders.makeFace(sketch.wire)), [...extrusionVec]));
209
+ const face = require_errors.unwrap(require_surfaceBuilders.makeFace(sketch.wire));
210
+ const solid = require_errors.unwrap(require_loftFns.extrude(face, [...extrusionVec]));
211
+ face[Symbol.dispose]();
210
212
  sketch.delete();
211
213
  return solid;
212
214
  }
@@ -269,7 +271,10 @@ var holedSweptSolid = (sketches, solidGenerator) => {
269
271
  };
270
272
  /** Build a face from a compound sketch (outer boundary with holes). */
271
273
  function compoundSketchFace(sketch) {
272
- return require_surfaceBuilders.addHolesInFace(sketch.outerSketch.face(), sketch.innerSketches.map((s) => s.wire));
274
+ const baseFace = sketch.outerSketch.face();
275
+ const newFace = require_surfaceBuilders.addHolesInFace(baseFace, sketch.innerSketches.map((s) => s.wire));
276
+ baseFace[Symbol.dispose]();
277
+ return newFace;
273
278
  }
274
279
  /** Return all wires (outer + holes) combined into a compound shape. */
275
280
  function compoundSketchWires(sketch) {
@@ -285,7 +290,10 @@ function compoundSketchExtrude(sketch, extrusionDistance, { extrusionDirection,
285
290
  const extrusionVec = require_vecOps.vecScale(require_vecOps.vecNormalize(extrusionDirection ? require_types.toVec3(extrusionDirection) : sketch.outerSketch.defaultDirection), extrusionDistance);
286
291
  if (extrusionProfile && !twistAngle) return holedSweptSolid(sketch.sketches, (s) => require_loftFns.complexExtrude(s.wire, origin ? require_types.toVec3(origin) : sketch.outerSketch.defaultOrigin, extrusionVec, extrusionProfile));
287
292
  if (twistAngle) return holedSweptSolid(sketch.sketches, (s) => require_loftFns.twistExtrude(s.wire, twistAngle, origin ? require_types.toVec3(origin) : sketch.outerSketch.defaultOrigin, extrusionVec, extrusionProfile));
288
- return require_errors.unwrap(require_loftFns.extrude(compoundSketchFace(sketch), extrusionVec));
293
+ const face = compoundSketchFace(sketch);
294
+ const solid = require_errors.unwrap(require_loftFns.extrude(face, extrusionVec));
295
+ face[Symbol.dispose]();
296
+ return solid;
289
297
  }
290
298
  /** Revolve a compound sketch (outer + holes) around an axis. */
291
299
  function compoundSketchRevolve(sketch, revolutionAxis, { origin } = {}) {
@@ -295,7 +303,10 @@ function compoundSketchRevolve(sketch, revolutionAxis, { origin } = {}) {
295
303
  0,
296
304
  1
297
305
  ];
298
- return require_errors.unwrap(require_loftFns.revolve(compoundSketchFace(sketch), center, dir));
306
+ const face = compoundSketchFace(sketch);
307
+ const solid = require_errors.unwrap(require_loftFns.revolve(face, center, dir));
308
+ face[Symbol.dispose]();
309
+ return solid;
299
310
  }
300
311
  /** Loft between two compound sketches with matching sub-sketch counts. */
301
312
  function compoundSketchLoft(sketch, other, loftConfig = {}) {
@@ -306,9 +317,13 @@ function compoundSketchLoft(sketch, other, loftConfig = {}) {
306
317
  if (loftConfig.ruled !== void 0) loftOpts.ruled = loftConfig.ruled;
307
318
  return base.clone().loftWith(outer.clone(), loftOpts, true);
308
319
  });
309
- const baseFace = require_shapeTypes.createFace(require_errors.unwrap(require_faceFns.copyShape(compoundSketchFace(sketch).wrapped)));
320
+ const baseFaceRaw = compoundSketchFace(sketch);
321
+ const baseFace = require_shapeTypes.createFace(require_errors.unwrap(require_faceFns.copyShape(baseFaceRaw.wrapped)));
322
+ baseFaceRaw[Symbol.dispose]();
310
323
  shells.push(baseFace, compoundSketchFace(other));
311
- return require_errors.unwrap(require_solidBuilders.makeSolid(shells));
324
+ const solid = require_errors.unwrap(require_solidBuilders.makeSolid(shells));
325
+ for (const sh of shells) sh[Symbol.dispose]();
326
+ return solid;
312
327
  }
313
328
  //#endregion
314
329
  //#region src/sketching/sketch.ts
@@ -366,13 +381,13 @@ var Sketch = class Sketch {
366
381
  return this._baseFace;
367
382
  }
368
383
  set baseFace(newFace) {
369
- if (this._baseFace) this._baseFace.delete();
384
+ if (this._baseFace) this._baseFace[Symbol.dispose]();
370
385
  this._baseFace = newFace ? require_shapeTypes.createFace(require_errors.unwrap(require_faceFns.copyShape(newFace.wrapped))) : newFace;
371
386
  }
372
387
  /** Release all kernel resources held by this sketch. */
373
388
  delete() {
374
- this.wire.delete();
375
- if (this.baseFace) this.baseFace.delete();
389
+ this.wire[Symbol.dispose]();
390
+ if (this.baseFace) this.baseFace[Symbol.dispose]();
376
391
  }
377
392
  /** Create an independent deep copy of this sketch. */
378
393
  clone() {
@@ -7,7 +7,7 @@ import { v as copyShape } from "./faceFns-ClvSac1T.js";
7
7
  import { l as curveStartPoint, u as curveTangentAt } from "./curveFns-CH6gaGTf.js";
8
8
  import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
9
9
  import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-HAF4Xtow.js";
10
- import { o as makeSolid, p as cutAll, t as makeCompound } from "./solidBuilders-CgEPRock.js";
10
+ import { o as makeSolid, p as cutAll, t as makeCompound } from "./solidBuilders-DvxdtivM.js";
11
11
  import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-CY9DgQqk.js";
12
12
  import { a as revolve, d as twistExtrude, o as complexExtrude, r as extrude, t as loft, u as sweep } from "./loftFns-DdTfJpXF.js";
13
13
  import opentype from "opentype.js";
@@ -149,7 +149,7 @@ function sketchRevolve(sketch, revolutionAxis, { origin } = {}) {
149
149
  0,
150
150
  1
151
151
  ]));
152
- face.delete();
152
+ face[Symbol.dispose]();
153
153
  sketch.delete();
154
154
  return solid;
155
155
  }
@@ -174,7 +174,9 @@ function sketchExtrude(sketch, extrusionDistance, { extrusionDirection, extrusio
174
174
  sketch.delete();
175
175
  return solid;
176
176
  }
177
- const solid = unwrap(extrude(unwrap(makeFace(sketch.wire)), [...extrusionVec]));
177
+ const face = unwrap(makeFace(sketch.wire));
178
+ const solid = unwrap(extrude(face, [...extrusionVec]));
179
+ face[Symbol.dispose]();
178
180
  sketch.delete();
179
181
  return solid;
180
182
  }
@@ -237,7 +239,10 @@ var holedSweptSolid = (sketches, solidGenerator) => {
237
239
  };
238
240
  /** Build a face from a compound sketch (outer boundary with holes). */
239
241
  function compoundSketchFace(sketch) {
240
- return addHolesInFace(sketch.outerSketch.face(), sketch.innerSketches.map((s) => s.wire));
242
+ const baseFace = sketch.outerSketch.face();
243
+ const newFace = addHolesInFace(baseFace, sketch.innerSketches.map((s) => s.wire));
244
+ baseFace[Symbol.dispose]();
245
+ return newFace;
241
246
  }
242
247
  /** Return all wires (outer + holes) combined into a compound shape. */
243
248
  function compoundSketchWires(sketch) {
@@ -253,7 +258,10 @@ function compoundSketchExtrude(sketch, extrusionDistance, { extrusionDirection,
253
258
  const extrusionVec = vecScale(vecNormalize(extrusionDirection ? toVec3(extrusionDirection) : sketch.outerSketch.defaultDirection), extrusionDistance);
254
259
  if (extrusionProfile && !twistAngle) return holedSweptSolid(sketch.sketches, (s) => complexExtrude(s.wire, origin ? toVec3(origin) : sketch.outerSketch.defaultOrigin, extrusionVec, extrusionProfile));
255
260
  if (twistAngle) return holedSweptSolid(sketch.sketches, (s) => twistExtrude(s.wire, twistAngle, origin ? toVec3(origin) : sketch.outerSketch.defaultOrigin, extrusionVec, extrusionProfile));
256
- return unwrap(extrude(compoundSketchFace(sketch), extrusionVec));
261
+ const face = compoundSketchFace(sketch);
262
+ const solid = unwrap(extrude(face, extrusionVec));
263
+ face[Symbol.dispose]();
264
+ return solid;
257
265
  }
258
266
  /** Revolve a compound sketch (outer + holes) around an axis. */
259
267
  function compoundSketchRevolve(sketch, revolutionAxis, { origin } = {}) {
@@ -263,7 +271,10 @@ function compoundSketchRevolve(sketch, revolutionAxis, { origin } = {}) {
263
271
  0,
264
272
  1
265
273
  ];
266
- return unwrap(revolve(compoundSketchFace(sketch), center, dir));
274
+ const face = compoundSketchFace(sketch);
275
+ const solid = unwrap(revolve(face, center, dir));
276
+ face[Symbol.dispose]();
277
+ return solid;
267
278
  }
268
279
  /** Loft between two compound sketches with matching sub-sketch counts. */
269
280
  function compoundSketchLoft(sketch, other, loftConfig = {}) {
@@ -274,9 +285,13 @@ function compoundSketchLoft(sketch, other, loftConfig = {}) {
274
285
  if (loftConfig.ruled !== void 0) loftOpts.ruled = loftConfig.ruled;
275
286
  return base.clone().loftWith(outer.clone(), loftOpts, true);
276
287
  });
277
- const baseFace = createFace(unwrap(copyShape(compoundSketchFace(sketch).wrapped)));
288
+ const baseFaceRaw = compoundSketchFace(sketch);
289
+ const baseFace = createFace(unwrap(copyShape(baseFaceRaw.wrapped)));
290
+ baseFaceRaw[Symbol.dispose]();
278
291
  shells.push(baseFace, compoundSketchFace(other));
279
- return unwrap(makeSolid(shells));
292
+ const solid = unwrap(makeSolid(shells));
293
+ for (const sh of shells) sh[Symbol.dispose]();
294
+ return solid;
280
295
  }
281
296
  //#endregion
282
297
  //#region src/sketching/sketch.ts
@@ -334,13 +349,13 @@ var Sketch = class Sketch {
334
349
  return this._baseFace;
335
350
  }
336
351
  set baseFace(newFace) {
337
- if (this._baseFace) this._baseFace.delete();
352
+ if (this._baseFace) this._baseFace[Symbol.dispose]();
338
353
  this._baseFace = newFace ? createFace(unwrap(copyShape(newFace.wrapped))) : newFace;
339
354
  }
340
355
  /** Release all kernel resources held by this sketch. */
341
356
  delete() {
342
- this.wire.delete();
343
- if (this.baseFace) this.baseFace.delete();
357
+ this.wire[Symbol.dispose]();
358
+ if (this.baseFace) this.baseFace[Symbol.dispose]();
344
359
  }
345
360
  /** Create an independent deep copy of this sketch. */
346
361
  clone() {
@@ -1,4 +1,4 @@
1
- const require_textBlueprints = require("./textBlueprints-LhCdarzc.cjs");
1
+ const require_textBlueprints = require("./textBlueprints-CIxoPVNr.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
3
  //#region src/text/sketchText.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
2
- import { g as wrapSketchData, i as Sketches, n as getFont, t as textBlueprints, v as CompoundSketch } from "./textBlueprints-DQ8gY3Z1.js";
2
+ import { g as wrapSketchData, i as Sketches, n as getFont, t as textBlueprints, v as CompoundSketch } from "./textBlueprints-mxrKsEdY.js";
3
3
  //#region src/text/sketchText.ts
4
4
  /**
5
5
  * Render text as 3D sketch outlines on a plane.
@@ -3,10 +3,10 @@ const require_errors = require("./errors-CXJtc4I7.cjs");
3
3
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
4
4
  const require_faceFns = require("./faceFns-BbmIuuFt.cjs");
5
5
  const require_shapeFns = require("./shapeFns-m5OBBpM4.cjs");
6
- const require_solidBuilders = require("./solidBuilders-CHzmSo67.cjs");
6
+ const require_solidBuilders = require("./solidBuilders-Fx5tx02P.cjs");
7
7
  const require_loftFns = require("./loftFns-Dp5LpTWq.cjs");
8
8
  const require_refResolveFns = require("./refResolveFns-BLM5XlZR.cjs");
9
- const require_primitiveFns = require("./primitiveFns-DZkzMLUq.cjs");
9
+ const require_primitiveFns = require("./primitiveFns-DHJm67jI.cjs");
10
10
  //#region src/utils/uuid.ts
11
11
  /** Generate a v4-style UUID string using `crypto.getRandomValues`. */
12
12
  function uuidv() {
@@ -3,10 +3,10 @@ import { A as ok, T as isOk, b as err, d as validationError, n as computationErr
3
3
  import { d as vecNormalize, s as vecIsZero } from "./vecOps-SKPRvPH-.js";
4
4
  import { b as fromBREP } from "./faceFns-ClvSac1T.js";
5
5
  import { s as toBREP } from "./shapeFns-Gzaax25v.js";
6
- import { h as fuseAll } from "./solidBuilders-CgEPRock.js";
6
+ import { h as fuseAll } from "./solidBuilders-DvxdtivM.js";
7
7
  import { t as loft } from "./loftFns-DdTfJpXF.js";
8
8
  import { c as resolveRefParams } from "./refResolveFns-_niAxNu8.js";
9
- import { E as wire, h as line } from "./primitiveFns-1otQpjcN.js";
9
+ import { E as wire, h as line } from "./primitiveFns-CdHAHxuq.js";
10
10
  //#region src/utils/uuid.ts
11
11
  /** Generate a v4-style UUID string using `crypto.getRandomValues`. */
12
12
  function uuidv() {
package/dist/topology.cjs CHANGED
@@ -4,10 +4,10 @@ const require_faceFns = require("./faceFns-BbmIuuFt.cjs");
4
4
  const require_shapeFns = require("./shapeFns-m5OBBpM4.cjs");
5
5
  const require_curveFns = require("./curveFns-C2zZ7Xuq.cjs");
6
6
  const require_meshFns = require("./meshFns-Df26UzQ9.cjs");
7
- const require_solidBuilders = require("./solidBuilders-CHzmSo67.cjs");
8
- const require_healingFns = require("./healingFns-BZ-TOacm.cjs");
7
+ const require_solidBuilders = require("./solidBuilders-Fx5tx02P.cjs");
8
+ const require_healingFns = require("./healingFns-B8VDmaAb.cjs");
9
9
  const require_adjacencyFns = require("./adjacencyFns-BdxIbZtR.cjs");
10
- const require_primitiveFns = require("./primitiveFns-DZkzMLUq.cjs");
10
+ const require_primitiveFns = require("./primitiveFns-DHJm67jI.cjs");
11
11
  exports.addHoles = require_primitiveFns.addHoles;
12
12
  exports.adjacentFaces = require_adjacencyFns.adjacentFaces;
13
13
  exports.approximateCurve = require_curveFns.approximateCurve;
package/dist/topology.js CHANGED
@@ -3,8 +3,8 @@ import { C as shapeType, S as iterTopo, _ as cast, a as faceOrientation, b as fr
3
3
  import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-Gzaax25v.js";
4
4
  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-CH6gaGTf.js";
5
5
  import { d as createMeshCache, n as exportSTEP, r as exportSTL, t as exportIGES, u as clearMeshCache } from "./meshFns-CKXYSlFr.js";
6
- import { h as fuseAll, p as cutAll } from "./solidBuilders-CgEPRock.js";
7
- import { A as toBufferGeometryData, C as shellWithEvolution, D as getNurbsCurveData, E as fuseAllBisect, O as getNurbsSurfaceData, P as toLineGeometryData, S as intersectWithEvolution, T as cutAllBisect, _ as positionOnCurve, a as healFace, b as filletWithEvolution, g as variableFillet, j as toGroupedBufferGeometryData, k as chamferDistAngle, l as solidFromShell, n as fixSelfIntersection, o as healSolid, r as fixShape, s as healWire, t as autoHeal, v as chamferWithEvolution, w as checkBoolean, x as fuseWithEvolution, y as cutWithEvolution } from "./healingFns-BhB_G0L0.js";
6
+ import { h as fuseAll, p as cutAll } from "./solidBuilders-DvxdtivM.js";
7
+ import { A as toBufferGeometryData, C as shellWithEvolution, D as getNurbsCurveData, E as fuseAllBisect, O as getNurbsSurfaceData, P as toLineGeometryData, S as intersectWithEvolution, T as cutAllBisect, _ as positionOnCurve, a as healFace, b as filletWithEvolution, g as variableFillet, j as toGroupedBufferGeometryData, k as chamferDistAngle, l as solidFromShell, n as fixSelfIntersection, o as healSolid, r as fixShape, s as healWire, t as autoHeal, v as chamferWithEvolution, w as checkBoolean, x as fuseWithEvolution, y as cutWithEvolution } from "./healingFns-DaEQGJui.js";
8
8
  import { a as sharedEdges, c as wiresOfFace, n as edgesOfFace, o as verticesOfEdge, r as facesOfEdge, t as adjacentFaces } from "./adjacencyFns-qxeJWyj-.js";
9
- 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-1otQpjcN.js";
9
+ 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-CdHAHxuq.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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brepjs",
3
- "version": "18.118.16",
3
+ "version": "18.118.17",
4
4
  "description": "Web CAD library with pluggable geometry kernel",
5
5
  "keywords": [
6
6
  "cad",