brepjs 13.4.0 → 14.1.3
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/2d.cjs +15 -14
- package/dist/2d.js +6 -5
- package/dist/arrayAccess-CmulMesb.cjs +40 -0
- package/dist/arrayAccess-xxcB3YNq.js +23 -0
- package/dist/{blueprint-CDnBM-tA.cjs → blueprint-C6B--LQ6.cjs} +13 -13
- package/dist/{blueprint-CB_85Lz_.js → blueprint-CzFYcmzV.js} +9 -9
- package/dist/{blueprintFns-D4YucGaQ.cjs → blueprintFns-B2AvzIXt.cjs} +3 -142
- package/dist/{blueprintFns-DVDommWB.js → blueprintFns-wka8INr_.js} +4 -125
- package/dist/{boolean2D-lqfKJKUY.cjs → boolean2D-6bQx64bR.cjs} +19 -18
- package/dist/{boolean2D-Mzp-0g7o.js → boolean2D-CfCt_m29.js} +12 -11
- package/dist/{booleanFns-B46fgObh.js → booleanFns-B6zxpf96.js} +8 -6
- package/dist/{booleanFns-Bw8sAMgI.cjs → booleanFns-C2pjUC6-.cjs} +24 -22
- package/dist/brepjs.cjs +301 -90
- package/dist/brepjs.js +189 -26
- package/dist/constants-B9u763C3.js +9 -0
- package/dist/constants-unWN8k4c.cjs +26 -0
- package/dist/core/errors.d.ts +5 -1
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/kernelCall.d.ts.map +1 -1
- package/dist/core/kernelErrorTranslation.d.ts +2 -0
- package/dist/core/kernelErrorTranslation.d.ts.map +1 -1
- package/dist/core.cjs +8 -7
- package/dist/core.js +5 -4
- package/dist/{cornerFinder-aBLykolI.js → cornerFinder-DBXma4vL.js} +3 -3
- package/dist/{cornerFinder-BszIcLqj.cjs → cornerFinder-DrHIlWCS.cjs} +4 -4
- package/dist/{curveFns-CZszKLQB.cjs → curveFns-C_vQNb7-.cjs} +2 -2
- package/dist/{curveFns-DY4dFcP-.js → curveFns-DmID8AQO.js} +2 -2
- package/dist/{drawFns-BHNDF8hb.cjs → drawFns-DRG-UpkW.cjs} +34 -17
- package/dist/{drawFns-l5CY2s-l.js → drawFns-rLQIZezc.js} +16 -14
- package/dist/{errors-BlC5ZWv4.cjs → errors-9zQcQK1H.cjs} +28 -0
- package/dist/{errors-BVOlxlIA.js → errors-C-cgQA3w.js} +23 -1
- package/dist/{extrudeFns-b0uLn4E4.js → extrudeFns-1qcdK9dq.js} +3 -3
- package/dist/{extrudeFns-GpCB_Uzs.cjs → extrudeFns-BP7fNL5O.cjs} +3 -3
- package/dist/{faceFns-Cat-4X74.js → faceFns-BHT5DAOL.js} +93 -3
- package/dist/{faceFns-BywUjlJ7.cjs → faceFns-BwzwlBjE.cjs} +110 -2
- package/dist/{helpers-DgX1UucG.js → helpers-B94CkHQe.js} +8 -7
- package/dist/{helpers-1iCCEElA.cjs → helpers-C4Ajoc6x.cjs} +18 -17
- package/dist/{historyFns-BFwp8NLX.js → historyFns-BsSuAQ0m.js} +10 -10
- package/dist/{historyFns-DqxDtXIZ.cjs → historyFns-CrsjeD69.cjs} +10 -10
- package/dist/{importFns-ChXEJAvu.cjs → importFns-DPwXjtkm.cjs} +4 -4
- package/dist/{importFns-Cb8fcldB.js → importFns-DQsQOpRY.js} +4 -4
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/brepkit/brepkitAdapter.d.ts +149 -242
- package/dist/kernel/brepkit/brepkitAdapter.d.ts.map +1 -1
- package/dist/kernel/brepkit/evolutionOps.d.ts +1 -0
- package/dist/kernel/brepkit/evolutionOps.d.ts.map +1 -1
- package/dist/kernel/index.d.ts +1 -1
- package/dist/kernel/index.d.ts.map +1 -1
- package/dist/{measureFns-D3rAp1X1.js → measureFns-iarjC69-.js} +9 -16
- package/dist/{measureFns-Bx-kl7_g.cjs → measureFns-j1ze9DDM.cjs} +9 -16
- package/dist/measurement/measureFns.d.ts.map +1 -1
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-D3KAZ_ma.cjs → meshFns-CONktkIA.cjs} +4 -4
- package/dist/{meshFns-BPi0bhm9.js → meshFns-DRl9xnbO.js} +3 -3
- package/dist/ns/booleans.d.ts +10 -0
- package/dist/ns/booleans.d.ts.map +1 -0
- package/dist/ns/construction.d.ts +10 -0
- package/dist/ns/construction.d.ts.map +1 -0
- package/dist/ns/ioNs.d.ts +18 -0
- package/dist/ns/ioNs.d.ts.map +1 -0
- package/dist/ns/measurement.d.ts +6 -0
- package/dist/ns/measurement.d.ts.map +1 -0
- package/dist/ns/modifiers.d.ts +6 -0
- package/dist/ns/modifiers.d.ts.map +1 -0
- package/dist/ns/patterns.d.ts +5 -0
- package/dist/ns/patterns.d.ts.map +1 -0
- package/dist/ns/primitives.d.ts +7 -0
- package/dist/ns/primitives.d.ts.map +1 -0
- package/dist/ns/query.d.ts +6 -0
- package/dist/ns/query.d.ts.map +1 -0
- package/dist/ns/transforms.d.ts +5 -0
- package/dist/ns/transforms.d.ts.map +1 -0
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{planeOps-BqLav0Ir.cjs → planeOps-6Wu7dMDN.cjs} +4 -3
- package/dist/{planeOps-D88tfyJs.js → planeOps-gTOEarV2.js} +3 -2
- package/dist/{primitiveFns-BGh9A9jR.cjs → primitiveFns-CGg6EBKg.cjs} +69 -69
- package/dist/{primitiveFns-CnZkW6Bi.js → primitiveFns-CMIscOrN.js} +7 -7
- package/dist/query.cjs +2 -2
- package/dist/query.js +2 -2
- package/dist/result.cjs +1 -1
- package/dist/result.js +1 -1
- package/dist/{arrayAccess-B5LgmXBo.js → shapeFns-Brq2J-mW.js} +8 -30
- package/dist/{arrayAccess-t2dlxGSK.cjs → shapeFns-DY7pjzrz.cjs} +24 -64
- package/dist/shapeRef.cjs +8 -0
- package/dist/shapeRef.d.ts +5 -0
- package/dist/shapeRef.d.ts.map +1 -0
- package/dist/shapeRef.js +2 -0
- package/dist/shapeRefFns-BOljxSxd.cjs +229 -0
- package/dist/shapeRefFns-BqOlRA7C.js +194 -0
- package/dist/{shapeTypes-8eK48l-X.cjs → shapeTypes-B3kwoJWf.cjs} +2643 -2551
- package/dist/{shapeTypes-Di6GlhPk.js → shapeTypes-CoNj-AHu.js} +2644 -2552
- package/dist/sketching.cjs +2 -2
- package/dist/sketching.js +2 -2
- package/dist/{solidBuilders-ctO_wFrm.js → solidBuilders-BzIatk9a.js} +3 -3
- package/dist/{solidBuilders-D9KYP9sL.cjs → solidBuilders-V8qvmW7h.cjs} +3 -3
- package/dist/{surfaceBuilders-BaqeZa0x.js → surfaceBuilders-Cfo4nH6A.js} +3 -3
- package/dist/{surfaceBuilders-CZzipftq.cjs → surfaceBuilders-CoiofY0Y.cjs} +3 -3
- package/dist/topology/api.d.ts +3 -3
- package/dist/topology/api.d.ts.map +1 -1
- package/dist/topology/shapeFns.d.ts +4 -3
- package/dist/topology/shapeFns.d.ts.map +1 -1
- package/dist/topology/shapeRef/index.d.ts +7 -0
- package/dist/topology/shapeRef/index.d.ts.map +1 -0
- package/dist/topology/shapeRef/scoring.d.ts +16 -0
- package/dist/topology/shapeRef/scoring.d.ts.map +1 -0
- package/dist/topology/shapeRef/shapeRefFns.d.ts +47 -0
- package/dist/topology/shapeRef/shapeRefFns.d.ts.map +1 -0
- package/dist/topology/shapeRef/shapeRefTypes.d.ts +40 -0
- package/dist/topology/shapeRef/shapeRefTypes.d.ts.map +1 -0
- package/dist/topology.cjs +20 -20
- package/dist/topology.js +6 -6
- package/dist/{vecOps-DKGelwGL.cjs → vecOps-BXvBYIor.cjs} +0 -26
- package/dist/{vecOps-DFfUfsmc.js → vecOps-D9etjPgV.js} +1 -9
- package/dist/vectors.cjs +5 -4
- package/dist/vectors.js +3 -2
- package/dist/worker.cjs +1 -1
- package/dist/worker.js +1 -1
- package/package.json +14 -4
- /package/dist/{workerHandler-nLkvSOKX.cjs → workerHandler-C-7OUJsa.cjs} +0 -0
- /package/dist/{workerHandler-BrOTzYRI.js → workerHandler-o2xzAfFk.js} +0 -0
package/dist/brepjs.js
CHANGED
|
@@ -1,26 +1,41 @@
|
|
|
1
|
-
import { $ as prewarm, A as planarWire, B as getDisposalStats, C as isOrientedFace, D as manifoldShell, E as isValidSolid, F as is2D, G as withScope, I as is3D, K as withScopeResult, L as DisposalScope, M as getShapeKind, N as as2D, O as orientedFace, P as as3D, Q as initFromOC, R as createHandle, S as isManifoldShell, T as isPlanarWire, U as resetDisposalStats, V as isLive, Y as getKernel, Z as init, _ as isSolid, a as createEdge, b as closedWire, c as createSolid, d as isCompound, et as registerKernel, f as isEdge, g as isShell, h as isShape3D, i as createCompound, it as
|
|
2
|
-
import { A as
|
|
3
|
-
import { C as
|
|
4
|
-
import {
|
|
1
|
+
import { $ as prewarm, A as planarWire, B as getDisposalStats, C as isOrientedFace, D as manifoldShell, E as isValidSolid, F as is2D, G as withScope, I as is3D, K as withScopeResult, L as DisposalScope, M as getShapeKind, N as as2D, O as orientedFace, P as as3D, Q as initFromOC, R as createHandle, S as isManifoldShell, T as isPlanarWire, U as resetDisposalStats, V as isLive, Y as getKernel, Z as init, _ as isSolid, a as createEdge, b as closedWire, c as createSolid, d as isCompound, et as registerKernel, f as isEdge, g as isShell, h as isShape3D, i as createCompound, it as BrepkitAdapter, j as validSolid, k as planarFace, l as createVertex, m as isShape1D, n as castShape3D, nt as supportsConstraintSketch, o as createFace, p as isFace, q as withScopeResultAsync, rt as supportsProjection, s as createShell, t as castShape, tt as withKernel, u as createWire, v as isVertex, w as isPlanarFace, x as isClosedWire, y as isWire, z as createKernelHandle } from "./shapeTypes-CoNj-AHu.js";
|
|
2
|
+
import { A as ok, B as unwrapOr, C as fromNullable, D as mapBoth, E as map, F as tapErr, H as zip, I as tryCatch, L as tryCatchAsync, M as orElse, N as pipeline, O as mapErr, P as tap, R as unwrap, S as flatten, T as isOk, V as unwrapOrElse, _ as all, a as moduleInitError, b as err, c as sketcherStateError, d as validationError, g as OK, h as bug, i as kernelError, j as or, k as match, l as typeCastError, m as BrepBugError, n as computationError, o as queryError, r as ioError, t as BrepErrorCode, u as unsupportedError, v as andThen, w as isErr, x as flatMap, y as collect, z as unwrapErr } from "./errors-C-cgQA3w.js";
|
|
3
|
+
import { C as kernelCallRaw, S as kernelCall, _ as downcast, a as flipFaceOrientation, b as iterTopo, c as normalAt, d as projectPointOnFace, f as removeHolesFromFace, 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, w as kernelCallScoped, x as shapeType, y as isCompSolid } from "./faceFns-BHT5DAOL.js";
|
|
4
|
+
import { n as HASH_CODE_MAX, r as RAD2DEG, t as DEG2RAD } from "./constants-B9u763C3.js";
|
|
5
5
|
import { n as toVec2, r as toVec3, t as resolveDirection } from "./types-BWBlwp6w.js";
|
|
6
|
-
import { i as
|
|
7
|
-
import {
|
|
8
|
-
import { A as
|
|
9
|
-
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-
|
|
10
|
-
import { a as meshEdges$1, i as mesh$1, n as exportSTEP, o as clearMeshCache, r as exportSTL, s as createMeshCache, t as exportIGES } from "./meshFns-
|
|
11
|
-
import { n as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { C as
|
|
15
|
-
import { a as
|
|
16
|
-
import { a as
|
|
17
|
-
import {
|
|
18
|
-
import { r as
|
|
19
|
-
import {
|
|
20
|
-
import { t as
|
|
21
|
-
import {
|
|
22
|
-
import { a as
|
|
23
|
-
import { a as
|
|
6
|
+
import { 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 } from "./vecOps-D9etjPgV.js";
|
|
7
|
+
import { i as pivotPlane, n as createPlane, o as resolvePlane, r as makePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-gTOEarV2.js";
|
|
8
|
+
import { A as describe$1, B as iterVertices, C as findFacesByTag, D as tagFaces, E as setTagMetadata, F as getVertices, H as vertexPosition, I as getWires, L as invalidateShapeCache, M as getEdges, N as getFaces, O as getFaceOrigins, R as iterEdges, S as getShapeColor, T as getTagMetadata, V as iterWires, a as isSameShape, b as colorShape, c as applyMatrix$1, d as resize, f as rotate$1, h as translate$1, i as isEqualShape, j as getBounds, k as setShapeOrigin, l as composeTransforms, m as transformCopy$1, n as getHashCode, o as simplify$1, p as scale$1, r as isEmpty$2, s as toBREP$1, t as clone$1, u as mirror$1, w as getFaceTags, x as getFaceColor, y as colorFaces, z as iterFaces } from "./shapeFns-Brq2J-mW.js";
|
|
9
|
+
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-DmID8AQO.js";
|
|
10
|
+
import { a as meshEdges$1, i as mesh$1, n as exportSTEP, o as clearMeshCache, r as exportSTL, s as createMeshCache, t as exportIGES } from "./meshFns-DRl9xnbO.js";
|
|
11
|
+
import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-xxcB3YNq.js";
|
|
12
|
+
import { n as fill, r as makeFace } from "./surfaceBuilders-Cfo4nH6A.js";
|
|
13
|
+
import { a as intersect$1, c as slice$1, i as fuseAll, l as split$1, n as cutAll, o as section$1, r as fuse$1, s as sectionToFace$1, t as cut$1 } from "./booleanFns-B6zxpf96.js";
|
|
14
|
+
import { $ as getNurbsSurfaceData, A as fixShape, B as offset$1, C as threePointArc, D as wireLoop, E as wire, F as isValid$1, G as chamferWithEvolution, H as thicken$1, I as solidFromShell, J as fuseWithEvolution, K as cutWithEvolution, L as chamfer$1, M as healFace, N as healSolid, O as autoHeal, P as healWire, Q as getNurbsCurveData, R as draft$1, S as tangentArc, T as vertex, U as variableFillet, V as shell$1, W as positionOnCurve, X as shellWithEvolution, Y as intersectWithEvolution, Z as checkBoolean, _ as polygon, a as circle, at as wiresOfFace, b as sphere, c as cylinder, ct as toGroupedBufferGeometryData, d as ellipsoid, et as adjacentFaces, f as face, g as offsetFace, h as line, i as bsplineApprox, it as verticesOfEdge, j as heal$1, k as fixSelfIntersection, l as ellipse, lt as toLineGeometryData, m as helix, n as bezier, nt as facesOfEdge, o as compound, ot as chamferDistAngle, p as filledFace, q as filletWithEvolution, r as box, rt as sharedEdges, s as cone, st as toBufferGeometryData, t as addHoles, tt as edgesOfFace, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid, z as fillet$1 } from "./primitiveFns-CMIscOrN.js";
|
|
15
|
+
import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, f as serializeHistory, g as addChild, h as undoLast, i as deserializeHistory, l as registerShape, m as stepsFrom, n as createHistory, o as getShape, p as stepCount, r as createRegistry, s as modifyStep, t as addStep, u as replayFrom, v as countNodes, w as circularPattern, x as removeChild, y as createAssemblyNode } from "./historyFns-BsSuAQ0m.js";
|
|
16
|
+
import { a as fuseBlueprints, c as roundedRectangleBlueprint, f as Sketch, i as cutBlueprints, m as organiseBlueprints, n as fuse2D, o as intersectBlueprints, p as loft$1, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-CfCt_m29.js";
|
|
17
|
+
import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-B94CkHQe.js";
|
|
18
|
+
import { $ as sketchFaceOffset, B as drawSingleCircle, C as cameraFromPlane, D as makeProjectedEdges, E as projectEdges, F as drawParametricFunction, G as loadFont, H as drawText, I as drawPointsInterpolation, J as textMetrics, K as sketchText, L as drawPolysides, M as draw, N as drawCircle, O as isProjectionPlane, P as drawEllipse, Q as sketchEllipse, R as drawRectangle, S as drawProjection, T as createCamera, U as fontMetrics, V as drawSingleEllipse, W as getFont, X as polysideInnerRadius, Y as makeBaseBox, Z as sketchCircle, _ as sketchLoft, a as drawingIntersect, b as sketchWires, c as rotateDrawing, d as compoundSketchExtrude, et as sketchHelix, f as compoundSketchFace, g as sketchFace, h as sketchExtrude, i as drawingFuse, it as sketchRoundedRectangle, j as deserializeDrawing, l as scaleDrawing, m as compoundSketchRevolve, n as drawingCut, nt as sketchPolysides, o as drawingToSketchOnPlane, ot as Sketches, p as compoundSketchLoft, q as textBlueprints, r as drawingFillet, rt as sketchRectangle, s as mirrorDrawing, st as CompoundSketch, t as drawingChamfer, tt as sketchParametricFunction, u as translateDrawing, v as sketchRevolve, w as cameraLookAt, x as drawFaceOutline, y as sketchSweep, z as drawRoundedRectangle } from "./drawFns-rLQIZezc.js";
|
|
19
|
+
import { r as makeCylinder } from "./solidBuilders-BzIatk9a.js";
|
|
20
|
+
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-iarjC69-.js";
|
|
21
|
+
import { t as cornerFinder } from "./cornerFinder-DBXma4vL.js";
|
|
22
|
+
import { a as multiSectionSweep, c as twistExtrude, i as guidedSweep, n as revolve$1, o as supportExtrude, r as complexExtrude, s as sweep, t as extrude$1 } from "./extrudeFns-1qcdK9dq.js";
|
|
23
|
+
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-wka8INr_.js";
|
|
24
|
+
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-DQsQOpRY.js";
|
|
25
|
+
import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-BqOlRA7C.js";
|
|
26
|
+
import { a as createTaskQueue, c as isEmpty$1, d as isDisposeRequest, f as isErrorResponse, h as isSuccessResponse, i as createWorkerClient, l as pendingCount, m as isOperationRequest, n as createWorkerHandler, o as dequeueTask, p as isInitRequest, r as registerHandler, s as enqueueTask, t as createOperationRegistry, u as rejectAll } from "./workerHandler-o2xzAfFk.js";
|
|
27
|
+
//#region \0rolldown/runtime.js
|
|
28
|
+
var __defProp = Object.defineProperty;
|
|
29
|
+
var __exportAll = (all, no_symbols) => {
|
|
30
|
+
let target = {};
|
|
31
|
+
for (var name in all) __defProp(target, name, {
|
|
32
|
+
get: all[name],
|
|
33
|
+
enumerable: true
|
|
34
|
+
});
|
|
35
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
36
|
+
return target;
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
24
39
|
//#region src/topology/shapeBooleans.ts
|
|
25
40
|
var BOPAlgo_GlueShift = 1;
|
|
26
41
|
var BOPAlgo_GlueFull = 2;
|
|
@@ -2484,14 +2499,14 @@ function createWrappedBase(val) {
|
|
|
2484
2499
|
] })),
|
|
2485
2500
|
bounds: () => getBounds(val),
|
|
2486
2501
|
describe: () => describe(val),
|
|
2487
|
-
clone: () => wrapAny(clone(val)),
|
|
2502
|
+
clone: () => wrapAny(unwrapOrThrow(clone(val))),
|
|
2488
2503
|
mesh: (opts) => mesh(val, opts),
|
|
2489
2504
|
meshEdges: (opts) => meshEdges(val, opts),
|
|
2490
2505
|
isValid: () => isValid(val),
|
|
2491
2506
|
isEmpty: () => isEmpty(val),
|
|
2492
2507
|
heal: () => wrapAny(unwrapOrThrow(heal(val))),
|
|
2493
|
-
simplify: () => wrapAny(simplify(val)),
|
|
2494
|
-
toBREP: () => toBREP(val),
|
|
2508
|
+
simplify: () => wrapAny(unwrapOrThrow(simplify(val))),
|
|
2509
|
+
toBREP: () => unwrapOrThrow(toBREP(val)),
|
|
2495
2510
|
apply: (fn) => wrapAny(fn(val)),
|
|
2496
2511
|
applyResult: (fn) => wrapAny(unwrapOrThrow(fn(val))),
|
|
2497
2512
|
done: () => val
|
|
@@ -2600,4 +2615,152 @@ function shape(s) {
|
|
|
2600
2615
|
throw new Error("shape() requires a Sketch or branded shape type");
|
|
2601
2616
|
}
|
|
2602
2617
|
//#endregion
|
|
2603
|
-
|
|
2618
|
+
//#region src/ns/primitives.ts
|
|
2619
|
+
var primitives_exports = /* @__PURE__ */ __exportAll({
|
|
2620
|
+
addHoles: () => addHoles,
|
|
2621
|
+
bezier: () => bezier,
|
|
2622
|
+
box: () => box,
|
|
2623
|
+
bsplineApprox: () => bsplineApprox,
|
|
2624
|
+
circle: () => circle,
|
|
2625
|
+
compound: () => compound,
|
|
2626
|
+
cone: () => cone,
|
|
2627
|
+
cylinder: () => cylinder,
|
|
2628
|
+
ellipse: () => ellipse,
|
|
2629
|
+
ellipseArc: () => ellipseArc,
|
|
2630
|
+
ellipsoid: () => ellipsoid,
|
|
2631
|
+
face: () => face,
|
|
2632
|
+
fill: () => fill,
|
|
2633
|
+
filledFace: () => filledFace,
|
|
2634
|
+
helix: () => helix,
|
|
2635
|
+
line: () => line,
|
|
2636
|
+
offsetFace: () => offsetFace,
|
|
2637
|
+
polygon: () => polygon,
|
|
2638
|
+
polyhedron: () => polyhedron,
|
|
2639
|
+
sewShells: () => sewShells,
|
|
2640
|
+
solid: () => solid,
|
|
2641
|
+
sphere: () => sphere,
|
|
2642
|
+
subFace: () => subFace,
|
|
2643
|
+
tangentArc: () => tangentArc,
|
|
2644
|
+
threePointArc: () => threePointArc,
|
|
2645
|
+
torus: () => torus,
|
|
2646
|
+
vertex: () => vertex,
|
|
2647
|
+
wire: () => wire,
|
|
2648
|
+
wireLoop: () => wireLoop
|
|
2649
|
+
});
|
|
2650
|
+
//#endregion
|
|
2651
|
+
//#region src/ns/booleans.ts
|
|
2652
|
+
var booleans_exports = /* @__PURE__ */ __exportAll({
|
|
2653
|
+
checkBoolean: () => checkBoolean,
|
|
2654
|
+
convexHull: () => convexHull,
|
|
2655
|
+
cut: () => cut,
|
|
2656
|
+
cutAll: () => cutAll,
|
|
2657
|
+
fuse: () => fuse,
|
|
2658
|
+
fuseAll: () => fuseAll,
|
|
2659
|
+
hull: () => hull,
|
|
2660
|
+
intersect: () => intersect,
|
|
2661
|
+
minkowski: () => minkowski,
|
|
2662
|
+
section: () => section,
|
|
2663
|
+
sectionToFace: () => sectionToFace,
|
|
2664
|
+
slice: () => slice,
|
|
2665
|
+
split: () => split
|
|
2666
|
+
});
|
|
2667
|
+
//#endregion
|
|
2668
|
+
//#region src/ns/modifiers.ts
|
|
2669
|
+
var modifiers_exports = /* @__PURE__ */ __exportAll({
|
|
2670
|
+
chamfer: () => chamfer,
|
|
2671
|
+
draft: () => draft,
|
|
2672
|
+
fillet: () => fillet,
|
|
2673
|
+
heal: () => heal,
|
|
2674
|
+
offset: () => offset,
|
|
2675
|
+
shell: () => shell,
|
|
2676
|
+
simplify: () => simplify,
|
|
2677
|
+
thicken: () => thicken,
|
|
2678
|
+
variableFillet: () => variableFillet
|
|
2679
|
+
});
|
|
2680
|
+
//#endregion
|
|
2681
|
+
//#region src/ns/transforms.ts
|
|
2682
|
+
var transforms_exports = /* @__PURE__ */ __exportAll({
|
|
2683
|
+
applyMatrix: () => applyMatrix,
|
|
2684
|
+
clone: () => clone,
|
|
2685
|
+
composeTransforms: () => composeTransforms,
|
|
2686
|
+
mirror: () => mirror,
|
|
2687
|
+
rotate: () => rotate,
|
|
2688
|
+
scale: () => scale,
|
|
2689
|
+
transformCopy: () => transformCopy,
|
|
2690
|
+
translate: () => translate
|
|
2691
|
+
});
|
|
2692
|
+
//#endregion
|
|
2693
|
+
//#region src/ns/measurement.ts
|
|
2694
|
+
var measurement_exports = /* @__PURE__ */ __exportAll({
|
|
2695
|
+
checkAllInterferences: () => checkAllInterferences,
|
|
2696
|
+
checkInterference: () => checkInterference,
|
|
2697
|
+
createDistanceQuery: () => createDistanceQuery,
|
|
2698
|
+
measureArea: () => measureArea,
|
|
2699
|
+
measureCurvatureAt: () => measureCurvatureAt,
|
|
2700
|
+
measureCurvatureAtMid: () => measureCurvatureAtMid,
|
|
2701
|
+
measureDistance: () => measureDistance,
|
|
2702
|
+
measureDistanceProps: () => measureDistanceProps,
|
|
2703
|
+
measureLength: () => measureLength,
|
|
2704
|
+
measureLinearProps: () => measureLinearProps,
|
|
2705
|
+
measureSurfaceProps: () => measureSurfaceProps,
|
|
2706
|
+
measureVolume: () => measureVolume,
|
|
2707
|
+
measureVolumeProps: () => measureVolumeProps
|
|
2708
|
+
});
|
|
2709
|
+
//#endregion
|
|
2710
|
+
//#region src/ns/ioNs.ts
|
|
2711
|
+
var ioNs_exports = /* @__PURE__ */ __exportAll({
|
|
2712
|
+
blueprintToDXF: () => blueprintToDXF,
|
|
2713
|
+
exportAssemblySTEP: () => exportAssemblySTEP,
|
|
2714
|
+
exportDXF: () => exportDXF,
|
|
2715
|
+
exportGlb: () => exportGlb,
|
|
2716
|
+
exportGltf: () => exportGltf,
|
|
2717
|
+
exportIGES: () => exportIGES,
|
|
2718
|
+
exportOBJ: () => exportOBJ,
|
|
2719
|
+
exportSTEP: () => exportSTEP,
|
|
2720
|
+
exportSTEPConfigured: () => exportSTEPConfigured,
|
|
2721
|
+
exportSTL: () => exportSTL,
|
|
2722
|
+
exportThreeMF: () => exportThreeMF,
|
|
2723
|
+
importDXF: () => importDXF,
|
|
2724
|
+
importGLB: () => importGLB,
|
|
2725
|
+
importIGES: () => importIGES,
|
|
2726
|
+
importOBJ: () => importOBJ,
|
|
2727
|
+
importSTEP: () => importSTEP,
|
|
2728
|
+
importSTL: () => importSTL,
|
|
2729
|
+
importSVG: () => importSVG,
|
|
2730
|
+
importSVGPathD: () => importSVGPathD,
|
|
2731
|
+
importThreeMF: () => importThreeMF
|
|
2732
|
+
});
|
|
2733
|
+
//#endregion
|
|
2734
|
+
//#region src/ns/query.ts
|
|
2735
|
+
var query_exports = /* @__PURE__ */ __exportAll({
|
|
2736
|
+
cornerFinder: () => cornerFinder,
|
|
2737
|
+
edgeFinder: () => edgeFinder,
|
|
2738
|
+
faceFinder: () => faceFinder,
|
|
2739
|
+
getSingleFace: () => getSingleFace,
|
|
2740
|
+
vertexFinder: () => vertexFinder,
|
|
2741
|
+
wireFinder: () => wireFinder
|
|
2742
|
+
});
|
|
2743
|
+
//#endregion
|
|
2744
|
+
//#region src/ns/construction.ts
|
|
2745
|
+
var construction_exports = /* @__PURE__ */ __exportAll({
|
|
2746
|
+
complexExtrude: () => complexExtrude,
|
|
2747
|
+
extrude: () => extrude,
|
|
2748
|
+
guidedSweep: () => guidedSweep,
|
|
2749
|
+
loft: () => loft,
|
|
2750
|
+
multiSectionSweep: () => multiSectionSweep,
|
|
2751
|
+
revolve: () => revolve,
|
|
2752
|
+
roof: () => roof,
|
|
2753
|
+
supportExtrude: () => supportExtrude,
|
|
2754
|
+
surfaceFromGrid: () => surfaceFromGrid,
|
|
2755
|
+
surfaceFromImage: () => surfaceFromImage,
|
|
2756
|
+
sweep: () => sweep,
|
|
2757
|
+
twistExtrude: () => twistExtrude
|
|
2758
|
+
});
|
|
2759
|
+
//#endregion
|
|
2760
|
+
//#region src/ns/patterns.ts
|
|
2761
|
+
var patterns_exports = /* @__PURE__ */ __exportAll({
|
|
2762
|
+
circularPattern: () => circularPattern,
|
|
2763
|
+
linearPattern: () => linearPattern
|
|
2764
|
+
});
|
|
2765
|
+
//#endregion
|
|
2766
|
+
export { BrepBugError, BrepErrorCode, BrepWrapperError, BrepkitAdapter, CompoundSketch, DEG2RAD, DisposalScope, HASH_CODE_MAX, OK, RAD2DEG, Sketch, Sketches, addChild, addHoles, addMate, addStep, adjacentFaces, all, andThen, applyGlue, applyMatrix, approximateCurve, as2D, as3D, asTopo, assignRoles, autoHeal, bezier, blueprintToDXF, booleans_exports as booleans, boss, box, bsplineApprox, bug, cameraFromPlane, cameraLookAt, captureHint, cast, castShape, castShape3D, chamfer, chamferDistAngle as chamferDistAngleShape, chamferWithEvolution, checkAllInterferences, checkBoolean, checkInterference, circle, circularPattern, classifyPointOnFace, clearMeshCache, clone, closedWire, collect, collectShapes, colorFaces, colorShape, complexExtrude, composeTransforms, compound, compoundSketchExtrude, compoundSketchFace, compoundSketchLoft, compoundSketchRevolve, computationError, computeStraightSkeleton, cone, construction_exports as construction, convexHull, cornerFinder, countNodes, createAssembly, createAssemblyNode, createBlueprint, createCamera, createCompound, createCompoundBlueprint, createDistanceQuery, createEdge, createFace, createHandle, createHistory, createKernelHandle, createMeshCache, createNamedPlane, createOperationRegistry, createPlane, createRef, createRegistry, createShell, createSolid, createTaskQueue, createVertex, createWire, createWorkerClient, createWorkerHandler, curve2dBoundingBox, curve2dDistanceFrom, curve2dFirstPoint, curve2dIsOnCurve, curve2dLastPoint, curve2dParameter, curve2dSplitAt, curve2dTangentAt, curveEndPoint, curveIsClosed, curveIsPeriodic, curveLength, curvePeriod, curvePointAt, curveStartPoint, curveTangentAt, cut, cut2D, cutAll, cutBlueprints, cutWithEvolution, cylinder, defaultScorer, dequeueTask, describe, deserializeDrawing, deserializeHistory, fromBREP as deserializeShape, downcast, draft, draw, drawCircle, drawEllipse, drawFaceOutline, drawParametricFunction, drawPointsInterpolation, drawPolysides, drawProjection, drawRectangle, drawRoundedRectangle, drawSingleCircle, drawSingleEllipse, drawText, drawingChamfer, drawingCut, drawingFillet, drawingFuse, drawingIntersect, drawingToSketchOnPlane, drill, edgeFinder, edgesOfFace, ellipse, ellipseArc, ellipsoid, enqueueTask, err, exportAssemblySTEP, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, extrude, face, faceCenter, faceFinder, faceGeomType, faceOrientation, facesOfEdge, fill, filledFace, fillet, filletWithEvolution, findFacesByTag, findNode, findStep, fixSelfIntersection, fixShape, flatMap, flatten, flipFaceOrientation, flipOrientation, fontMetrics, fromBREP$1 as fromBREP, fromKernelDir, fromKernelPnt, fromKernelVec, fromNullable, fuse, fuse2D, fuseAll, fuseBlueprints, fuseWithEvolution, getBounds, getBounds2D, getCurveType, getDisposalStats, getEdges, getFaceColor, getFaceOrigins, getFaceTags, getFaces, getFont, getHashCode, getShape as getHistoryShape, getKernel, getNurbsCurveData, getNurbsSurfaceData, getOrientation, getOrientation2D, getShapeColor, getShapeKind, getSingleFace, getSurfaceType, getTagMetadata, getVertices, getWires, guidedSweep, heal, healFace, healSolid, healWire, helix, hull, importDXF, importGLB, importIGES, importOBJ, importSTEP, importSTL, importSVG, importSVGPathD, importThreeMF, init, initFromOC, innerWires, interpolateCurve, intersect, intersect2D, intersectBlueprints, intersectWithEvolution, invalidateShapeCache, ioNs_exports as io, ioError, is2D, is3D, isChamferRadius, isClosedWire, isCompSolid, isCompound, isDisposeRequest, isEdge, isEmpty, isEqualShape, isErr, isErrorResponse, isFace, isFilletRadius, isInitRequest, isInside2D, isLive, isManifoldShell, isNumber, isOk, isOperationRequest, isOrientedFace, isPlanarFace, isPlanarWire, isProjectionPlane, isEmpty$1 as isQueueEmpty, isSameShape, isShape1D, isShape3D, isShell, isSolid, isSuccessResponse, isValid, isValidSolid, isVertex, isWire, iterEdges, iterFaces, iterTopo, iterVertices, iterWires, kernelCall, kernelCallRaw, kernelCallScoped, kernelError, line, linearPattern, loadFont, loft, makeBaseBox, makePlane, makeProjectedEdges, manifoldShell, map, mapBoth, mapErr, match, measureArea, measureCurvatureAt, measureCurvatureAtMid, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps, measurement_exports as measurement, mesh, meshEdges, minkowski, mirror, mirror2D, mirrorDrawing, mirrorJoin, modifiers_exports as modifiers, modifyStep, moduleInitError, multiSectionSweep, normalAt, offset, offsetFace, offsetWire2D, ok, or, orElse, organiseBlueprints, orientedFace, outerWire, patterns_exports as patterns, pendingCount, pipeline, pivotPlane, planarFace, planarWire, pocket, pointOnSurface, polygon, polyhedron, polysideInnerRadius, polysidesBlueprint, positionOnCurve, prewarm, primitives_exports as primitives, projectEdges, projectPointOnFace, query_exports as query, queryError, rectangularPattern, registerHandler, registerKernel, registerOperation, registerShape, rejectAll, removeChild, removeHolesFromFace, replayFrom, replayHistory, resetDisposalStats, resize, resolve, resolve3D, resolveDirection, resolvePlane, resolveRef, reverseCurve, revolve, roof, rotate, rotate2D, rotateDrawing, roundedRectangleBlueprint, scale, scale2D, scaleDrawing, section, sectionToFace, serializeHistory, setShapeOrigin, setTagMetadata, sewShells, shape, shapeType, sharedEdges, shell, shellWithEvolution, simplify, sketchCircle, sketchEllipse, sketchExtrude, sketchFace, sketchFaceOffset, sketchHelix, sketchLoft, sketchOnFace2D, sketchOnPlane2D, sketchParametricFunction, sketchPolysides, sketchRectangle, sketchRevolve, sketchRoundedRectangle, sketchSweep, sketchText, sketchWires, sketcherStateError, slice, solid, solidFromShell, solveAssembly, sphere, split, stepCount, stepsFrom, stretch2D, subFace, supportExtrude, supportsConstraintSketch, supportsProjection, surfaceFromGrid, surfaceFromImage, sweep, tagFaces, tangentArc, tap, tapErr, textBlueprints, textMetrics, thicken, threePointArc, toBREP, toBufferGeometryData, toGroupedBufferGeometryData, toKernelVec, toLineGeometryData, toSVGPathD, toVec2, toVec3, torus, transformCopy, transforms_exports as transforms, translate, translate2D, translateDrawing, translatePlane, tryCatch, tryCatchAsync, twistExtrude, typeCastError, undoLast, unsupportedError, unwrap, unwrapErr, unwrapOr, unwrapOrElse, updateNode, updateRoles, uvBounds, uvCoordinates, validSolid, validationError, variableFillet, vecAdd, vecAngle, vecCross, vecDistance, vecDot, vecEquals, vecIsZero, vecLength, vecLengthSq, vecNegate, vecNormalize, vecProjectToPlane, vecRepr, vecRotate, vecScale, vecSub, vertex, vertexFinder, vertexPosition, verticesOfEdge, walkAssembly, wire, wireFinder, wireLoop, wiresOfFace, withKernel, withKernelDir, withKernelPnt, withKernelVec, withScope, withScopeResult, withScopeResultAsync, zip as zipResults };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/core/constants.ts
|
|
2
|
+
/** Maximum hash code value for kernel shape hashing (2^31 - 1). */
|
|
3
|
+
var HASH_CODE_MAX = 2147483647;
|
|
4
|
+
/** Multiply degrees by this constant to convert to radians. */
|
|
5
|
+
var DEG2RAD = Math.PI / 180;
|
|
6
|
+
/** Multiply radians by this constant to convert to degrees. */
|
|
7
|
+
var RAD2DEG = 180 / Math.PI;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { HASH_CODE_MAX as n, RAD2DEG as r, DEG2RAD as t };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region src/core/constants.ts
|
|
2
|
+
/** Maximum hash code value for kernel shape hashing (2^31 - 1). */
|
|
3
|
+
var HASH_CODE_MAX = 2147483647;
|
|
4
|
+
/** Multiply degrees by this constant to convert to radians. */
|
|
5
|
+
var DEG2RAD = Math.PI / 180;
|
|
6
|
+
/** Multiply radians by this constant to convert to degrees. */
|
|
7
|
+
var RAD2DEG = 180 / Math.PI;
|
|
8
|
+
//#endregion
|
|
9
|
+
Object.defineProperty(exports, "DEG2RAD", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function() {
|
|
12
|
+
return DEG2RAD;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "HASH_CODE_MAX", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function() {
|
|
18
|
+
return HASH_CODE_MAX;
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "RAD2DEG", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function() {
|
|
24
|
+
return RAD2DEG;
|
|
25
|
+
}
|
|
26
|
+
});
|
package/dist/core/errors.d.ts
CHANGED
|
@@ -85,6 +85,7 @@ export declare const BrepErrorCode: {
|
|
|
85
85
|
readonly INTERSECTION_FAILED: "INTERSECTION_FAILED";
|
|
86
86
|
readonly SELF_INTERSECTION_FAILED: "SELF_INTERSECTION_FAILED";
|
|
87
87
|
readonly STRAIGHT_SKELETON_FAILED: "STRAIGHT_SKELETON_FAILED";
|
|
88
|
+
readonly CENTER_OF_MASS_FAILED: "CENTER_OF_MASS_FAILED";
|
|
88
89
|
readonly COMPOUND_NO_FACES: "COMPOUND_NO_FACES";
|
|
89
90
|
readonly COMPOUND_FACE_NOT_FOUND: "COMPOUND_FACE_NOT_FOUND";
|
|
90
91
|
readonly FINDER_NOT_UNIQUE: "FINDER_NOT_UNIQUE";
|
|
@@ -122,6 +123,9 @@ export declare const BrepErrorCode: {
|
|
|
122
123
|
readonly CURVE2D_QUERY_FAILED: "CURVE2D_QUERY_FAILED";
|
|
123
124
|
readonly CURVE2D_INTERSECTION_FAILED: "CURVE2D_INTERSECTION_FAILED";
|
|
124
125
|
readonly CURVE2D_BRIDGE_FAILED: "CURVE2D_BRIDGE_FAILED";
|
|
126
|
+
readonly CLONE_FAILED: "CLONE_FAILED";
|
|
127
|
+
readonly SIMPLIFY_FAILED: "SIMPLIFY_FAILED";
|
|
128
|
+
readonly TO_BREP_FAILED: "TO_BREP_FAILED";
|
|
125
129
|
readonly UNSUPPORTED_CAPABILITY: "UNSUPPORTED_CAPABILITY";
|
|
126
130
|
};
|
|
127
131
|
/** Union of all known error code string literals. */
|
|
@@ -161,7 +165,7 @@ export declare function ioError(code: string, message: string, cause?: unknown,
|
|
|
161
165
|
export declare function queryError(code: string, message: string, cause?: unknown, metadata?: Record<string, unknown>, suggestion?: string): BrepError;
|
|
162
166
|
/** Create an error for a capability not supported by the current kernel (ADR-0006 Phase 4). */
|
|
163
167
|
export declare function unsupportedError(code: string, message: string, cause?: unknown, metadata?: Record<string, unknown>, suggestion?: string): BrepError;
|
|
164
|
-
export { translateKernelError } from './kernelErrorTranslation.js';
|
|
168
|
+
export { translateKernelError, getSuggestionForCode } from './kernelErrorTranslation.js';
|
|
165
169
|
/**
|
|
166
170
|
* Safe array index access that throws a descriptive {@link BrepBugError} instead
|
|
167
171
|
* of returning `undefined` when the index is out of bounds.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/core/errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,CAAC;AAM7B,8CAA8C;AAC9C,MAAM,MAAM,aAAa,GACrB,kBAAkB,GAClB,YAAY,GACZ,WAAW,GACX,gBAAgB,GAChB,aAAa,GACb,aAAa,GACb,IAAI,GACJ,OAAO,GACP,aAAa,CAAC;AAMlB;;;;GAIG;AACH,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/core/errors.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kernelCall.d.ts","sourceRoot":"","sources":["../../src/core/kernelCall.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,EAAE,aAAa,EAAa,MAAM,aAAa,CAAC;AAE5D,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"kernelCall.d.ts","sourceRoot":"","sources":["../../src/core/kernelCall.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,EAAE,aAAa,EAAa,MAAM,aAAa,CAAC;AAE5D,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AA2C9C;;;;;;;GAOG;AACH,wBAAgB,UAAU,CACxB,EAAE,EAAE,MAAM,WAAW,EACrB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,IAAI,GAAE,aAAkC,GACvC,MAAM,CAAC,QAAQ,CAAC,CAUlB;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAC7B,EAAE,EAAE,MAAM,CAAC,EACX,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,IAAI,GAAE,aAAkC,GACvC,MAAM,CAAC,CAAC,CAAC,CAUX;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,gBAAgB,CAC9B,EAAE,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,WAAW,EACzC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,IAAI,GAAE,aAAkC,GACvC,MAAM,CAAC,QAAQ,CAAC,CAGlB"}
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
* Extracted from errors.ts to separate pure type/constructor definitions
|
|
5
5
|
* from OCCT-specific regex matching logic.
|
|
6
6
|
*/
|
|
7
|
+
/** Look up an actionable suggestion for a given error code. */
|
|
8
|
+
export declare function getSuggestionForCode(code: string): string | undefined;
|
|
7
9
|
/**
|
|
8
10
|
* Translate an kernel error message into a user-friendly explanation.
|
|
9
11
|
* If no pattern matches, returns the original message.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kernelErrorTranslation.d.ts","sourceRoot":"","sources":["../../src/core/kernelErrorTranslation.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"kernelErrorTranslation.d.ts","sourceRoot":"","sources":["../../src/core/kernelErrorTranslation.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAoGH,+DAA+D;AAC/D,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAErE;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAQlE"}
|
package/dist/core.cjs
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
3
|
-
const require_errors = require("./errors-
|
|
4
|
-
const
|
|
2
|
+
const require_shapeTypes = require("./shapeTypes-B3kwoJWf.cjs");
|
|
3
|
+
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
4
|
+
const require_constants = require("./constants-unWN8k4c.cjs");
|
|
5
5
|
const require_types = require("./types-BjDcsS7l.cjs");
|
|
6
|
-
const
|
|
6
|
+
const require_vecOps = require("./vecOps-BXvBYIor.cjs");
|
|
7
|
+
const require_planeOps = require("./planeOps-6Wu7dMDN.cjs");
|
|
7
8
|
exports.BrepBugError = require_errors.BrepBugError;
|
|
8
|
-
exports.DEG2RAD =
|
|
9
|
+
exports.DEG2RAD = require_constants.DEG2RAD;
|
|
9
10
|
exports.DisposalScope = require_shapeTypes.DisposalScope;
|
|
10
|
-
exports.HASH_CODE_MAX =
|
|
11
|
+
exports.HASH_CODE_MAX = require_constants.HASH_CODE_MAX;
|
|
11
12
|
exports.OK = require_errors.OK;
|
|
12
|
-
exports.RAD2DEG =
|
|
13
|
+
exports.RAD2DEG = require_constants.RAD2DEG;
|
|
13
14
|
exports.andThen = require_errors.andThen;
|
|
14
15
|
exports.bug = require_errors.bug;
|
|
15
16
|
exports.castShape = require_shapeTypes.castShape;
|
package/dist/core.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { C as isOrientedFace, D as manifoldShell, E as isValidSolid, F as is2D, G as withScope, I as is3D, K as withScopeResult, L as DisposalScope, M as getShapeKind, O as orientedFace, R as createHandle, S as isManifoldShell, V as isLive, _ as isSolid, b as closedWire, d as isCompound, f as isEdge, g as isShell, h as isShape3D, j as validSolid, m as isShape1D, p as isFace, q as withScopeResultAsync, t as castShape, v as isVertex, x as isClosedWire, y as isWire, z as createKernelHandle } from "./shapeTypes-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { C as isOrientedFace, D as manifoldShell, E as isValidSolid, F as is2D, G as withScope, I as is3D, K as withScopeResult, L as DisposalScope, M as getShapeKind, O as orientedFace, R as createHandle, S as isManifoldShell, V as isLive, _ as isSolid, b as closedWire, d as isCompound, f as isEdge, g as isShell, h as isShape3D, j as validSolid, m as isShape1D, p as isFace, q as withScopeResultAsync, t as castShape, v as isVertex, x as isClosedWire, y as isWire, z as createKernelHandle } from "./shapeTypes-CoNj-AHu.js";
|
|
2
|
+
import { A as ok, B as unwrapOr, E as map, I as tryCatch, L as tryCatchAsync, O as mapErr, R as unwrap, T as isOk, V as unwrapOrElse, a as moduleInitError, b as err, c as sketcherStateError, d as validationError, g as OK, h as bug, i as kernelError, k as match, l as typeCastError, m as BrepBugError, n as computationError, o as queryError, r as ioError, u as unsupportedError, v as andThen, w as isErr, x as flatMap, y as collect, z as unwrapErr } from "./errors-C-cgQA3w.js";
|
|
3
|
+
import { n as HASH_CODE_MAX, r as RAD2DEG, t as DEG2RAD } from "./constants-B9u763C3.js";
|
|
4
4
|
import { n as toVec2, r as toVec3, t as resolveDirection } from "./types-BWBlwp6w.js";
|
|
5
|
-
import { i as
|
|
5
|
+
import { 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 } from "./vecOps-D9etjPgV.js";
|
|
6
|
+
import { i as pivotPlane, n as createPlane, o as resolvePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-gTOEarV2.js";
|
|
6
7
|
export { BrepBugError, DEG2RAD, DisposalScope, HASH_CODE_MAX, OK, RAD2DEG, andThen, bug, castShape, closedWire, collect, computationError, createHandle, createKernelHandle, createNamedPlane, createPlane, err, flatMap, getShapeKind, ioError, is2D, is3D, isClosedWire, isCompound, isEdge, isErr, isFace, isLive, isManifoldShell, isOk, isOrientedFace, isShape1D, isShape3D, isShell, isSolid, isValidSolid, isVertex, isWire, kernelError, manifoldShell, map, mapErr, match, moduleInitError, ok, orientedFace, pivotPlane, queryError, resolveDirection, resolvePlane, sketcherStateError, toVec2, toVec3, translatePlane, tryCatch, tryCatchAsync, typeCastError, unsupportedError, unwrap, unwrapErr, unwrapOr, unwrapOrElse, validSolid, validationError, vecAdd, vecAngle, vecCross, vecDistance, vecDot, vecEquals, vecIsZero, vecLength, vecLengthSq, vecNegate, vecNormalize, vecProjectToPlane, vecRepr, vecRotate, vecScale, vecSub, withScope, withScopeResult, withScopeResultAsync };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as getAtOrThrow } from "./arrayAccess-
|
|
3
|
-
import { _ as samePoint, p as distance2d, u as angle2d } from "./helpers-
|
|
1
|
+
import { t as DEG2RAD } from "./constants-B9u763C3.js";
|
|
2
|
+
import { n as getAtOrThrow } from "./arrayAccess-xxcB3YNq.js";
|
|
3
|
+
import { _ as samePoint, p as distance2d, u as angle2d } from "./helpers-B94CkHQe.js";
|
|
4
4
|
//#region src/query/cornerFinder.ts
|
|
5
5
|
var PI_2 = 2 * Math.PI;
|
|
6
6
|
function positiveHalfAngle(angle) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_arrayAccess = require("./arrayAccess-
|
|
3
|
-
const require_helpers = require("./helpers-
|
|
1
|
+
const require_constants = require("./constants-unWN8k4c.cjs");
|
|
2
|
+
const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
|
|
3
|
+
const require_helpers = require("./helpers-C4Ajoc6x.cjs");
|
|
4
4
|
//#region src/query/cornerFinder.ts
|
|
5
5
|
var PI_2 = 2 * Math.PI;
|
|
6
6
|
function positiveHalfAngle(angle) {
|
|
@@ -39,7 +39,7 @@ function buildCornerFinder(filters) {
|
|
|
39
39
|
ofAngle: (angle) => withFilter((corner) => {
|
|
40
40
|
const tgt1 = corner.firstCurve.tangentAt(1);
|
|
41
41
|
const tgt2 = corner.secondCurve.tangentAt(0);
|
|
42
|
-
return Math.abs(positiveHalfAngle(require_helpers.angle2d(tgt1, tgt2)) - positiveHalfAngle(
|
|
42
|
+
return Math.abs(positiveHalfAngle(require_helpers.angle2d(tgt1, tgt2)) - positiveHalfAngle(require_constants.DEG2RAD * angle)) < 1e-9;
|
|
43
43
|
}),
|
|
44
44
|
not: (fn) => {
|
|
45
45
|
const inner = fn(buildCornerFinder([]));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_errors = require("./errors-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-B3kwoJWf.cjs");
|
|
2
|
+
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
3
3
|
//#region src/topology/curveFns.ts
|
|
4
4
|
/**
|
|
5
5
|
* Curve and 1D shape functions — functional replacements for _1DShape/Curve methods.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Y as getKernel, f as isEdge, t as castShape, y as isWire } from "./shapeTypes-
|
|
2
|
-
import {
|
|
1
|
+
import { Y as getKernel, f as isEdge, t as castShape, y as isWire } from "./shapeTypes-CoNj-AHu.js";
|
|
2
|
+
import { A as ok, b as err, l as typeCastError } from "./errors-C-cgQA3w.js";
|
|
3
3
|
//#region src/topology/curveFns.ts
|
|
4
4
|
/**
|
|
5
5
|
* Curve and 1D shape functions — functional replacements for _1DShape/Curve methods.
|
|
@@ -5,6 +5,15 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __exportAll = (all, no_symbols) => {
|
|
9
|
+
let target = {};
|
|
10
|
+
for (var name in all) __defProp(target, name, {
|
|
11
|
+
get: all[name],
|
|
12
|
+
enumerable: true
|
|
13
|
+
});
|
|
14
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
15
|
+
return target;
|
|
16
|
+
};
|
|
8
17
|
var __copyProps = (to, from, except, desc) => {
|
|
9
18
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
19
|
key = keys[i];
|
|
@@ -20,21 +29,23 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
20
29
|
enumerable: true
|
|
21
30
|
}) : target, mod));
|
|
22
31
|
//#endregion
|
|
23
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
24
|
-
const require_errors = require("./errors-
|
|
25
|
-
const
|
|
32
|
+
const require_shapeTypes = require("./shapeTypes-B3kwoJWf.cjs");
|
|
33
|
+
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
34
|
+
const require_faceFns = require("./faceFns-BwzwlBjE.cjs");
|
|
35
|
+
const require_constants = require("./constants-unWN8k4c.cjs");
|
|
26
36
|
const require_types = require("./types-BjDcsS7l.cjs");
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const require_curveFns = require("./curveFns-
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const
|
|
37
|
+
const require_vecOps = require("./vecOps-BXvBYIor.cjs");
|
|
38
|
+
const require_planeOps = require("./planeOps-6Wu7dMDN.cjs");
|
|
39
|
+
const require_shapeFns = require("./shapeFns-DY7pjzrz.cjs");
|
|
40
|
+
const require_curveFns = require("./curveFns-C_vQNb7-.cjs");
|
|
41
|
+
const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
|
|
42
|
+
const require_surfaceBuilders = require("./surfaceBuilders-CoiofY0Y.cjs");
|
|
43
|
+
const require_boolean2D = require("./boolean2D-6bQx64bR.cjs");
|
|
44
|
+
const require_helpers = require("./helpers-C4Ajoc6x.cjs");
|
|
45
|
+
const require_blueprint = require("./blueprint-C6B--LQ6.cjs");
|
|
46
|
+
const require_solidBuilders = require("./solidBuilders-V8qvmW7h.cjs");
|
|
47
|
+
const require_cornerFinder = require("./cornerFinder-DrHIlWCS.cjs");
|
|
48
|
+
const require_extrudeFns = require("./extrudeFns-BP7fNL5O.cjs");
|
|
38
49
|
let opentype_js = require("opentype.js");
|
|
39
50
|
opentype_js = __toESM(opentype_js);
|
|
40
51
|
//#region src/2d/lib/stitching.ts
|
|
@@ -391,7 +402,7 @@ var sketchEllipse = (xRadius = 1, yRadius = 2, planeConfig = {}) => {
|
|
|
391
402
|
let majR = xRadius;
|
|
392
403
|
let minR = yRadius;
|
|
393
404
|
if (yRadius > xRadius) {
|
|
394
|
-
xDir = require_vecOps.vecRotate(xDir, plane.zDir, 90 *
|
|
405
|
+
xDir = require_vecOps.vecRotate(xDir, plane.zDir, 90 * require_constants.DEG2RAD);
|
|
395
406
|
majR = yRadius;
|
|
396
407
|
minR = xRadius;
|
|
397
408
|
}
|
|
@@ -1589,7 +1600,7 @@ function isProjectionPlane(plane) {
|
|
|
1589
1600
|
//#region src/projection/makeProjectedEdges.ts
|
|
1590
1601
|
var getEdgesFromOc = (shape) => {
|
|
1591
1602
|
if (shape.IsNull()) return [];
|
|
1592
|
-
return
|
|
1603
|
+
return require_shapeFns.getEdges(require_shapeTypes.castShape(shape));
|
|
1593
1604
|
};
|
|
1594
1605
|
/**
|
|
1595
1606
|
* Project a 3D shape onto a 2D plane using hidden-line removal (HLR).
|
|
@@ -1746,7 +1757,7 @@ function drawFaceOutline(face) {
|
|
|
1746
1757
|
var _usingCtx3 = require_shapeTypes._usingCtx();
|
|
1747
1758
|
const scope = _usingCtx3.u(new require_shapeTypes.DisposalScope());
|
|
1748
1759
|
const clonedFace = scope.register(require_shapeTypes.createFace(require_errors.unwrap(require_faceFns.downcast(face.wrapped))));
|
|
1749
|
-
const stitchedCurves = stitchCurves(
|
|
1760
|
+
const stitchedCurves = stitchCurves(require_shapeFns.getEdges(scope.register(require_faceFns.outerWire(clonedFace))).map((e) => require_blueprint.edgeToCurve(e, face))).map((s) => new require_blueprint.Blueprint(s));
|
|
1750
1761
|
if (stitchedCurves.length === 0) return new Drawing();
|
|
1751
1762
|
if (stitchedCurves.length === 1) return new Drawing(stitchedCurves[0]);
|
|
1752
1763
|
return new Drawing(new require_boolean2D.Blueprints(stitchedCurves));
|
|
@@ -2035,6 +2046,12 @@ Object.defineProperty(exports, "Sketches", {
|
|
|
2035
2046
|
return Sketches;
|
|
2036
2047
|
}
|
|
2037
2048
|
});
|
|
2049
|
+
Object.defineProperty(exports, "__exportAll", {
|
|
2050
|
+
enumerable: true,
|
|
2051
|
+
get: function() {
|
|
2052
|
+
return __exportAll;
|
|
2053
|
+
}
|
|
2054
|
+
});
|
|
2038
2055
|
Object.defineProperty(exports, "cameraFromPlane", {
|
|
2039
2056
|
enumerable: true,
|
|
2040
2057
|
get: function() {
|