brepjs 15.1.6 → 15.1.8
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 +6 -6
- package/dist/2d.js +6 -6
- package/dist/{blueprint-xXn5kpyL.js → blueprint-BOICL-YA.js} +9 -9
- package/dist/{blueprint-4w3i6ayW.cjs → blueprint-CjWjaFBx.cjs} +9 -9
- package/dist/{blueprintFns-Dh7aCCTB.js → blueprintFns-DIDr-6k3.js} +3 -3
- package/dist/{blueprintFns-BfxfImfI.cjs → blueprintFns-PEdKpSH9.cjs} +3 -3
- package/dist/{boolean2D-C-2D1eJM.cjs → boolean2D-DIrXfRsK.cjs} +12 -12
- package/dist/{boolean2D-dM-8lArM.js → boolean2D-rza7Dzie.js} +12 -12
- package/dist/{booleanFns-BJtawwA0.cjs → booleanFns-BnuuzsmS.cjs} +24 -15
- package/dist/{booleanFns-Dekoe2OM.js → booleanFns-CrxLrhiY.js} +24 -15
- package/dist/brepjs.cjs +27 -25
- package/dist/brepjs.js +27 -26
- package/dist/core.cjs +5 -5
- package/dist/core.js +5 -5
- package/dist/{cornerFinder-C8VD-Eap.js → cornerFinder-BqBKxpw9.js} +3 -3
- package/dist/{cornerFinder-D7Q8B0yg.cjs → cornerFinder-lvtKN6D-.cjs} +3 -3
- package/dist/{curveFns-6oIwf4om.cjs → curveFns-BAYdU9o3.cjs} +2 -2
- package/dist/{curveFns-JTh5okGu.js → curveFns-ZfTMJwOX.js} +2 -2
- package/dist/{drawFns-ByjqoZ3q.cjs → drawFns-Be2-GMV1.cjs} +15 -15
- package/dist/{drawFns-EKQejy-Y.js → drawFns-DecOOibJ.js} +15 -15
- package/dist/{extrudeFns-xBCFBG7e.js → extrudeFns-BayH4aST.js} +3 -3
- package/dist/{extrudeFns-Don0l4Wq.cjs → extrudeFns-r4z8JjXR.cjs} +3 -3
- package/dist/{faceFns-CBdCV-j8.js → faceFns-B0abunWd.js} +3 -3
- package/dist/{faceFns-Z6uVCQfc.cjs → faceFns-D3Ge4FIP.cjs} +3 -3
- package/dist/{helpers-WtVQGyPq.cjs → helpers-BKiwf-pE.cjs} +8 -8
- package/dist/{helpers-Cko_0e9R.js → helpers-D4PQ7xhP.js} +8 -8
- package/dist/{historyFns-DEBKY9ZA.js → historyFns-BoRzKlCs.js} +6 -6
- package/dist/{historyFns-CHcfaeHI.cjs → historyFns-DUIQaLVi.cjs} +6 -6
- package/dist/{importFns-M40taVnq.js → importFns-BUO0pwJ6.js} +4 -4
- package/dist/{importFns-CP0NNYks.cjs → importFns-C3q2BF1x.cjs} +4 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/index.d.ts +2 -0
- package/dist/kernel/index.d.ts.map +1 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.cjs +3 -0
- package/dist/kernel/occtWasm/occtWasmAdapter.d.ts +1 -0
- package/dist/kernel/occtWasm/occtWasmAdapter.d.ts.map +1 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.js +2 -0
- package/dist/{measureFns-Dw3gJxtW.cjs → measureFns-CEBFLLb5.cjs} +3 -3
- package/dist/{measureFns-Br7xFNAT.js → measureFns-_58_x_YA.js} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-DjQq5QKD.js → meshFns-Df6b-fuz.js} +3 -3
- package/dist/{meshFns-cz1MJEPV.cjs → meshFns-crHPkhoE.cjs} +3 -3
- package/dist/occtWasmAdapter-B8K7kN7m.js +3265 -0
- package/dist/occtWasmAdapter-DYjViuTQ.cjs +3378 -0
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{planeOps-De5KoY28.js → planeOps-C94s53Ia.js} +3 -3
- package/dist/{planeOps-BXsq07La.cjs → planeOps-DoTESDTM.cjs} +3 -3
- package/dist/{primitiveFns-C-Z7pzVe.js → primitiveFns-BpSN8ikw.js} +7 -7
- package/dist/{primitiveFns-DIKm4sVE.cjs → primitiveFns-D4h33-Zc.cjs} +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/{shapeFns-C_gFeOcq.js → shapeFns-CU69rY5c.js} +4 -4
- package/dist/{shapeFns-D5WE20WA.cjs → shapeFns-DFey0u1e.cjs} +4 -4
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeRefFns-C-h3UVLi.js → shapeRefFns-BXfiUUBm.js} +3 -3
- package/dist/{shapeRefFns-BYkjUjgL.cjs → shapeRefFns-KTeGJjhQ.cjs} +3 -3
- package/dist/{shapeTypes-D3seZBe7.js → shapeTypes-Ct7hPC-B.js} +3 -649
- package/dist/{shapeTypes-DoBHuzjo.cjs → shapeTypes-DhdxzErV.cjs} +131 -769
- package/dist/sketching.cjs +2 -2
- package/dist/sketching.js +2 -2
- package/dist/{solidBuilders-CJLijwcy.cjs → solidBuilders-QEzWeF-_.cjs} +3 -3
- package/dist/{solidBuilders-BIWD6a-a.js → solidBuilders-etpPzJCP.js} +3 -3
- package/dist/{surfaceBuilders-DpoOuVmz.cjs → surfaceBuilders-Bret7wF4.cjs} +3 -3
- package/dist/{surfaceBuilders-DewviEAb.js → surfaceBuilders-DyR1Pdu_.js} +3 -3
- package/dist/topology/booleanFns.d.ts.map +1 -1
- package/dist/topology.cjs +6 -6
- package/dist/topology.js +6 -6
- package/dist/vectors.cjs +3 -3
- package/dist/vectors.js +3 -3
- package/dist/worker.cjs +1 -1
- package/dist/worker.js +1 -1
- package/package.json +10 -10
- /package/dist/{arrayAccess-DsvS2R9t.cjs → arrayAccess-CmulMesb.cjs} +0 -0
- /package/dist/{arrayAccess-E7Lh-LcJ.js → arrayAccess-xxcB3YNq.js} +0 -0
- /package/dist/{errors-9zQcQK1H.cjs → errors-CXRNVCec.cjs} +0 -0
- /package/dist/{errors-C-cgQA3w.js → errors-DboJwVCf.js} +0 -0
- /package/dist/{types-ETLaP595.js → types-SLY3VwcI.js} +0 -0
- /package/dist/{types-TXQ7s56_.cjs → types-hXSlplF3.cjs} +0 -0
- /package/dist/{vecOps-EPq_YMgb.cjs → vecOps-BXvBYIor.cjs} +0 -0
- /package/dist/{vecOps-DaF0LUsD.js → vecOps-D9etjPgV.js} +0 -0
- /package/dist/{workerHandler-Dl5bx8Qj.cjs → workerHandler-C-7OUJsa.cjs} +0 -0
- /package/dist/{workerHandler-DHY0IzlP.js → workerHandler-o2xzAfFk.js} +0 -0
package/dist/2d.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
3
|
-
const require_errors = require("./errors-
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
5
|
-
const require_boolean2D = require("./boolean2D-
|
|
6
|
-
const require_blueprint = require("./blueprint-
|
|
7
|
-
const require_blueprintFns = require("./blueprintFns-
|
|
2
|
+
const require_shapeTypes = require("./shapeTypes-DhdxzErV.cjs");
|
|
3
|
+
const require_errors = require("./errors-CXRNVCec.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-D3Ge4FIP.cjs");
|
|
5
|
+
const require_boolean2D = require("./boolean2D-DIrXfRsK.cjs");
|
|
6
|
+
const require_blueprint = require("./blueprint-CjWjaFBx.cjs");
|
|
7
|
+
const require_blueprintFns = require("./blueprintFns-PEdKpSH9.cjs");
|
|
8
8
|
//#region src/core/curve2dHandle.ts
|
|
9
9
|
/**
|
|
10
10
|
* Wrap a raw kernel 2D curve handle with brand + disposal tracking.
|
package/dist/2d.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { B as createKernelHandle, Z as getKernel2D, a as createEdge } from "./shapeTypes-
|
|
2
|
-
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-
|
|
3
|
-
import { B as kernelCallRaw } from "./faceFns-
|
|
4
|
-
import { _ as Blueprints, a as fuseBlueprints, c as roundedRectangleBlueprint, g as CompoundBlueprint, h as organiseBlueprints, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-
|
|
5
|
-
import { _ as Curve2D, t as Blueprint, y as BoundingBox2d } from "./blueprint-
|
|
6
|
-
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, 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-
|
|
1
|
+
import { B as createKernelHandle, Z as getKernel2D, a as createEdge } from "./shapeTypes-Ct7hPC-B.js";
|
|
2
|
+
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DboJwVCf.js";
|
|
3
|
+
import { B as kernelCallRaw } from "./faceFns-B0abunWd.js";
|
|
4
|
+
import { _ as Blueprints, a as fuseBlueprints, c as roundedRectangleBlueprint, g as CompoundBlueprint, h as organiseBlueprints, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-rza7Dzie.js";
|
|
5
|
+
import { _ as Curve2D, t as Blueprint, y as BoundingBox2d } from "./blueprint-BOICL-YA.js";
|
|
6
|
+
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, 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-DIDr-6k3.js";
|
|
7
7
|
//#region src/core/curve2dHandle.ts
|
|
8
8
|
/**
|
|
9
9
|
* Wrap a raw kernel 2D curve handle with brand + disposal tracking.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { G as unregisterFromCleanup, U as registerForCleanup, X as getKernel, Z as getKernel2D, a as createEdge, u as createWire } from "./shapeTypes-
|
|
2
|
-
import { A as ok, R as unwrap, b as err, d as validationError, h as bug, n as computationError } from "./errors-
|
|
3
|
-
import { N as cast, m as uvCoordinates, n as faceCenter, p as uvBounds, r as faceGeomType } from "./faceFns-
|
|
4
|
-
import { i as DEG2RAD, o as RAD2DEG, r as toVec3 } from "./types-
|
|
5
|
-
import { r as makePlane } from "./planeOps-
|
|
6
|
-
import { f as getOrientation } from "./curveFns-
|
|
7
|
-
import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-
|
|
8
|
-
import { r as makeFace } from "./surfaceBuilders-
|
|
9
|
-
import { _ as samePoint, b as subtract2d, l as add2d, o as normalize2d, p as distance2d, t as getSingleFace, v as scalarMultiply2d } from "./helpers-
|
|
1
|
+
import { G as unregisterFromCleanup, U as registerForCleanup, X as getKernel, Z as getKernel2D, a as createEdge, u as createWire } from "./shapeTypes-Ct7hPC-B.js";
|
|
2
|
+
import { A as ok, R as unwrap, b as err, d as validationError, h as bug, n as computationError } from "./errors-DboJwVCf.js";
|
|
3
|
+
import { N as cast, m as uvCoordinates, n as faceCenter, p as uvBounds, r as faceGeomType } from "./faceFns-B0abunWd.js";
|
|
4
|
+
import { i as DEG2RAD, o as RAD2DEG, r as toVec3 } from "./types-SLY3VwcI.js";
|
|
5
|
+
import { r as makePlane } from "./planeOps-C94s53Ia.js";
|
|
6
|
+
import { f as getOrientation } from "./curveFns-ZfTMJwOX.js";
|
|
7
|
+
import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-xxcB3YNq.js";
|
|
8
|
+
import { r as makeFace } from "./surfaceBuilders-DyR1Pdu_.js";
|
|
9
|
+
import { _ as samePoint, b as subtract2d, l as add2d, o as normalize2d, p as distance2d, t as getSingleFace, v as scalarMultiply2d } from "./helpers-D4PQ7xhP.js";
|
|
10
10
|
//#region src/2d/lib/definitions.ts
|
|
11
11
|
/** Type guard that checks whether a value is a `Point2D`. */
|
|
12
12
|
function isPoint2D(point) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_errors = require("./errors-
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
4
|
-
const require_types = require("./types-
|
|
5
|
-
const require_planeOps = require("./planeOps-
|
|
6
|
-
const require_curveFns = require("./curveFns-
|
|
7
|
-
const require_arrayAccess = require("./arrayAccess-
|
|
8
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
9
|
-
const require_helpers = require("./helpers-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DhdxzErV.cjs");
|
|
2
|
+
const require_errors = require("./errors-CXRNVCec.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-D3Ge4FIP.cjs");
|
|
4
|
+
const require_types = require("./types-hXSlplF3.cjs");
|
|
5
|
+
const require_planeOps = require("./planeOps-DoTESDTM.cjs");
|
|
6
|
+
const require_curveFns = require("./curveFns-BAYdU9o3.cjs");
|
|
7
|
+
const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
|
|
8
|
+
const require_surfaceBuilders = require("./surfaceBuilders-Bret7wF4.cjs");
|
|
9
|
+
const require_helpers = require("./helpers-BKiwf-pE.cjs");
|
|
10
10
|
//#region src/2d/lib/definitions.ts
|
|
11
11
|
/** Type guard that checks whether a value is a `Point2D`. */
|
|
12
12
|
function isPoint2D(point) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-
|
|
2
|
-
import { g as CompoundBlueprint } from "./boolean2D-
|
|
3
|
-
import { t as Blueprint } from "./blueprint-
|
|
1
|
+
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DboJwVCf.js";
|
|
2
|
+
import { g as CompoundBlueprint } from "./boolean2D-rza7Dzie.js";
|
|
3
|
+
import { t as Blueprint } from "./blueprint-BOICL-YA.js";
|
|
4
4
|
//#region src/2d/lib/curve2dFns.ts
|
|
5
5
|
/**
|
|
6
6
|
* Return a reversed copy of the curve (non-mutating).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_errors = require("./errors-
|
|
2
|
-
const require_boolean2D = require("./boolean2D-
|
|
3
|
-
const require_blueprint = require("./blueprint-
|
|
1
|
+
const require_errors = require("./errors-CXRNVCec.cjs");
|
|
2
|
+
const require_boolean2D = require("./boolean2D-DIrXfRsK.cjs");
|
|
3
|
+
const require_blueprint = require("./blueprint-CjWjaFBx.cjs");
|
|
4
4
|
//#region src/2d/lib/curve2dFns.ts
|
|
5
5
|
/**
|
|
6
6
|
* Return a reversed copy of the curve (non-mutating).
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_errors = require("./errors-
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
4
|
-
const require_types = require("./types-
|
|
5
|
-
const require_vecOps = require("./vecOps-
|
|
6
|
-
const require_planeOps = require("./planeOps-
|
|
7
|
-
const require_curveFns = require("./curveFns-
|
|
8
|
-
const require_arrayAccess = require("./arrayAccess-
|
|
9
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
10
|
-
const require_helpers = require("./helpers-
|
|
11
|
-
const require_blueprint = require("./blueprint-
|
|
12
|
-
const require_extrudeFns = require("./extrudeFns-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DhdxzErV.cjs");
|
|
2
|
+
const require_errors = require("./errors-CXRNVCec.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-D3Ge4FIP.cjs");
|
|
4
|
+
const require_types = require("./types-hXSlplF3.cjs");
|
|
5
|
+
const require_vecOps = require("./vecOps-BXvBYIor.cjs");
|
|
6
|
+
const require_planeOps = require("./planeOps-DoTESDTM.cjs");
|
|
7
|
+
const require_curveFns = require("./curveFns-BAYdU9o3.cjs");
|
|
8
|
+
const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
|
|
9
|
+
const require_surfaceBuilders = require("./surfaceBuilders-Bret7wF4.cjs");
|
|
10
|
+
const require_helpers = require("./helpers-BKiwf-pE.cjs");
|
|
11
|
+
const require_blueprint = require("./blueprint-CjWjaFBx.cjs");
|
|
12
|
+
const require_extrudeFns = require("./extrudeFns-r4z8JjXR.cjs");
|
|
13
13
|
//#region node_modules/flatqueue/index.js
|
|
14
14
|
/** @template T */
|
|
15
15
|
var FlatQueue = class {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { R as DisposalScope, X as getKernel, Y as _usingCtx, Z as getKernel2D, a as createEdge, h as isShape3D, o as createFace, t as castShape, u as createWire } from "./shapeTypes-
|
|
2
|
-
import { A as ok, R as unwrap, T as isOk, b as err, d as validationError, h as bug, i as kernelError, l as typeCastError, n as computationError, s as safeIndex } from "./errors-
|
|
3
|
-
import { P as downcast, c as normalAt, p as uvBounds, u as pointOnSurface } from "./faceFns-
|
|
4
|
-
import { i as DEG2RAD, o as RAD2DEG, r as toVec3 } from "./types-
|
|
5
|
-
import { d as vecNormalize, h as vecScale, r as vecCross } from "./vecOps-
|
|
6
|
-
import { n as createPlane } from "./planeOps-
|
|
7
|
-
import { c as curveStartPoint, l as curveTangentAt, r as curveIsClosed } from "./curveFns-
|
|
8
|
-
import { r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-
|
|
9
|
-
import { _ as zip, i as makeNewFaceWithinFace, r as makeFace, s as assembleWire } from "./surfaceBuilders-
|
|
10
|
-
import { _ as samePoint$1, b as subtract2d, d as cartesianToPolar, f as crossProduct2d, g as rotate2d, h as polarToCartesian, l as add2d, m as polarAngle2d, o as normalize2d, p as distance2d, s as PRECISION_INTERSECTION, v as scalarMultiply2d } from "./helpers-
|
|
11
|
-
import { _ as Curve2D, b as removeDuplicatePoints, c as make2dCircle, f as make2dSegmentCurve, h as approximateAsBSpline, m as make2dThreePointArc, n as asSVG, o as make2dArcFromCenter, p as make2dTangentArc, r as viewbox, s as make2dBezierCurve, t as Blueprint, u as make2dEllipseArc, x as isPoint2D, y as BoundingBox2d } from "./blueprint-
|
|
12
|
-
import { c as sweep, i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-
|
|
1
|
+
import { R as DisposalScope, X as getKernel, Y as _usingCtx, Z as getKernel2D, a as createEdge, h as isShape3D, o as createFace, t as castShape, u as createWire } from "./shapeTypes-Ct7hPC-B.js";
|
|
2
|
+
import { A as ok, R as unwrap, T as isOk, b as err, d as validationError, h as bug, i as kernelError, l as typeCastError, n as computationError, s as safeIndex } from "./errors-DboJwVCf.js";
|
|
3
|
+
import { P as downcast, c as normalAt, p as uvBounds, u as pointOnSurface } from "./faceFns-B0abunWd.js";
|
|
4
|
+
import { i as DEG2RAD, o as RAD2DEG, r as toVec3 } from "./types-SLY3VwcI.js";
|
|
5
|
+
import { d as vecNormalize, h as vecScale, r as vecCross } from "./vecOps-D9etjPgV.js";
|
|
6
|
+
import { n as createPlane } from "./planeOps-C94s53Ia.js";
|
|
7
|
+
import { c as curveStartPoint, l as curveTangentAt, r as curveIsClosed } from "./curveFns-ZfTMJwOX.js";
|
|
8
|
+
import { r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-xxcB3YNq.js";
|
|
9
|
+
import { _ as zip, i as makeNewFaceWithinFace, r as makeFace, s as assembleWire } from "./surfaceBuilders-DyR1Pdu_.js";
|
|
10
|
+
import { _ as samePoint$1, b as subtract2d, d as cartesianToPolar, f as crossProduct2d, g as rotate2d, h as polarToCartesian, l as add2d, m as polarAngle2d, o as normalize2d, p as distance2d, s as PRECISION_INTERSECTION, v as scalarMultiply2d } from "./helpers-D4PQ7xhP.js";
|
|
11
|
+
import { _ as Curve2D, b as removeDuplicatePoints, c as make2dCircle, f as make2dSegmentCurve, h as approximateAsBSpline, m as make2dThreePointArc, n as asSVG, o as make2dArcFromCenter, p as make2dTangentArc, r as viewbox, s as make2dBezierCurve, t as Blueprint, u as make2dEllipseArc, x as isPoint2D, y as BoundingBox2d } from "./blueprint-BOICL-YA.js";
|
|
12
|
+
import { c as sweep, i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-BayH4aST.js";
|
|
13
13
|
//#region node_modules/flatqueue/index.js
|
|
14
14
|
/** @template T */
|
|
15
15
|
var FlatQueue = class {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_errors = require("./errors-
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
4
|
-
const require_types = require("./types-
|
|
5
|
-
const require_vecOps = require("./vecOps-
|
|
6
|
-
const require_planeOps = require("./planeOps-
|
|
7
|
-
const require_shapeFns = require("./shapeFns-
|
|
8
|
-
const require_arrayAccess = require("./arrayAccess-
|
|
9
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DhdxzErV.cjs");
|
|
2
|
+
const require_errors = require("./errors-CXRNVCec.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-D3Ge4FIP.cjs");
|
|
4
|
+
const require_types = require("./types-hXSlplF3.cjs");
|
|
5
|
+
const require_vecOps = require("./vecOps-BXvBYIor.cjs");
|
|
6
|
+
const require_planeOps = require("./planeOps-DoTESDTM.cjs");
|
|
7
|
+
const require_shapeFns = require("./shapeFns-DFey0u1e.cjs");
|
|
8
|
+
const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
|
|
9
|
+
const require_surfaceBuilders = require("./surfaceBuilders-Bret7wF4.cjs");
|
|
10
10
|
//#region src/topology/booleanFns.ts
|
|
11
11
|
/**
|
|
12
12
|
* Boolean and compound operations — functional replacements for _3DShape boolean methods.
|
|
@@ -54,8 +54,11 @@ function fuse(a, b, { optimisation = "none", simplify = false, signal, fuzzyValu
|
|
|
54
54
|
fuzzyValue
|
|
55
55
|
});
|
|
56
56
|
if (diagnostics.hasErrors) {
|
|
57
|
-
require_shapeTypes.getKernel().
|
|
58
|
-
|
|
57
|
+
if (require_shapeTypes.getKernel().isNull(resultShape)) {
|
|
58
|
+
require_shapeTypes.getKernel().dispose(resultShape);
|
|
59
|
+
return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.BOOLEAN_HAS_ERRORS, "Boolean operation reported internal errors and produced no result.", void 0, { diagnostics }, "Use checkBoolean() to pre-validate operands, or try autoHeal() on inputs."));
|
|
60
|
+
}
|
|
61
|
+
console.warn("brepjs: fuse reported OCCT warnings/errors but produced a shape. Continuing with result.", diagnostics);
|
|
59
62
|
}
|
|
60
63
|
const fuseResult = castToShape3D(resultShape, "FUSE_NOT_3D", "Fuse did not produce a 3D shape", "Common causes: overlapping coplanar faces, zero-thickness geometry, or non-manifold input. Try autoHeal() on inputs first.", diagnostics);
|
|
61
64
|
if (fuseResult.ok) require_shapeFns.propagateAllMetadata(evolution, [a, b], fuseResult.value);
|
|
@@ -79,8 +82,11 @@ function cut(base, tool, { optimisation = "none", simplify = false, signal, fuzz
|
|
|
79
82
|
fuzzyValue
|
|
80
83
|
});
|
|
81
84
|
if (diagnostics.hasErrors) {
|
|
82
|
-
require_shapeTypes.getKernel().
|
|
83
|
-
|
|
85
|
+
if (require_shapeTypes.getKernel().isNull(resultShape)) {
|
|
86
|
+
require_shapeTypes.getKernel().dispose(resultShape);
|
|
87
|
+
return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.BOOLEAN_HAS_ERRORS, "Boolean operation reported internal errors and produced no result.", void 0, { diagnostics }, "Use checkBoolean() to pre-validate operands, or try autoHeal() on inputs."));
|
|
88
|
+
}
|
|
89
|
+
console.warn("brepjs: cut reported OCCT warnings/errors but produced a shape. Continuing with result.", diagnostics);
|
|
84
90
|
}
|
|
85
91
|
const cutResult = castToShape3D(resultShape, "CUT_NOT_3D", "Cut did not produce a 3D shape", "Common causes: tool does not fully intersect the base, or produces a zero-thickness sliver. Ensure the tool extends through the shape.", diagnostics);
|
|
86
92
|
if (cutResult.ok) require_shapeFns.propagateAllMetadata(evolution, [base, tool], cutResult.value);
|
|
@@ -102,8 +108,11 @@ function intersect(a, b, { simplify = false, signal, fuzzyValue, unsafe: _unsafe
|
|
|
102
108
|
fuzzyValue
|
|
103
109
|
});
|
|
104
110
|
if (diagnostics.hasErrors) {
|
|
105
|
-
require_shapeTypes.getKernel().
|
|
106
|
-
|
|
111
|
+
if (require_shapeTypes.getKernel().isNull(resultShape)) {
|
|
112
|
+
require_shapeTypes.getKernel().dispose(resultShape);
|
|
113
|
+
return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.BOOLEAN_HAS_ERRORS, "Boolean operation reported internal errors and produced no result.", void 0, { diagnostics }, "Use checkBoolean() to pre-validate operands, or try autoHeal() on inputs."));
|
|
114
|
+
}
|
|
115
|
+
console.warn("brepjs: intersect reported OCCT warnings/errors but produced a shape. Continuing with result.", diagnostics);
|
|
107
116
|
}
|
|
108
117
|
const intResult = castToShape3D(resultShape, "INTERSECT_NOT_3D", "Intersect did not produce a 3D shape", "Shapes may not overlap. Verify they share a common volume before intersecting.", diagnostics);
|
|
109
118
|
if (intResult.ok) require_shapeFns.propagateAllMetadata(evolution, [a, b], intResult.value);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { X as getKernel, h as isShape3D, t as castShape } from "./shapeTypes-
|
|
2
|
-
import { A as ok, R as unwrap, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, w as isErr } from "./errors-
|
|
3
|
-
import { C as getVertices, b as getEdges, j as getOrQueryHashCode, w as getWires } from "./faceFns-
|
|
4
|
-
import { a as HASH_CODE_MAX } from "./types-
|
|
5
|
-
import { h as vecScale, t as vecAdd } from "./vecOps-
|
|
6
|
-
import { o as resolvePlane } from "./planeOps-
|
|
7
|
-
import { _ as propagateAllMetadata, g as collectInputFaceHashes, v as propagateMetadataByHash } from "./shapeFns-
|
|
8
|
-
import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-
|
|
9
|
-
import { r as makeFace } from "./surfaceBuilders-
|
|
1
|
+
import { X as getKernel, h as isShape3D, t as castShape } from "./shapeTypes-Ct7hPC-B.js";
|
|
2
|
+
import { A as ok, R as unwrap, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, w as isErr } from "./errors-DboJwVCf.js";
|
|
3
|
+
import { C as getVertices, b as getEdges, j as getOrQueryHashCode, w as getWires } from "./faceFns-B0abunWd.js";
|
|
4
|
+
import { a as HASH_CODE_MAX } from "./types-SLY3VwcI.js";
|
|
5
|
+
import { h as vecScale, t as vecAdd } from "./vecOps-D9etjPgV.js";
|
|
6
|
+
import { o as resolvePlane } from "./planeOps-C94s53Ia.js";
|
|
7
|
+
import { _ as propagateAllMetadata, g as collectInputFaceHashes, v as propagateMetadataByHash } from "./shapeFns-CU69rY5c.js";
|
|
8
|
+
import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-xxcB3YNq.js";
|
|
9
|
+
import { r as makeFace } from "./surfaceBuilders-DyR1Pdu_.js";
|
|
10
10
|
//#region src/topology/booleanFns.ts
|
|
11
11
|
/**
|
|
12
12
|
* Boolean and compound operations — functional replacements for _3DShape boolean methods.
|
|
@@ -54,8 +54,11 @@ function fuse(a, b, { optimisation = "none", simplify = false, signal, fuzzyValu
|
|
|
54
54
|
fuzzyValue
|
|
55
55
|
});
|
|
56
56
|
if (diagnostics.hasErrors) {
|
|
57
|
-
getKernel().
|
|
58
|
-
|
|
57
|
+
if (getKernel().isNull(resultShape)) {
|
|
58
|
+
getKernel().dispose(resultShape);
|
|
59
|
+
return err(kernelError(BrepErrorCode.BOOLEAN_HAS_ERRORS, "Boolean operation reported internal errors and produced no result.", void 0, { diagnostics }, "Use checkBoolean() to pre-validate operands, or try autoHeal() on inputs."));
|
|
60
|
+
}
|
|
61
|
+
console.warn("brepjs: fuse reported OCCT warnings/errors but produced a shape. Continuing with result.", diagnostics);
|
|
59
62
|
}
|
|
60
63
|
const fuseResult = castToShape3D(resultShape, "FUSE_NOT_3D", "Fuse did not produce a 3D shape", "Common causes: overlapping coplanar faces, zero-thickness geometry, or non-manifold input. Try autoHeal() on inputs first.", diagnostics);
|
|
61
64
|
if (fuseResult.ok) propagateAllMetadata(evolution, [a, b], fuseResult.value);
|
|
@@ -79,8 +82,11 @@ function cut(base, tool, { optimisation = "none", simplify = false, signal, fuzz
|
|
|
79
82
|
fuzzyValue
|
|
80
83
|
});
|
|
81
84
|
if (diagnostics.hasErrors) {
|
|
82
|
-
getKernel().
|
|
83
|
-
|
|
85
|
+
if (getKernel().isNull(resultShape)) {
|
|
86
|
+
getKernel().dispose(resultShape);
|
|
87
|
+
return err(kernelError(BrepErrorCode.BOOLEAN_HAS_ERRORS, "Boolean operation reported internal errors and produced no result.", void 0, { diagnostics }, "Use checkBoolean() to pre-validate operands, or try autoHeal() on inputs."));
|
|
88
|
+
}
|
|
89
|
+
console.warn("brepjs: cut reported OCCT warnings/errors but produced a shape. Continuing with result.", diagnostics);
|
|
84
90
|
}
|
|
85
91
|
const cutResult = castToShape3D(resultShape, "CUT_NOT_3D", "Cut did not produce a 3D shape", "Common causes: tool does not fully intersect the base, or produces a zero-thickness sliver. Ensure the tool extends through the shape.", diagnostics);
|
|
86
92
|
if (cutResult.ok) propagateAllMetadata(evolution, [base, tool], cutResult.value);
|
|
@@ -102,8 +108,11 @@ function intersect(a, b, { simplify = false, signal, fuzzyValue, unsafe: _unsafe
|
|
|
102
108
|
fuzzyValue
|
|
103
109
|
});
|
|
104
110
|
if (diagnostics.hasErrors) {
|
|
105
|
-
getKernel().
|
|
106
|
-
|
|
111
|
+
if (getKernel().isNull(resultShape)) {
|
|
112
|
+
getKernel().dispose(resultShape);
|
|
113
|
+
return err(kernelError(BrepErrorCode.BOOLEAN_HAS_ERRORS, "Boolean operation reported internal errors and produced no result.", void 0, { diagnostics }, "Use checkBoolean() to pre-validate operands, or try autoHeal() on inputs."));
|
|
114
|
+
}
|
|
115
|
+
console.warn("brepjs: intersect reported OCCT warnings/errors but produced a shape. Continuing with result.", diagnostics);
|
|
107
116
|
}
|
|
108
117
|
const intResult = castToShape3D(resultShape, "INTERSECT_NOT_3D", "Intersect did not produce a 3D shape", "Shapes may not overlap. Verify they share a common volume before intersecting.", diagnostics);
|
|
109
118
|
if (intResult.ok) propagateAllMetadata(evolution, [a, b], intResult.value);
|
package/dist/brepjs.cjs
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_drawFns = require("./drawFns-
|
|
3
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
2
|
+
const require_drawFns = require("./drawFns-Be2-GMV1.cjs");
|
|
3
|
+
const require_shapeTypes = require("./shapeTypes-DhdxzErV.cjs");
|
|
4
|
+
const require_occtWasmAdapter = require("./occtWasmAdapter-DYjViuTQ.cjs");
|
|
5
|
+
const require_errors = require("./errors-CXRNVCec.cjs");
|
|
6
|
+
const require_faceFns = require("./faceFns-D3Ge4FIP.cjs");
|
|
7
|
+
const require_types = require("./types-hXSlplF3.cjs");
|
|
8
|
+
const require_vecOps = require("./vecOps-BXvBYIor.cjs");
|
|
9
|
+
const require_planeOps = require("./planeOps-DoTESDTM.cjs");
|
|
10
|
+
const require_shapeFns = require("./shapeFns-DFey0u1e.cjs");
|
|
11
|
+
const require_curveFns = require("./curveFns-BAYdU9o3.cjs");
|
|
12
|
+
const require_meshFns = require("./meshFns-crHPkhoE.cjs");
|
|
13
|
+
const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
|
|
14
|
+
const require_surfaceBuilders = require("./surfaceBuilders-Bret7wF4.cjs");
|
|
15
|
+
const require_booleanFns = require("./booleanFns-BnuuzsmS.cjs");
|
|
16
|
+
const require_primitiveFns = require("./primitiveFns-D4h33-Zc.cjs");
|
|
17
|
+
const require_historyFns = require("./historyFns-DUIQaLVi.cjs");
|
|
18
|
+
const require_boolean2D = require("./boolean2D-DIrXfRsK.cjs");
|
|
19
|
+
const require_helpers = require("./helpers-BKiwf-pE.cjs");
|
|
20
|
+
const require_solidBuilders = require("./solidBuilders-QEzWeF-_.cjs");
|
|
21
|
+
const require_measureFns = require("./measureFns-CEBFLLb5.cjs");
|
|
22
|
+
const require_cornerFinder = require("./cornerFinder-lvtKN6D-.cjs");
|
|
23
|
+
const require_extrudeFns = require("./extrudeFns-r4z8JjXR.cjs");
|
|
24
|
+
const require_blueprintFns = require("./blueprintFns-PEdKpSH9.cjs");
|
|
25
|
+
const require_importFns = require("./importFns-C3q2BF1x.cjs");
|
|
26
|
+
const require_shapeRefFns = require("./shapeRefFns-KTeGJjhQ.cjs");
|
|
27
|
+
const require_workerHandler = require("./workerHandler-C-7OUJsa.cjs");
|
|
27
28
|
//#region src/topology/shapeBooleans.ts
|
|
28
29
|
var BOPAlgo_GlueShift = 1;
|
|
29
30
|
var BOPAlgo_GlueFull = 2;
|
|
@@ -2768,6 +2769,7 @@ exports.DEG2RAD = require_types.DEG2RAD;
|
|
|
2768
2769
|
exports.DisposalScope = require_shapeTypes.DisposalScope;
|
|
2769
2770
|
exports.HASH_CODE_MAX = require_types.HASH_CODE_MAX;
|
|
2770
2771
|
exports.OK = require_errors.OK;
|
|
2772
|
+
exports.OcctWasmAdapter = require_occtWasmAdapter.OcctWasmAdapter;
|
|
2771
2773
|
exports.RAD2DEG = require_types.RAD2DEG;
|
|
2772
2774
|
exports.Sketch = require_boolean2D.Sketch;
|
|
2773
2775
|
exports.Sketches = require_drawFns.Sketches;
|
package/dist/brepjs.js
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { $ as initFromOC, A as planarWire, B as createKernelHandle, C as isOrientedFace, D as manifoldShell, E as isValidSolid, F as as3D, H as isLive, I as is2D, J as withScopeResultAsync, K as withScope, L as is3D, M as getShapeKind, O as orientedFace, P as as2D, Q as init, R as DisposalScope, S as isManifoldShell, T as isPlanarWire, V as getDisposalStats, W as resetDisposalStats, X as getKernel, _ as isSolid, a as createEdge, at as BrepkitAdapter, b as closedWire, c as createSolid, d as isCompound, et as prewarm, f as isEdge, g as isShell, h as isShape3D, i as createCompound, it as supportsProjection, j as validSolid, k as planarFace, l as createVertex, m as isShape1D, n as castShape3D, nt as withKernel, o as createFace, ot as getPerformanceStats, p as isFace, q as withScopeResult, rt as supportsConstraintSketch, s as createShell, st as resetPerformanceStats, t as castShape, tt as registerKernel, u as createWire, v as isVertex, w as isPlanarFace, x as isClosedWire, y as isWire, z as createHandle } from "./shapeTypes-
|
|
2
|
-
import {
|
|
3
|
-
import { A as
|
|
4
|
-
import { a as
|
|
5
|
-
import { a as
|
|
6
|
-
import { i as
|
|
7
|
-
import {
|
|
8
|
-
import { a as
|
|
9
|
-
import { a as
|
|
10
|
-
import { n as
|
|
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 {
|
|
23
|
-
import { a as
|
|
24
|
-
import { a as
|
|
25
|
-
import { a as
|
|
1
|
+
import { $ as initFromOC, A as planarWire, B as createKernelHandle, C as isOrientedFace, D as manifoldShell, E as isValidSolid, F as as3D, H as isLive, I as is2D, J as withScopeResultAsync, K as withScope, L as is3D, M as getShapeKind, O as orientedFace, P as as2D, Q as init, R as DisposalScope, S as isManifoldShell, T as isPlanarWire, V as getDisposalStats, W as resetDisposalStats, X as getKernel, _ as isSolid, a as createEdge, at as BrepkitAdapter, b as closedWire, c as createSolid, d as isCompound, et as prewarm, f as isEdge, g as isShell, h as isShape3D, i as createCompound, it as supportsProjection, j as validSolid, k as planarFace, l as createVertex, m as isShape1D, n as castShape3D, nt as withKernel, o as createFace, ot as getPerformanceStats, p as isFace, q as withScopeResult, rt as supportsConstraintSketch, s as createShell, st as resetPerformanceStats, t as castShape, tt as registerKernel, u as createWire, v as isVertex, w as isPlanarFace, x as isClosedWire, y as isWire, z as createHandle } from "./shapeTypes-Ct7hPC-B.js";
|
|
2
|
+
import { t as OcctWasmAdapter } from "./occtWasmAdapter-B8K7kN7m.js";
|
|
3
|
+
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-DboJwVCf.js";
|
|
4
|
+
import { A as vertexPosition, B as kernelCallRaw, C as getVertices, D as iterFaces, E as iterEdges, F as fromBREP, I as isCompSolid, L as iterTopo, M as asTopo, N as cast, O as iterVertices, P as downcast, R as shapeType, T as invalidateShapeCache, V as kernelCallScoped, a as flipFaceOrientation, b as getEdges, c as normalAt, d as projectPointOnFace, f as removeHolesFromFace, g as getBounds, h as describe$1, i as faceOrientation, k as iterWires, 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, w as getWires, x as getFaces, y as getCachedSurfaceType, z as kernelCall } from "./faceFns-B0abunWd.js";
|
|
5
|
+
import { a as HASH_CODE_MAX, i as DEG2RAD, n as toVec2, o as RAD2DEG, r as toVec3, t as resolveDirection } from "./types-SLY3VwcI.js";
|
|
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-C94s53Ia.js";
|
|
8
|
+
import { C as findFacesByTag, D as tagFaces, E as setTagMetadata, O as getFaceOrigins, S as getShapeColor, T as getTagMetadata, a as isSameShape, b as colorShape, c as applyMatrix$1, d as resize, f as rotate$1, h as translate$1, i as isEqualShape, 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 } from "./shapeFns-CU69rY5c.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-ZfTMJwOX.js";
|
|
10
|
+
import { a as meshEdges$1, c as createMeshCache, i as mesh$1, n as exportSTEP, o as meshMultiLOD, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-Df6b-fuz.js";
|
|
11
|
+
import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-xxcB3YNq.js";
|
|
12
|
+
import { n as fill, r as makeFace } from "./surfaceBuilders-DyR1Pdu_.js";
|
|
13
|
+
import { a as fuseAll, c as sectionToFace$1, i as fuse$1, l as slice$1, n as cut$1, o as intersect$1, r as cutAll, s as section$1, t as booleanPipeline, u as split$1 } from "./booleanFns-CrxLrhiY.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 toLODGeometryData, 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, ut as toLineGeometryData, v as sewShells, w as torus, x as subFace, y as solid, z as fillet$1 } from "./primitiveFns-BpSN8ikw.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-BoRzKlCs.js";
|
|
16
|
+
import { a as fuseBlueprints, c as roundedRectangleBlueprint, f as Sketch, h as organiseBlueprints, i as cutBlueprints, m as loftAll, n as fuse2D, o as intersectBlueprints, p as loft$1, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-rza7Dzie.js";
|
|
17
|
+
import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-D4PQ7xhP.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-DecOOibJ.js";
|
|
19
|
+
import { r as makeCylinder } from "./solidBuilders-etpPzJCP.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-_58_x_YA.js";
|
|
21
|
+
import { t as cornerFinder } from "./cornerFinder-BqBKxpw9.js";
|
|
22
|
+
import { a as guidedSweep, c as sweep, i as complexExtrude, l as twistExtrude, n as extrudeAll, o as multiSectionSweep, r as revolve$1, s as supportExtrude, t as extrude$1 } from "./extrudeFns-BayH4aST.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-DIDr-6k3.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-BUO0pwJ6.js";
|
|
25
|
+
import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-BXfiUUBm.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";
|
|
26
27
|
//#region \0rolldown/runtime.js
|
|
27
28
|
var __defProp = Object.defineProperty;
|
|
28
29
|
var __exportAll = (all, no_symbols) => {
|
|
@@ -2762,4 +2763,4 @@ var patterns_exports = /* @__PURE__ */ __exportAll({
|
|
|
2762
2763
|
linearPattern: () => linearPattern
|
|
2763
2764
|
});
|
|
2764
2765
|
//#endregion
|
|
2765
|
-
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, booleanPipeline, 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, extrudeAll, 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, getPerformanceStats, 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, loftAll, makeBaseBox, makePlane, makeProjectedEdges, manifoldShell, map, mapBoth, mapErr, match, measureArea, measureCurvatureAt, measureCurvatureAtMid, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps, measurement_exports as measurement, mesh, meshEdges, meshMultiLOD, 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, resetPerformanceStats, 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, toLODGeometryData, 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 };
|
|
2766
|
+
export { BrepBugError, BrepErrorCode, BrepWrapperError, BrepkitAdapter, CompoundSketch, DEG2RAD, DisposalScope, HASH_CODE_MAX, OK, OcctWasmAdapter, RAD2DEG, Sketch, Sketches, addChild, addHoles, addMate, addStep, adjacentFaces, all, andThen, applyGlue, applyMatrix, approximateCurve, as2D, as3D, asTopo, assignRoles, autoHeal, bezier, blueprintToDXF, booleanPipeline, 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, extrudeAll, 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, getPerformanceStats, 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, loftAll, makeBaseBox, makePlane, makeProjectedEdges, manifoldShell, map, mapBoth, mapErr, match, measureArea, measureCurvatureAt, measureCurvatureAtMid, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps, measurement_exports as measurement, mesh, meshEdges, meshMultiLOD, 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, resetPerformanceStats, 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, toLODGeometryData, 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 };
|
package/dist/core.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
3
|
-
const require_errors = require("./errors-
|
|
4
|
-
const require_types = require("./types-
|
|
5
|
-
const require_vecOps = require("./vecOps-
|
|
6
|
-
const require_planeOps = require("./planeOps-
|
|
2
|
+
const require_shapeTypes = require("./shapeTypes-DhdxzErV.cjs");
|
|
3
|
+
const require_errors = require("./errors-CXRNVCec.cjs");
|
|
4
|
+
const require_types = require("./types-hXSlplF3.cjs");
|
|
5
|
+
const require_vecOps = require("./vecOps-BXvBYIor.cjs");
|
|
6
|
+
const require_planeOps = require("./planeOps-DoTESDTM.cjs");
|
|
7
7
|
exports.BrepBugError = require_errors.BrepBugError;
|
|
8
8
|
exports.DEG2RAD = require_types.DEG2RAD;
|
|
9
9
|
exports.DisposalScope = require_shapeTypes.DisposalScope;
|
package/dist/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as createKernelHandle, C as isOrientedFace, D as manifoldShell, E as isValidSolid, H as isLive, I as is2D, J as withScopeResultAsync, K as withScope, L as is3D, M as getShapeKind, O as orientedFace, R as DisposalScope, S as isManifoldShell, _ 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 withScopeResult, t as castShape, v as isVertex, x as isClosedWire, y as isWire, z as createHandle } from "./shapeTypes-
|
|
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-
|
|
3
|
-
import { a as HASH_CODE_MAX, i as DEG2RAD, n as toVec2, o as RAD2DEG, r as toVec3, t as resolveDirection } from "./types-
|
|
4
|
-
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-
|
|
5
|
-
import { i as pivotPlane, n as createPlane, o as resolvePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-
|
|
1
|
+
import { B as createKernelHandle, C as isOrientedFace, D as manifoldShell, E as isValidSolid, H as isLive, I as is2D, J as withScopeResultAsync, K as withScope, L as is3D, M as getShapeKind, O as orientedFace, R as DisposalScope, S as isManifoldShell, _ 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 withScopeResult, t as castShape, v as isVertex, x as isClosedWire, y as isWire, z as createHandle } from "./shapeTypes-Ct7hPC-B.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-DboJwVCf.js";
|
|
3
|
+
import { a as HASH_CODE_MAX, i as DEG2RAD, n as toVec2, o as RAD2DEG, r as toVec3, t as resolveDirection } from "./types-SLY3VwcI.js";
|
|
4
|
+
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";
|
|
5
|
+
import { i as pivotPlane, n as createPlane, o as resolvePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-C94s53Ia.js";
|
|
6
6
|
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 { i as DEG2RAD } from "./types-
|
|
2
|
-
import { n as getAtOrThrow } from "./arrayAccess-
|
|
3
|
-
import { _ as samePoint, p as distance2d, u as angle2d } from "./helpers-
|
|
1
|
+
import { i as DEG2RAD } from "./types-SLY3VwcI.js";
|
|
2
|
+
import { n as getAtOrThrow } from "./arrayAccess-xxcB3YNq.js";
|
|
3
|
+
import { _ as samePoint, p as distance2d, u as angle2d } from "./helpers-D4PQ7xhP.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 require_types = require("./types-
|
|
2
|
-
const require_arrayAccess = require("./arrayAccess-
|
|
3
|
-
const require_helpers = require("./helpers-
|
|
1
|
+
const require_types = require("./types-hXSlplF3.cjs");
|
|
2
|
+
const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
|
|
3
|
+
const require_helpers = require("./helpers-BKiwf-pE.cjs");
|
|
4
4
|
//#region src/query/cornerFinder.ts
|
|
5
5
|
var PI_2 = 2 * Math.PI;
|
|
6
6
|
function positiveHalfAngle(angle) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_errors = require("./errors-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DhdxzErV.cjs");
|
|
2
|
+
const require_errors = require("./errors-CXRNVCec.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 { X as getKernel, f as isEdge, t as castShape, y as isWire } from "./shapeTypes-
|
|
2
|
-
import { A as ok, b as err, l as typeCastError } from "./errors-
|
|
1
|
+
import { X as getKernel, f as isEdge, t as castShape, y as isWire } from "./shapeTypes-Ct7hPC-B.js";
|
|
2
|
+
import { A as ok, b as err, l as typeCastError } from "./errors-DboJwVCf.js";
|
|
3
3
|
//#region src/topology/curveFns.ts
|
|
4
4
|
/**
|
|
5
5
|
* Curve and 1D shape functions — functional replacements for _1DShape/Curve methods.
|