brepjs 18.124.7 → 18.124.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/{adjacencyFns-NawsKHyd.cjs → adjacencyFns-BhdfZany.cjs} +2 -2
- package/dist/{adjacencyFns-CCD4FvHs.js → adjacencyFns-CwcdjOsT.js} +2 -2
- package/dist/{blueprint-DKLrSIsp.cjs → blueprint-BgbVmx4L.cjs} +5 -5
- package/dist/{blueprint-BZ8Vb4d3.js → blueprint-DRvc1LOz.js} +5 -5
- package/dist/{blueprintFns-LYMVKRNs.js → blueprintFns-COSD5yZH.js} +2 -2
- package/dist/{blueprintFns-CrUjNge9.cjs → blueprintFns-oatmkSjh.cjs} +2 -2
- package/dist/{blueprintSketcher-e0ubOsCh.cjs → blueprintSketcher-B5UqD0FO.cjs} +3 -3
- package/dist/{blueprintSketcher-CVEdoiWs.js → blueprintSketcher-yZiAeqft.js} +3 -3
- package/dist/{boolean2D-DmkJ7G8y.js → boolean2D-BuM5xJSa.js} +4 -4
- package/dist/{boolean2D-Cs_PzKTh.cjs → boolean2D-p7RMNFtG.cjs} +4 -4
- package/dist/brepjs.cjs +27 -27
- package/dist/brepjs.js +27 -27
- package/dist/{cameraFns-DTedF4Ma.js → cameraFns-VVI0cWLa.js} +3 -3
- package/dist/{cameraFns-BA43wHLH.cjs → cameraFns-i1otOZ0V.cjs} +3 -3
- package/dist/core.cjs +2 -2
- package/dist/core.js +2 -2
- package/dist/{cornerFinder-DgFZ5ayq.js → cornerFinder-CiHpo7kU.js} +1 -1
- package/dist/{cornerFinder-DS7uxsvK.cjs → cornerFinder-DIe6pMPU.cjs} +1 -1
- package/dist/{curveFns-BqBJDjtV.js → curveFns-Bh_PHl9N.js} +1 -1
- package/dist/{curveFns-DkavlOSs.cjs → curveFns-jmKL1KZp.cjs} +1 -1
- package/dist/{drawFns-CsWQC4vj.cjs → drawFns-CQYR1jpa.cjs} +12 -12
- package/dist/{drawFns-B_EGaGUU.js → drawFns-DNekh4DS.js} +12 -12
- package/dist/{faceFns-B6rtTNW_.cjs → faceFns-C0A8O-2a.cjs} +2 -2
- package/dist/{faceFns-D2e-1Tci.js → faceFns-CaBQNffu.js} +2 -2
- package/dist/{healingFns-BZx60AfH.cjs → healingFns-CfSU0G7V.cjs} +4 -4
- package/dist/{healingFns-CpcVcbht.js → healingFns-Digw1d6D.js} +4 -4
- package/dist/{helpers-DR3sq2z4.js → helpers-BiqV-wPK.js} +6 -6
- package/dist/{helpers-w76tSTdd.cjs → helpers-DLZUxawd.cjs} +6 -6
- package/dist/{importFns-BGfKMoQ0.js → importFns-BId6d2pt.js} +2 -2
- package/dist/{importFns-DrOPj8QK.cjs → importFns-ncp_0vEl.cjs} +2 -2
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/brepkit/brepkitWasmTypes.d.ts +0 -2
- package/dist/{loftFns-CBSLPUvg.js → loftFns-m7LoJWE2.js} +1 -1
- package/dist/{loftFns-DP5mwrHb.cjs → loftFns-u-yPHpJ9.cjs} +1 -1
- package/dist/{measureFns-D-OijqnF.js → measureFns-9-1Ng0wR.js} +3 -3
- package/dist/{measureFns-C99o9O7m.cjs → measureFns-CaEuNAZO.cjs} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-DrxspJUY.cjs → meshFns-CB7HsxzB.cjs} +3 -3
- package/dist/{meshFns-CtHYyk8d.js → meshFns-CpfeEN1b.js} +3 -3
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{originTrackingFns-C88JSdTb.cjs → originTrackingFns-CKKmLIUH.cjs} +2 -2
- package/dist/{originTrackingFns-aQ8u75sW.js → originTrackingFns-JxAlPJXX.js} +2 -2
- package/dist/{primitiveFns-D3Jsp4ms.js → primitiveFns-5E__ejiB.js} +4 -4
- package/dist/{primitiveFns-SIdu2Avf.cjs → primitiveFns-CBxF87wn.cjs} +4 -4
- 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-hZJRHI_y.js → refResolveFns-DcyIQSDi.js} +6 -6
- package/dist/{refResolveFns-Iv9Kaupd.cjs → refResolveFns-c7RWIsZy.cjs} +6 -6
- package/dist/{shapeFns-C-1qjspC.cjs → shapeFns-DDTLk0mJ.cjs} +2 -2
- package/dist/{shapeFns-DGhyMPzL.js → shapeFns-DyDRpo6K.js} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeTypes-QyoO_sE0.cjs → shapeTypes-DVExh1xP.cjs} +43 -7
- package/dist/{shapeTypes-DiwqWNY3.js → shapeTypes-pxoxsXIo.js} +43 -7
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-BSd9X9QM.js → solidBuilders-BSIOdrR5.js} +5 -5
- package/dist/{solidBuilders-DUMmz0y8.cjs → solidBuilders-BWLoWRk1.cjs} +5 -5
- package/dist/{surfaceBuilders-DedBcEMy.js → surfaceBuilders-B7WlmoVr.js} +3 -3
- package/dist/{surfaceBuilders-F7G0uhEg.cjs → surfaceBuilders-DUTDN2Ay.cjs} +3 -3
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-Dak5cCbO.js → textBlueprints-C1aMaWLc.js} +7 -7
- package/dist/{textBlueprints-DETfhGzM.cjs → textBlueprints-Cv-lkXnr.cjs} +7 -7
- package/dist/{textMetrics-C8MYDIF6.js → textMetrics-DH3YPwVC.js} +1 -1
- package/dist/{textMetrics-Ds73FV7f.cjs → textMetrics-DQauYgh5.cjs} +1 -1
- package/dist/{threadFns-Dp9qv7jB.js → threadFns-BWbibv4L.js} +7 -7
- package/dist/{threadFns-BpfZ9m0u.cjs → threadFns-DunLPqCK.cjs} +7 -7
- package/dist/topology.cjs +9 -9
- package/dist/topology.js +9 -9
- package/dist/{topologyQueryFns-Dl16dHSd.cjs → topologyQueryFns-BtLGfXgL.cjs} +1 -1
- package/dist/{topologyQueryFns-Dbugjs3F.js → topologyQueryFns-CwYkfE3v.js} +1 -1
- package/dist/{validityTypes-Bs4GSkay.js → validityTypes-Bl3adWZb.js} +1 -1
- package/dist/{validityTypes-CPCCW3e3.cjs → validityTypes-C2nklkrH.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { K as getKernel, y as isFace } from "./shapeTypes-
|
|
1
|
+
import { K as getKernel, y as isFace } from "./shapeTypes-pxoxsXIo.js";
|
|
2
2
|
import { E as ok, g as err, o as queryError, x as isOk } from "./errors-MHLiNE-C.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-CwYkfE3v.js";
|
|
4
4
|
import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
5
5
|
import { a as vecDot, d as vecNormalize } from "./vecOps-SKPRvPH-.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 { n as measureArea } from "./measureFns-
|
|
6
|
+
import { l as normalAt, s as getSurfaceType } from "./faceFns-CaBQNffu.js";
|
|
7
|
+
import { a as isSameShape, n as getHashCode } from "./shapeFns-DyDRpo6K.js";
|
|
8
|
+
import { f as getCurveType, i as curveIsClosed, o as curveLength } from "./curveFns-Bh_PHl9N.js";
|
|
9
|
+
import { n as measureArea } from "./measureFns-9-1Ng0wR.js";
|
|
10
10
|
//#region 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
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DVExh1xP.cjs");
|
|
2
2
|
const require_errors = require("./errors-RHkKO5bZ.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-BtLGfXgL.cjs");
|
|
4
4
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
5
|
const require_vecOps = require("./vecOps-CCnJt-yH.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-C0A8O-2a.cjs");
|
|
7
|
+
const require_shapeFns = require("./shapeFns-DDTLk0mJ.cjs");
|
|
8
|
+
const require_curveFns = require("./curveFns-jmKL1KZp.cjs");
|
|
9
|
+
const require_measureFns = require("./measureFns-CaEuNAZO.cjs");
|
|
10
10
|
//#region src/utils/vec2d.ts
|
|
11
11
|
/** Precision for curve intersection and parameter operations. */
|
|
12
12
|
var PRECISION_INTERSECTION = 1e-9;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { K as getKernel, n as castResultShape } from "./shapeTypes-
|
|
1
|
+
import { K as getKernel, n as castResultShape } from "./shapeTypes-pxoxsXIo.js";
|
|
2
2
|
import { i as wasmIndex, r as vec3At$1 } from "./bug-BdOHwn_e.js";
|
|
3
3
|
import { E as ok, g as err, r as ioError, t as BrepErrorCode } from "./errors-MHLiNE-C.js";
|
|
4
4
|
import { n as getAtOrThrow } from "./arrayAccess-DrUGPADn.js";
|
|
5
|
-
import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-
|
|
5
|
+
import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-DRvc1LOz.js";
|
|
6
6
|
//#region src/io/objExportFns.ts
|
|
7
7
|
/** Read a vec3 from a typed array at the given vertex index. */
|
|
8
8
|
function vec3At(arr, i) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DVExh1xP.cjs");
|
|
2
2
|
const require_bug = require("./bug-O02CsAmt.cjs");
|
|
3
3
|
const require_errors = require("./errors-RHkKO5bZ.cjs");
|
|
4
4
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
5
|
-
const require_blueprint = require("./blueprint-
|
|
5
|
+
const require_blueprint = require("./blueprint-BgbVmx4L.cjs");
|
|
6
6
|
//#region src/io/objExportFns.ts
|
|
7
7
|
/** Read a vec3 from a typed array at the given vertex index. */
|
|
8
8
|
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-CB7HsxzB.cjs");
|
|
3
|
+
const require_importFns = require("./importFns-ncp_0vEl.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 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-
|
|
1
|
+
import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-CpfeEN1b.js";
|
|
2
|
+
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-BId6d2pt.js";
|
|
3
3
|
export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
|
|
@@ -342,8 +342,6 @@ export interface BrepkitKernel {
|
|
|
342
342
|
/** @future Not in brepkit-wasm 3.0.0. Referenced with feature detection in adapter. */
|
|
343
343
|
chamferAsymmetric?(solid: number, edgeHandles: Uint32Array | number[], d1: number, d2: number): number;
|
|
344
344
|
/** @future Not in brepkit-wasm 3.0.0. Referenced with feature detection in adapter. */
|
|
345
|
-
compoundFuse?(solidIds: Uint32Array | number[]): number;
|
|
346
|
-
/** @future Not in brepkit-wasm 3.0.0. Referenced with feature detection in adapter. */
|
|
347
345
|
copyEdge?(edge: number): number;
|
|
348
346
|
/** @future Not in brepkit-wasm 3.0.0. Referenced with feature detection in adapter. */
|
|
349
347
|
transformEdge?(edge: number, matrix: Float64Array | number[]): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { K as getKernel, T as isWire, W as _usingCtx, h as disposeResultShape, n as castResultShape, x as isShape3D } from "./shapeTypes-
|
|
1
|
+
import { K as getKernel, T as isWire, W as _usingCtx, h as disposeResultShape, n as castResultShape, x as isShape3D } from "./shapeTypes-pxoxsXIo.js";
|
|
2
2
|
import { E as ok, b as isErr, d as validationError, g as err, i as kernelError, l as typeCastError, t as BrepErrorCode } from "./errors-MHLiNE-C.js";
|
|
3
3
|
import { r as toVec3 } from "./types-D24Y27N0.js";
|
|
4
4
|
import { c as vecLength, t as vecAdd } from "./vecOps-SKPRvPH-.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DVExh1xP.cjs");
|
|
2
2
|
const require_errors = require("./errors-RHkKO5bZ.cjs");
|
|
3
3
|
const require_types = require("./types-KjA8tY4Y.cjs");
|
|
4
4
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { K as getKernel } from "./shapeTypes-
|
|
1
|
+
import { K as getKernel } from "./shapeTypes-pxoxsXIo.js";
|
|
2
2
|
import { E as ok, d as validationError, g as err, t as BrepErrorCode } from "./errors-MHLiNE-C.js";
|
|
3
|
-
import { T as kernelCallRaw } from "./topologyQueryFns-
|
|
4
|
-
import { m as uvBounds } from "./faceFns-
|
|
3
|
+
import { T as kernelCallRaw } from "./topologyQueryFns-CwYkfE3v.js";
|
|
4
|
+
import { m as uvBounds } from "./faceFns-CaBQNffu.js";
|
|
5
5
|
//#region src/measurement/measureCache.ts
|
|
6
6
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
function getCachedMeasurement(shape, key) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DVExh1xP.cjs");
|
|
2
2
|
const require_errors = require("./errors-RHkKO5bZ.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-BtLGfXgL.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-C0A8O-2a.cjs");
|
|
5
5
|
//#region src/measurement/measureCache.ts
|
|
6
6
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
function getCachedMeasurement(shape, key) {
|
package/dist/measurement.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_measureFns = require("./measureFns-
|
|
2
|
+
const require_measureFns = require("./measureFns-CaEuNAZO.cjs");
|
|
3
3
|
exports.createDistanceQuery = require_measureFns.createDistanceQuery;
|
|
4
4
|
exports.measureArea = require_measureFns.measureArea;
|
|
5
5
|
exports.measureDistance = require_measureFns.measureDistance;
|
package/dist/measurement.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-
|
|
1
|
+
import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-9-1Ng0wR.js";
|
|
2
2
|
export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DVExh1xP.cjs");
|
|
2
2
|
const require_errors = require("./errors-RHkKO5bZ.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
-
const require_originTrackingFns = require("./originTrackingFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-BtLGfXgL.cjs");
|
|
4
|
+
const require_originTrackingFns = require("./originTrackingFns-CKKmLIUH.cjs");
|
|
5
5
|
//#region src/topology/meshCache.ts
|
|
6
6
|
/**
|
|
7
7
|
* Build a parameter key for the inner cache map (excludes shape identity).
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { K as getKernel, lt as qualityDeflection } from "./shapeTypes-
|
|
1
|
+
import { K as getKernel, lt as qualityDeflection } from "./shapeTypes-pxoxsXIo.js";
|
|
2
2
|
import { E as ok, g as err, r as ioError } from "./errors-MHLiNE-C.js";
|
|
3
|
-
import { d as getSolids, n as getBounds } from "./topologyQueryFns-
|
|
4
|
-
import { t as getFaceOrigins } from "./originTrackingFns-
|
|
3
|
+
import { d as getSolids, n as getBounds } from "./topologyQueryFns-CwYkfE3v.js";
|
|
4
|
+
import { t as getFaceOrigins } from "./originTrackingFns-JxAlPJXX.js";
|
|
5
5
|
//#region src/topology/meshCache.ts
|
|
6
6
|
/**
|
|
7
7
|
* 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-DunLPqCK.cjs");
|
|
3
|
+
const require_loftFns = require("./loftFns-u-yPHpJ9.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 { c as twistExtrude, o as supportExtrude, r as complexExtrude, s 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-BWbibv4L.js";
|
|
2
|
+
import { c as twistExtrude, o as supportExtrude, r as complexExtrude, s as sweep } from "./loftFns-m7LoJWE2.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,5 +1,5 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DVExh1xP.cjs");
|
|
2
|
+
const require_topologyQueryFns = require("./topologyQueryFns-BtLGfXgL.cjs");
|
|
3
3
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
4
4
|
//#region src/topology/metadata/originTrackingFns.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { K as getKernel } from "./shapeTypes-
|
|
2
|
-
import { S as subShapeHashes, c as getFaces, l as getOrCreateCache, r as getCacheEntry } from "./topologyQueryFns-
|
|
1
|
+
import { K as getKernel } from "./shapeTypes-pxoxsXIo.js";
|
|
2
|
+
import { S as subShapeHashes, c as getFaces, l as getOrCreateCache, r as getCacheEntry } from "./topologyQueryFns-CwYkfE3v.js";
|
|
3
3
|
import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
|
|
4
4
|
//#region src/topology/metadata/originTrackingFns.ts
|
|
5
5
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { K as getKernel, W as _usingCtx, d as createSolid, n as castResultShape } from "./shapeTypes-
|
|
1
|
+
import { K as getKernel, W as _usingCtx, d as createSolid, n as castResultShape } from "./shapeTypes-pxoxsXIo.js";
|
|
2
2
|
import { E as ok, d as validationError, g as err, m as andThen, t as BrepErrorCode } from "./errors-MHLiNE-C.js";
|
|
3
|
-
import { n as isClosedWire } from "./validityTypes-
|
|
3
|
+
import { n as isClosedWire } from "./validityTypes-Bl3adWZb.js";
|
|
4
4
|
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
5
|
-
import { C as propagateAllMetadata, S as hasAnyMetadata, T as propagateMetadataThroughRelocation, 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, w as propagateMetadataByHash, x as collectInputFaceHashes } from "./solidBuilders-
|
|
6
|
-
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-
|
|
5
|
+
import { C as propagateAllMetadata, S as hasAnyMetadata, T as propagateMetadataThroughRelocation, 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, w as propagateMetadataByHash, x as collectInputFaceHashes } from "./solidBuilders-BSIOdrR5.js";
|
|
6
|
+
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-B7WlmoVr.js";
|
|
7
7
|
//#region src/topology/transformFns.ts
|
|
8
8
|
/**
|
|
9
9
|
* Immutable shape transforms — translate, rotate, scale, mirror, applyMatrix.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DVExh1xP.cjs");
|
|
2
2
|
const require_errors = require("./errors-RHkKO5bZ.cjs");
|
|
3
|
-
const require_validityTypes = require("./validityTypes-
|
|
3
|
+
const require_validityTypes = require("./validityTypes-C2nklkrH.cjs");
|
|
4
4
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
6
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
5
|
+
const require_solidBuilders = require("./solidBuilders-BWLoWRk1.cjs");
|
|
6
|
+
const require_surfaceBuilders = require("./surfaceBuilders-DUTDN2Ay.cjs");
|
|
7
7
|
//#region src/topology/transformFns.ts
|
|
8
8
|
/**
|
|
9
9
|
* Immutable shape transforms — translate, rotate, scale, mirror, applyMatrix.
|
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-i1otOZ0V.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-VVI0cWLa.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-DLZUxawd.cjs");
|
|
3
|
+
const require_cornerFinder = require("./cornerFinder-DIe6pMPU.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-BiqV-wPK.js";
|
|
2
|
+
import { t as cornerFinder } from "./cornerFinder-CiHpo7kU.js";
|
|
3
3
|
export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { K as getKernel, g as disposeTransientSubShape, o as castShapeWithKnownType } from "./shapeTypes-
|
|
2
|
-
import { C 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 facesOfVertex, c as verticesOfFace, i as facesOfEdge, o as sharedEdges, s as verticesOfEdge, t as adjacentFaceHashes } from "./adjacencyFns-
|
|
1
|
+
import { K as getKernel, g as disposeTransientSubShape, o as castShapeWithKnownType } from "./shapeTypes-pxoxsXIo.js";
|
|
2
|
+
import { C as vertexPosition, c as getFaces } from "./topologyQueryFns-CwYkfE3v.js";
|
|
3
|
+
import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-CaBQNffu.js";
|
|
4
|
+
import { n as getHashCode } from "./shapeFns-DyDRpo6K.js";
|
|
5
|
+
import { n as measureArea, s as measureLength } from "./measureFns-9-1Ng0wR.js";
|
|
6
|
+
import { a as facesOfVertex, c as verticesOfFace, i as facesOfEdge, o as sharedEdges, s as verticesOfEdge, t as adjacentFaceHashes } from "./adjacencyFns-CwcdjOsT.js";
|
|
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
|
-
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-DVExh1xP.cjs");
|
|
2
|
+
const require_topologyQueryFns = require("./topologyQueryFns-BtLGfXgL.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-C0A8O-2a.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-DDTLk0mJ.cjs");
|
|
5
|
+
const require_measureFns = require("./measureFns-CaEuNAZO.cjs");
|
|
6
|
+
const require_adjacencyFns = require("./adjacencyFns-BhdfZany.cjs");
|
|
7
7
|
//#region src/topology/shapeRef/scoring.ts
|
|
8
8
|
/**
|
|
9
9
|
* 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-DVExh1xP.cjs");
|
|
2
2
|
const require_errors = require("./errors-RHkKO5bZ.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-BtLGfXgL.cjs");
|
|
4
4
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
5
|
//#region src/topology/shapeFns.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { K as getKernel } from "./shapeTypes-
|
|
1
|
+
import { K as getKernel } from "./shapeTypes-pxoxsXIo.js";
|
|
2
2
|
import { t as BrepErrorCode } from "./errors-MHLiNE-C.js";
|
|
3
|
-
import { T as kernelCallRaw, w as kernelCall } from "./topologyQueryFns-
|
|
3
|
+
import { T as kernelCallRaw, w as kernelCall } from "./topologyQueryFns-CwYkfE3v.js";
|
|
4
4
|
import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
|
|
5
5
|
//#region 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-c7RWIsZy.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-DcyIQSDi.js";
|
|
2
2
|
export { assignRoles, captureHint, createDerivedFaceRef, createEdgeRef, createRef, createVertexRef, defaultScorer, isDerivedFaceRef, isEdgeRef, isFaceRef, isLineageRef, isVertexRef, resolveDerivedFaceRef, resolveEdgeRef, resolveLineageRef, resolveRef, resolveRefIn, resolveRefParams, resolveVertexRef, updateRoles };
|
|
@@ -6601,10 +6601,37 @@ function kernelBoolean(bk, op, a, b, options) {
|
|
|
6601
6601
|
}
|
|
6602
6602
|
return bk[op](a, b);
|
|
6603
6603
|
}
|
|
6604
|
+
/**
|
|
6605
|
+
* A compound base routes through the kernel's n-way `fuseAll` / `compoundCut`,
|
|
6606
|
+
* neither of which takes the post-boolean `simplify` flag the two-operand
|
|
6607
|
+
* `*WithOptions` entry points do. Say so rather than silently returning
|
|
6608
|
+
* unsimplified topology, the same way an old kernel reports it.
|
|
6609
|
+
*/
|
|
6610
|
+
function warnCompoundBaseSimplify(options, op) {
|
|
6611
|
+
if (!options?.simplify) return;
|
|
6612
|
+
warnOnce(`boolean-simplify-compound-base-${op}`, `BooleanOptions.simplify is not applied when ${op} receives a compound base; ignored.`);
|
|
6613
|
+
}
|
|
6614
|
+
/**
|
|
6615
|
+
* Solid ids behind a shape: a solid contributes itself, a compound its children.
|
|
6616
|
+
* Throws with the method name for anything else, matching `unwrapSolidOrThrow`.
|
|
6617
|
+
*/
|
|
6618
|
+
function solidIdsOf(bk, shape, methodName) {
|
|
6619
|
+
const h = shape;
|
|
6620
|
+
if (isBrepkitHandle(shape) && h.type === "compound") return toArray(bk.getCompoundSolids(h.id));
|
|
6621
|
+
return [unwrapSolidOrThrow(shape, methodName)];
|
|
6622
|
+
}
|
|
6604
6623
|
function fuse(bk, shape, tool, _options) {
|
|
6605
6624
|
if (_options && hasIgnoredBooleanOptions(_options)) warnOnce("boolean-options", "BooleanOptions (optimisation, strategy, fuzzyValue) not supported; ignored.");
|
|
6606
6625
|
if (isEmptyCompound(bk, shape)) return tool;
|
|
6607
6626
|
if (isEmptyCompound(bk, tool)) return shape;
|
|
6627
|
+
const baseHandle = shape;
|
|
6628
|
+
if (isBrepkitHandle(shape) && baseHandle.type === "compound") {
|
|
6629
|
+
warnCompoundBaseSimplify(_options, "fuse");
|
|
6630
|
+
const ids = solidIdsOf(bk, shape, "fuse");
|
|
6631
|
+
ids.push(...solidIdsOf(bk, tool, "fuse"));
|
|
6632
|
+
if (ids.length === 0) throw new Error("brepkit: fuse resolved to zero solid IDs");
|
|
6633
|
+
return solidHandle(bk.fuseAll(new Uint32Array(ids)));
|
|
6634
|
+
}
|
|
6608
6635
|
const baseId = unwrapSolidOrThrow(shape, "fuse");
|
|
6609
6636
|
const toolHandle = tool;
|
|
6610
6637
|
if (toolHandle.type === "compound") {
|
|
@@ -6619,6 +6646,19 @@ function cut(bk, shape, tool, _options) {
|
|
|
6619
6646
|
if (_options && hasIgnoredBooleanOptions(_options)) warnOnce("boolean-options", "BooleanOptions (optimisation, strategy, fuzzyValue) not supported; ignored.");
|
|
6620
6647
|
if (isEmptyCompound(bk, shape)) return emptyCompound(bk);
|
|
6621
6648
|
if (isEmptyCompound(bk, tool)) return shape;
|
|
6649
|
+
const cutBase = shape;
|
|
6650
|
+
if (isBrepkitHandle(shape) && cutBase.type === "compound") {
|
|
6651
|
+
warnCompoundBaseSimplify(_options, "cut");
|
|
6652
|
+
const toolIds = solidIdsOf(bk, tool, "cut");
|
|
6653
|
+
const survivors = [];
|
|
6654
|
+
for (const childId of toArray(bk.getCompoundSolids(cutBase.id))) try {
|
|
6655
|
+
survivors.push(bk.compoundCut(childId, new Uint32Array(toolIds)));
|
|
6656
|
+
} catch (e) {
|
|
6657
|
+
if (!isEmptyBooleanError(e)) throw e;
|
|
6658
|
+
}
|
|
6659
|
+
if (survivors.length === 0) return emptyCompound(bk);
|
|
6660
|
+
return compoundHandle(bk.makeCompound(survivors));
|
|
6661
|
+
}
|
|
6622
6662
|
const baseId = unwrapSolidOrThrow(shape, "cut");
|
|
6623
6663
|
const toolHandle = tool;
|
|
6624
6664
|
if (toolHandle.type === "compound") {
|
|
@@ -6668,15 +6708,11 @@ function section(bk, shape, plane, _approximation) {
|
|
|
6668
6708
|
function fuseAll(bk, shapes, options) {
|
|
6669
6709
|
if (shapes.length === 0) throw new Error("brepkit: fuseAll requires at least one shape");
|
|
6670
6710
|
if (shapes.length === 1) return require_bug.wasmIndex(shapes, 0);
|
|
6671
|
-
if (bk.
|
|
6711
|
+
if (typeof bk.fuseAll === "function") {
|
|
6672
6712
|
const solidIds = [];
|
|
6673
|
-
for (const shape of shapes)
|
|
6674
|
-
const h = shape;
|
|
6675
|
-
if (h.type === "compound") solidIds.push(...toArray(bk.getCompoundSolids(h.id)));
|
|
6676
|
-
else solidIds.push(unwrapSolidOrThrow(shape, "fuseAll"));
|
|
6677
|
-
}
|
|
6713
|
+
for (const shape of shapes) solidIds.push(...solidIdsOf(bk, shape, "fuseAll"));
|
|
6678
6714
|
if (solidIds.length === 0) throw new Error("brepkit: fuseAll resolved to zero solid IDs");
|
|
6679
|
-
return solidHandle(bk.
|
|
6715
|
+
return solidHandle(bk.fuseAll(new Uint32Array(solidIds)));
|
|
6680
6716
|
}
|
|
6681
6717
|
let current = [...shapes];
|
|
6682
6718
|
while (current.length > 1) {
|
|
@@ -6601,10 +6601,37 @@ function kernelBoolean(bk, op, a, b, options) {
|
|
|
6601
6601
|
}
|
|
6602
6602
|
return bk[op](a, b);
|
|
6603
6603
|
}
|
|
6604
|
+
/**
|
|
6605
|
+
* A compound base routes through the kernel's n-way `fuseAll` / `compoundCut`,
|
|
6606
|
+
* neither of which takes the post-boolean `simplify` flag the two-operand
|
|
6607
|
+
* `*WithOptions` entry points do. Say so rather than silently returning
|
|
6608
|
+
* unsimplified topology, the same way an old kernel reports it.
|
|
6609
|
+
*/
|
|
6610
|
+
function warnCompoundBaseSimplify(options, op) {
|
|
6611
|
+
if (!options?.simplify) return;
|
|
6612
|
+
warnOnce(`boolean-simplify-compound-base-${op}`, `BooleanOptions.simplify is not applied when ${op} receives a compound base; ignored.`);
|
|
6613
|
+
}
|
|
6614
|
+
/**
|
|
6615
|
+
* Solid ids behind a shape: a solid contributes itself, a compound its children.
|
|
6616
|
+
* Throws with the method name for anything else, matching `unwrapSolidOrThrow`.
|
|
6617
|
+
*/
|
|
6618
|
+
function solidIdsOf(bk, shape, methodName) {
|
|
6619
|
+
const h = shape;
|
|
6620
|
+
if (isBrepkitHandle(shape) && h.type === "compound") return toArray(bk.getCompoundSolids(h.id));
|
|
6621
|
+
return [unwrapSolidOrThrow(shape, methodName)];
|
|
6622
|
+
}
|
|
6604
6623
|
function fuse(bk, shape, tool, _options) {
|
|
6605
6624
|
if (_options && hasIgnoredBooleanOptions(_options)) warnOnce("boolean-options", "BooleanOptions (optimisation, strategy, fuzzyValue) not supported; ignored.");
|
|
6606
6625
|
if (isEmptyCompound(bk, shape)) return tool;
|
|
6607
6626
|
if (isEmptyCompound(bk, tool)) return shape;
|
|
6627
|
+
const baseHandle = shape;
|
|
6628
|
+
if (isBrepkitHandle(shape) && baseHandle.type === "compound") {
|
|
6629
|
+
warnCompoundBaseSimplify(_options, "fuse");
|
|
6630
|
+
const ids = solidIdsOf(bk, shape, "fuse");
|
|
6631
|
+
ids.push(...solidIdsOf(bk, tool, "fuse"));
|
|
6632
|
+
if (ids.length === 0) throw new Error("brepkit: fuse resolved to zero solid IDs");
|
|
6633
|
+
return solidHandle(bk.fuseAll(new Uint32Array(ids)));
|
|
6634
|
+
}
|
|
6608
6635
|
const baseId = unwrapSolidOrThrow(shape, "fuse");
|
|
6609
6636
|
const toolHandle = tool;
|
|
6610
6637
|
if (toolHandle.type === "compound") {
|
|
@@ -6619,6 +6646,19 @@ function cut(bk, shape, tool, _options) {
|
|
|
6619
6646
|
if (_options && hasIgnoredBooleanOptions(_options)) warnOnce("boolean-options", "BooleanOptions (optimisation, strategy, fuzzyValue) not supported; ignored.");
|
|
6620
6647
|
if (isEmptyCompound(bk, shape)) return emptyCompound(bk);
|
|
6621
6648
|
if (isEmptyCompound(bk, tool)) return shape;
|
|
6649
|
+
const cutBase = shape;
|
|
6650
|
+
if (isBrepkitHandle(shape) && cutBase.type === "compound") {
|
|
6651
|
+
warnCompoundBaseSimplify(_options, "cut");
|
|
6652
|
+
const toolIds = solidIdsOf(bk, tool, "cut");
|
|
6653
|
+
const survivors = [];
|
|
6654
|
+
for (const childId of toArray(bk.getCompoundSolids(cutBase.id))) try {
|
|
6655
|
+
survivors.push(bk.compoundCut(childId, new Uint32Array(toolIds)));
|
|
6656
|
+
} catch (e) {
|
|
6657
|
+
if (!isEmptyBooleanError(e)) throw e;
|
|
6658
|
+
}
|
|
6659
|
+
if (survivors.length === 0) return emptyCompound(bk);
|
|
6660
|
+
return compoundHandle(bk.makeCompound(survivors));
|
|
6661
|
+
}
|
|
6622
6662
|
const baseId = unwrapSolidOrThrow(shape, "cut");
|
|
6623
6663
|
const toolHandle = tool;
|
|
6624
6664
|
if (toolHandle.type === "compound") {
|
|
@@ -6668,15 +6708,11 @@ function section(bk, shape, plane, _approximation) {
|
|
|
6668
6708
|
function fuseAll(bk, shapes, options) {
|
|
6669
6709
|
if (shapes.length === 0) throw new Error("brepkit: fuseAll requires at least one shape");
|
|
6670
6710
|
if (shapes.length === 1) return wasmIndex(shapes, 0);
|
|
6671
|
-
if (bk.
|
|
6711
|
+
if (typeof bk.fuseAll === "function") {
|
|
6672
6712
|
const solidIds = [];
|
|
6673
|
-
for (const shape of shapes)
|
|
6674
|
-
const h = shape;
|
|
6675
|
-
if (h.type === "compound") solidIds.push(...toArray(bk.getCompoundSolids(h.id)));
|
|
6676
|
-
else solidIds.push(unwrapSolidOrThrow(shape, "fuseAll"));
|
|
6677
|
-
}
|
|
6713
|
+
for (const shape of shapes) solidIds.push(...solidIdsOf(bk, shape, "fuseAll"));
|
|
6678
6714
|
if (solidIds.length === 0) throw new Error("brepkit: fuseAll resolved to zero solid IDs");
|
|
6679
|
-
return solidHandle(bk.
|
|
6715
|
+
return solidHandle(bk.fuseAll(new Uint32Array(solidIds)));
|
|
6680
6716
|
}
|
|
6681
6717
|
let current = [...shapes];
|
|
6682
6718
|
while (current.length > 1) {
|
package/dist/sketching.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_blueprintSketcher = require("./blueprintSketcher-
|
|
3
|
-
const require_drawFns = require("./drawFns-
|
|
4
|
-
const require_textBlueprints = require("./textBlueprints-
|
|
2
|
+
const require_blueprintSketcher = require("./blueprintSketcher-B5UqD0FO.cjs");
|
|
3
|
+
const require_drawFns = require("./drawFns-CQYR1jpa.cjs");
|
|
4
|
+
const require_textBlueprints = require("./textBlueprints-Cv-lkXnr.cjs");
|
|
5
5
|
//#region src/sketching.ts
|
|
6
6
|
/**
|
|
7
7
|
* brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
|
package/dist/sketching.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-
|
|
2
|
-
import { A as sketchEllipse, C as DrawingPen, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, T as Drawing, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-
|
|
3
|
-
import { a as Sketch, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, o as compoundSketchExtrude, p as sketchRevolve, s as compoundSketchFace, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-
|
|
1
|
+
import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-yZiAeqft.js";
|
|
2
|
+
import { A as sketchEllipse, C as DrawingPen, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, T as Drawing, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-DNekh4DS.js";
|
|
3
|
+
import { a as Sketch, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, o as compoundSketchExtrude, p as sketchRevolve, s as compoundSketchFace, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-C1aMaWLc.js";
|
|
4
4
|
//#region src/sketching.ts
|
|
5
5
|
/**
|
|
6
6
|
* brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { C as isSolid, E as getShapeKind, K as getKernel, S as isShell, W as _usingCtx, d as createSolid, f as createVertex, h as disposeResultShape, i as castShape, m as disposeDowncastSource, n as castResultShape, s as createCompound, x as isShape3D } from "./shapeTypes-
|
|
1
|
+
import { C as isSolid, E as getShapeKind, K as getKernel, S as isShell, W as _usingCtx, d as createSolid, f as createVertex, h as disposeResultShape, i as castShape, m as disposeDowncastSource, n as castResultShape, s as createCompound, x as isShape3D } from "./shapeTypes-pxoxsXIo.js";
|
|
2
2
|
import { E as ok, P as unwrap, b as isErr, d as validationError, g as err, i as kernelError, l as typeCastError, m as andThen, t as BrepErrorCode } from "./errors-MHLiNE-C.js";
|
|
3
|
-
import { S as subShapeHashes, c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-
|
|
3
|
+
import { S as subShapeHashes, c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-CwYkfE3v.js";
|
|
4
4
|
import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
|
|
5
5
|
import { a as vecDot, g as vecSub, h as vecScale, t as vecAdd } from "./vecOps-SKPRvPH-.js";
|
|
6
6
|
import { o as resolvePlane } from "./planeOps-CQahLrCx.js";
|
|
7
|
-
import { _ as cast, y as downcast } from "./faceFns-
|
|
8
|
-
import { n as propagateOriginsByHash, r as propagateOriginsFromEvolution, t as getFaceOrigins } from "./originTrackingFns-
|
|
7
|
+
import { _ as cast, y as downcast } from "./faceFns-CaBQNffu.js";
|
|
8
|
+
import { n as propagateOriginsByHash, r as propagateOriginsFromEvolution, t as getFaceOrigins } from "./originTrackingFns-JxAlPJXX.js";
|
|
9
9
|
import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
|
|
10
|
-
import { r as makeFace } from "./surfaceBuilders-
|
|
10
|
+
import { r as makeFace } from "./surfaceBuilders-B7WlmoVr.js";
|
|
11
11
|
//#region src/topology/metadata/faceTagFns.ts
|
|
12
12
|
var shapeTagStore = /* @__PURE__ */ new WeakMap();
|
|
13
13
|
var tagMetadataStore = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DVExh1xP.cjs");
|
|
2
2
|
const require_errors = require("./errors-RHkKO5bZ.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-BtLGfXgL.cjs");
|
|
4
4
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
5
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
6
6
|
const require_planeOps = require("./planeOps-VlFxtvzY.cjs");
|
|
7
|
-
const require_faceFns = require("./faceFns-
|
|
8
|
-
const require_originTrackingFns = require("./originTrackingFns-
|
|
7
|
+
const require_faceFns = require("./faceFns-C0A8O-2a.cjs");
|
|
8
|
+
const require_originTrackingFns = require("./originTrackingFns-CKKmLIUH.cjs");
|
|
9
9
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
10
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
10
|
+
const require_surfaceBuilders = require("./surfaceBuilders-DUTDN2Ay.cjs");
|
|
11
11
|
//#region src/topology/metadata/faceTagFns.ts
|
|
12
12
|
var shapeTagStore = /* @__PURE__ */ new WeakMap();
|
|
13
13
|
var tagMetadataStore = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { K as getKernel, M as DisposalScope, W as _usingCtx, c as createEdge, l as createFace, p as createWire, y as isFace } from "./shapeTypes-
|
|
1
|
+
import { K as getKernel, M as DisposalScope, W as _usingCtx, c as createEdge, l as createFace, p as createWire, y as isFace } from "./shapeTypes-pxoxsXIo.js";
|
|
2
2
|
import { E as ok, d as validationError, g as err, i as kernelError, m as andThen } from "./errors-MHLiNE-C.js";
|
|
3
|
-
import { a as isPlanarFace } from "./validityTypes-
|
|
4
|
-
import { _ as cast, u as outerWire } from "./faceFns-
|
|
3
|
+
import { a as isPlanarFace } from "./validityTypes-Bl3adWZb.js";
|
|
4
|
+
import { _ as cast, u as outerWire } from "./faceFns-CaBQNffu.js";
|
|
5
5
|
//#region src/utils/range.ts
|
|
6
6
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
7
7
|
function range(len) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DVExh1xP.cjs");
|
|
2
2
|
const require_errors = require("./errors-RHkKO5bZ.cjs");
|
|
3
|
-
const require_validityTypes = require("./validityTypes-
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_validityTypes = require("./validityTypes-C2nklkrH.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-C0A8O-2a.cjs");
|
|
5
5
|
//#region src/utils/range.ts
|
|
6
6
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
7
7
|
function range(len) {
|