brepjs 20.12.8 → 20.12.9
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-Bl109A3Z.js → adjacencyFns-1Cmjb2ot.js} +3 -3
- package/dist/{adjacencyFns-BfgFo-Rh.cjs → adjacencyFns-CfhGIMeR.cjs} +3 -3
- package/dist/{blueprint-RqemOtg5.js → blueprint-BVcuEefs.js} +5 -5
- package/dist/{blueprint-DTDSztfd.cjs → blueprint-DbJVzU9F.cjs} +5 -5
- package/dist/{blueprintFns-C7E5R89N.cjs → blueprintFns-DePTHG1I.cjs} +2 -2
- package/dist/{blueprintFns-B9_PhTr8.js → blueprintFns-mD4pDyFP.js} +2 -2
- package/dist/{blueprintSketcher-Brj4lXjj.cjs → blueprintSketcher-B5CFmhjg.cjs} +3 -3
- package/dist/{blueprintSketcher-B15522Kr.js → blueprintSketcher-BrGmq-65.js} +3 -3
- package/dist/{boolean2D-_eiIiNw1.js → boolean2D-BrHrY60M.js} +4 -4
- package/dist/{boolean2D-DZ8aJbI-.cjs → boolean2D-CFKg1FJ_.cjs} +4 -4
- package/dist/{booleanFns-D5nQ1nWS.cjs → booleanFns-C640CeaY.cjs} +4 -4
- package/dist/{booleanFns-cNfXGqMX.js → booleanFns-CKDyqKz0.js} +4 -4
- package/dist/brepjs.cjs +30 -30
- package/dist/brepjs.js +30 -30
- package/dist/{cameraFns-YhB7A_Zc.js → cameraFns-DIbua1lC.js} +3 -3
- package/dist/{cameraFns-6Er2lhp5.cjs → cameraFns-hXUKJkLg.cjs} +3 -3
- package/dist/core.cjs +2 -2
- package/dist/core.js +2 -2
- package/dist/{cornerFinder-G1WkSkVl.js → cornerFinder-BYDkloVc.js} +1 -1
- package/dist/{cornerFinder-D9Wx3DWu.cjs → cornerFinder-ByBGU0r7.cjs} +1 -1
- package/dist/{curveFns-B5_N-gMj.cjs → curveFns-Cqgtmhr0.cjs} +1 -1
- package/dist/{curveFns-C4CqthJp.js → curveFns-DphpaoQ4.js} +1 -1
- package/dist/{drawFns-DU5fewKl.js → drawFns-Ch3ah8K9.js} +12 -12
- package/dist/{drawFns-UPbO2heB.cjs → drawFns-GwVZX47o.cjs} +12 -12
- package/dist/{faceFns-C4NOGZBg.cjs → faceFns-BDqVGEoB.cjs} +2 -2
- package/dist/{faceFns-BgRNa5vx.js → faceFns-D4cDeMRf.js} +2 -2
- package/dist/{healingFns-BzOo0yyz.js → healingFns--vBKh5pa.js} +5 -5
- package/dist/{healingFns-i5gV3BMG.cjs → healingFns-Fu7Xl8fu.cjs} +5 -5
- package/dist/{helpers-DPHQt2Kr.js → helpers-CroIo2SI.js} +6 -6
- package/dist/{helpers-DJQeDf_5.cjs → helpers-Wnq-YPWv.cjs} +6 -6
- package/dist/{importFns-CwrJsNvg.js → importFns-D5Bt_44J.js} +5 -5
- package/dist/{importFns-BiRpt227.cjs → importFns-tHr15Lhm.cjs} +5 -5
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/occtWasm/evolutionOps.d.ts +4 -3
- package/dist/kernel/occtWasm/helpers.d.ts +14 -3
- package/dist/kernel/occtWasm/ioOps.d.ts +13 -13
- package/dist/kernel/occtWasm/modifierOps.d.ts +5 -3
- package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.d.ts +1 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
- package/dist/kernel/occtWasm/occtWasmTypes.d.ts +33 -0
- package/dist/{loftFns-lwzTh1fI.js → loftFns-Bh_RuF7a.js} +1 -1
- package/dist/{loftFns-DgkK4Kj_.cjs → loftFns-T0GxcPlB.cjs} +1 -1
- package/dist/{measureFns-Q3K25IfN.js → measureFns-C3TZ5Fj9.js} +3 -3
- package/dist/{measureFns-D_RRjCZg.cjs → measureFns-DGm6ndQY.cjs} +3 -3
- package/dist/measurement.cjs +2 -2
- package/dist/measurement.js +2 -2
- package/dist/{meshFns-Djbb4PUC.cjs → meshFns-DDgZ3vpr.cjs} +4 -4
- package/dist/{meshFns-BGoJU6_P.js → meshFns-Go1XSyUh.js} +4 -4
- package/dist/{occtWasmAdapter-UcYZRi-w.cjs → occtWasmAdapter-CZPZnpCe.cjs} +290 -80
- package/dist/{occtWasmAdapter-BCCwaYkq.js → occtWasmAdapter-EM3EhKwk.js} +290 -80
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-D-aYcwt2.js → primitiveFns-CeRc4Sls.js} +5 -5
- package/dist/{primitiveFns-CfSnex9P.cjs → primitiveFns-Dg_XWYtp.cjs} +5 -5
- package/dist/{principalBoxFns-IY8FfPVj.cjs → principalBoxFns-B5zdek3y.cjs} +3 -3
- package/dist/{principalBoxFns-Dcp9gg5e.js → principalBoxFns-BuK-ueAB.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-gZQ1o5XK.cjs → refResolveFns-CFwsYCKA.cjs} +6 -6
- package/dist/{refResolveFns-BPge7T5w.js → refResolveFns-WRcvVhV-.js} +6 -6
- package/dist/{shapeFns-TWdr4Dv4.js → shapeFns-CYjU8PsF.js} +2 -2
- package/dist/{shapeFns-Bs92VrZh.cjs → shapeFns-DuxfaqTw.cjs} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeTypes-DmThK_oa.cjs → shapeTypes--7XBFlOD.cjs} +1 -1
- package/dist/{shapeTypes-CIH-8d_a.js → shapeTypes-DvzbSivn.js} +1 -1
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-q_hwYsdo.js → solidBuilders-BqSVC4cB.js} +3 -3
- package/dist/{solidBuilders-DGskMugU.cjs → solidBuilders-D0bIZX9K.cjs} +3 -3
- package/dist/{surfaceBuilders-DXo4N7wQ.js → surfaceBuilders--HOoTQad.js} +3 -3
- package/dist/{surfaceBuilders-DeSLKg73.cjs → surfaceBuilders-CPQHyL_5.cjs} +3 -3
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-Dz6wNgve.cjs → textBlueprints-B4HzJzZM.cjs} +8 -8
- package/dist/{textBlueprints-BYWZho_c.js → textBlueprints-plsbHqiI.js} +8 -8
- package/dist/{textMetrics-bKoFTj3m.cjs → textMetrics-CBwUIDI7.cjs} +1 -1
- package/dist/{textMetrics-k_rGqib2.js → textMetrics-IIS6DUTr.js} +1 -1
- package/dist/{threadFns-BeB8s0tA.js → threadFns-CmZFykpi.js} +7 -7
- package/dist/{threadFns-CoGAFHHt.cjs → threadFns-e8_26ZYw.cjs} +7 -7
- package/dist/topology.cjs +9 -9
- package/dist/topology.js +9 -9
- package/dist/{topologyQueryFns-Cp0yekBh.js → topologyQueryFns-BUzMuIs5.js} +1 -1
- package/dist/{topologyQueryFns-CXbCFaU2.cjs → topologyQueryFns-NszVx8a0.cjs} +1 -1
- package/dist/{validityTypes-DlrWkrSR.js → validityTypes-CdY06B8c.js} +1 -1
- package/dist/{validityTypes-m6eLRTYE.cjs → validityTypes-Ds4zNICF.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-DvzbSivn.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-BUzMuIs5.js";
|
|
4
4
|
import { r as toVec3 } from "./types-CKXsIm9-.js";
|
|
5
5
|
// src/topology/cast.ts
|
|
6
6
|
var TOPO_ENUM = {
|
|
@@ -1,10 +1,10 @@
|
|
|
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-DvzbSivn.js";
|
|
2
|
+
import { j as isUnsupportedKernelOperationError, n as faultyEdgeIndexesOf } from "./occtWasmAdapter-EM3EhKwk.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-BUzMuIs5.js";
|
|
5
5
|
import { n as HASH_CODE_MAX } from "./constants-iraOnb2p.js";
|
|
6
|
-
import { y as downcast } from "./faceFns-
|
|
7
|
-
import { a as fuseAll, d as collectInputFaceHashes, i as fuse, m as propagateMetadataByHash, n as cut, p as propagateAllMetadata, r as cutAll } from "./booleanFns-
|
|
6
|
+
import { y as downcast } from "./faceFns-D4cDeMRf.js";
|
|
7
|
+
import { a as fuseAll, d as collectInputFaceHashes, i as fuse, m as propagateMetadataByHash, n as cut, p as propagateAllMetadata, r as cutAll } from "./booleanFns-CKDyqKz0.js";
|
|
8
8
|
import { t as firstOrThrow } from "./arrayAccess-BpgouNir.js";
|
|
9
9
|
// src/topology/threeHelpers.ts
|
|
10
10
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes
|
|
2
|
-
const require_occtWasmAdapter = require("./occtWasmAdapter-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes--7XBFlOD.cjs");
|
|
2
|
+
const require_occtWasmAdapter = require("./occtWasmAdapter-CZPZnpCe.cjs");
|
|
3
3
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
4
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
+
const require_topologyQueryFns = require("./topologyQueryFns-NszVx8a0.cjs");
|
|
5
5
|
const require_constants = require("./constants-oee0S_x6.cjs");
|
|
6
|
-
const require_faceFns = require("./faceFns-
|
|
7
|
-
const require_booleanFns = require("./booleanFns-
|
|
6
|
+
const require_faceFns = require("./faceFns-BDqVGEoB.cjs");
|
|
7
|
+
const require_booleanFns = require("./booleanFns-C640CeaY.cjs");
|
|
8
8
|
const require_arrayAccess = require("./arrayAccess-DpJYARwv.cjs");
|
|
9
9
|
// src/topology/threeHelpers.ts
|
|
10
10
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { q as getKernel, y as isFace } from "./shapeTypes-
|
|
1
|
+
import { q as getKernel, y as isFace } from "./shapeTypes-DvzbSivn.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-BUzMuIs5.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 { n as measureArea } from "./measureFns-
|
|
6
|
+
import { l as normalAt, s as getSurfaceType } from "./faceFns-D4cDeMRf.js";
|
|
7
|
+
import { a as isSameShape, n as getHashCode } from "./shapeFns-CYjU8PsF.js";
|
|
8
|
+
import { f as getCurveType, i as curveIsClosed, o as curveLength } from "./curveFns-DphpaoQ4.js";
|
|
9
|
+
import { n as measureArea } from "./measureFns-C3TZ5Fj9.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--7XBFlOD.cjs");
|
|
2
2
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-NszVx8a0.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-BDqVGEoB.cjs");
|
|
7
|
+
const require_shapeFns = require("./shapeFns-DuxfaqTw.cjs");
|
|
8
|
+
const require_curveFns = require("./curveFns-Cqgtmhr0.cjs");
|
|
9
|
+
const require_measureFns = require("./measureFns-DGm6ndQY.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 { C as isSolid, G as _usingCtx, n as castResultShape, q as getKernel } from "./shapeTypes-
|
|
1
|
+
import { C as isSolid, G as _usingCtx, n as castResultShape, q as getKernel } from "./shapeTypes-DvzbSivn.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-BUzMuIs5.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-BqSVC4cB.js";
|
|
7
|
+
import { u as igesUnsupportedError } from "./meshFns-Go1XSyUh.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-BVcuEefs.js";
|
|
10
10
|
// src/io/objExportFns.ts
|
|
11
11
|
/** Read a vec3 from a typed array at the given vertex index. */
|
|
12
12
|
function vec3At(arr, i) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes--7XBFlOD.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-NszVx8a0.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-D0bIZX9K.cjs");
|
|
7
|
+
const require_meshFns = require("./meshFns-DDgZ3vpr.cjs");
|
|
8
8
|
const require_arrayAccess = require("./arrayAccess-DpJYARwv.cjs");
|
|
9
|
-
const require_blueprint = require("./blueprint-
|
|
9
|
+
const require_blueprint = require("./blueprint-DbJVzU9F.cjs");
|
|
10
10
|
// src/io/objExportFns.ts
|
|
11
11
|
/** Read a vec3 from a typed array at the given vertex index. */
|
|
12
12
|
function vec3At(arr, i) {
|
package/dist/io.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_meshFns = require("./meshFns-
|
|
3
|
-
const require_importFns = require("./importFns-
|
|
2
|
+
const require_meshFns = require("./meshFns-DDgZ3vpr.cjs");
|
|
3
|
+
const require_importFns = require("./importFns-tHr15Lhm.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-Go1XSyUh.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-D5Bt_44J.js";
|
|
3
3
|
export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BooleanOptions, DiagnosticOperationResult, KernelShape, KernelType, OperationResult } from '../types.js';
|
|
2
2
|
import { OcctKernelWasm, OcctWasmModule } from './occtWasmTypes.js';
|
|
3
|
+
import { EdgeValueSpec } from './helpers.js';
|
|
3
4
|
/**
|
|
4
5
|
* Parse an EvolutionData result from the WASM kernel into a ShapeEvolution.
|
|
5
6
|
* The C++ facade returns flat vectors of [inputHash, count, out1, out2, ..., inputHash, count, ...].
|
|
@@ -16,10 +17,10 @@ export declare function intersectWithHistory(k: OcctKernelWasm, Module: OcctWasm
|
|
|
16
17
|
export declare function fuseAllWithHistory(k: OcctKernelWasm, Module: OcctWasmModule, shapes: KernelShape[], inputFaceHashes: number[], hashUpperBound: number, options?: BooleanOptions): DiagnosticOperationResult;
|
|
17
18
|
/** N-way cut with face history over the base and every tool. Needs `booleanOp`. */
|
|
18
19
|
export declare function cutAllWithHistory(k: OcctKernelWasm, Module: OcctWasmModule, shape: KernelShape, tools: KernelShape[], inputFaceHashes: number[], hashUpperBound: number, options?: BooleanOptions): DiagnosticOperationResult;
|
|
19
|
-
export declare function filletWithHistory(k: OcctKernelWasm, Module: OcctWasmModule, shape: KernelShape, edges: KernelShape[], radius:
|
|
20
|
-
export declare function chamferWithHistory(k: OcctKernelWasm, Module: OcctWasmModule, shape: KernelShape, edges: KernelShape[], distance:
|
|
20
|
+
export declare function filletWithHistory(k: OcctKernelWasm, Module: OcctWasmModule, shape: KernelShape, edges: KernelShape[], radius: EdgeValueSpec, inputFaceHashes: number[], hashUpperBound: number): OperationResult;
|
|
21
|
+
export declare function chamferWithHistory(k: OcctKernelWasm, Module: OcctWasmModule, shape: KernelShape, edges: KernelShape[], distance: EdgeValueSpec, inputFaceHashes: number[], hashUpperBound: number): OperationResult;
|
|
21
22
|
export declare function shellWithHistory(k: OcctKernelWasm, Module: OcctWasmModule, shape: KernelShape, faces: KernelShape[], thickness: number, inputFaceHashes: number[], hashUpperBound: number, tolerance?: number): OperationResult;
|
|
22
23
|
export declare function thickenWithHistory(k: OcctKernelWasm, Module: OcctWasmModule, shape: KernelShape, thickness: number, inputFaceHashes: number[], hashUpperBound: number): OperationResult;
|
|
23
24
|
export declare function offsetWithHistory(k: OcctKernelWasm, Module: OcctWasmModule, shape: KernelShape, distance: number, inputFaceHashes: number[], hashUpperBound: number, tolerance?: number): OperationResult;
|
|
24
|
-
export declare function draftWithHistory(k: OcctKernelWasm, shape: KernelShape, faces: KernelShape[], pullDirection: [number, number, number], angleDeg: number | ((face: KernelShape) => number)): OperationResult;
|
|
25
|
+
export declare function draftWithHistory(k: OcctKernelWasm, Module: OcctWasmModule, shape: KernelShape, faces: KernelShape[], pullDirection: [number, number, number], neutralPlane: [number, number, number], angleDeg: number | ((face: KernelShape) => number), inputFaceHashes: number[], hashUpperBound: number): OperationResult;
|
|
25
26
|
export declare function applyComposedTransformWithHistory(transformFn: (shape: KernelShape, trsf: KernelType) => KernelShape, iterShapesFn: (shape: KernelShape, type: 'face') => KernelShape[], hashCodeFn: (shape: KernelShape, upperBound: number) => number, shape: KernelShape, transformHandle: KernelType, inputFaceHashes: number[], hashUpperBound: number): OperationResult;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { KernelShape, ShapeEvolution, ShapeType } from '../types.js';
|
|
2
|
+
import { UnsupportedKernelOperationError } from '../unsupported.js';
|
|
2
3
|
import { EmEvolutionData, OcctWasmHandle, OcctWasmModule, OcctKernelWasm, EmVectorUint32, EmVectorInt, EmVectorDouble } from './occtWasmTypes.js';
|
|
3
4
|
export declare const noop: () => void;
|
|
4
5
|
/** Build an opaque kernel handle for an arena-allocated WASM shape. */
|
|
@@ -24,11 +25,20 @@ export declare function readVecInt(vec: EmVectorInt): number[];
|
|
|
24
25
|
* and any other transform-stack composition.
|
|
25
26
|
*/
|
|
26
27
|
export declare function multiplyMatrices4x4(a: number[], b: number[]): number[];
|
|
28
|
+
/** A fillet's start and end radius, or a chamfer's two setbacks. A number is both. */
|
|
29
|
+
type EdgeValue = number | [number, number];
|
|
30
|
+
export type EdgeValueSpec = EdgeValue | ((edge: KernelShape) => EdgeValue);
|
|
27
31
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
32
|
+
* Run a fillet or chamfer over `edges`, naming the edges it fails on. Edges
|
|
33
|
+
* that all take one value go to `uniform`, the single-value entry point every
|
|
34
|
+
* occt-wasm build has; otherwise `perEdge` gets each edge's pair as `first`
|
|
35
|
+
* and `second`.
|
|
30
36
|
*/
|
|
31
|
-
export declare function
|
|
37
|
+
export declare function runEdgeTreatment<T>(Module: OcctWasmModule, edges: KernelShape[], value: EdgeValueSpec, uniform: (edgeVec: EmVectorUint32, value: number) => T, perEdge: (edgeVec: EmVectorUint32, first: EmVectorDouble, second: EmVectorDouble) => T): T;
|
|
38
|
+
/** Each face's draft angle, in radians. */
|
|
39
|
+
export declare function draftAnglesRad(faces: readonly KernelShape[], angleDeg: number | ((face: KernelShape) => number)): number[];
|
|
40
|
+
/** The peer range still admits older builds, which lack the per-edge and unit entry points. */
|
|
41
|
+
export declare function needsOcctWasm59(what: string): UnsupportedKernelOperationError;
|
|
32
42
|
/**
|
|
33
43
|
* Rotate a shape from the kernel's default Z-axis to an arbitrary direction.
|
|
34
44
|
* Used by primitives whose creation API only takes a Z-aligned form.
|
|
@@ -39,3 +49,4 @@ export declare function parseEvolution(evo: EmEvolutionData): {
|
|
|
39
49
|
id: number;
|
|
40
50
|
evolution: ShapeEvolution;
|
|
41
51
|
};
|
|
52
|
+
export {};
|
|
@@ -17,13 +17,17 @@ type MeshFn = (shape: KernelShape, options: {
|
|
|
17
17
|
faceHash: number;
|
|
18
18
|
}>;
|
|
19
19
|
};
|
|
20
|
+
interface StepUnitOptions {
|
|
21
|
+
unit?: string | undefined;
|
|
22
|
+
modelUnit?: string | undefined;
|
|
23
|
+
}
|
|
20
24
|
export declare function exportSTEP(k: OcctKernelWasm, makeCompound: CompoundFn, shapes: KernelShape[]): string;
|
|
21
25
|
export declare function exportSTL(mesh: MeshFn, shape: KernelShape, binary?: boolean, tolerance?: number, angularTolerance?: number): string | ArrayBuffer;
|
|
22
26
|
export declare function importSTEP(k: OcctKernelWasm, data: string | ArrayBuffer): KernelShape[];
|
|
23
27
|
export declare function importSTL(k: OcctKernelWasm, Module: OcctWasmModule, data: string | ArrayBuffer): KernelShape;
|
|
24
28
|
export declare function exportIGES(k: OcctKernelWasm, makeCompound: CompoundFn, shapes: KernelShape[]): string;
|
|
25
29
|
export declare function importIGES(k: OcctKernelWasm, data: string | ArrayBuffer): KernelShape[];
|
|
26
|
-
export declare function exportSTEPAssembly(k: OcctKernelWasm,
|
|
30
|
+
export declare function exportSTEPAssembly(k: OcctKernelWasm, parts: StepAssemblyPart[], options?: {
|
|
27
31
|
unit?: string;
|
|
28
32
|
}): string;
|
|
29
33
|
export declare function exportGLB(mesh: MeshFn, shape: KernelShape, tolerance: number): ArrayBuffer;
|
|
@@ -31,22 +35,18 @@ export declare function exportOBJ(mesh: MeshFn, shape: KernelShape, tolerance: n
|
|
|
31
35
|
export declare function exportPLY(mesh: MeshFn, shape: KernelShape, tolerance: number): ArrayBuffer;
|
|
32
36
|
export declare function toBREP(k: OcctKernelWasm, shape: KernelShape): string;
|
|
33
37
|
export declare function fromBREP(k: OcctKernelWasm, data: string): KernelShape;
|
|
34
|
-
|
|
38
|
+
interface XcafPart {
|
|
39
|
+
readonly shape: KernelShape;
|
|
40
|
+
readonly name?: string | undefined;
|
|
41
|
+
readonly color?: [number, number, number, number] | undefined;
|
|
42
|
+
}
|
|
43
|
+
export declare function createXCAFDocument(k: OcctKernelWasm, makeCompound: CompoundFn, shapes: Array<{
|
|
35
44
|
shape: KernelShape;
|
|
36
45
|
name: string;
|
|
37
46
|
color?: [number, number, number, number] | undefined;
|
|
38
47
|
}>): KernelType;
|
|
39
|
-
export declare function writeXCAFToSTEP(k: OcctKernelWasm, doc: KernelType,
|
|
40
|
-
|
|
41
|
-
modelUnit?: string | undefined;
|
|
42
|
-
}): string;
|
|
43
|
-
export declare function exportSTEPConfigured(k: OcctKernelWasm, Module: OcctWasmModule, shapes: Array<{
|
|
44
|
-
shape: KernelShape;
|
|
45
|
-
name?: string | undefined;
|
|
46
|
-
color?: [number, number, number, number] | undefined;
|
|
47
|
-
}>, _options?: {
|
|
48
|
-
unit?: string | undefined;
|
|
49
|
-
modelUnit?: string | undefined;
|
|
48
|
+
export declare function writeXCAFToSTEP(k: OcctKernelWasm, doc: KernelType, options?: StepUnitOptions): string;
|
|
49
|
+
export declare function exportSTEPConfigured(k: OcctKernelWasm, makeCompound: CompoundFn, shapes: XcafPart[], options?: StepUnitOptions & {
|
|
50
50
|
schema?: number | undefined;
|
|
51
51
|
}): string;
|
|
52
52
|
export {};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { KernelShape } from '../types.js';
|
|
2
2
|
import { OcctKernelWasm, OcctWasmModule } from './occtWasmTypes.js';
|
|
3
|
-
|
|
4
|
-
export declare function
|
|
3
|
+
import { EdgeValueSpec } from './helpers.js';
|
|
4
|
+
export declare function fillet(k: OcctKernelWasm, Module: OcctWasmModule, shape: KernelShape, edges: KernelShape[], radius: EdgeValueSpec): KernelShape;
|
|
5
|
+
export declare function chamfer(k: OcctKernelWasm, Module: OcctWasmModule, shape: KernelShape, edges: KernelShape[], distance: EdgeValueSpec): KernelShape;
|
|
5
6
|
export declare function chamferDistAngle(k: OcctKernelWasm, Module: OcctWasmModule, shape: KernelShape, edges: KernelShape[], distance: number, angleDeg: number): KernelShape;
|
|
6
7
|
export declare function shell(k: OcctKernelWasm, Module: OcctWasmModule, shape: KernelShape, faces: KernelShape[], thickness: number, tolerance?: number): KernelShape;
|
|
7
8
|
export declare function thicken(k: OcctKernelWasm, shape: KernelShape, thickness: number): KernelShape;
|
|
8
9
|
export declare function offset(k: OcctKernelWasm, shape: KernelShape, distance: number, tolerance?: number): KernelShape;
|
|
9
10
|
export declare function filletVariable(k: OcctKernelWasm, shape: KernelShape, spec: string): KernelShape;
|
|
10
|
-
|
|
11
|
+
/** Draft every face in one operation about the plane through `neutralPlane` normal to the pull. */
|
|
12
|
+
export declare function draft(k: OcctKernelWasm, Module: OcctWasmModule, shape: KernelShape, faces: KernelShape[], pullDirection: [number, number, number], neutralPlane: [number, number, number], angleDeg: number | ((face: KernelShape) => number)): KernelShape;
|
|
11
13
|
export declare function defeature(k: OcctKernelWasm, Module: OcctWasmModule, shape: KernelShape, faces: KernelShape[]): KernelShape;
|
|
12
14
|
export declare function offsetWire2D(k: OcctKernelWasm, wire: KernelShape, offset: number, joinType?: number | 'arc' | 'intersection' | 'tangent'): KernelShape;
|
|
13
15
|
export declare function simplify(k: OcctKernelWasm, shape: KernelShape): 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-CZPZnpCe.cjs");
|
|
3
3
|
exports.OcctWasmAdapter = require_occtWasmAdapter.OcctWasmAdapter;
|
|
@@ -214,7 +214,7 @@ export declare class OcctWasmAdapter implements KernelAdapter {
|
|
|
214
214
|
shellWithHistory(shape: KernelShape, faces: KernelShape[], thickness: number, inputFaceHashes: number[], hashUpperBound: number, tolerance?: number): OperationResult;
|
|
215
215
|
thickenWithHistory(shape: KernelShape, thickness: number, inputFaceHashes: number[], hashUpperBound: number): OperationResult;
|
|
216
216
|
offsetWithHistory(shape: KernelShape, distance: number, inputFaceHashes: number[], hashUpperBound: number, tolerance?: number): OperationResult;
|
|
217
|
-
draftWithHistory(shape: KernelShape, faces: KernelShape[], pullDirection: [number, number, number],
|
|
217
|
+
draftWithHistory(shape: KernelShape, faces: KernelShape[], pullDirection: [number, number, number], neutralPlane: [number, number, number], angleDeg: number | ((face: KernelShape) => number), inputFaceHashes: number[], hashUpperBound: number): OperationResult;
|
|
218
218
|
applyComposedTransformWithHistory(shape: KernelShape, transformHandle: KernelType, inputFaceHashes: number[], hashUpperBound: number): OperationResult;
|
|
219
219
|
mesh(shape: KernelShape, options: MeshOptions): KernelMeshResult;
|
|
220
220
|
meshEdges(shape: KernelShape, tolerance: number, angularTolerance: number): KernelEdgeMeshResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as OcctWasmAdapter } from "../../occtWasmAdapter-
|
|
1
|
+
export { t as OcctWasmAdapter } from "../../occtWasmAdapter-EM3EhKwk.js";
|
|
@@ -144,9 +144,29 @@ export interface OcctKernelWasm {
|
|
|
144
144
|
fillet(solidId: number, edgeIds: EmVectorUint32, radius: number): number;
|
|
145
145
|
chamfer(solidId: number, edgeIds: EmVectorUint32, distance: number): number;
|
|
146
146
|
chamferDistAngle(solidId: number, edgeIds: EmVectorUint32, distance: number, angleDeg: number): number;
|
|
147
|
+
/**
|
|
148
|
+
* occt-wasm >= 5.9.0: one radius pair per edge, constant where start equals
|
|
149
|
+
* end, else a linear taper from the edge's first vertex to its last.
|
|
150
|
+
*/
|
|
151
|
+
filletRadii?(solidId: number, edgeIds: EmVectorUint32, startRadii: EmVectorDouble, endRadii: EmVectorDouble): number;
|
|
152
|
+
/**
|
|
153
|
+
* occt-wasm >= 5.9.0: one distance pair per edge, `distances1` set back on the
|
|
154
|
+
* reference face. `referenceFaceIds` is empty or one per edge; 0 (or empty)
|
|
155
|
+
* picks the edge's first adjacent face.
|
|
156
|
+
*/
|
|
157
|
+
chamferDistances?(solidId: number, edgeIds: EmVectorUint32, distances1: EmVectorDouble, distances2: EmVectorDouble, referenceFaceIds: EmVectorUint32): number;
|
|
158
|
+
/** occt-wasm >= 5.9.0: per-edge distance-angle chamfer; reference faces as in `chamferDistances`. */
|
|
159
|
+
chamferDistAngles?(solidId: number, edgeIds: EmVectorUint32, distances: EmVectorDouble, anglesDeg: EmVectorDouble, referenceFaceIds: EmVectorUint32): number;
|
|
147
160
|
shell(solidId: number, faceIds: EmVectorUint32, thickness: number, tolerance: number): number;
|
|
148
161
|
offset(solidId: number, distance: number, tolerance: number): number;
|
|
162
|
+
/** Drafts about the XY plane through the origin, whatever the caller's neutral plane. */
|
|
149
163
|
draft(shapeId: number, faceId: number, angleRad: number, dx: number, dy: number, dz: number): number;
|
|
164
|
+
/**
|
|
165
|
+
* occt-wasm >= 5.9.0: draft every face in one operation, face i by
|
|
166
|
+
* `anglesRad[i]`, pulling along (dx, dy, dz) about the plane through
|
|
167
|
+
* (px, py, pz) with normal (nx, ny, nz).
|
|
168
|
+
*/
|
|
169
|
+
draftFaces?(shapeId: number, faceIds: EmVectorUint32, anglesRad: EmVectorDouble, dx: number, dy: number, dz: number, px: number, py: number, pz: number, nx: number, ny: number, nz: number): number;
|
|
150
170
|
pipe(profileId: number, spineId: number): number;
|
|
151
171
|
simplePipe(profileId: number, spineId: number): number;
|
|
152
172
|
loft(wireIds: EmVectorUint32, isSolid: boolean, ruled: boolean): number;
|
|
@@ -228,6 +248,11 @@ export interface OcctKernelWasm {
|
|
|
228
248
|
meshShape(id: number, linearDeflection: number, angularDeflection: number): EmMeshData;
|
|
229
249
|
importStep(data: string): number;
|
|
230
250
|
exportStep(id: number): string;
|
|
251
|
+
/**
|
|
252
|
+
* occt-wasm >= 5.9.0: STEP with lengths written in `unit` (mm, cm, m, km,
|
|
253
|
+
* inch, ft, mi, mil, um, uin). Geometry is read as millimeters.
|
|
254
|
+
*/
|
|
255
|
+
exportStepWithUnit?(id: number, unit: string): string;
|
|
231
256
|
importStl(data: string): number;
|
|
232
257
|
/** Absent from published occt-wasm builds (no IGES translator), so callers feature-detect. */
|
|
233
258
|
importIges?(data: string): number;
|
|
@@ -280,6 +305,8 @@ export interface OcctKernelWasm {
|
|
|
280
305
|
xcafSetName(docId: number, labelId: number, name: string): void;
|
|
281
306
|
xcafGetRootLabels(docId: number): EmVectorInt;
|
|
282
307
|
xcafExportSTEP(docId: number): string;
|
|
308
|
+
/** occt-wasm >= 5.9.0: units as in {@link exportStepWithUnit}. */
|
|
309
|
+
xcafExportSTEPWithUnit?(docId: number, unit: string): string;
|
|
283
310
|
bsplineSurface(flatPoints: EmVectorDouble, rows: number, cols: number): number;
|
|
284
311
|
makeFaceOnSurface(faceId: number, wireId: number): number;
|
|
285
312
|
makeNullShape(): number;
|
|
@@ -298,6 +325,12 @@ export interface OcctKernelWasm {
|
|
|
298
325
|
scaleWithHistory(id: number, cx: number, cy: number, cz: number, factor: number, inputFaceHashes: EmVectorInt, hashUpperBound: number): EmEvolutionData;
|
|
299
326
|
intersectWithHistory(a: number, b: number, inputFaceHashes: EmVectorInt, hashUpperBound: number): EmEvolutionData;
|
|
300
327
|
chamferWithHistory(solidId: number, edgeIds: EmVectorUint32, distance: number, inputFaceHashes: EmVectorInt, hashUpperBound: number): EmEvolutionData;
|
|
328
|
+
/** occt-wasm >= 5.9.0: {@link filletRadii} with face evolution. */
|
|
329
|
+
filletRadiiWithHistory?(solidId: number, edgeIds: EmVectorUint32, startRadii: EmVectorDouble, endRadii: EmVectorDouble, inputFaceHashes: EmVectorInt, hashUpperBound: number): EmEvolutionData;
|
|
330
|
+
/** occt-wasm >= 5.9.0: {@link chamferDistances} with face evolution. */
|
|
331
|
+
chamferDistancesWithHistory?(solidId: number, edgeIds: EmVectorUint32, distances1: EmVectorDouble, distances2: EmVectorDouble, referenceFaceIds: EmVectorUint32, inputFaceHashes: EmVectorInt, hashUpperBound: number): EmEvolutionData;
|
|
332
|
+
/** occt-wasm >= 5.9.0 (npm build): {@link draftFaces} with face evolution. */
|
|
333
|
+
draftFacesWithHistory?(shapeId: number, faceIds: EmVectorUint32, anglesRad: EmVectorDouble, dx: number, dy: number, dz: number, px: number, py: number, pz: number, nx: number, ny: number, nz: number, inputFaceHashes: EmVectorInt, hashUpperBound: number): EmEvolutionData;
|
|
301
334
|
shellWithHistory(solidId: number, faceIds: EmVectorUint32, thickness: number, tolerance: number, inputFaceHashes: EmVectorInt, hashUpperBound: number): EmEvolutionData;
|
|
302
335
|
offsetWithHistory(solidId: number, distance: number, tolerance: number, inputFaceHashes: EmVectorInt, hashUpperBound: number): EmEvolutionData;
|
|
303
336
|
thickenWithHistory(shapeId: number, thickness: number, tolerance: number, inputFaceHashes: EmVectorInt, hashUpperBound: number): EmEvolutionData;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as _usingCtx, T as isWire, h as disposeResultShape, n as castResultShape, q as getKernel, x as isShape3D } from "./shapeTypes-
|
|
1
|
+
import { G as _usingCtx, T as isWire, h as disposeResultShape, n as castResultShape, q as getKernel, x as isShape3D } from "./shapeTypes-DvzbSivn.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-BTccWbtE.js";
|
|
3
3
|
import { r as toVec3 } from "./types-CKXsIm9-.js";
|
|
4
4
|
import { c as vecLength, t as vecAdd } from "./vecOps-S-m9H_fe.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes--7XBFlOD.cjs");
|
|
2
2
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
3
3
|
const require_types = require("./types-CjF9Rofr.cjs");
|
|
4
4
|
const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { q as getKernel } from "./shapeTypes-
|
|
1
|
+
import { q as getKernel } from "./shapeTypes-DvzbSivn.js";
|
|
2
2
|
import { E as ok, d as validationError, g as err, t as BrepErrorCode } from "./errors-BTccWbtE.js";
|
|
3
|
-
import { E as kernelCallRaw } from "./topologyQueryFns-
|
|
4
|
-
import { m as uvBounds } from "./faceFns-
|
|
3
|
+
import { E as kernelCallRaw } from "./topologyQueryFns-BUzMuIs5.js";
|
|
4
|
+
import { m as uvBounds } from "./faceFns-D4cDeMRf.js";
|
|
5
5
|
// 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--7XBFlOD.cjs");
|
|
2
2
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-NszVx8a0.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-BDqVGEoB.cjs");
|
|
5
5
|
// src/measurement/measureCache.ts
|
|
6
6
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
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-DGm6ndQY.cjs");
|
|
3
|
+
const require_principalBoxFns = require("./principalBoxFns-B5zdek3y.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 { 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-
|
|
2
|
-
import { t as principalBoundingBox } from "./principalBoxFns-
|
|
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-C3TZ5Fj9.js";
|
|
2
|
+
import { t as principalBoundingBox } from "./principalBoxFns-BuK-ueAB.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--7XBFlOD.cjs");
|
|
2
|
+
const require_occtWasmAdapter = require("./occtWasmAdapter-CZPZnpCe.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-NszVx8a0.cjs");
|
|
5
|
+
const require_solidBuilders = require("./solidBuilders-D0bIZX9K.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-DvzbSivn.js";
|
|
2
|
+
import { j as isUnsupportedKernelOperationError } from "./occtWasmAdapter-EM3EhKwk.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-BUzMuIs5.js";
|
|
5
|
+
import { d as getFaceOrigins } from "./solidBuilders-BqSVC4cB.js";
|
|
6
6
|
// src/topology/meshCache.ts
|
|
7
7
|
/**
|
|
8
8
|
* Build a parameter key for the inner cache map (excludes shape identity).
|