brepjs 18.118.19 → 18.118.21
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 +7 -7
- package/dist/2d.js +7 -7
- package/dist/{adjacencyFns-CA3Etyxq.js → adjacencyFns-Dgsl8VJ2.js} +27 -2
- package/dist/{adjacencyFns-Ds3HCvKX.cjs → adjacencyFns-h7eAxaRD.cjs} +27 -2
- package/dist/{blueprint-0DxFJgG3.js → blueprint-CwQmYoR4.js} +8 -8
- package/dist/{blueprint-BbWSvB5F.cjs → blueprint-DG-2uqNB.cjs} +19 -19
- package/dist/{blueprintFns-BaUv-Wlq.cjs → blueprintFns-FAuYTbQQ.cjs} +3 -3
- package/dist/{blueprintFns-cG_DFd8M.js → blueprintFns-aCrK18ZR.js} +3 -3
- package/dist/{blueprintSketcher-Cgz3qJx2.js → blueprintSketcher-VvIRL3M8.js} +5 -5
- package/dist/{blueprintSketcher-DKbyT3MJ.cjs → blueprintSketcher-k5dNnvzs.cjs} +21 -21
- package/dist/{boolean2D-B1WZsDzl.cjs → boolean2D-BmkwzUgt.cjs} +17 -17
- package/dist/{boolean2D-BgAUsrkF.js → boolean2D-qYYFeLWX.js} +6 -6
- package/dist/brepjs.cjs +35 -35
- package/dist/brepjs.js +29 -29
- package/dist/bug-BdOHwn_e.js +47 -0
- package/dist/{vec3-CFwOI0ZI.cjs → bug-O02CsAmt.cjs} +34 -0
- package/dist/{cameraFns-DIPrieGu.cjs → cameraFns-BZMHFbh9.cjs} +4 -4
- package/dist/{cameraFns-DdyBVRGK.js → cameraFns-CYU4C4N6.js} +4 -4
- package/dist/core.cjs +6 -5
- package/dist/core.js +4 -3
- package/dist/{cornerFinder-DxAdJ27L.cjs → cornerFinder-BEiSjmuO.cjs} +1 -1
- package/dist/{cornerFinder-Bz4GBpuu.js → cornerFinder-DhOm0L8g.js} +1 -1
- package/dist/{curveFns-Lkb1QlRl.js → curveFns-SNQ04JW6.js} +2 -2
- package/dist/{curveFns-_f5x9L6D.cjs → curveFns-YN8_CsqU.cjs} +2 -2
- package/dist/{drawFns-DrrUmioW.js → drawFns-8zxP0gC5.js} +15 -15
- package/dist/{drawFns-BL6RRjT0.cjs → drawFns-Dqsv_t37.cjs} +34 -34
- package/dist/{errors-DNWJsfVU.js → errors-B3CDG537.js} +2 -24
- package/dist/{errors-CXJtc4I7.cjs → errors-CJU8CHng.cjs} +3 -37
- package/dist/{faceFns-BapYNAxj.cjs → faceFns-C0SwZInk.cjs} +3 -3
- package/dist/{faceFns-CgTNP9kU.js → faceFns-CCu9ULQm.js} +3 -3
- package/dist/{healingFns-8zD9gHRr.cjs → healingFns-Bbl5KTIh.cjs} +6 -6
- package/dist/{healingFns-Bp8ixSdr.js → healingFns-D6Bizorp.js} +6 -6
- package/dist/{helpers-DGAx5Y2e.js → helpers-By-BruMN.js} +8 -7
- package/dist/{helpers-DARRNSnZ.cjs → helpers-Cv-lOGsc.cjs} +9 -8
- package/dist/{importFns-B8VrggoW.cjs → importFns-6eFs1L_G.cjs} +10 -10
- package/dist/{importFns-D8kNKBaP.js → importFns-Bcza0b4Y.js} +4 -4
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.d.ts +5 -2
- package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
- package/dist/kernel/occtWasm/occtWasmTypes.d.ts +4 -0
- package/dist/kernel/unsupported.d.ts +14 -0
- package/dist/{loftFns-DTJrpzK7.cjs → loftFns-Bbe5jRA-.cjs} +2 -2
- package/dist/{loftFns-CSdcxPhe.js → loftFns-DEReccFa.js} +2 -2
- package/dist/{measureFns-Pv782Tb2.js → measureFns-DHj5Z-5c.js} +4 -4
- package/dist/{measureFns-DBBUqf_V.cjs → measureFns-DMzw5wf0.cjs} +4 -4
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-CP_Gg9j9.cjs → meshFns-B9pPcwuD.cjs} +4 -4
- package/dist/{meshFns-CYFz0R29.js → meshFns-C2nLgSf2.js} +4 -4
- package/dist/{occtWasmAdapter-BgmRCYeD.js → occtWasmAdapter-5_6aHhcD.js} +43 -9
- package/dist/{occtWasmAdapter-CWX5KCl8.cjs → occtWasmAdapter-CIxwUim8.cjs} +56 -10
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{planeOps-DSjjtrjg.js → planeOps-Cp6GQ23-.js} +1 -1
- package/dist/{planeOps-BA4HfgQu.cjs → planeOps-Cr25KWWA.cjs} +1 -1
- package/dist/{primitiveFns-cAodLWtw.js → primitiveFns-D2zyQa3w.js} +5 -5
- package/dist/{primitiveFns-BhfCCIWH.cjs → primitiveFns-DZXN7qDb.cjs} +5 -5
- package/dist/projection.cjs +1 -1
- package/dist/projection.js +1 -1
- package/dist/query.cjs +2 -2
- package/dist/query.js +2 -2
- package/dist/{refResolveFns-BF9Ag5ch.cjs → refResolveFns-CHm7tsm2.cjs} +6 -6
- package/dist/{refResolveFns-B7ixHjFn.js → refResolveFns-C_mHlM8R.js} +6 -6
- package/dist/result.cjs +4 -3
- package/dist/result.js +2 -1
- package/dist/{shapeFns-ey7LN7Bu.js → shapeFns-BakfS4c9.js} +3 -3
- package/dist/{shapeFns-DGEpliyN.cjs → shapeFns-DzXcfZHY.cjs} +3 -3
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeTypes-B1YVA0wM.js → shapeTypes-B5bBKbg9.js} +9 -9
- package/dist/{shapeTypes-DXLJEolb.cjs → shapeTypes-BfOb9vzc.cjs} +183 -183
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-CbdRC65U.cjs → solidBuilders-BgrXN-GP.cjs} +7 -7
- package/dist/{solidBuilders-Dzd09AEk.js → solidBuilders-DaTgm_Wj.js} +7 -7
- package/dist/{surfaceBuilders-DISUSNgU.js → surfaceBuilders-BdUP_OXk.js} +3 -3
- package/dist/{surfaceBuilders-M_S5pGJi.cjs → surfaceBuilders-CUNhA_3a.cjs} +3 -3
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-BNR8zfrZ.cjs → textBlueprints--5GSuYEm.cjs} +19 -18
- package/dist/{textBlueprints-BlN1vCZ2.js → textBlueprints-C_JaAGiG.js} +10 -9
- package/dist/{textMetrics-BcgFzxJW.js → textMetrics-829YpBdN.js} +2 -2
- package/dist/{textMetrics-kUZVQtvY.cjs → textMetrics-CyJlakdR.cjs} +2 -2
- package/dist/{threadFns-VuImNUwV.cjs → threadFns-BBELmTZv.cjs} +8 -8
- package/dist/{threadFns-CU9bwc38.js → threadFns-H0mRmS6I.js} +8 -8
- package/dist/topology/adjacencyFns.d.ts +4 -0
- package/dist/topology.cjs +9 -9
- package/dist/topology.js +9 -9
- package/dist/{topologyQueryFns-DQmiyVS8.js → topologyQueryFns-MAUFbsSp.js} +2 -2
- package/dist/{topologyQueryFns-WesEKd3r.cjs → topologyQueryFns-tns6VXoD.cjs} +2 -2
- package/dist/vectors.cjs +1 -1
- package/dist/vectors.js +1 -1
- package/package.json +1 -1
- package/dist/vec3-Dpha8d5k.js +0 -25
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { St as qualityDeflection, rt as getKernel } from "./shapeTypes-
|
|
2
|
-
import {
|
|
3
|
-
import { d as getSolids, n as getBounds } from "./topologyQueryFns-
|
|
4
|
-
import { j as getFaceOrigins } from "./shapeFns-
|
|
1
|
+
import { St as qualityDeflection, rt as getKernel } from "./shapeTypes-B5bBKbg9.js";
|
|
2
|
+
import { O as ok, r as ioError, v as err } from "./errors-B3CDG537.js";
|
|
3
|
+
import { d as getSolids, n as getBounds } from "./topologyQueryFns-MAUFbsSp.js";
|
|
4
|
+
import { j as getFaceOrigins } from "./shapeFns-BakfS4c9.js";
|
|
5
5
|
//#region src/topology/meshCache.ts
|
|
6
6
|
/**
|
|
7
7
|
* Build a parameter key for the inner cache map (excludes shape identity).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as wasmIndex, t as BrepBugError } from "./bug-BdOHwn_e.js";
|
|
2
2
|
//#region src/kernel/capabilities.ts
|
|
3
3
|
/** Default for an exact B-rep kernel (OCCT family, brepkit). */
|
|
4
4
|
var EXACT_BREP_CAPABILITIES = {
|
|
@@ -19,6 +19,29 @@ var DEFAULT_CAPABILITIES = {
|
|
|
19
19
|
tessellationModel: "none"
|
|
20
20
|
};
|
|
21
21
|
//#endregion
|
|
22
|
+
//#region src/kernel/unsupported.ts
|
|
23
|
+
/**
|
|
24
|
+
* Shared error for "this kernel doesn't implement this operation" — a stubbed
|
|
25
|
+
* adapter method (occt's brepkit-only stubs, occt-wasm's not-yet-implemented) or
|
|
26
|
+
* a manifold op that needs an absent occt replay. Feature-detection recognises it
|
|
27
|
+
* structurally via {@link isUnsupportedKernelOperationError} instead of matching
|
|
28
|
+
* each adapter's message text, so a native-vs-fallback probe stays decoupled from
|
|
29
|
+
* wording. Adapters keep their existing messages; this only adds the marker.
|
|
30
|
+
*/
|
|
31
|
+
var UNSUPPORTED_MARKER = Symbol.for("brepjs.kernel.unsupportedOperation");
|
|
32
|
+
/** Thrown by a kernel adapter asked to perform an operation it doesn't support. */
|
|
33
|
+
var UnsupportedKernelOperationError = class extends Error {
|
|
34
|
+
constructor(message) {
|
|
35
|
+
super(message);
|
|
36
|
+
this.name = "UnsupportedKernelOperationError";
|
|
37
|
+
Object.defineProperty(this, UNSUPPORTED_MARKER, { value: true });
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
/** True if `error` is an {@link UnsupportedKernelOperationError} from any kernel adapter. */
|
|
41
|
+
function isUnsupportedKernelOperationError(error) {
|
|
42
|
+
return error instanceof Error && Reflect.get(error, UNSUPPORTED_MARKER) === true;
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
22
45
|
//#region src/kernel/hullGeometry.ts
|
|
23
46
|
function sub(a, b) {
|
|
24
47
|
return {
|
|
@@ -4562,7 +4585,7 @@ function hull(k, Module, shapes, tolerance) {
|
|
|
4562
4585
|
* for modified and generated, and a flat vector of deleted input hashes.
|
|
4563
4586
|
*/
|
|
4564
4587
|
function notImplemented(method) {
|
|
4565
|
-
throw new
|
|
4588
|
+
throw new UnsupportedKernelOperationError(`occt-wasm: ${method} is not yet implemented`);
|
|
4566
4589
|
}
|
|
4567
4590
|
var OcctWasmAdapter = class OcctWasmAdapter {
|
|
4568
4591
|
oc;
|
|
@@ -4599,17 +4622,28 @@ var OcctWasmAdapter = class OcctWasmAdapter {
|
|
|
4599
4622
|
executeBatch(_json) {
|
|
4600
4623
|
notImplemented("executeBatch");
|
|
4601
4624
|
}
|
|
4625
|
+
openCheckpoints = [];
|
|
4602
4626
|
checkpoint() {
|
|
4603
|
-
|
|
4627
|
+
const mark = this.k.checkpoint();
|
|
4628
|
+
this.openCheckpoints.push(mark);
|
|
4629
|
+
return mark;
|
|
4604
4630
|
}
|
|
4605
4631
|
checkpointCount() {
|
|
4606
|
-
|
|
4632
|
+
return this.openCheckpoints.length;
|
|
4633
|
+
}
|
|
4634
|
+
restoreCheckpoint(cp) {
|
|
4635
|
+
const idx = this.openCheckpoints.lastIndexOf(cp);
|
|
4636
|
+
if (idx === -1) throw new BrepBugError("occtWasmAdapter.restoreCheckpoint", `checkpoint ${cp} is not open — releaseSince would erase unrelated live handles`);
|
|
4637
|
+
this.k.releaseSince(cp);
|
|
4638
|
+
this.openCheckpoints.length = idx;
|
|
4607
4639
|
}
|
|
4608
|
-
|
|
4609
|
-
|
|
4640
|
+
discardCheckpoint(cp) {
|
|
4641
|
+
this.closeCheckpoint(cp);
|
|
4610
4642
|
}
|
|
4611
|
-
|
|
4612
|
-
|
|
4643
|
+
/** Drop `cp` and any marks nested inside it (LIFO), so the depth stays honest. */
|
|
4644
|
+
closeCheckpoint(cp) {
|
|
4645
|
+
const idx = this.openCheckpoints.lastIndexOf(cp);
|
|
4646
|
+
if (idx !== -1) this.openCheckpoints.length = idx;
|
|
4613
4647
|
}
|
|
4614
4648
|
makeBox(width, height, depth) {
|
|
4615
4649
|
return makeBox(this.k, width, height, depth);
|
|
@@ -5382,4 +5416,4 @@ var OcctWasmAdapter = class OcctWasmAdapter {
|
|
|
5382
5416
|
}
|
|
5383
5417
|
};
|
|
5384
5418
|
//#endregion
|
|
5385
|
-
export { serializeCurve2d$1 as C,
|
|
5419
|
+
export { EXACT_BREP_CAPABILITIES as A, serializeCurve2d$1 as C, UnsupportedKernelOperationError as D, quickHull as E, isUnsupportedKernelOperationError as O, scaleCurve2d$1 as S, translateCurve2d$1 as T, makeEllipse2d$1 as _, buildBinarySTL as a, mirrorAtPoint as b, curveBounds as c, evaluateCurve2d$1 as d, intersectCurves2dFn as f, makeCircle2d$1 as g, makeBezier2d$1 as h, buildAsciiSTL as i, DEFAULT_CAPABILITIES as k, curveTypeName as l, makeArc2dThreePoints$1 as m, DEFAULT_STL_ANGULAR_TOLERANCE as n, addCurveToBBox as o, makeArc2dTangent$1 as p, DEFAULT_STL_TOLERANCE as r, createBBox2d as s, OcctWasmAdapter as t, deserializeCurve2d$1 as u, makeLine2d$1 as v, tangentCurve2d as w, rotateCurve2d$1 as x, mirrorAcrossAxis as y };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_bug = require("./bug-O02CsAmt.cjs");
|
|
2
2
|
//#region src/kernel/capabilities.ts
|
|
3
3
|
/** Default for an exact B-rep kernel (OCCT family, brepkit). */
|
|
4
4
|
var EXACT_BREP_CAPABILITIES = {
|
|
@@ -19,6 +19,29 @@ var DEFAULT_CAPABILITIES = {
|
|
|
19
19
|
tessellationModel: "none"
|
|
20
20
|
};
|
|
21
21
|
//#endregion
|
|
22
|
+
//#region src/kernel/unsupported.ts
|
|
23
|
+
/**
|
|
24
|
+
* Shared error for "this kernel doesn't implement this operation" — a stubbed
|
|
25
|
+
* adapter method (occt's brepkit-only stubs, occt-wasm's not-yet-implemented) or
|
|
26
|
+
* a manifold op that needs an absent occt replay. Feature-detection recognises it
|
|
27
|
+
* structurally via {@link isUnsupportedKernelOperationError} instead of matching
|
|
28
|
+
* each adapter's message text, so a native-vs-fallback probe stays decoupled from
|
|
29
|
+
* wording. Adapters keep their existing messages; this only adds the marker.
|
|
30
|
+
*/
|
|
31
|
+
var UNSUPPORTED_MARKER = Symbol.for("brepjs.kernel.unsupportedOperation");
|
|
32
|
+
/** Thrown by a kernel adapter asked to perform an operation it doesn't support. */
|
|
33
|
+
var UnsupportedKernelOperationError = class extends Error {
|
|
34
|
+
constructor(message) {
|
|
35
|
+
super(message);
|
|
36
|
+
this.name = "UnsupportedKernelOperationError";
|
|
37
|
+
Object.defineProperty(this, UNSUPPORTED_MARKER, { value: true });
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
/** True if `error` is an {@link UnsupportedKernelOperationError} from any kernel adapter. */
|
|
41
|
+
function isUnsupportedKernelOperationError(error) {
|
|
42
|
+
return error instanceof Error && Reflect.get(error, UNSUPPORTED_MARKER) === true;
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
22
45
|
//#region src/kernel/hullGeometry.ts
|
|
23
46
|
function sub(a, b) {
|
|
24
47
|
return {
|
|
@@ -1535,8 +1558,8 @@ function edgeToFaceMap(k, shape) {
|
|
|
1535
1558
|
}
|
|
1536
1559
|
const map = {};
|
|
1537
1560
|
for (let i = 0; i + 1 < data.length; i += 2) {
|
|
1538
|
-
const edgeHash =
|
|
1539
|
-
const faceHash =
|
|
1561
|
+
const edgeHash = require_bug.wasmIndex(data, i);
|
|
1562
|
+
const faceHash = require_bug.wasmIndex(data, i + 1);
|
|
1540
1563
|
if (!map[edgeHash]) map[edgeHash] = [];
|
|
1541
1564
|
map[edgeHash].push(faceHash);
|
|
1542
1565
|
}
|
|
@@ -4562,7 +4585,7 @@ function hull(k, Module, shapes, tolerance) {
|
|
|
4562
4585
|
* for modified and generated, and a flat vector of deleted input hashes.
|
|
4563
4586
|
*/
|
|
4564
4587
|
function notImplemented(method) {
|
|
4565
|
-
throw new
|
|
4588
|
+
throw new UnsupportedKernelOperationError(`occt-wasm: ${method} is not yet implemented`);
|
|
4566
4589
|
}
|
|
4567
4590
|
var OcctWasmAdapter = class OcctWasmAdapter {
|
|
4568
4591
|
oc;
|
|
@@ -4599,17 +4622,28 @@ var OcctWasmAdapter = class OcctWasmAdapter {
|
|
|
4599
4622
|
executeBatch(_json) {
|
|
4600
4623
|
notImplemented("executeBatch");
|
|
4601
4624
|
}
|
|
4625
|
+
openCheckpoints = [];
|
|
4602
4626
|
checkpoint() {
|
|
4603
|
-
|
|
4627
|
+
const mark = this.k.checkpoint();
|
|
4628
|
+
this.openCheckpoints.push(mark);
|
|
4629
|
+
return mark;
|
|
4604
4630
|
}
|
|
4605
4631
|
checkpointCount() {
|
|
4606
|
-
|
|
4632
|
+
return this.openCheckpoints.length;
|
|
4607
4633
|
}
|
|
4608
|
-
restoreCheckpoint(
|
|
4609
|
-
|
|
4634
|
+
restoreCheckpoint(cp) {
|
|
4635
|
+
const idx = this.openCheckpoints.lastIndexOf(cp);
|
|
4636
|
+
if (idx === -1) throw new require_bug.BrepBugError("occtWasmAdapter.restoreCheckpoint", `checkpoint ${cp} is not open — releaseSince would erase unrelated live handles`);
|
|
4637
|
+
this.k.releaseSince(cp);
|
|
4638
|
+
this.openCheckpoints.length = idx;
|
|
4610
4639
|
}
|
|
4611
|
-
discardCheckpoint(
|
|
4612
|
-
|
|
4640
|
+
discardCheckpoint(cp) {
|
|
4641
|
+
this.closeCheckpoint(cp);
|
|
4642
|
+
}
|
|
4643
|
+
/** Drop `cp` and any marks nested inside it (LIFO), so the depth stays honest. */
|
|
4644
|
+
closeCheckpoint(cp) {
|
|
4645
|
+
const idx = this.openCheckpoints.lastIndexOf(cp);
|
|
4646
|
+
if (idx !== -1) this.openCheckpoints.length = idx;
|
|
4613
4647
|
}
|
|
4614
4648
|
makeBox(width, height, depth) {
|
|
4615
4649
|
return makeBox(this.k, width, height, depth);
|
|
@@ -5412,6 +5446,12 @@ Object.defineProperty(exports, "OcctWasmAdapter", {
|
|
|
5412
5446
|
return OcctWasmAdapter;
|
|
5413
5447
|
}
|
|
5414
5448
|
});
|
|
5449
|
+
Object.defineProperty(exports, "UnsupportedKernelOperationError", {
|
|
5450
|
+
enumerable: true,
|
|
5451
|
+
get: function() {
|
|
5452
|
+
return UnsupportedKernelOperationError;
|
|
5453
|
+
}
|
|
5454
|
+
});
|
|
5415
5455
|
Object.defineProperty(exports, "addCurveToBBox", {
|
|
5416
5456
|
enumerable: true,
|
|
5417
5457
|
get: function() {
|
|
@@ -5466,6 +5506,12 @@ Object.defineProperty(exports, "intersectCurves2dFn", {
|
|
|
5466
5506
|
return intersectCurves2dFn;
|
|
5467
5507
|
}
|
|
5468
5508
|
});
|
|
5509
|
+
Object.defineProperty(exports, "isUnsupportedKernelOperationError", {
|
|
5510
|
+
enumerable: true,
|
|
5511
|
+
get: function() {
|
|
5512
|
+
return isUnsupportedKernelOperationError;
|
|
5513
|
+
}
|
|
5514
|
+
});
|
|
5469
5515
|
Object.defineProperty(exports, "makeArc2dTangent", {
|
|
5470
5516
|
enumerable: true,
|
|
5471
5517
|
get: function() {
|
package/dist/operations.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_threadFns = require("./threadFns-
|
|
3
|
-
const require_loftFns = require("./loftFns-
|
|
2
|
+
const require_threadFns = require("./threadFns-BBELmTZv.cjs");
|
|
3
|
+
const require_loftFns = require("./loftFns-Bbe5jRA-.cjs");
|
|
4
4
|
exports.addChild = require_threadFns.addChild;
|
|
5
5
|
exports.addJoint = require_threadFns.addJoint;
|
|
6
6
|
exports.addStep = require_threadFns.addStep;
|
package/dist/operations.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as setJointValue, B as createAssemblyNode, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, G as circularPattern, H as removeChild, J as exportAssemblySTEP, K as gridPattern, L as addChild, M as sphericalJoint, O as prismaticJoint, R as collectShapes, S as addJoint, T as jointTransform, U as updateNode, V as findNode, W as walkAssembly, Y as createAssembly, _ as exportURDF, b as inverseKinematics, c as modifyStep, d as replayFrom, f as replayHistory, g as undoLast, h as stepsFrom, i as createRegistry, j as setJointValues, k as revoluteJoint, l as registerOperation, m as stepCount, n as addStep, o as findStep, q as linearPattern, r as createHistory, s as getShape, t as thread, u as registerShape, v as importURDF, w as forwardKinematics, x as jointTrajectory, y as jointsFromDH, z as countNodes } from "./threadFns-
|
|
2
|
-
import { d as twistExtrude, l as supportExtrude, o as complexExtrude, u as sweep } from "./loftFns-
|
|
1
|
+
import { A as setJointValue, B as createAssemblyNode, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, G as circularPattern, H as removeChild, J as exportAssemblySTEP, K as gridPattern, L as addChild, M as sphericalJoint, O as prismaticJoint, R as collectShapes, S as addJoint, T as jointTransform, U as updateNode, V as findNode, W as walkAssembly, Y as createAssembly, _ as exportURDF, b as inverseKinematics, c as modifyStep, d as replayFrom, f as replayHistory, g as undoLast, h as stepsFrom, i as createRegistry, j as setJointValues, k as revoluteJoint, l as registerOperation, m as stepCount, n as addStep, o as findStep, q as linearPattern, r as createHistory, s as getShape, t as thread, u as registerShape, v as importURDF, w as forwardKinematics, x as jointTrajectory, y as jointsFromDH, z as countNodes } from "./threadFns-H0mRmS6I.js";
|
|
2
|
+
import { d as twistExtrude, l as supportExtrude, o as complexExtrude, u as sweep } from "./loftFns-DEReccFa.js";
|
|
3
3
|
export { addChild, addJoint, addStep, circularPattern, collectShapes, complexExtrude, countNodes, createAssembly, createAssemblyNode, createHistory, createRegistry, cylindricalJoint, exportAssemblySTEP, exportURDF, findNode, findStep, forwardKinematics, getShape as getHistoryShape, gridPattern, importURDF, inverseKinematics, jointTrajectory, jointTransform, jointsFromDH, linearPattern, mechanismDOF, modifyStep, planarJoint, prismaticJoint, registerOperation, registerShape, removeChild, replayFrom, replayHistory, revoluteJoint, setJointValue, setJointValues, sphericalJoint, stepCount, stepsFrom, supportExtrude, sweep, thread, twistExtrude, undoLast, updateNode, walkAssembly };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I as unwrap, O as ok, d as validationError, v as err } from "./errors-B3CDG537.js";
|
|
2
2
|
import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
3
3
|
import { r as toVec3 } from "./types-D24Y27N0.js";
|
|
4
4
|
import { d as vecNormalize, h as vecScale, m as vecRotate, r as vecCross, s as vecIsZero, t as vecAdd } from "./vecOps-SKPRvPH-.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_errors = require("./errors-
|
|
1
|
+
const require_errors = require("./errors-CJU8CHng.cjs");
|
|
2
2
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
3
3
|
const require_types = require("./types-KjA8tY4Y.cjs");
|
|
4
4
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as isClosedWire, d as createSolid, rt as getKernel, tt as _usingCtx } from "./shapeTypes-
|
|
2
|
-
import {
|
|
1
|
+
import { D as isClosedWire, d as createSolid, rt as getKernel, tt as _usingCtx } from "./shapeTypes-B5bBKbg9.js";
|
|
2
|
+
import { O as ok, d as validationError, g as andThen, v as err } from "./errors-B3CDG537.js";
|
|
3
3
|
import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
4
|
-
import { g as translate } from "./shapeFns-
|
|
5
|
-
import { _ as makeThreePointArc, a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, g as makeTangentArc, h as makeLine, i as makeNewFaceWithinFace, m as makeHelix, o as makePolygon, p as makeEllipseArc, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeBezierCurve } from "./surfaceBuilders-
|
|
6
|
-
import { a as makeOffset, c as makeTorus, i as makeEllipsoid, l as makeVertex, n as makeCone, o as makeSolid, r as makeCylinder, s as makeSphere, t as makeCompound, u as weldShellsAndFaces } from "./solidBuilders-
|
|
4
|
+
import { g as translate } from "./shapeFns-BakfS4c9.js";
|
|
5
|
+
import { _ as makeThreePointArc, a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, g as makeTangentArc, h as makeLine, i as makeNewFaceWithinFace, m as makeHelix, o as makePolygon, p as makeEllipseArc, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeBezierCurve } from "./surfaceBuilders-BdUP_OXk.js";
|
|
6
|
+
import { a as makeOffset, c as makeTorus, i as makeEllipsoid, l as makeVertex, n as makeCone, o as makeSolid, r as makeCylinder, s as makeSphere, t as makeCompound, u as weldShellsAndFaces } from "./solidBuilders-DaTgm_Wj.js";
|
|
7
7
|
//#region src/topology/primitiveFns.ts
|
|
8
8
|
/**
|
|
9
9
|
* Create a box with the given dimensions.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_errors = require("./errors-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BfOb9vzc.cjs");
|
|
2
|
+
const require_errors = require("./errors-CJU8CHng.cjs");
|
|
3
3
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
4
|
-
const require_shapeFns = require("./shapeFns-
|
|
5
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
6
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
4
|
+
const require_shapeFns = require("./shapeFns-DzXcfZHY.cjs");
|
|
5
|
+
const require_surfaceBuilders = require("./surfaceBuilders-CUNhA_3a.cjs");
|
|
6
|
+
const require_solidBuilders = require("./solidBuilders-BgrXN-GP.cjs");
|
|
7
7
|
//#region src/topology/primitiveFns.ts
|
|
8
8
|
/**
|
|
9
9
|
* Create a box with the given dimensions.
|
package/dist/projection.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_cameraFns = require("./cameraFns-
|
|
2
|
+
const require_cameraFns = require("./cameraFns-BZMHFbh9.cjs");
|
|
3
3
|
exports.PROJECTION_PLANES = require_cameraFns.PROJECTION_PLANES;
|
|
4
4
|
exports.cameraFromPlane = require_cameraFns.cameraFromPlane;
|
|
5
5
|
exports.cameraLookAt = require_cameraFns.cameraLookAt;
|
package/dist/projection.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, o as PROJECTION_PLANES, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-
|
|
1
|
+
import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, o as PROJECTION_PLANES, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-CYU4C4N6.js";
|
|
2
2
|
export { PROJECTION_PLANES, cameraFromPlane, cameraLookAt, createCamera, isProjectionPlane, makeProjectedEdges, projectEdges };
|
package/dist/query.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_helpers = require("./helpers-
|
|
3
|
-
const require_cornerFinder = require("./cornerFinder-
|
|
2
|
+
const require_helpers = require("./helpers-Cv-lOGsc.cjs");
|
|
3
|
+
const require_cornerFinder = require("./cornerFinder-BEiSjmuO.cjs");
|
|
4
4
|
exports.cornerFinder = require_cornerFinder.cornerFinder;
|
|
5
5
|
exports.edgeFinder = require_helpers.edgeFinder;
|
|
6
6
|
exports.faceFinder = require_helpers.faceFinder;
|
package/dist/query.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-
|
|
2
|
-
import { t as cornerFinder } from "./cornerFinder-
|
|
1
|
+
import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-By-BruMN.js";
|
|
2
|
+
import { t as cornerFinder } from "./cornerFinder-DhOm0L8g.js";
|
|
3
3
|
export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
4
|
-
const require_shapeFns = require("./shapeFns-
|
|
5
|
-
const require_measureFns = require("./measureFns-
|
|
6
|
-
const require_adjacencyFns = require("./adjacencyFns-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BfOb9vzc.cjs");
|
|
2
|
+
const require_topologyQueryFns = require("./topologyQueryFns-tns6VXoD.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-C0SwZInk.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-DzXcfZHY.cjs");
|
|
5
|
+
const require_measureFns = require("./measureFns-DMzw5wf0.cjs");
|
|
6
|
+
const require_adjacencyFns = require("./adjacencyFns-h7eAxaRD.cjs");
|
|
7
7
|
//#region src/topology/shapeRef/scoring.ts
|
|
8
8
|
/**
|
|
9
9
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as disposeTransientSubShape, o as castShapeWithKnownType, rt as getKernel } from "./shapeTypes-
|
|
2
|
-
import { S as vertexPosition, c as getFaces } from "./topologyQueryFns-
|
|
3
|
-
import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-
|
|
4
|
-
import { n as getHashCode } from "./shapeFns-
|
|
5
|
-
import { n as measureArea, s as measureLength } from "./measureFns-
|
|
6
|
-
import { a as sharedEdges, i as facesOfVertex, o as verticesOfEdge, r as facesOfEdge, s as verticesOfFace, t as adjacentFaces } from "./adjacencyFns-
|
|
1
|
+
import { g as disposeTransientSubShape, o as castShapeWithKnownType, rt as getKernel } from "./shapeTypes-B5bBKbg9.js";
|
|
2
|
+
import { S as vertexPosition, c as getFaces } from "./topologyQueryFns-MAUFbsSp.js";
|
|
3
|
+
import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-CCu9ULQm.js";
|
|
4
|
+
import { n as getHashCode } from "./shapeFns-BakfS4c9.js";
|
|
5
|
+
import { n as measureArea, s as measureLength } from "./measureFns-DHj5Z-5c.js";
|
|
6
|
+
import { a as sharedEdges, i as facesOfVertex, o as verticesOfEdge, r as facesOfEdge, s as verticesOfFace, t as adjacentFaces } from "./adjacencyFns-Dgsl8VJ2.js";
|
|
7
7
|
//#region src/topology/shapeRef/scoring.ts
|
|
8
8
|
/**
|
|
9
9
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
package/dist/result.cjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
3
|
-
|
|
2
|
+
const require_bug = require("./bug-O02CsAmt.cjs");
|
|
3
|
+
const require_errors = require("./errors-CJU8CHng.cjs");
|
|
4
|
+
exports.BrepBugError = require_bug.BrepBugError;
|
|
4
5
|
exports.BrepErrorCode = require_errors.BrepErrorCode;
|
|
5
6
|
exports.OK = require_errors.OK;
|
|
6
7
|
exports.andThen = require_errors.andThen;
|
|
7
|
-
exports.bug =
|
|
8
|
+
exports.bug = require_bug.bug;
|
|
8
9
|
exports.collect = require_errors.collect;
|
|
9
10
|
exports.computationError = require_errors.computationError;
|
|
10
11
|
exports.err = require_errors.err;
|
package/dist/result.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as bug, t as BrepBugError } from "./bug-BdOHwn_e.js";
|
|
2
|
+
import { C as isOk, D as match, E as mapErr, F as tryCatchAsync, I as unwrap, L as unwrapErr, O as ok, P as tryCatch, R as unwrapOr, S as isErr, _ as collect, a as moduleInitError, c as sketcherStateError, d as validationError, g as andThen, i as kernelError, j as pipeline, l as typeCastError, m as OK, n as computationError, o as queryError, r as ioError, t as BrepErrorCode, v as err, w as map, y as flatMap, z as unwrapOrElse } from "./errors-B3CDG537.js";
|
|
2
3
|
export { BrepBugError, BrepErrorCode, OK, andThen, bug, collect, computationError, err, flatMap, ioError, isErr, isOk, kernelError, map, mapErr, match, moduleInitError, ok, pipeline, queryError, sketcherStateError, tryCatch, tryCatchAsync, typeCastError, unwrap, unwrapErr, unwrapOr, unwrapOrElse, validationError };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as castResultShape, rt as getKernel } from "./shapeTypes-
|
|
2
|
-
import {
|
|
3
|
-
import { C as kernelCall, c as getFaces, l as getOrCreateCache, r as getCacheEntry, w as kernelCallRaw } from "./topologyQueryFns-
|
|
1
|
+
import { n as castResultShape, rt as getKernel } from "./shapeTypes-B5bBKbg9.js";
|
|
2
|
+
import { O as ok, d as validationError, t as BrepErrorCode, v as err } from "./errors-B3CDG537.js";
|
|
3
|
+
import { C as kernelCall, c as getFaces, l as getOrCreateCache, r as getCacheEntry, w as kernelCallRaw } from "./topologyQueryFns-MAUFbsSp.js";
|
|
4
4
|
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
5
5
|
//#region src/topology/metadata/originTrackingFns.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_errors = require("./errors-
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BfOb9vzc.cjs");
|
|
2
|
+
const require_errors = require("./errors-CJU8CHng.cjs");
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-tns6VXoD.cjs");
|
|
4
4
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
5
|
//#region src/topology/metadata/originTrackingFns.ts
|
|
6
6
|
/**
|
package/dist/shapeRef.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_refResolveFns = require("./refResolveFns-
|
|
2
|
+
const require_refResolveFns = require("./refResolveFns-CHm7tsm2.cjs");
|
|
3
3
|
exports.assignRoles = require_refResolveFns.assignRoles;
|
|
4
4
|
exports.captureHint = require_refResolveFns.captureHint;
|
|
5
5
|
exports.createDerivedFaceRef = require_refResolveFns.createDerivedFaceRef;
|
package/dist/shapeRef.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as createRef, a as isVertexRef, b as defaultScorer, c as resolveRefParams, d as createVertexRef, f as resolveVertexRef, g as captureHint, h as assignRoles, i as isLineageRef, l as createDerivedFaceRef, m as resolveEdgeRef, n as isEdgeRef, o as resolveLineageRef, p as createEdgeRef, r as isFaceRef, s as resolveRefIn, t as isDerivedFaceRef, u as resolveDerivedFaceRef, v as resolveRef, y as updateRoles } from "./refResolveFns-
|
|
1
|
+
import { _ as createRef, a as isVertexRef, b as defaultScorer, c as resolveRefParams, d as createVertexRef, f as resolveVertexRef, g as captureHint, h as assignRoles, i as isLineageRef, l as createDerivedFaceRef, m as resolveEdgeRef, n as isEdgeRef, o as resolveLineageRef, p as createEdgeRef, r as isFaceRef, s as resolveRefIn, t as isDerivedFaceRef, u as resolveDerivedFaceRef, v as resolveRef, y as updateRoles } from "./refResolveFns-C_mHlM8R.js";
|
|
2
2
|
export { assignRoles, captureHint, createDerivedFaceRef, createEdgeRef, createRef, createVertexRef, defaultScorer, isDerivedFaceRef, isEdgeRef, isFaceRef, isLineageRef, isVertexRef, resolveDerivedFaceRef, resolveEdgeRef, resolveLineageRef, resolveRef, resolveRefIn, resolveRefParams, resolveVertexRef, updateRoles };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as serializeCurve2d$2,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { A as EXACT_BREP_CAPABILITIES, C as serializeCurve2d$2, D as UnsupportedKernelOperationError, E as quickHull, S as scaleCurve2d$2, T as translateCurve2d$2, _ as makeEllipse2d$2, a as buildBinarySTL, b as mirrorAtPoint, c as curveBounds, d as evaluateCurve2d$2, f as intersectCurves2dFn, g as makeCircle2d$2, h as makeBezier2d$2, i as buildAsciiSTL, l as curveTypeName, m as makeArc2dThreePoints, n as DEFAULT_STL_ANGULAR_TOLERANCE, o as addCurveToBBox, p as makeArc2dTangent, r as DEFAULT_STL_TOLERANCE, s as createBBox2d, t as OcctWasmAdapter, u as deserializeCurve2d$2, v as makeLine2d$2, w as tangentCurve2d, x as rotateCurve2d$2, y as mirrorAcrossAxis } from "./occtWasmAdapter-5_6aHhcD.js";
|
|
2
|
+
import { i as wasmIndex, r as vec3At } from "./bug-BdOHwn_e.js";
|
|
3
|
+
import { O as ok, v as err } from "./errors-B3CDG537.js";
|
|
4
4
|
//#region src/kernel/quality.ts
|
|
5
5
|
/**
|
|
6
6
|
* Extract-time deflection per level. `'standard'` matches brepjs's historical
|
|
@@ -5277,7 +5277,7 @@ function makeKernel2dOps$1(oc) {
|
|
|
5277
5277
|
*/
|
|
5278
5278
|
function makeBrepkitOnlyStubs() {
|
|
5279
5279
|
const u = (name) => () => {
|
|
5280
|
-
throw new
|
|
5280
|
+
throw new UnsupportedKernelOperationError(`${name} is only available with the brepkit kernel`);
|
|
5281
5281
|
};
|
|
5282
5282
|
return {
|
|
5283
5283
|
export3MF: u("export3MF"),
|
|
@@ -5294,7 +5294,7 @@ function makeBrepkitOnlyStubs() {
|
|
|
5294
5294
|
detectSmallFeatures: u("detectSmallFeatures"),
|
|
5295
5295
|
recognizeFeatures: u("recognizeFeatures"),
|
|
5296
5296
|
meshBoolean: (() => {
|
|
5297
|
-
throw new
|
|
5297
|
+
throw new UnsupportedKernelOperationError("meshBoolean is only available with the brepkit kernel");
|
|
5298
5298
|
}),
|
|
5299
5299
|
edgeToFaceMap: u("edgeToFaceMap"),
|
|
5300
5300
|
sharedEdges: u("sharedEdges"),
|
|
@@ -10023,7 +10023,7 @@ function resolveOcct() {
|
|
|
10023
10023
|
}
|
|
10024
10024
|
function occtOrThrow(method) {
|
|
10025
10025
|
const occt = resolveOcct();
|
|
10026
|
-
if (!occt) throw new
|
|
10026
|
+
if (!occt) throw new UnsupportedKernelOperationError(`manifold: ${method} requires a registered occt kernel; none is available`);
|
|
10027
10027
|
return occt;
|
|
10028
10028
|
}
|
|
10029
10029
|
var brepCache = /* @__PURE__ */ new WeakMap();
|
|
@@ -13181,7 +13181,7 @@ function measureBulk(shape, _includeLinear = false) {
|
|
|
13181
13181
|
}
|
|
13182
13182
|
function surfaceCurvature(face, u, v) {
|
|
13183
13183
|
const occt = resolveOcct();
|
|
13184
|
-
if (!occt) throw new
|
|
13184
|
+
if (!occt) throw new UnsupportedKernelOperationError("manifold: surfaceCurvature requires a registered occt kernel; none is available");
|
|
13185
13185
|
const ms = asManifoldShape(face);
|
|
13186
13186
|
if (!ms) return occt.surfaceCurvature(face, u, v);
|
|
13187
13187
|
if (!ms.node.replayable) throw new Error("manifold: surfaceCurvature unsupported; shape originates from a non-replayable op (raw mesh import or mesh boolean)");
|
|
@@ -14350,13 +14350,13 @@ function viaOcct(shape, query) {
|
|
|
14350
14350
|
const witness = shape;
|
|
14351
14351
|
if (witness && witness.__manifoldSub && witness.occt) {
|
|
14352
14352
|
const occt = resolveOcct();
|
|
14353
|
-
if (!occt) throw new
|
|
14353
|
+
if (!occt) throw new UnsupportedKernelOperationError("manifold: sub-shape geometry query requires a registered occt kernel");
|
|
14354
14354
|
return query(witness.occt, occt);
|
|
14355
14355
|
}
|
|
14356
14356
|
const ms = asManifoldShape(shape);
|
|
14357
14357
|
if (!ms) throw new Error("manifold: exact geometry query requires a manifold shape handle");
|
|
14358
14358
|
const occt = resolveOcct();
|
|
14359
|
-
if (!occt) throw new
|
|
14359
|
+
if (!occt) throw new UnsupportedKernelOperationError("manifold: exact geometry query unsupported on manifold kernel; no B-rep kernel registered");
|
|
14360
14360
|
if (!ms.node.replayable) throw new Error("manifold: exact geometry query unsupported; shape originates from a non-replayable op (raw mesh import or mesh boolean)");
|
|
14361
14361
|
let occtShape = brepCache.get(ms.node);
|
|
14362
14362
|
if (occtShape === void 0) {
|