brepjs 20.13.5 → 20.13.6
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-B1ZWTkxw.cjs → adjacencyFns-BLtq-nUN.cjs} +3 -3
- package/dist/{adjacencyFns-XdjXKCXE.js → adjacencyFns-C1Hxy0tk.js} +3 -3
- package/dist/{blueprint-WAucCqwY.js → blueprint-BzI6waZa.js} +5 -5
- package/dist/{blueprint-DzhzGFy2.cjs → blueprint-DlpFhHbU.cjs} +5 -5
- package/dist/{blueprintFns-DnzHyTjv.cjs → blueprintFns-Cc9OyvKE.cjs} +2 -2
- package/dist/{blueprintFns-C8gt4OYm.js → blueprintFns-HFd0lu9A.js} +2 -2
- package/dist/{blueprintSketcher-CeMrC8k-.js → blueprintSketcher-BrQee61I.js} +3 -3
- package/dist/{blueprintSketcher-JoLn4vSB.cjs → blueprintSketcher-DUT3-Cuo.cjs} +3 -3
- package/dist/{boolean2D-Cwc_4mU8.cjs → boolean2D-BC0TwxyB.cjs} +4 -4
- package/dist/{boolean2D-D8_6vKh_.js → boolean2D-CvBeghsg.js} +4 -4
- package/dist/{booleanFns-aGRfk4ud.js → booleanFns-Dtg2jqzi.js} +5 -5
- package/dist/{booleanFns-BhW5eybV.cjs → booleanFns-Dti1CK1F.cjs} +5 -5
- package/dist/brepjs.cjs +30 -30
- package/dist/brepjs.js +30 -30
- package/dist/{cameraFns-DhgM5-Nl.cjs → cameraFns--Ab792oE.cjs} +3 -3
- package/dist/{cameraFns-CBc6tpRl.js → cameraFns-CXONX5Da.js} +3 -3
- package/dist/core.cjs +2 -2
- package/dist/core.js +2 -2
- package/dist/{cornerFinder-ChkO3EOO.js → cornerFinder-C7f43oKE.js} +1 -1
- package/dist/{cornerFinder-xI6O0ZCv.cjs → cornerFinder-DUzrQsfW.cjs} +1 -1
- package/dist/{curveFns-Cnh0Hljx.js → curveFns-Dzgl3_MC.js} +1 -1
- package/dist/{curveFns-Dz36SOE6.cjs → curveFns-QaNfJzko.cjs} +1 -1
- package/dist/{drawFns-BrRyiHKp.cjs → drawFns-BRXk9fLg.cjs} +12 -12
- package/dist/{drawFns-RuUOUlSC.js → drawFns-WvF0fehK.js} +12 -12
- package/dist/{faceFns-Dz3eRgNR.js → faceFns-BG1CBQUM.js} +2 -2
- package/dist/{faceFns-DfEUZlnf.cjs → faceFns-dj_c8LVc.cjs} +2 -2
- package/dist/{healingFns-D7LTrPO8.cjs → healingFns-BSNNLyXP.cjs} +12 -14
- package/dist/{healingFns-CCRPtrvE.js → healingFns-CfkUEqcL.js} +12 -14
- package/dist/{helpers-C0MoldOO.cjs → helpers-6Emek9dE.cjs} +6 -6
- package/dist/{helpers-D3oo0Zfs.js → helpers-DolHn2_s.js} +6 -6
- package/dist/{importFns-Sp5phi5Y.cjs → importFns-CZb21dj7.cjs} +5 -5
- package/dist/{importFns-BVcmm3T0.js → importFns-D1AxkVC3.js} +5 -5
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/brepkit/brepkitWasmTypes.d.ts +4 -8
- package/dist/kernel/brepkit/constructionOps.d.ts +1 -1
- package/dist/kernel/brepkit/modifierOps.d.ts +3 -3
- package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
- package/dist/{loftFns-BoGWrMPg.cjs → loftFns-BD0na-M4.cjs} +4 -4
- package/dist/{loftFns-oH6dldzO.js → loftFns-Cua-MamP.js} +4 -4
- package/dist/{measureFns-CmKNZ0gC.cjs → measureFns-FrNeGmXh.cjs} +4 -4
- package/dist/{measureFns-6mHYvqUc.js → measureFns-WGYWWnQ1.js} +4 -4
- package/dist/measurement.cjs +2 -2
- package/dist/measurement.js +2 -2
- package/dist/{meshFns-BFgQZGty.cjs → meshFns-Dy1a9wl_.cjs} +4 -4
- package/dist/{meshFns-D29JHTr6.js → meshFns-Lie8oAac.js} +4 -4
- package/dist/{occtWasmAdapter-4YnvqZOW.cjs → occtWasmAdapter-B9ZXx36v.cjs} +1 -1
- package/dist/{occtWasmAdapter-CGsnjMOe.js → occtWasmAdapter-CGkZIHyM.js} +1 -1
- package/dist/operations/sweepFns.d.ts +3 -3
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-Dovused4.cjs → primitiveFns-Dpn3ZtUE.cjs} +5 -5
- package/dist/{primitiveFns-uywjJ06V.js → primitiveFns-w-ST-RDJ.js} +5 -5
- package/dist/{principalBoxFns-KvlaTxMs.cjs → principalBoxFns-3ZURcOFP.cjs} +3 -3
- package/dist/{principalBoxFns-CTVc4f8W.js → principalBoxFns-CjfJnZfH.js} +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-BFws5K2t.cjs → refResolveFns-ROMmhWfH.cjs} +6 -6
- package/dist/{refResolveFns-DZoPfglj.js → refResolveFns-Yy1n2BHJ.js} +6 -6
- package/dist/{shapeFns-CHsoXWeu.js → shapeFns-BRRrZc1X.js} +2 -2
- package/dist/{shapeFns-C9P1KmqH.cjs → shapeFns-CljM3iMI.cjs} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeTypes-BK53GmLC.cjs → shapeTypes-DEe6gtTR.cjs} +195 -37
- package/dist/{shapeTypes-Ckz9bpYW.js → shapeTypes-w2wyXEis.js} +195 -37
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-DMfqtfIG.js → solidBuilders-BxIYXIv-.js} +3 -3
- package/dist/{solidBuilders-CETSjBW2.cjs → solidBuilders-yQFZe6jf.cjs} +3 -3
- package/dist/{surfaceBuilders-BeHgAqDx.js → surfaceBuilders-BZ7BW8I0.js} +3 -3
- package/dist/{surfaceBuilders-vKXtKSqY.cjs → surfaceBuilders-dWcQ_BpM.cjs} +3 -3
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-CLwy1uWM.js → textBlueprints-CxhhPEaF.js} +8 -8
- package/dist/{textBlueprints-DSiQKpe8.cjs → textBlueprints-Tx73Xex5.cjs} +8 -8
- package/dist/{textMetrics-CzSpui4K.cjs → textMetrics-9q5S5II9.cjs} +1 -1
- package/dist/{textMetrics-1e-VHhTX.js → textMetrics-B5dKPalE.js} +1 -1
- package/dist/{threadFns-BEopBSv3.cjs → threadFns-BnNo5eND.cjs} +7 -7
- package/dist/{threadFns-DveRUJwK.js → threadFns-Dfu2jV41.js} +7 -7
- package/dist/topology/apiTypes.d.ts +0 -3
- package/dist/topology/modifierFns.d.ts +4 -6
- package/dist/topology.cjs +9 -9
- package/dist/topology.js +9 -9
- package/dist/{topologyQueryFns-SINsBrMe.js → topologyQueryFns-CTl4cWYD.js} +1 -1
- package/dist/{topologyQueryFns--p_-tywe.cjs → topologyQueryFns-I_m8o-s7.cjs} +1 -1
- package/dist/{validityTypes-BCZ8XRzO.js → validityTypes-C2K0Eepw.js} +1 -1
- package/dist/{validityTypes-DPAkV5rC.cjs → validityTypes-DgknRAAp.cjs} +1 -1
- package/package.json +2 -2
|
@@ -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-w2wyXEis.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-CTl4cWYD.js";
|
|
4
4
|
import { r as toVec3 } from "./types-CKXsIm9-.js";
|
|
5
5
|
// src/topology/cast.ts
|
|
6
6
|
var TOPO_ENUM = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DEe6gtTR.cjs");
|
|
2
2
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-I_m8o-s7.cjs");
|
|
4
4
|
const require_types = require("./types-CjF9Rofr.cjs");
|
|
5
5
|
// src/topology/cast.ts
|
|
6
6
|
var TOPO_ENUM = {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_occtWasmAdapter = require("./occtWasmAdapter-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DEe6gtTR.cjs");
|
|
2
|
+
const require_occtWasmAdapter = require("./occtWasmAdapter-B9ZXx36v.cjs");
|
|
3
3
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
4
|
-
const require_topologyQueryFns = require("./topologyQueryFns
|
|
4
|
+
const require_topologyQueryFns = require("./topologyQueryFns-I_m8o-s7.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-dj_c8LVc.cjs");
|
|
7
|
+
const require_booleanFns = require("./booleanFns-Dti1CK1F.cjs");
|
|
8
|
+
const require_shapeFns = require("./shapeFns-CljM3iMI.cjs");
|
|
9
9
|
const require_arrayAccess = require("./arrayAccess-DpJYARwv.cjs");
|
|
10
|
-
const require_adjacencyFns = require("./adjacencyFns-
|
|
10
|
+
const require_adjacencyFns = require("./adjacencyFns-BLtq-nUN.cjs");
|
|
11
11
|
// src/topology/threeHelpers.ts
|
|
12
12
|
/**
|
|
13
13
|
* Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
|
|
@@ -377,8 +377,7 @@ function fillet(shape, edges, radius, { trackEvolution = true } = {}) {
|
|
|
377
377
|
}
|
|
378
378
|
/**
|
|
379
379
|
* `UNSUPPORTED_CAPABILITY` for a fillet the kernel cannot build as asked (a
|
|
380
|
-
*
|
|
381
|
-
* `UnsupportedKernelOperationError`.
|
|
380
|
+
* multi-point variable radius), from its `UnsupportedKernelOperationError`.
|
|
382
381
|
*/
|
|
383
382
|
function filletUnsupportedError(e) {
|
|
384
383
|
const kernelId = require_shapeTypes.getKernel().kernelId;
|
|
@@ -386,7 +385,7 @@ function filletUnsupportedError(e) {
|
|
|
386
385
|
return require_errors.unsupportedError(require_errors.BrepErrorCode.UNSUPPORTED_CAPABILITY, `fillet: the ${kernelId} kernel cannot build this fillet (${raw})`, e, {
|
|
387
386
|
kernel: kernelId,
|
|
388
387
|
operation: "fillet"
|
|
389
|
-
}, "Use
|
|
388
|
+
}, "Use a constant or linear (start, end) radius per edge");
|
|
390
389
|
}
|
|
391
390
|
/**
|
|
392
391
|
* `FILLET_FAILED` / `CHAMFER_FAILED`, with `metadata.failedEdges` set to the
|
|
@@ -596,10 +595,9 @@ function draft(shape, faces, pullDirection, neutralPlane, angle) {
|
|
|
596
595
|
* The radius varies along the edge according to the provided spec points.
|
|
597
596
|
* Each point specifies a normalized parameter (0 = start, 1 = end) and radius.
|
|
598
597
|
*
|
|
599
|
-
* **Cross-kernel note:** occt-wasm
|
|
600
|
-
*
|
|
601
|
-
*
|
|
602
|
-
* kernel does not implement it.
|
|
598
|
+
* **Cross-kernel note:** occt-wasm and brepkit build a constant or linear
|
|
599
|
+
* (start/end, <=2-point) profile and return `UNSUPPORTED_CAPABILITY` for one of
|
|
600
|
+
* more points. The opencascade.js kernel does not implement it.
|
|
603
601
|
*/
|
|
604
602
|
function variableFillet(shape, edge, radii) {
|
|
605
603
|
if (radii.length === 0) return require_errors.err(require_errors.validationError(require_errors.BrepErrorCode.VARIABLE_FILLET_FAILED, "radii must contain at least one radius spec"));
|
|
@@ -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-
|
|
2
|
-
import { j as isUnsupportedKernelOperationError, n as faultyEdgeIndexesOf } from "./occtWasmAdapter-
|
|
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-w2wyXEis.js";
|
|
2
|
+
import { j as isUnsupportedKernelOperationError, n as faultyEdgeIndexesOf } from "./occtWasmAdapter-CGkZIHyM.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-CTl4cWYD.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-BG1CBQUM.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-Dtg2jqzi.js";
|
|
8
|
+
import { a as isSameShape } from "./shapeFns-BRRrZc1X.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-C1Hxy0tk.js";
|
|
11
11
|
// src/topology/threeHelpers.ts
|
|
12
12
|
/**
|
|
13
13
|
* Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
|
|
@@ -377,8 +377,7 @@ function fillet(shape, edges, radius, { trackEvolution = true } = {}) {
|
|
|
377
377
|
}
|
|
378
378
|
/**
|
|
379
379
|
* `UNSUPPORTED_CAPABILITY` for a fillet the kernel cannot build as asked (a
|
|
380
|
-
*
|
|
381
|
-
* `UnsupportedKernelOperationError`.
|
|
380
|
+
* multi-point variable radius), from its `UnsupportedKernelOperationError`.
|
|
382
381
|
*/
|
|
383
382
|
function filletUnsupportedError(e) {
|
|
384
383
|
const kernelId = getKernel().kernelId;
|
|
@@ -386,7 +385,7 @@ function filletUnsupportedError(e) {
|
|
|
386
385
|
return unsupportedError(BrepErrorCode.UNSUPPORTED_CAPABILITY, `fillet: the ${kernelId} kernel cannot build this fillet (${raw})`, e, {
|
|
387
386
|
kernel: kernelId,
|
|
388
387
|
operation: "fillet"
|
|
389
|
-
}, "Use
|
|
388
|
+
}, "Use a constant or linear (start, end) radius per edge");
|
|
390
389
|
}
|
|
391
390
|
/**
|
|
392
391
|
* `FILLET_FAILED` / `CHAMFER_FAILED`, with `metadata.failedEdges` set to the
|
|
@@ -596,10 +595,9 @@ function draft(shape, faces, pullDirection, neutralPlane, angle) {
|
|
|
596
595
|
* The radius varies along the edge according to the provided spec points.
|
|
597
596
|
* Each point specifies a normalized parameter (0 = start, 1 = end) and radius.
|
|
598
597
|
*
|
|
599
|
-
* **Cross-kernel note:** occt-wasm
|
|
600
|
-
*
|
|
601
|
-
*
|
|
602
|
-
* kernel does not implement it.
|
|
598
|
+
* **Cross-kernel note:** occt-wasm and brepkit build a constant or linear
|
|
599
|
+
* (start/end, <=2-point) profile and return `UNSUPPORTED_CAPABILITY` for one of
|
|
600
|
+
* more points. The opencascade.js kernel does not implement it.
|
|
603
601
|
*/
|
|
604
602
|
function variableFillet(shape, edge, radii) {
|
|
605
603
|
if (radii.length === 0) return err(validationError(BrepErrorCode.VARIABLE_FILLET_FAILED, "radii must contain at least one radius spec"));
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DEe6gtTR.cjs");
|
|
2
2
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-I_m8o-s7.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-dj_c8LVc.cjs");
|
|
7
|
+
const require_shapeFns = require("./shapeFns-CljM3iMI.cjs");
|
|
8
|
+
const require_curveFns = require("./curveFns-QaNfJzko.cjs");
|
|
9
|
+
const require_measureFns = require("./measureFns-FrNeGmXh.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-w2wyXEis.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-CTl4cWYD.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-BG1CBQUM.js";
|
|
7
|
+
import { a as isSameShape, n as getHashCode } from "./shapeFns-BRRrZc1X.js";
|
|
8
|
+
import { f as getCurveType, i as curveIsClosed, o as curveLength } from "./curveFns-Dzgl3_MC.js";
|
|
9
|
+
import { r as measureArea } from "./measureFns-WGYWWnQ1.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
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DEe6gtTR.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-I_m8o-s7.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-yQFZe6jf.cjs");
|
|
7
|
+
const require_meshFns = require("./meshFns-Dy1a9wl_.cjs");
|
|
8
8
|
const require_arrayAccess = require("./arrayAccess-DpJYARwv.cjs");
|
|
9
|
-
const require_blueprint = require("./blueprint-
|
|
9
|
+
const require_blueprint = require("./blueprint-DlpFhHbU.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) {
|
|
@@ -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-w2wyXEis.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-CTl4cWYD.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-BxIYXIv-.js";
|
|
7
|
+
import { u as igesUnsupportedError } from "./meshFns-Lie8oAac.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-BzI6waZa.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) {
|
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-Dy1a9wl_.cjs");
|
|
3
|
+
const require_importFns = require("./importFns-CZb21dj7.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-Lie8oAac.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-D1AxkVC3.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@4.6.
|
|
5
|
+
* Synced against `brepkit-wasm@4.6.9`.
|
|
6
6
|
*
|
|
7
7
|
* Methods not yet referenced in the adapter layer are tagged `@unwired`.
|
|
8
8
|
*
|
|
@@ -109,7 +109,6 @@ export interface BrepkitKernel {
|
|
|
109
109
|
fillet(solid: number, edgeHandles: Uint32Array | number[], radius: number): number;
|
|
110
110
|
/** @unwired */
|
|
111
111
|
filletV2(solid: number, edgeHandles: Uint32Array | number[], radius: number): number;
|
|
112
|
-
/** @unwired */
|
|
113
112
|
filletVariable(solid: number, json: string): number;
|
|
114
113
|
chamfer(solid: number, edgeHandles: Uint32Array | number[], distance: number): number;
|
|
115
114
|
chamferV2(solid: number, edgeHandles: Uint32Array | number[], d1: number, d2: number): number;
|
|
@@ -309,10 +308,8 @@ export interface BrepkitKernel {
|
|
|
309
308
|
getNurbsSurfaceDataParity(face: number): string;
|
|
310
309
|
/** @unwired */
|
|
311
310
|
getNurbsSurfaceData(face: number): string;
|
|
312
|
-
/** @unwired */
|
|
313
311
|
getSolidPieces(solid: number): Uint32Array;
|
|
314
312
|
getSolidShells(solid: number): Uint32Array;
|
|
315
|
-
/** @unwired */
|
|
316
313
|
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;
|
|
317
314
|
intersectWithOptions(a: number, b: number, simplify: boolean): number;
|
|
318
315
|
/** @unwired */
|
|
@@ -330,7 +327,6 @@ export interface BrepkitKernel {
|
|
|
330
327
|
multiSectionSweep(faceHandles: Uint32Array | number[], params: Float64Array | number[], spineDegree: number, spineKnots: Float64Array | number[], spineControlPoints: Float64Array | number[], spineWeights: Float64Array | number[], ruled: boolean): number;
|
|
331
328
|
offsetWire2DWithJoin(wire: number, distance: number, joinType: string): number;
|
|
332
329
|
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
|
-
/** @unwired */
|
|
334
330
|
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
331
|
/** @unwired */
|
|
336
332
|
serializeSolid(solid: number): Uint8Array;
|
|
@@ -339,11 +335,11 @@ export interface BrepkitKernel {
|
|
|
339
335
|
/** @unwired */
|
|
340
336
|
toBrepJson(solid: number): string;
|
|
341
337
|
transformFace(face: number, matrix: Float64Array | number[]): void;
|
|
342
|
-
/** @future Not in brepkit-wasm 4.6.
|
|
338
|
+
/** @future Not in brepkit-wasm 4.6.9. Referenced with feature detection in adapter. */
|
|
343
339
|
copyEdge?(edge: number): number;
|
|
344
|
-
/** @future Not in brepkit-wasm 4.6.
|
|
340
|
+
/** @future Not in brepkit-wasm 4.6.9. Referenced with feature detection in adapter. */
|
|
345
341
|
transformEdge?(edge: number, matrix: Float64Array | number[]): void;
|
|
346
|
-
/** @future Not in brepkit-wasm 4.6.
|
|
342
|
+
/** @future Not in brepkit-wasm 4.6.9. Referenced with feature detection in adapter. */
|
|
347
343
|
validateSolidDetails?(solid: number): string;
|
|
348
344
|
/** Release the entire arena. */
|
|
349
345
|
free(): void;
|
|
@@ -25,7 +25,7 @@ export declare function makeEllipseEdge(bk: BrepkitKernel, center: [number, numb
|
|
|
25
25
|
export declare function makeEllipseArc(bk: BrepkitKernel, center: [number, number, number], normal: [number, number, number], majorRadius: number, minorRadius: number, startAngle: number, endAngle: number, xDir?: [number, number, number]): KernelShape;
|
|
26
26
|
export declare function makeBezierEdge(bk: BrepkitKernel, points: [number, number, number][]): KernelShape;
|
|
27
27
|
export declare function makeTangentArc(bk: BrepkitKernel, startPoint: [number, number, number], startTangent: [number, number, number], endPoint: [number, number, number]): KernelShape;
|
|
28
|
-
export declare function makeHelixWire(bk: BrepkitKernel, pitch: number, height: number, radius: number, center?: [number, number, number],
|
|
28
|
+
export declare function makeHelixWire(bk: BrepkitKernel, pitch: number, height: number, radius: number, center?: [number, number, number], direction?: [number, number, number], leftHanded?: boolean): KernelShape;
|
|
29
29
|
export declare function makeWireFromMixed(bk: BrepkitKernel, items: KernelShape[]): KernelShape;
|
|
30
30
|
export declare function makeCompound(bk: BrepkitKernel, shapes: KernelShape[]): KernelShape;
|
|
31
31
|
export declare function makeBoxFromCorners(bk: BrepkitKernel, p1: [number, number, number], p2: [number, number, number]): KernelShape;
|
|
@@ -3,9 +3,9 @@ import { KernelShape } from '../types.js';
|
|
|
3
3
|
export declare function fillet(bk: BrepkitKernel, shape: KernelShape, edges: KernelShape[], radius: number | [number, number] | ((edge: KernelShape) => number | [number, number])): KernelShape;
|
|
4
4
|
/**
|
|
5
5
|
* A variable fillet spec on one edge: `{ edge: hashCode, radii: [{ param, radius }] }`
|
|
6
|
-
* from variableFillet, or `{ edgeId, startRadius, endRadius }`.
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* from variableFillet, or `{ edgeId, startRadius, endRadius }`. Like occt-wasm, a
|
|
7
|
+
* profile runs linearly from its first radius to its last, so one of more than two
|
|
8
|
+
* points is unsupported rather than flattened to a line.
|
|
9
9
|
*/
|
|
10
10
|
export declare function filletVariable(bk: BrepkitKernel, shape: KernelShape, spec: string): KernelShape;
|
|
11
11
|
export declare function chamfer(bk: BrepkitKernel, shape: KernelShape, edges: KernelShape[], distance: number | [number, number] | ((edge: KernelShape) => number | [number, number])): KernelShape;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_occtWasmAdapter = require("../../occtWasmAdapter-
|
|
2
|
+
const require_occtWasmAdapter = require("../../occtWasmAdapter-B9ZXx36v.cjs");
|
|
3
3
|
exports.OcctWasmAdapter = require_occtWasmAdapter.OcctWasmAdapter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as OcctWasmAdapter } from "../../occtWasmAdapter-
|
|
1
|
+
export { t as OcctWasmAdapter } from "../../occtWasmAdapter-CGkZIHyM.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_occtWasmAdapter = require("./occtWasmAdapter-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DEe6gtTR.cjs");
|
|
2
|
+
const require_occtWasmAdapter = require("./occtWasmAdapter-B9ZXx36v.cjs");
|
|
3
3
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
4
4
|
const require_types = require("./types-CjF9Rofr.cjs");
|
|
5
5
|
const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
|
|
@@ -82,13 +82,13 @@ function castSweepShellTuple(result) {
|
|
|
82
82
|
endWire
|
|
83
83
|
]);
|
|
84
84
|
}
|
|
85
|
-
/** `UNSUPPORTED_CAPABILITY` for a sweep option the kernel cannot build (a
|
|
85
|
+
/** `UNSUPPORTED_CAPABILITY` for a sweep option the kernel cannot build (a scaling law on brepkit). */
|
|
86
86
|
function sweepUnsupportedError(kernelId, e) {
|
|
87
87
|
const raw = e instanceof Error ? e.message : String(e);
|
|
88
88
|
return require_errors.unsupportedError(require_errors.BrepErrorCode.UNSUPPORTED_CAPABILITY, `sweep: the ${kernelId} kernel cannot build this sweep (${raw})`, e, {
|
|
89
89
|
kernel: kernelId,
|
|
90
90
|
operation: "sweep"
|
|
91
|
-
}, "Drop the
|
|
91
|
+
}, "Drop the scaling law, or use the occt-wasm kernel");
|
|
92
92
|
}
|
|
93
93
|
function sweep(wire, spine, config = {}, shellMode = false) {
|
|
94
94
|
if (config.mode === "simple" && !shellMode) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { G as _usingCtx, T as isWire, h as disposeResultShape, n as castResultShape, q as getKernel, x as isShape3D } from "./shapeTypes-
|
|
2
|
-
import { j as isUnsupportedKernelOperationError } from "./occtWasmAdapter-
|
|
1
|
+
import { G as _usingCtx, T as isWire, h as disposeResultShape, n as castResultShape, q as getKernel, x as isShape3D } from "./shapeTypes-w2wyXEis.js";
|
|
2
|
+
import { j as isUnsupportedKernelOperationError } from "./occtWasmAdapter-CGkZIHyM.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";
|
|
5
5
|
import { c as vecLength, t as vecAdd } from "./vecOps-S-m9H_fe.js";
|
|
@@ -82,13 +82,13 @@ function castSweepShellTuple(result) {
|
|
|
82
82
|
endWire
|
|
83
83
|
]);
|
|
84
84
|
}
|
|
85
|
-
/** `UNSUPPORTED_CAPABILITY` for a sweep option the kernel cannot build (a
|
|
85
|
+
/** `UNSUPPORTED_CAPABILITY` for a sweep option the kernel cannot build (a scaling law on brepkit). */
|
|
86
86
|
function sweepUnsupportedError(kernelId, e) {
|
|
87
87
|
const raw = e instanceof Error ? e.message : String(e);
|
|
88
88
|
return unsupportedError(BrepErrorCode.UNSUPPORTED_CAPABILITY, `sweep: the ${kernelId} kernel cannot build this sweep (${raw})`, e, {
|
|
89
89
|
kernel: kernelId,
|
|
90
90
|
operation: "sweep"
|
|
91
|
-
}, "Drop the
|
|
91
|
+
}, "Drop the scaling law, or use the occt-wasm kernel");
|
|
92
92
|
}
|
|
93
93
|
function sweep(wire, spine, config = {}, shellMode = false) {
|
|
94
94
|
if (config.mode === "simple" && !shellMode) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_occtWasmAdapter = require("./occtWasmAdapter-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DEe6gtTR.cjs");
|
|
2
|
+
const require_occtWasmAdapter = require("./occtWasmAdapter-B9ZXx36v.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-I_m8o-s7.cjs");
|
|
5
|
+
const require_faceFns = require("./faceFns-dj_c8LVc.cjs");
|
|
6
6
|
// src/measurement/measureCache.ts
|
|
7
7
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
8
8
|
function getCachedMeasurement(shape, key) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { q as getKernel } from "./shapeTypes-
|
|
2
|
-
import { j as isUnsupportedKernelOperationError } from "./occtWasmAdapter-
|
|
1
|
+
import { q as getKernel } from "./shapeTypes-w2wyXEis.js";
|
|
2
|
+
import { j as isUnsupportedKernelOperationError } from "./occtWasmAdapter-CGkZIHyM.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-CTl4cWYD.js";
|
|
5
|
+
import { m as uvBounds } from "./faceFns-BG1CBQUM.js";
|
|
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-FrNeGmXh.cjs");
|
|
3
|
+
const require_principalBoxFns = require("./principalBoxFns-3ZURcOFP.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-WGYWWnQ1.js";
|
|
2
|
+
import { t as principalBoundingBox } from "./principalBoxFns-CjfJnZfH.js";
|
|
3
3
|
export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps, principalBoundingBox };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_occtWasmAdapter = require("./occtWasmAdapter-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DEe6gtTR.cjs");
|
|
2
|
+
const require_occtWasmAdapter = require("./occtWasmAdapter-B9ZXx36v.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-I_m8o-s7.cjs");
|
|
5
|
+
const require_solidBuilders = require("./solidBuilders-yQFZe6jf.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-
|
|
2
|
-
import { j as isUnsupportedKernelOperationError } from "./occtWasmAdapter-
|
|
1
|
+
import { q as getKernel, ut as qualityDeflection } from "./shapeTypes-w2wyXEis.js";
|
|
2
|
+
import { j as isUnsupportedKernelOperationError } from "./occtWasmAdapter-CGkZIHyM.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-CTl4cWYD.js";
|
|
5
|
+
import { d as getFaceOrigins } from "./solidBuilders-BxIYXIv-.js";
|
|
6
6
|
// src/topology/meshCache.ts
|
|
7
7
|
/**
|
|
8
8
|
* Build a parameter key for the inner cache map (excludes shape identity).
|
|
@@ -3920,7 +3920,7 @@ function filletVariable(k, shape, spec) {
|
|
|
3920
3920
|
if (parsed.edgeId !== void 0 && parsed.startRadius !== void 0 && parsed.endRadius !== void 0) return runFilletVariable(k, unwrap(shape), parsed.edgeId, parsed.startRadius, parsed.endRadius);
|
|
3921
3921
|
if (parsed.edge !== void 0 && Array.isArray(parsed.radii) && parsed.radii.length > 0) {
|
|
3922
3922
|
const radii = parsed.radii;
|
|
3923
|
-
if (radii.length > 2) throw new UnsupportedKernelOperationError("occt-wasm: filletVariable supports only a linear (<=2-point) radius profile
|
|
3923
|
+
if (radii.length > 2) throw new UnsupportedKernelOperationError("occt-wasm: filletVariable supports only a linear (<=2-point) radius profile");
|
|
3924
3924
|
const startRadius = radii[0].radius;
|
|
3925
3925
|
const endRadius = radii[radii.length - 1].radius;
|
|
3926
3926
|
const shapeId = unwrap(shape);
|
|
@@ -3920,7 +3920,7 @@ function filletVariable(k, shape, spec) {
|
|
|
3920
3920
|
if (parsed.edgeId !== void 0 && parsed.startRadius !== void 0 && parsed.endRadius !== void 0) return runFilletVariable(k, unwrap(shape), parsed.edgeId, parsed.startRadius, parsed.endRadius);
|
|
3921
3921
|
if (parsed.edge !== void 0 && Array.isArray(parsed.radii) && parsed.radii.length > 0) {
|
|
3922
3922
|
const radii = parsed.radii;
|
|
3923
|
-
if (radii.length > 2) throw new UnsupportedKernelOperationError("occt-wasm: filletVariable supports only a linear (<=2-point) radius profile
|
|
3923
|
+
if (radii.length > 2) throw new UnsupportedKernelOperationError("occt-wasm: filletVariable supports only a linear (<=2-point) radius profile");
|
|
3924
3924
|
const startRadius = radii[0].radius;
|
|
3925
3925
|
const endRadius = radii[radii.length - 1].radius;
|
|
3926
3926
|
const shapeId = unwrap(shape);
|
|
@@ -40,8 +40,8 @@ export interface GuidedSweepOptions {
|
|
|
40
40
|
* @param config - Sweep configuration (frenet, transition mode, scaling law, etc.).
|
|
41
41
|
* @param shellMode - When `true`, return `[shell, startWire, endWire]` instead of a solid.
|
|
42
42
|
* @returns `Result` containing the swept shape, or a `[Shape3D, Wire, Wire]` tuple in shell mode;
|
|
43
|
-
* Err `UNSUPPORTED_CAPABILITY` when the kernel cannot build the
|
|
44
|
-
* (brepkit
|
|
43
|
+
* Err `UNSUPPORTED_CAPABILITY` when the kernel cannot build the law (brepkit), or an
|
|
44
|
+
* auxiliary spine along a spine of more than one edge (brepkit).
|
|
45
45
|
*/
|
|
46
46
|
export declare function sweep(wire: ClosedWire<Dimension>, spine: Wire<Dimension>, config?: SweepOptions, shellMode?: false): Result<Shape3D>;
|
|
47
47
|
/** Sweep in shell mode, returning `[shell, startWire, endWire]`. */
|
|
@@ -95,7 +95,7 @@ export declare function complexExtrude(wire: ClosedWire<Dimension>, center: Vec3
|
|
|
95
95
|
* @param profileShape - Optional scaling profile applied along the extrusion.
|
|
96
96
|
* @param shellMode - When `true`, return `[shell, startWire, endWire]` instead of a solid.
|
|
97
97
|
* @returns `Result` containing the twisted extruded shape, or a shell tuple in shell mode;
|
|
98
|
-
* Err `UNSUPPORTED_CAPABILITY` on a kernel without a
|
|
98
|
+
* Err `UNSUPPORTED_CAPABILITY` for a profile on a kernel without a scaling-law sweep (brepkit).
|
|
99
99
|
*/
|
|
100
100
|
export declare function twistExtrude(wire: ClosedWire<Dimension>, angleDegrees: number, center: Vec3, normal: Vec3, profileShape?: ExtrusionProfile, shellMode?: false): Result<Shape3D>;
|
|
101
101
|
/** Twisted extrusion in shell mode, returning `[shell, startWire, endWire]`. */
|
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-BnNo5eND.cjs");
|
|
3
|
+
const require_loftFns = require("./loftFns-BD0na-M4.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-Dfu2jV41.js";
|
|
2
|
+
import { c as twistExtrude, o as supportExtrude, r as complexExtrude, s as sweep } from "./loftFns-Cua-MamP.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-DEe6gtTR.cjs");
|
|
2
2
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
3
|
-
const require_validityTypes = require("./validityTypes-
|
|
3
|
+
const require_validityTypes = require("./validityTypes-DgknRAAp.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-yQFZe6jf.cjs");
|
|
7
|
+
const require_booleanFns = require("./booleanFns-Dti1CK1F.cjs");
|
|
8
|
+
const require_surfaceBuilders = require("./surfaceBuilders-dWcQ_BpM.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-w2wyXEis.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-C2K0Eepw.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-BxIYXIv-.js";
|
|
7
|
+
import { f as collectInputFaceHashes, g as propagateMetadataThroughRelocation, h as propagateMetadataByHash, m as propagateAllMetadata, p as hasAnyMetadata } from "./booleanFns-Dtg2jqzi.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-BZ7BW8I0.js";
|
|
9
9
|
// src/topology/transformFns.ts
|
|
10
10
|
/**
|
|
11
11
|
* Immutable shape transforms — translate, rotate, scale, mirror, applyMatrix.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DEe6gtTR.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-I_m8o-s7.cjs");
|
|
5
5
|
const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
|
|
6
|
-
const require_measureFns = require("./measureFns-
|
|
6
|
+
const require_measureFns = require("./measureFns-FrNeGmXh.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
|
|
@@ -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-w2wyXEis.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-CTl4cWYD.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-WGYWWnQ1.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
|
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--Ab792oE.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-CXONX5Da.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-6Emek9dE.cjs");
|
|
3
|
+
const require_cornerFinder = require("./cornerFinder-DUzrQsfW.cjs");
|
|
4
4
|
exports.cornerFinder = require_cornerFinder.cornerFinder;
|
|
5
5
|
exports.edgeFinder = require_helpers.edgeFinder;
|
|
6
6
|
exports.faceFinder = require_helpers.faceFinder;
|