brepjs 20.13.3 → 20.13.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/2d.cjs +6 -6
- package/dist/2d.js +6 -6
- package/dist/{adjacencyFns-BBugwmvl.cjs → adjacencyFns-B1ZWTkxw.cjs} +2 -2
- package/dist/{adjacencyFns-V29Gvfs9.js → adjacencyFns-XdjXKCXE.js} +2 -2
- package/dist/{blueprint-BO8zuqoy.cjs → blueprint-DzhzGFy2.cjs} +5 -5
- package/dist/{blueprint-CDmOJybf.js → blueprint-WAucCqwY.js} +5 -5
- package/dist/{blueprintFns-CEKZsu4N.js → blueprintFns-C8gt4OYm.js} +2 -2
- package/dist/{blueprintFns-Cki-iwEl.cjs → blueprintFns-DnzHyTjv.cjs} +2 -2
- package/dist/{blueprintSketcher-DG_2zJg7.js → blueprintSketcher-CeMrC8k-.js} +3 -3
- package/dist/{blueprintSketcher-Bxkp-vjK.cjs → blueprintSketcher-JoLn4vSB.cjs} +3 -3
- package/dist/{boolean2D-C_sEMz0u.cjs → boolean2D-Cwc_4mU8.cjs} +4 -4
- package/dist/{boolean2D-DqCcYA2X.js → boolean2D-D8_6vKh_.js} +4 -4
- package/dist/{booleanFns-CA9tvtqr.cjs → booleanFns-BhW5eybV.cjs} +5 -5
- package/dist/{booleanFns-CopMFBLS.js → booleanFns-aGRfk4ud.js} +5 -5
- package/dist/brepjs.cjs +29 -29
- package/dist/brepjs.js +29 -29
- package/dist/{cameraFns-BIIpsfds.js → cameraFns-CBc6tpRl.js} +3 -3
- package/dist/{cameraFns-BJ35ht2H.cjs → cameraFns-DhgM5-Nl.cjs} +3 -3
- package/dist/core/disposal.d.ts +4 -1
- package/dist/core.cjs +2 -2
- package/dist/core.js +2 -2
- package/dist/{cornerFinder-C8VCstc3.js → cornerFinder-ChkO3EOO.js} +1 -1
- package/dist/{cornerFinder-D83OLL_I.cjs → cornerFinder-xI6O0ZCv.cjs} +1 -1
- package/dist/{curveFns--TqXOi8f.js → curveFns-Cnh0Hljx.js} +1 -1
- package/dist/{curveFns-B29Eot3K.cjs → curveFns-Dz36SOE6.cjs} +1 -1
- package/dist/{drawFns-Bqs4HPzo.cjs → drawFns-BrRyiHKp.cjs} +12 -12
- package/dist/{drawFns-g9FrZ_P4.js → drawFns-RuUOUlSC.js} +12 -12
- package/dist/{faceFns-BeSpw0Dz.cjs → faceFns-DfEUZlnf.cjs} +2 -2
- package/dist/{faceFns-BzHfvPea.js → faceFns-Dz3eRgNR.js} +2 -2
- package/dist/{healingFns-DtefNa-x.js → healingFns-CCRPtrvE.js} +6 -6
- package/dist/{healingFns-BtZg6i3J.cjs → healingFns-D7LTrPO8.cjs} +6 -6
- package/dist/{helpers-CFEuQ0ok.cjs → helpers-C0MoldOO.cjs} +6 -6
- package/dist/{helpers-CHUowMmV.js → helpers-D3oo0Zfs.js} +6 -6
- package/dist/{importFns-BLaneR8r.js → importFns-BVcmm3T0.js} +5 -5
- package/dist/{importFns-BX0866c6.cjs → importFns-Sp5phi5Y.cjs} +5 -5
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/brepkit/brepkitWasmTypes.d.ts +20 -18
- package/dist/kernel/brepkit/helpers.d.ts +25 -4
- package/dist/{loftFns-Byjbneme.cjs → loftFns-BoGWrMPg.cjs} +1 -1
- package/dist/{loftFns-Cth8Le9X.js → loftFns-oH6dldzO.js} +1 -1
- package/dist/{measureFns-CLsSuByu.js → measureFns-6mHYvqUc.js} +3 -3
- package/dist/{measureFns-BlS2xJcn.cjs → measureFns-CmKNZ0gC.cjs} +3 -3
- package/dist/measurement.cjs +2 -2
- package/dist/measurement.js +2 -2
- package/dist/{meshFns-ECQqx-8Q.cjs → meshFns-BFgQZGty.cjs} +3 -3
- package/dist/{meshFns-CzpP9SBf.js → meshFns-D29JHTr6.js} +3 -3
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-CzhQz02F.cjs → primitiveFns-Dovused4.cjs} +5 -5
- package/dist/{primitiveFns-Kph3YP3A.js → primitiveFns-uywjJ06V.js} +5 -5
- package/dist/{principalBoxFns-C8ZmZNxJ.js → principalBoxFns-CTVc4f8W.js} +3 -3
- package/dist/{principalBoxFns-Ck9rR3Op.cjs → principalBoxFns-KvlaTxMs.cjs} +3 -3
- 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-CVUSuVee.cjs → refResolveFns-BFws5K2t.cjs} +6 -6
- package/dist/{refResolveFns-Cf16q6AH.js → refResolveFns-DZoPfglj.js} +6 -6
- package/dist/{shapeFns-BEwoFgq2.cjs → shapeFns-C9P1KmqH.cjs} +2 -2
- package/dist/{shapeFns-Bepwarf3.js → shapeFns-CHsoXWeu.js} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeTypes-CIw6-GFy.cjs → shapeTypes-BK53GmLC.cjs} +401 -59
- package/dist/{shapeTypes-hLHmANUz.js → shapeTypes-Ckz9bpYW.js} +401 -59
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-BVHK-era.cjs → solidBuilders-CETSjBW2.cjs} +3 -3
- package/dist/{solidBuilders-IA8xNuxJ.js → solidBuilders-DMfqtfIG.js} +3 -3
- package/dist/{surfaceBuilders-BYwkPzfM.js → surfaceBuilders-BeHgAqDx.js} +3 -3
- package/dist/{surfaceBuilders-DIM5GSAT.cjs → surfaceBuilders-vKXtKSqY.cjs} +3 -3
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-B4w-_4_D.js → textBlueprints-CLwy1uWM.js} +8 -8
- package/dist/{textBlueprints-CPJ6sBZZ.cjs → textBlueprints-DSiQKpe8.cjs} +8 -8
- package/dist/{textMetrics-na1BYw65.js → textMetrics-1e-VHhTX.js} +1 -1
- package/dist/{textMetrics-Dfr_9G6g.cjs → textMetrics-CzSpui4K.cjs} +1 -1
- package/dist/{threadFns-CAsRIX6c.cjs → threadFns-BEopBSv3.cjs} +7 -7
- package/dist/{threadFns-BEO0-PP6.js → threadFns-DveRUJwK.js} +7 -7
- package/dist/topology.cjs +9 -9
- package/dist/topology.js +9 -9
- package/dist/{topologyQueryFns-BNDmjz7x.cjs → topologyQueryFns--p_-tywe.cjs} +1 -1
- package/dist/{topologyQueryFns-BYqsNs6q.js → topologyQueryFns-SINsBrMe.js} +1 -1
- package/dist/{validityTypes-BYhzdgTM.js → validityTypes-BCZ8XRzO.js} +1 -1
- package/dist/{validityTypes-Gd5B_HcL.cjs → validityTypes-DPAkV5rC.cjs} +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BK53GmLC.cjs");
|
|
2
2
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns--p_-tywe.cjs");
|
|
4
4
|
const require_types = require("./types-CjF9Rofr.cjs");
|
|
5
5
|
// src/topology/cast.ts
|
|
6
6
|
var TOPO_ENUM = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as getOrQueryType, i as castShape, q as getKernel } from "./shapeTypes-
|
|
1
|
+
import { O as getOrQueryType, i as castShape, q as getKernel } from "./shapeTypes-Ckz9bpYW.js";
|
|
2
2
|
import { E as ok, P as unwrap, g as err, l as typeCastError } from "./errors-BTccWbtE.js";
|
|
3
|
-
import { a as getCachedSurfaceType } from "./topologyQueryFns-
|
|
3
|
+
import { a as getCachedSurfaceType } from "./topologyQueryFns-SINsBrMe.js";
|
|
4
4
|
import { r as toVec3 } from "./types-CKXsIm9-.js";
|
|
5
5
|
// src/topology/cast.ts
|
|
6
6
|
var TOPO_ENUM = {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { C as isSolid, D as getShapeKind, T as isWire, Y as getKernelCapabilities, h as disposeResultShape, i as castShape, m as disposeDowncastSource, n as castResultShape, q as getKernel, r as castResultShapeWithKnownType, x as isShape3D, y as isFace } from "./shapeTypes-
|
|
1
|
+
import { C as isSolid, D as getShapeKind, T as isWire, Y as getKernelCapabilities, h as disposeResultShape, i as castShape, m as disposeDowncastSource, n as castResultShape, q as getKernel, r as castResultShapeWithKnownType, x as isShape3D, y as isFace } from "./shapeTypes-Ckz9bpYW.js";
|
|
2
2
|
import { j as isUnsupportedKernelOperationError, n as faultyEdgeIndexesOf } from "./occtWasmAdapter-CGsnjMOe.js";
|
|
3
3
|
import { E as ok, b as isErr, d as validationError, g as err, i as kernelError, l as typeCastError, t as BrepErrorCode, u as unsupportedError, x as isOk } from "./errors-BTccWbtE.js";
|
|
4
|
-
import { C as subShapeHashes, O as getSuggestionForCode, c as getFaces, i as getCachedIsValid, m as invalidateShapeCache, p as getWires, s as getEdges } from "./topologyQueryFns-
|
|
4
|
+
import { C as subShapeHashes, O as getSuggestionForCode, c as getFaces, i as getCachedIsValid, m as invalidateShapeCache, p as getWires, s as getEdges } from "./topologyQueryFns-SINsBrMe.js";
|
|
5
5
|
import { n as HASH_CODE_MAX } from "./constants-iraOnb2p.js";
|
|
6
|
-
import { y as downcast } from "./faceFns-
|
|
7
|
-
import { a as fuse, f as collectInputFaceHashes, h as propagateMetadataByHash, i as cutAll, m as propagateAllMetadata, n as copyAsBooleanResult, o as fuseAll, r as cut } from "./booleanFns-
|
|
8
|
-
import { a as isSameShape } from "./shapeFns-
|
|
6
|
+
import { y as downcast } from "./faceFns-Dz3eRgNR.js";
|
|
7
|
+
import { a as fuse, f as collectInputFaceHashes, h as propagateMetadataByHash, i as cutAll, m as propagateAllMetadata, n as copyAsBooleanResult, o as fuseAll, r as cut } from "./booleanFns-aGRfk4ud.js";
|
|
8
|
+
import { a as isSameShape } from "./shapeFns-CHsoXWeu.js";
|
|
9
9
|
import { t as firstOrThrow } from "./arrayAccess-BpgouNir.js";
|
|
10
|
-
import { i as facesOfEdge } from "./adjacencyFns-
|
|
10
|
+
import { i as facesOfEdge } from "./adjacencyFns-XdjXKCXE.js";
|
|
11
11
|
// src/topology/threeHelpers.ts
|
|
12
12
|
/**
|
|
13
13
|
* Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BK53GmLC.cjs");
|
|
2
2
|
const require_occtWasmAdapter = require("./occtWasmAdapter-4YnvqZOW.cjs");
|
|
3
3
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
4
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
+
const require_topologyQueryFns = require("./topologyQueryFns--p_-tywe.cjs");
|
|
5
5
|
const require_constants = require("./constants-oee0S_x6.cjs");
|
|
6
|
-
const require_faceFns = require("./faceFns-
|
|
7
|
-
const require_booleanFns = require("./booleanFns-
|
|
8
|
-
const require_shapeFns = require("./shapeFns-
|
|
6
|
+
const require_faceFns = require("./faceFns-DfEUZlnf.cjs");
|
|
7
|
+
const require_booleanFns = require("./booleanFns-BhW5eybV.cjs");
|
|
8
|
+
const require_shapeFns = require("./shapeFns-C9P1KmqH.cjs");
|
|
9
9
|
const require_arrayAccess = require("./arrayAccess-DpJYARwv.cjs");
|
|
10
|
-
const require_adjacencyFns = require("./adjacencyFns-
|
|
10
|
+
const require_adjacencyFns = require("./adjacencyFns-B1ZWTkxw.cjs");
|
|
11
11
|
// src/topology/threeHelpers.ts
|
|
12
12
|
/**
|
|
13
13
|
* Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BK53GmLC.cjs");
|
|
2
2
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns--p_-tywe.cjs");
|
|
4
4
|
const require_constants = require("./constants-oee0S_x6.cjs");
|
|
5
5
|
const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
|
|
6
|
-
const require_faceFns = require("./faceFns-
|
|
7
|
-
const require_shapeFns = require("./shapeFns-
|
|
8
|
-
const require_curveFns = require("./curveFns-
|
|
9
|
-
const require_measureFns = require("./measureFns-
|
|
6
|
+
const require_faceFns = require("./faceFns-DfEUZlnf.cjs");
|
|
7
|
+
const require_shapeFns = require("./shapeFns-C9P1KmqH.cjs");
|
|
8
|
+
const require_curveFns = require("./curveFns-Dz36SOE6.cjs");
|
|
9
|
+
const require_measureFns = require("./measureFns-CmKNZ0gC.cjs");
|
|
10
10
|
// src/utils/vec2d.ts
|
|
11
11
|
/** Precision for curve intersection and parameter operations. */
|
|
12
12
|
var PRECISION_INTERSECTION = 1e-9;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { q as getKernel, y as isFace } from "./shapeTypes-
|
|
1
|
+
import { q as getKernel, y as isFace } from "./shapeTypes-Ckz9bpYW.js";
|
|
2
2
|
import { E as ok, g as err, o as queryError, x as isOk } from "./errors-BTccWbtE.js";
|
|
3
|
-
import { c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-
|
|
3
|
+
import { c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-SINsBrMe.js";
|
|
4
4
|
import { t as DEG2RAD } from "./constants-iraOnb2p.js";
|
|
5
5
|
import { a as vecDot, d as vecNormalize } from "./vecOps-S-m9H_fe.js";
|
|
6
|
-
import { l as normalAt, s as getSurfaceType } from "./faceFns-
|
|
7
|
-
import { a as isSameShape, n as getHashCode } from "./shapeFns-
|
|
8
|
-
import { f as getCurveType, i as curveIsClosed, o as curveLength } from "./curveFns
|
|
9
|
-
import { r as measureArea } from "./measureFns-
|
|
6
|
+
import { l as normalAt, s as getSurfaceType } from "./faceFns-Dz3eRgNR.js";
|
|
7
|
+
import { a as isSameShape, n as getHashCode } from "./shapeFns-CHsoXWeu.js";
|
|
8
|
+
import { f as getCurveType, i as curveIsClosed, o as curveLength } from "./curveFns-Cnh0Hljx.js";
|
|
9
|
+
import { r as measureArea } from "./measureFns-6mHYvqUc.js";
|
|
10
10
|
// src/utils/vec2d.ts
|
|
11
11
|
/** Precision for curve intersection and parameter operations. */
|
|
12
12
|
var PRECISION_INTERSECTION = 1e-9;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { C as isSolid, G as _usingCtx, S as isShell, _ as isCompound, n as castResultShape, q as getKernel } from "./shapeTypes-
|
|
1
|
+
import { C as isSolid, G as _usingCtx, S as isShell, _ as isCompound, n as castResultShape, q as getKernel } from "./shapeTypes-Ckz9bpYW.js";
|
|
2
2
|
import { i as wasmIndex, r as vec3At$1 } from "./bug-ClMTAJhe.js";
|
|
3
3
|
import { E as ok, g as err, r as ioError, t as BrepErrorCode } from "./errors-BTccWbtE.js";
|
|
4
|
-
import { S as subShapeCount, c as getFaces, u as getShells } from "./topologyQueryFns-
|
|
4
|
+
import { S as subShapeCount, c as getFaces, u as getShells } from "./topologyQueryFns-SINsBrMe.js";
|
|
5
5
|
import { n as HASH_CODE_MAX } from "./constants-iraOnb2p.js";
|
|
6
|
-
import { t as makeCompound } from "./solidBuilders-
|
|
7
|
-
import { u as igesUnsupportedError } from "./meshFns-
|
|
6
|
+
import { t as makeCompound } from "./solidBuilders-DMfqtfIG.js";
|
|
7
|
+
import { u as igesUnsupportedError } from "./meshFns-D29JHTr6.js";
|
|
8
8
|
import { n as getAtOrThrow } from "./arrayAccess-BpgouNir.js";
|
|
9
|
-
import { c as make2dBezierCurve, h as make2dThreePointArc, p as make2dSegmentCurve, t as Blueprint } from "./blueprint-
|
|
9
|
+
import { c as make2dBezierCurve, h as make2dThreePointArc, p as make2dSegmentCurve, t as Blueprint } from "./blueprint-WAucCqwY.js";
|
|
10
10
|
// src/io/objExportFns.ts
|
|
11
11
|
/** Read a vec3 from a typed array at the given vertex index. */
|
|
12
12
|
function vec3At(arr, i) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BK53GmLC.cjs");
|
|
2
2
|
const require_bug = require("./bug-CBcpIPuf.cjs");
|
|
3
3
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
4
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
+
const require_topologyQueryFns = require("./topologyQueryFns--p_-tywe.cjs");
|
|
5
5
|
const require_constants = require("./constants-oee0S_x6.cjs");
|
|
6
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
7
|
-
const require_meshFns = require("./meshFns-
|
|
6
|
+
const require_solidBuilders = require("./solidBuilders-CETSjBW2.cjs");
|
|
7
|
+
const require_meshFns = require("./meshFns-BFgQZGty.cjs");
|
|
8
8
|
const require_arrayAccess = require("./arrayAccess-DpJYARwv.cjs");
|
|
9
|
-
const require_blueprint = require("./blueprint-
|
|
9
|
+
const require_blueprint = require("./blueprint-DzhzGFy2.cjs");
|
|
10
10
|
// src/io/objExportFns.ts
|
|
11
11
|
/** Read a vec3 from a typed array at the given vertex index. */
|
|
12
12
|
function vec3At(arr, i) {
|
package/dist/io.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_meshFns = require("./meshFns-
|
|
3
|
-
const require_importFns = require("./importFns-
|
|
2
|
+
const require_meshFns = require("./meshFns-BFgQZGty.cjs");
|
|
3
|
+
const require_importFns = require("./importFns-Sp5phi5Y.cjs");
|
|
4
4
|
exports.blueprintToDXF = require_importFns.blueprintToDXF;
|
|
5
5
|
exports.exportDXF = require_importFns.exportDXF;
|
|
6
6
|
exports.exportGlb = require_importFns.exportGlb;
|
package/dist/io.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-
|
|
2
|
-
import { a as exportSTEPConfigured, c as exportThreeMF, d as exportGlb, f as exportGltf, l as blueprintToDXF, n as importSTEP, o as importSVG, p as exportOBJ, r as importSTL, s as importSVGPathD, t as importIGES, u as exportDXF } from "./importFns-
|
|
1
|
+
import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-D29JHTr6.js";
|
|
2
|
+
import { a as exportSTEPConfigured, c as exportThreeMF, d as exportGlb, f as exportGltf, l as blueprintToDXF, n as importSTEP, o as importSVG, p as exportOBJ, r as importSTL, s as importSVGPathD, t as importIGES, u as exportDXF } from "./importFns-BVcmm3T0.js";
|
|
3
3
|
export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Type-safe interface for the brepkit WASM kernel (`BrepKernel`).
|
|
3
3
|
*
|
|
4
4
|
* AUTO-GENERATED by `npm run sync:brepkit-types`.
|
|
5
|
-
* Synced against `brepkit-wasm@
|
|
5
|
+
* Synced against `brepkit-wasm@4.6.7`.
|
|
6
6
|
*
|
|
7
7
|
* Methods not yet referenced in the adapter layer are tagged `@unwired`.
|
|
8
8
|
*
|
|
@@ -82,19 +82,12 @@ export interface BrepkitKernel {
|
|
|
82
82
|
addHolesToFace(face: number, holeWireHandles: Uint32Array | number[]): number;
|
|
83
83
|
removeHolesFromFace(face: number): number;
|
|
84
84
|
reverseShape(id: number): number;
|
|
85
|
+
/** @unwired */
|
|
85
86
|
fuse(a: number, b: number): number;
|
|
87
|
+
/** @unwired */
|
|
86
88
|
cut(a: number, b: number): number;
|
|
89
|
+
/** @unwired */
|
|
87
90
|
intersect(a: number, b: number): number;
|
|
88
|
-
/** brepkit-wasm >= 3.2: boolean with post-processing (simplify = unify co-surface fragments). */
|
|
89
|
-
fuseWithOptions?(a: number, b: number, simplify: boolean): number;
|
|
90
|
-
cutWithOptions?(a: number, b: number, simplify: boolean): number;
|
|
91
|
-
intersectWithOptions?(a: number, b: number, simplify: boolean): number;
|
|
92
|
-
/**
|
|
93
|
-
* brepkit-wasm >= 3.2: process-wide count of booleans that used the mesh
|
|
94
|
-
* (co-refinement) fallback. Snapshot around a chain; growth means at least
|
|
95
|
-
* one approximate, possibly non-watertight result.
|
|
96
|
-
*/
|
|
97
|
-
meshFallbackCount?(): number;
|
|
98
91
|
compoundCut(target: number, toolIds: Uint32Array | number[]): number;
|
|
99
92
|
convexHull(coords: Float64Array | number[]): number;
|
|
100
93
|
section(solid: number, px: number, py: number, pz: number, nx: number, ny: number, nz: number): Uint32Array;
|
|
@@ -116,6 +109,7 @@ export interface BrepkitKernel {
|
|
|
116
109
|
fillet(solid: number, edgeHandles: Uint32Array | number[], radius: number): number;
|
|
117
110
|
/** @unwired */
|
|
118
111
|
filletV2(solid: number, edgeHandles: Uint32Array | number[], radius: number): number;
|
|
112
|
+
/** @unwired */
|
|
119
113
|
filletVariable(solid: number, json: string): number;
|
|
120
114
|
chamfer(solid: number, edgeHandles: Uint32Array | number[], distance: number): number;
|
|
121
115
|
chamferV2(solid: number, edgeHandles: Uint32Array | number[], d1: number, d2: number): number;
|
|
@@ -302,46 +296,54 @@ export interface BrepkitKernel {
|
|
|
302
296
|
/** @unwired */
|
|
303
297
|
convertToElementary(solid: number): number;
|
|
304
298
|
copyFace(face: number): number;
|
|
299
|
+
cutWithOptions(a: number, b: number, simplify: boolean): number;
|
|
305
300
|
/** @unwired */
|
|
306
301
|
deserializeSolid(data: Uint8Array): number;
|
|
307
302
|
/** @unwired */
|
|
308
303
|
detectCoincidentFaces(a: number, b: number): string;
|
|
309
304
|
/** @unwired */
|
|
310
305
|
filletWithEvolution(solid: number, edgeHandles: Uint32Array | number[], radius: number): string;
|
|
311
|
-
/** @unwired */
|
|
312
306
|
fuseAll(solidHandles: Uint32Array | number[]): number;
|
|
307
|
+
fuseWithOptions(a: number, b: number, simplify: boolean): number;
|
|
313
308
|
getNurbsCurveData(edge: number): string;
|
|
309
|
+
getNurbsSurfaceDataParity(face: number): string;
|
|
314
310
|
/** @unwired */
|
|
315
311
|
getNurbsSurfaceData(face: number): string;
|
|
316
|
-
|
|
312
|
+
/** @unwired */
|
|
313
|
+
getSolidPieces(solid: number): Uint32Array;
|
|
317
314
|
getSolidShells(solid: number): Uint32Array;
|
|
318
315
|
/** @unwired */
|
|
319
316
|
guidedSweep(face: number, spineDegree: number, spineKnots: Float64Array | number[], spineControlPoints: Float64Array | number[], spineWeights: Float64Array | number[], auxDegree: number, auxKnots: Float64Array | number[], auxControlPoints: Float64Array | number[], auxWeights: Float64Array | number[]): number;
|
|
320
|
-
|
|
317
|
+
intersectWithOptions(a: number, b: number, simplify: boolean): number;
|
|
321
318
|
/** @unwired */
|
|
322
319
|
makeCircleEdgeWithRef(cx: number, cy: number, cz: number, nx: number, ny: number, nz: number, radius: number, rx: number, ry: number, rz: number): number;
|
|
320
|
+
makeCircleEdge(cx: number, cy: number, cz: number, nx: number, ny: number, nz: number, radius: number): number;
|
|
323
321
|
makeEllipseArc3d(startX: number, startY: number, startZ: number, endX: number, endY: number, endZ: number, centerX: number, centerY: number, centerZ: number, axisX: number, axisY: number, axisZ: number, refX: number, refY: number, refZ: number, semiMajor: number, semiMinor: number): number;
|
|
324
|
-
makeEllipseEdge(cx: number, cy: number, cz: number, nx: number, ny: number, nz: number, semiMajor: number, semiMinor: number): number;
|
|
325
322
|
makeEllipseEdgeWithRef(cx: number, cy: number, cz: number, nx: number, ny: number, nz: number, semiMajor: number, semiMinor: number, rx: number, ry: number, rz: number): number;
|
|
323
|
+
makeEllipseEdge(cx: number, cy: number, cz: number, nx: number, ny: number, nz: number, semiMajor: number, semiMinor: number): number;
|
|
326
324
|
makePlanarFaceFromWire(wire: number): number;
|
|
327
325
|
/** @unwired */
|
|
326
|
+
meshFallbackCount(): number;
|
|
327
|
+
/** @unwired */
|
|
328
328
|
minkowskiSum(solidA: number, solidB: number): number;
|
|
329
329
|
/** @unwired */
|
|
330
330
|
multiSectionSweep(faceHandles: Uint32Array | number[], params: Float64Array | number[], spineDegree: number, spineKnots: Float64Array | number[], spineControlPoints: Float64Array | number[], spineWeights: Float64Array | number[], ruled: boolean): number;
|
|
331
331
|
offsetWire2DWithJoin(wire: number, distance: number, joinType: string): number;
|
|
332
332
|
projectEdges(solid: number, originX: number, originY: number, originZ: number, dirX: number, dirY: number, dirZ: number, xAxisX: number, xAxisY: number, xAxisZ: number, hiddenLines: boolean, deflection: number): string;
|
|
333
333
|
/** @unwired */
|
|
334
|
+
projectSolidsEdges(solids: Uint32Array | number[], originX: number, originY: number, originZ: number, dirX: number, dirY: number, dirZ: number, xAxisX: number, xAxisY: number, xAxisZ: number, hiddenLines: boolean, deflection: number): string;
|
|
335
|
+
/** @unwired */
|
|
334
336
|
serializeSolid(solid: number): Uint8Array;
|
|
335
337
|
/** @unwired */
|
|
336
338
|
sketchAddCircle(sketch: number, centerIdx: number, radius: number): number;
|
|
337
339
|
/** @unwired */
|
|
338
340
|
toBrepJson(solid: number): string;
|
|
339
341
|
transformFace(face: number, matrix: Float64Array | number[]): void;
|
|
340
|
-
/** @future Not in brepkit-wasm
|
|
342
|
+
/** @future Not in brepkit-wasm 4.6.7. Referenced with feature detection in adapter. */
|
|
341
343
|
copyEdge?(edge: number): number;
|
|
342
|
-
/** @future Not in brepkit-wasm
|
|
344
|
+
/** @future Not in brepkit-wasm 4.6.7. Referenced with feature detection in adapter. */
|
|
343
345
|
transformEdge?(edge: number, matrix: Float64Array | number[]): void;
|
|
344
|
-
/** @future Not in brepkit-wasm
|
|
346
|
+
/** @future Not in brepkit-wasm 4.6.7. Referenced with feature detection in adapter. */
|
|
345
347
|
validateSolidDetails?(solid: number): string;
|
|
346
348
|
/** Release the entire arena. */
|
|
347
349
|
free(): void;
|
|
@@ -54,11 +54,25 @@ export declare function unwrapSolidsForExport(bk: BrepkitKernel, shape: KernelSh
|
|
|
54
54
|
/** Euclidean distance between two 3D points. */
|
|
55
55
|
export declare function dist3(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number): number;
|
|
56
56
|
type Point = [number, number, number];
|
|
57
|
+
interface ConicFrame {
|
|
58
|
+
readonly center: Point;
|
|
59
|
+
readonly u: Point;
|
|
60
|
+
readonly v: Point;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* The frame of an analytic circle or ellipse edge, evaluated at t as
|
|
64
|
+
* center + U·cos t + V·sin t, recovered from its points at 0, π/2 and π.
|
|
65
|
+
* A NURBS edge that happens to be a circle reports CIRCLE too but runs over
|
|
66
|
+
* its knots, so it gets no frame; only an analytic edge has no NURBS data.
|
|
67
|
+
*/
|
|
68
|
+
export declare function conicFrame(bk: BrepkitKernel, edgeId: number): ConicFrame | undefined;
|
|
69
|
+
export declare function edgeEnds(bk: BrepkitKernel, edgeId: number): [Point, Point];
|
|
57
70
|
/**
|
|
58
|
-
* The curve parameters an edge spans. brepkit reports a circle or
|
|
59
|
-
* domain as the whole [0, 2π] even for an arc
|
|
60
|
-
*
|
|
61
|
-
*
|
|
71
|
+
* The curve parameters an edge spans. brepkit before 4.5.10 reports a circle or
|
|
72
|
+
* ellipse edge's domain as the whole [0, 2π] even for an arc, so an arc's span
|
|
73
|
+
* is read off the curve's frame on every kernel: it runs counterclockwise about
|
|
74
|
+
* the curve's axis from the angle of its start vertex to that of its end vertex
|
|
75
|
+
* (brepkit's own `circle_param_range`).
|
|
62
76
|
*/
|
|
63
77
|
export declare function edgeParamRange(bk: BrepkitKernel, edgeId: number): [number, number];
|
|
64
78
|
/**
|
|
@@ -89,6 +103,13 @@ export declare const DEFAULT_SEGMENTS = 32;
|
|
|
89
103
|
export declare function nextSyntheticId(): number;
|
|
90
104
|
/** JS-side storage for compound children (wires, faces, edges). */
|
|
91
105
|
export declare const syntheticCompounds: Map<number, BrepkitHandle[]>;
|
|
106
|
+
/** A solid's piece ids, from `split` the first time they are asked for. */
|
|
107
|
+
export declare function cachedSolidPieces(bk: BrepkitKernel, solidId: number, split: () => readonly number[]): readonly number[];
|
|
108
|
+
/**
|
|
109
|
+
* Forget one solid's pieces after the kernel changes it in place, or every
|
|
110
|
+
* solid's after the arena rolls back and its ids can name new entities.
|
|
111
|
+
*/
|
|
112
|
+
export declare function forgetSolidPieces(bk: BrepkitKernel, solidId?: number): void;
|
|
92
113
|
/** Emit a console.warn once per key per session. */
|
|
93
114
|
export declare function warnOnce(key: string, message: string): void;
|
|
94
115
|
/** Check if a BooleanOptions object sets an option brepkit still ignores. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BK53GmLC.cjs");
|
|
2
2
|
const require_occtWasmAdapter = require("./occtWasmAdapter-4YnvqZOW.cjs");
|
|
3
3
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
4
4
|
const require_types = require("./types-CjF9Rofr.cjs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as _usingCtx, T as isWire, h as disposeResultShape, n as castResultShape, q as getKernel, x as isShape3D } from "./shapeTypes-
|
|
1
|
+
import { G as _usingCtx, T as isWire, h as disposeResultShape, n as castResultShape, q as getKernel, x as isShape3D } from "./shapeTypes-Ckz9bpYW.js";
|
|
2
2
|
import { j as isUnsupportedKernelOperationError } from "./occtWasmAdapter-CGsnjMOe.js";
|
|
3
3
|
import { E as ok, b as isErr, d as validationError, g as err, i as kernelError, l as typeCastError, t as BrepErrorCode, u as unsupportedError } from "./errors-BTccWbtE.js";
|
|
4
4
|
import { r as toVec3 } from "./types-CKXsIm9-.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { q as getKernel } from "./shapeTypes-
|
|
1
|
+
import { q as getKernel } from "./shapeTypes-Ckz9bpYW.js";
|
|
2
2
|
import { j as isUnsupportedKernelOperationError } from "./occtWasmAdapter-CGsnjMOe.js";
|
|
3
3
|
import { E as ok, d as validationError, g as err, t as BrepErrorCode, u as unsupportedError } from "./errors-BTccWbtE.js";
|
|
4
|
-
import { E as kernelCallRaw } from "./topologyQueryFns-
|
|
5
|
-
import { m as uvBounds } from "./faceFns-
|
|
4
|
+
import { E as kernelCallRaw } from "./topologyQueryFns-SINsBrMe.js";
|
|
5
|
+
import { m as uvBounds } from "./faceFns-Dz3eRgNR.js";
|
|
6
6
|
// src/measurement/measureCache.ts
|
|
7
7
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
8
8
|
function getCachedMeasurement(shape, key) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BK53GmLC.cjs");
|
|
2
2
|
const require_occtWasmAdapter = require("./occtWasmAdapter-4YnvqZOW.cjs");
|
|
3
3
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
4
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
5
|
-
const require_faceFns = require("./faceFns-
|
|
4
|
+
const require_topologyQueryFns = require("./topologyQueryFns--p_-tywe.cjs");
|
|
5
|
+
const require_faceFns = require("./faceFns-DfEUZlnf.cjs");
|
|
6
6
|
// src/measurement/measureCache.ts
|
|
7
7
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
8
8
|
function getCachedMeasurement(shape, key) {
|
package/dist/measurement.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_measureFns = require("./measureFns-
|
|
3
|
-
const require_principalBoxFns = require("./principalBoxFns-
|
|
2
|
+
const require_measureFns = require("./measureFns-CmKNZ0gC.cjs");
|
|
3
|
+
const require_principalBoxFns = require("./principalBoxFns-KvlaTxMs.cjs");
|
|
4
4
|
exports.createDistanceQuery = require_measureFns.createDistanceQuery;
|
|
5
5
|
exports.measureArea = require_measureFns.measureArea;
|
|
6
6
|
exports.measureDistance = require_measureFns.measureDistance;
|
package/dist/measurement.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { c as measureLength, d as measureVolume, f as measureVolumeProps, l as measureLinearProps, o as measureDistance, r as measureArea, s as measureDistanceProps, t as createDistanceQuery, u as measureSurfaceProps } from "./measureFns-
|
|
2
|
-
import { t as principalBoundingBox } from "./principalBoxFns-
|
|
1
|
+
import { c as measureLength, d as measureVolume, f as measureVolumeProps, l as measureLinearProps, o as measureDistance, r as measureArea, s as measureDistanceProps, t as createDistanceQuery, u as measureSurfaceProps } from "./measureFns-6mHYvqUc.js";
|
|
2
|
+
import { t as principalBoundingBox } from "./principalBoxFns-CTVc4f8W.js";
|
|
3
3
|
export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps, principalBoundingBox };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BK53GmLC.cjs");
|
|
2
2
|
const require_occtWasmAdapter = require("./occtWasmAdapter-4YnvqZOW.cjs");
|
|
3
3
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
4
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
5
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
4
|
+
const require_topologyQueryFns = require("./topologyQueryFns--p_-tywe.cjs");
|
|
5
|
+
const require_solidBuilders = require("./solidBuilders-CETSjBW2.cjs");
|
|
6
6
|
// src/topology/meshCache.ts
|
|
7
7
|
/**
|
|
8
8
|
* Build a parameter key for the inner cache map (excludes shape identity).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { q as getKernel, ut as qualityDeflection } from "./shapeTypes-
|
|
1
|
+
import { q as getKernel, ut as qualityDeflection } from "./shapeTypes-Ckz9bpYW.js";
|
|
2
2
|
import { j as isUnsupportedKernelOperationError } from "./occtWasmAdapter-CGsnjMOe.js";
|
|
3
3
|
import { E as ok, g as err, r as ioError, t as BrepErrorCode, u as unsupportedError } from "./errors-BTccWbtE.js";
|
|
4
|
-
import { d as getSolids, n as getBounds } from "./topologyQueryFns-
|
|
5
|
-
import { d as getFaceOrigins } from "./solidBuilders-
|
|
4
|
+
import { d as getSolids, n as getBounds } from "./topologyQueryFns-SINsBrMe.js";
|
|
5
|
+
import { d as getFaceOrigins } from "./solidBuilders-DMfqtfIG.js";
|
|
6
6
|
// src/topology/meshCache.ts
|
|
7
7
|
/**
|
|
8
8
|
* Build a parameter key for the inner cache map (excludes shape identity).
|
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-BEopBSv3.cjs");
|
|
3
|
+
const require_loftFns = require("./loftFns-BoGWrMPg.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 walkAssembly, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, F as countNodes, H as circularPattern, I as createAssemblyNode, L as findNode, M as sphericalJoint, N as addChild, O as prismaticJoint, P as collectShapes, R as removeChild, S as addJoint, T as jointTransform, U as gridPattern, V as exportAssemblySTEP, W as linearPattern, 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, 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 updateNode } from "./threadFns-
|
|
2
|
-
import { c as twistExtrude, o as supportExtrude, r as complexExtrude, s as sweep } from "./loftFns-
|
|
1
|
+
import { A as setJointValue, B as walkAssembly, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, F as countNodes, H as circularPattern, I as createAssemblyNode, L as findNode, M as sphericalJoint, N as addChild, O as prismaticJoint, P as collectShapes, R as removeChild, S as addJoint, T as jointTransform, U as gridPattern, V as exportAssemblySTEP, W as linearPattern, 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, 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 updateNode } from "./threadFns-DveRUJwK.js";
|
|
2
|
+
import { c as twistExtrude, o as supportExtrude, r as complexExtrude, s as sweep } from "./loftFns-oH6dldzO.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,11 +1,11 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BK53GmLC.cjs");
|
|
2
2
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
3
|
-
const require_validityTypes = require("./validityTypes-
|
|
3
|
+
const require_validityTypes = require("./validityTypes-DPAkV5rC.cjs");
|
|
4
4
|
const require_constants = require("./constants-oee0S_x6.cjs");
|
|
5
5
|
const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
|
|
6
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
7
|
-
const require_booleanFns = require("./booleanFns-
|
|
8
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
6
|
+
const require_solidBuilders = require("./solidBuilders-CETSjBW2.cjs");
|
|
7
|
+
const require_booleanFns = require("./booleanFns-BhW5eybV.cjs");
|
|
8
|
+
const require_surfaceBuilders = require("./surfaceBuilders-vKXtKSqY.cjs");
|
|
9
9
|
// src/topology/transformFns.ts
|
|
10
10
|
/**
|
|
11
11
|
* Immutable shape transforms — translate, rotate, scale, mirror, applyMatrix.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { E as GeometryCleanupError, G as _usingCtx, d as createSolid, n as castResultShape, q as getKernel } from "./shapeTypes-
|
|
1
|
+
import { E as GeometryCleanupError, G as _usingCtx, d as createSolid, n as castResultShape, q as getKernel } from "./shapeTypes-Ckz9bpYW.js";
|
|
2
2
|
import { E as ok, d as validationError, g as err, m as andThen, t as BrepErrorCode } from "./errors-BTccWbtE.js";
|
|
3
|
-
import { n as isClosedWire } from "./validityTypes-
|
|
3
|
+
import { n as isClosedWire } from "./validityTypes-BCZ8XRzO.js";
|
|
4
4
|
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-iraOnb2p.js";
|
|
5
5
|
import { d as vecNormalize, h as vecScale } from "./vecOps-S-m9H_fe.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-
|
|
7
|
-
import { f as collectInputFaceHashes, g as propagateMetadataThroughRelocation, h as propagateMetadataByHash, m as propagateAllMetadata, p as hasAnyMetadata } from "./booleanFns-
|
|
8
|
-
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-DMfqtfIG.js";
|
|
7
|
+
import { f as collectInputFaceHashes, g as propagateMetadataThroughRelocation, h as propagateMetadataByHash, m as propagateAllMetadata, p as hasAnyMetadata } from "./booleanFns-aGRfk4ud.js";
|
|
8
|
+
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-BeHgAqDx.js";
|
|
9
9
|
// src/topology/transformFns.ts
|
|
10
10
|
/**
|
|
11
11
|
* Immutable shape transforms — translate, rotate, scale, mirror, applyMatrix.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { G as _usingCtx, n as castResultShape, q as getKernel } from "./shapeTypes-
|
|
1
|
+
import { G as _usingCtx, n as castResultShape, q as getKernel } from "./shapeTypes-Ckz9bpYW.js";
|
|
2
2
|
import { i as wasmIndex } from "./bug-ClMTAJhe.js";
|
|
3
3
|
import { E as ok, d as validationError, g as err, t as BrepErrorCode, u as unsupportedError } from "./errors-BTccWbtE.js";
|
|
4
|
-
import { E as kernelCallRaw } from "./topologyQueryFns-
|
|
4
|
+
import { E as kernelCallRaw } from "./topologyQueryFns-SINsBrMe.js";
|
|
5
5
|
import { r as vecCross } from "./vecOps-S-m9H_fe.js";
|
|
6
|
-
import { g as setCachedMeasurement, h as getCachedMeasurement, m as withSubShapes, p as withCompoundOf } from "./measureFns-
|
|
6
|
+
import { g as setCachedMeasurement, h as getCachedMeasurement, m as withSubShapes, p as withCompoundOf } from "./measureFns-6mHYvqUc.js";
|
|
7
7
|
// src/measurement/principalBoxFns.ts
|
|
8
8
|
/**
|
|
9
9
|
* Principal-axes bounding box: a solid's extent measured in the frame of its
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BK53GmLC.cjs");
|
|
2
2
|
const require_bug = require("./bug-CBcpIPuf.cjs");
|
|
3
3
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
4
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
+
const require_topologyQueryFns = require("./topologyQueryFns--p_-tywe.cjs");
|
|
5
5
|
const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
|
|
6
|
-
const require_measureFns = require("./measureFns-
|
|
6
|
+
const require_measureFns = require("./measureFns-CmKNZ0gC.cjs");
|
|
7
7
|
// src/measurement/principalBoxFns.ts
|
|
8
8
|
/**
|
|
9
9
|
* Principal-axes bounding box: a solid's extent measured in the frame of its
|
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-DhgM5-Nl.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 +1 @@
|
|
|
1
|
-
export { o as PROJECTION_PLANES, t as cameraFromPlane, n as cameraLookAt, r as createCamera, s as isProjectionPlane, a as makeProjectedEdges, i as projectEdges } from "./cameraFns-
|
|
1
|
+
export { o as PROJECTION_PLANES, t as cameraFromPlane, n as cameraLookAt, r as createCamera, s as isProjectionPlane, a as makeProjectedEdges, i as projectEdges } from "./cameraFns-CBc6tpRl.js";
|
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-C0MoldOO.cjs");
|
|
3
|
+
const require_cornerFinder = require("./cornerFinder-xI6O0ZCv.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-D3oo0Zfs.js";
|
|
2
|
+
import { t as cornerFinder } from "./cornerFinder-ChkO3EOO.js";
|
|
3
3
|
export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BK53GmLC.cjs");
|
|
2
|
+
const require_topologyQueryFns = require("./topologyQueryFns--p_-tywe.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-DfEUZlnf.cjs");
|
|
4
4
|
const require_faceRoleFns = require("./faceRoleFns-Db5bYj4Q.cjs");
|
|
5
|
-
const require_shapeFns = require("./shapeFns-
|
|
6
|
-
const require_measureFns = require("./measureFns-
|
|
7
|
-
const require_adjacencyFns = require("./adjacencyFns-
|
|
5
|
+
const require_shapeFns = require("./shapeFns-C9P1KmqH.cjs");
|
|
6
|
+
const require_measureFns = require("./measureFns-CmKNZ0gC.cjs");
|
|
7
|
+
const require_adjacencyFns = require("./adjacencyFns-B1ZWTkxw.cjs");
|
|
8
8
|
// src/topology/shapeRef/scoring.ts
|
|
9
9
|
/**
|
|
10
10
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as disposeTransientSubShape, o as castShapeWithKnownType, q as getKernel } from "./shapeTypes-
|
|
2
|
-
import { c as getFaces, w as vertexPosition } from "./topologyQueryFns-
|
|
3
|
-
import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-
|
|
1
|
+
import { g as disposeTransientSubShape, o as castShapeWithKnownType, q as getKernel } from "./shapeTypes-Ckz9bpYW.js";
|
|
2
|
+
import { c as getFaces, w as vertexPosition } from "./topologyQueryFns-SINsBrMe.js";
|
|
3
|
+
import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-Dz3eRgNR.js";
|
|
4
4
|
import { t as getFaceRoles } from "./faceRoleFns-BPxzQF-n.js";
|
|
5
|
-
import { n as getHashCode } from "./shapeFns-
|
|
6
|
-
import { c as measureLength, r as measureArea } from "./measureFns-
|
|
7
|
-
import { a as facesOfVertex, c as verticesOfFace, i as facesOfEdge, o as sharedEdges, s as verticesOfEdge, t as adjacentFaceHashes } from "./adjacencyFns-
|
|
5
|
+
import { n as getHashCode } from "./shapeFns-CHsoXWeu.js";
|
|
6
|
+
import { c as measureLength, r as measureArea } from "./measureFns-6mHYvqUc.js";
|
|
7
|
+
import { a as facesOfVertex, c as verticesOfFace, i as facesOfEdge, o as sharedEdges, s as verticesOfEdge, t as adjacentFaceHashes } from "./adjacencyFns-XdjXKCXE.js";
|
|
8
8
|
// src/topology/shapeRef/scoring.ts
|
|
9
9
|
/**
|
|
10
10
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BK53GmLC.cjs");
|
|
2
2
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns--p_-tywe.cjs");
|
|
4
4
|
const require_constants = require("./constants-oee0S_x6.cjs");
|
|
5
5
|
// src/topology/shapeFns.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { q as getKernel } from "./shapeTypes-
|
|
1
|
+
import { q as getKernel } from "./shapeTypes-Ckz9bpYW.js";
|
|
2
2
|
import { t as BrepErrorCode } from "./errors-BTccWbtE.js";
|
|
3
|
-
import { E as kernelCallRaw, T as kernelCall } from "./topologyQueryFns-
|
|
3
|
+
import { E as kernelCallRaw, T as kernelCall } from "./topologyQueryFns-SINsBrMe.js";
|
|
4
4
|
import { n as HASH_CODE_MAX } from "./constants-iraOnb2p.js";
|
|
5
5
|
// src/topology/shapeFns.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-BFws5K2t.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 +1 @@
|
|
|
1
|
-
export { h as assignRoles, g as captureHint, l as createDerivedFaceRef, p as createEdgeRef, _ as createRef, d as createVertexRef, b as defaultScorer, t as isDerivedFaceRef, n as isEdgeRef, r as isFaceRef, i as isLineageRef, a as isVertexRef, u as resolveDerivedFaceRef, m as resolveEdgeRef, o as resolveLineageRef, v as resolveRef, s as resolveRefIn, c as resolveRefParams, f as resolveVertexRef, y as updateRoles } from "./refResolveFns-
|
|
1
|
+
export { h as assignRoles, g as captureHint, l as createDerivedFaceRef, p as createEdgeRef, _ as createRef, d as createVertexRef, b as defaultScorer, t as isDerivedFaceRef, n as isEdgeRef, r as isFaceRef, i as isLineageRef, a as isVertexRef, u as resolveDerivedFaceRef, m as resolveEdgeRef, o as resolveLineageRef, v as resolveRef, s as resolveRefIn, c as resolveRefParams, f as resolveVertexRef, y as updateRoles } from "./refResolveFns-DZoPfglj.js";
|