brepjs 18.118.21 → 18.118.22
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-Dgsl8VJ2.js → adjacencyFns-CME8_Ejy.js} +3 -3
- package/dist/{adjacencyFns-h7eAxaRD.cjs → adjacencyFns-Rli_sYu0.cjs} +3 -3
- package/dist/{blueprint-DG-2uqNB.cjs → blueprint-DHkhXQ-P.cjs} +5 -5
- package/dist/{blueprint-CwQmYoR4.js → blueprint-DN2hNJ08.js} +5 -5
- package/dist/{blueprintFns-aCrK18ZR.js → blueprintFns-BRsTIpwS.js} +2 -2
- package/dist/{blueprintFns-FAuYTbQQ.cjs → blueprintFns-Bro6pOEx.cjs} +2 -2
- package/dist/{blueprintSketcher-VvIRL3M8.js → blueprintSketcher-BRFHrNhR.js} +3 -3
- package/dist/{blueprintSketcher-k5dNnvzs.cjs → blueprintSketcher-DmCll228.cjs} +3 -3
- package/dist/{boolean2D-BmkwzUgt.cjs → boolean2D-BbkgYbej.cjs} +4 -4
- package/dist/{boolean2D-qYYFeLWX.js → boolean2D-DWIQyvn_.js} +4 -4
- package/dist/brepjs.cjs +26 -26
- package/dist/brepjs.js +26 -26
- package/dist/{cameraFns-BZMHFbh9.cjs → cameraFns-Bdkvayeo.cjs} +3 -3
- package/dist/{cameraFns-CYU4C4N6.js → cameraFns-x2CiTzWz.js} +3 -3
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-BEiSjmuO.cjs → cornerFinder-D1FvVPF_.cjs} +1 -1
- package/dist/{cornerFinder-DhOm0L8g.js → cornerFinder-sXfHxiyw.js} +1 -1
- package/dist/{curveFns-YN8_CsqU.cjs → curveFns-BnO2rju_.cjs} +1 -1
- package/dist/{curveFns-SNQ04JW6.js → curveFns-CjXjOojp.js} +1 -1
- package/dist/{drawFns-8zxP0gC5.js → drawFns-CJB8-Alm.js} +12 -12
- package/dist/{drawFns-Dqsv_t37.cjs → drawFns-CMEEUHjz.cjs} +12 -12
- package/dist/{faceFns-CCu9ULQm.js → faceFns-BGKBw92q.js} +2 -2
- package/dist/{faceFns-C0SwZInk.cjs → faceFns-DBv5u_f9.cjs} +2 -2
- package/dist/{healingFns-Bbl5KTIh.cjs → healingFns-BY7zqj9G.cjs} +5 -5
- package/dist/{healingFns-D6Bizorp.js → healingFns-Wk-8KDXX.js} +5 -5
- package/dist/{helpers-By-BruMN.js → helpers-B2KCN_-N.js} +6 -6
- package/dist/{helpers-Cv-lOGsc.cjs → helpers-D83P_lxb.cjs} +6 -6
- package/dist/{importFns-6eFs1L_G.cjs → importFns-Btu0Taj7.cjs} +2 -2
- package/dist/{importFns-Bcza0b4Y.js → importFns-CNYOnxuV.js} +2 -2
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/interfaces/topologyOps.d.ts +13 -0
- package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.d.ts +2 -0
- package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
- package/dist/kernel/occtWasm/occtWasmTypes.d.ts +4 -0
- package/dist/kernel/occtWasm/topologyOps.d.ts +4 -0
- package/dist/{loftFns-Bbe5jRA-.cjs → loftFns-Dlxh4HWG.cjs} +1 -1
- package/dist/{loftFns-DEReccFa.js → loftFns-DwFxOyHA.js} +1 -1
- package/dist/{measureFns-DHj5Z-5c.js → measureFns-BHEI76L8.js} +3 -3
- package/dist/{measureFns-DMzw5wf0.cjs → measureFns-COF1whvP.cjs} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-B9pPcwuD.cjs → meshFns-BUpCd8Ad.cjs} +3 -3
- package/dist/{meshFns-C2nLgSf2.js → meshFns-UbHsizxI.js} +3 -3
- package/dist/{occtWasmAdapter-5_6aHhcD.js → occtWasmAdapter-CYfezu3P.js} +19 -0
- package/dist/{occtWasmAdapter-CIxwUim8.cjs → occtWasmAdapter-Hkzb95Fy.cjs} +19 -0
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-DZXN7qDb.cjs → primitiveFns-Cxclo3Kr.cjs} +4 -4
- package/dist/{primitiveFns-D2zyQa3w.js → primitiveFns-thuLjZoA.js} +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-C_mHlM8R.js → refResolveFns-Cdsdnazm.js} +6 -6
- package/dist/{refResolveFns-CHm7tsm2.cjs → refResolveFns-CyeqAYfq.cjs} +6 -6
- package/dist/{shapeFns-DzXcfZHY.cjs → shapeFns-CO_l0k39.cjs} +3 -7
- package/dist/{shapeFns-BakfS4c9.js → shapeFns-CgZA6LDP.js} +3 -7
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeTypes-BfOb9vzc.cjs → shapeTypes-CfvfdzVF.cjs} +1 -1
- package/dist/{shapeTypes-B5bBKbg9.js → shapeTypes-DZWeBLpa.js} +1 -1
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-BgrXN-GP.cjs → solidBuilders-DmyjgcA-.cjs} +5 -5
- package/dist/{solidBuilders-DaTgm_Wj.js → solidBuilders-PnxdyH9u.js} +5 -5
- package/dist/{surfaceBuilders-BdUP_OXk.js → surfaceBuilders-DjjtPLqS.js} +2 -2
- package/dist/{surfaceBuilders-CUNhA_3a.cjs → surfaceBuilders-kmpmUZRX.cjs} +2 -2
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints--5GSuYEm.cjs → textBlueprints-Bk5h559Y.cjs} +7 -7
- package/dist/{textBlueprints-C_JaAGiG.js → textBlueprints-IeZPxfnz.js} +7 -7
- package/dist/{textMetrics-829YpBdN.js → textMetrics-Bu15lvq_.js} +1 -1
- package/dist/{textMetrics-CyJlakdR.cjs → textMetrics-DaeMRXkd.cjs} +1 -1
- package/dist/{threadFns-BBELmTZv.cjs → threadFns-B2GWWNfP.cjs} +7 -7
- package/dist/{threadFns-H0mRmS6I.js → threadFns-Cf31rpJU.js} +7 -7
- package/dist/topology/topologyQueryFns.d.ts +17 -1
- package/dist/topology.cjs +9 -9
- package/dist/topology.js +9 -9
- package/dist/{topologyQueryFns-tns6VXoD.cjs → topologyQueryFns-C4us1DQ1.cjs} +43 -5
- package/dist/{topologyQueryFns-MAUFbsSp.js → topologyQueryFns-DiR_wMEy.js} +38 -6
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { rt as getKernel, y as isFace } from "./shapeTypes-
|
|
1
|
+
import { rt as getKernel, y as isFace } from "./shapeTypes-DZWeBLpa.js";
|
|
2
2
|
import { n as bug } from "./bug-BdOHwn_e.js";
|
|
3
3
|
import { C as isOk, O as ok, o as queryError, v as err } from "./errors-B3CDG537.js";
|
|
4
|
-
import { c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-
|
|
4
|
+
import { c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-DiR_wMEy.js";
|
|
5
5
|
import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
6
6
|
import { a as vecDot, d as vecNormalize } from "./vecOps-SKPRvPH-.js";
|
|
7
|
-
import { l as normalAt, s as getSurfaceType } from "./faceFns-
|
|
8
|
-
import { a as isSameShape, n as getHashCode } from "./shapeFns-
|
|
9
|
-
import { f as getCurveType, i as curveIsClosed, o as curveLength } from "./curveFns-
|
|
10
|
-
import { n as measureArea } from "./measureFns-
|
|
7
|
+
import { l as normalAt, s as getSurfaceType } from "./faceFns-BGKBw92q.js";
|
|
8
|
+
import { a as isSameShape, n as getHashCode } from "./shapeFns-CgZA6LDP.js";
|
|
9
|
+
import { f as getCurveType, i as curveIsClosed, o as curveLength } from "./curveFns-CjXjOojp.js";
|
|
10
|
+
import { n as measureArea } from "./measureFns-BHEI76L8.js";
|
|
11
11
|
//#region src/utils/vec2d.ts
|
|
12
12
|
/** Precision for curve intersection and parameter operations. */
|
|
13
13
|
var PRECISION_INTERSECTION = 1e-9;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-CfvfdzVF.cjs");
|
|
2
2
|
const require_bug = require("./bug-O02CsAmt.cjs");
|
|
3
3
|
const require_errors = require("./errors-CJU8CHng.cjs");
|
|
4
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
+
const require_topologyQueryFns = require("./topologyQueryFns-C4us1DQ1.cjs");
|
|
5
5
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
6
6
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
7
|
-
const require_faceFns = require("./faceFns-
|
|
8
|
-
const require_shapeFns = require("./shapeFns-
|
|
9
|
-
const require_curveFns = require("./curveFns-
|
|
10
|
-
const require_measureFns = require("./measureFns-
|
|
7
|
+
const require_faceFns = require("./faceFns-DBv5u_f9.cjs");
|
|
8
|
+
const require_shapeFns = require("./shapeFns-CO_l0k39.cjs");
|
|
9
|
+
const require_curveFns = require("./curveFns-BnO2rju_.cjs");
|
|
10
|
+
const require_measureFns = require("./measureFns-COF1whvP.cjs");
|
|
11
11
|
//#region src/utils/vec2d.ts
|
|
12
12
|
/** Precision for curve intersection and parameter operations. */
|
|
13
13
|
var PRECISION_INTERSECTION = 1e-9;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-CfvfdzVF.cjs");
|
|
2
2
|
const require_bug = require("./bug-O02CsAmt.cjs");
|
|
3
3
|
const require_errors = require("./errors-CJU8CHng.cjs");
|
|
4
4
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
5
|
-
const require_blueprint = require("./blueprint-
|
|
5
|
+
const require_blueprint = require("./blueprint-DHkhXQ-P.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) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as castShape, rt as getKernel } from "./shapeTypes-
|
|
1
|
+
import { i as castShape, rt as getKernel } from "./shapeTypes-DZWeBLpa.js";
|
|
2
2
|
import { i as wasmIndex, r as vec3At$1 } from "./bug-BdOHwn_e.js";
|
|
3
3
|
import { O as ok, r as ioError, t as BrepErrorCode, v as err } from "./errors-B3CDG537.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-DN2hNJ08.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) {
|
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-BUpCd8Ad.cjs");
|
|
3
|
+
const require_importFns = require("./importFns-Btu0Taj7.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-UbHsizxI.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-CNYOnxuV.js";
|
|
3
3
|
export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
|
|
@@ -26,6 +26,19 @@ export interface KernelTopologyOps {
|
|
|
26
26
|
copyShape(shape: KernelShape): KernelShape;
|
|
27
27
|
/** Compute a hash code for a shape (used for face tracking). */
|
|
28
28
|
hashCode(shape: KernelShape, upperBound: number): number;
|
|
29
|
+
/**
|
|
30
|
+
* Count sub-shapes of a type without allocating a handle per sub-shape.
|
|
31
|
+
* Optional native fast path (occt-wasm >= 3.7.0); absent kernels fall back to
|
|
32
|
+
* iterating handles. See the topology-layer `subShapeCount` wrapper.
|
|
33
|
+
*/
|
|
34
|
+
subShapeCount?(shape: KernelShape, type: ShapeType): number;
|
|
35
|
+
/**
|
|
36
|
+
* Deduplicated sub-shape hashes at `hashUpperBound`, with no per-sub-shape
|
|
37
|
+
* handle allocation. Hashes agree with {@link hashCode} at the same bound.
|
|
38
|
+
* Optional native fast path (occt-wasm >= 3.7.0). See the topology-layer
|
|
39
|
+
* `subShapeHashes` wrapper.
|
|
40
|
+
*/
|
|
41
|
+
subShapeHashes?(shape: KernelShape, type: ShapeType, hashUpperBound: number): number[];
|
|
29
42
|
/** Check if a shape handle is null. */
|
|
30
43
|
isNull(shape: KernelShape): boolean;
|
|
31
44
|
/** Get the orientation of a shape (forward, reversed, internal, external). */
|
|
@@ -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-Hkzb95Fy.cjs");
|
|
3
3
|
exports.OcctWasmAdapter = require_occtWasmAdapter.OcctWasmAdapter;
|
|
@@ -272,6 +272,8 @@ export declare class OcctWasmAdapter implements KernelAdapter {
|
|
|
272
272
|
downcast(shape: KernelShape, type?: ShapeType): KernelShape;
|
|
273
273
|
copyShape(shape: KernelShape): KernelShape;
|
|
274
274
|
hashCode(shape: KernelShape, upperBound: number): number;
|
|
275
|
+
subShapeCount(shape: KernelShape, type: ShapeType): number;
|
|
276
|
+
subShapeHashes(shape: KernelShape, type: ShapeType, hashUpperBound: number): number[];
|
|
275
277
|
isNull(shape: KernelShape): boolean;
|
|
276
278
|
shapeOrientation(shape: KernelShape): ShapeOrientation;
|
|
277
279
|
edgeToFaceMap(shape: KernelShape): string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as OcctWasmAdapter } from "../../occtWasmAdapter-
|
|
1
|
+
import { t as OcctWasmAdapter } from "../../occtWasmAdapter-CYfezu3P.js";
|
|
2
2
|
export { OcctWasmAdapter };
|
|
@@ -117,6 +117,10 @@ export interface OcctKernelWasm {
|
|
|
117
117
|
checkpoint(): number;
|
|
118
118
|
/** Free every handle allocated at or after `mark` in one call (occt-wasm >= 3.7.0). */
|
|
119
119
|
releaseSince(mark: number): void;
|
|
120
|
+
/** Count sub-shapes of a type without allocating a handle each (occt-wasm >= 3.7.0). */
|
|
121
|
+
subShapeCount(id: number, shapeType: string): number;
|
|
122
|
+
/** Deduplicated sub-shape hashes, no per-sub-shape handle allocation (occt-wasm >= 3.7.0). */
|
|
123
|
+
subShapeHashes(id: number, shapeType: string, hashUpperBound: number): EmVectorInt;
|
|
120
124
|
makeBox(dx: number, dy: number, dz: number): number;
|
|
121
125
|
makeBoxFromCorners(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number): number;
|
|
122
126
|
makeCylinder(radius: number, height: number): number;
|
|
@@ -10,6 +10,10 @@ export declare function hashCode(k: OcctKernelWasm, shape: KernelShape, upperBou
|
|
|
10
10
|
export declare function isNull(k: OcctKernelWasm, shape: KernelShape): boolean;
|
|
11
11
|
export declare function shapeOrientation(k: OcctKernelWasm, shape: KernelShape): ShapeOrientation;
|
|
12
12
|
export declare function edgeToFaceMap(k: OcctKernelWasm, shape: KernelShape): string;
|
|
13
|
+
/** Count sub-shapes of `type` without materialising a handle per sub-shape (3.7.0). */
|
|
14
|
+
export declare function subShapeCount(k: OcctKernelWasm, shape: KernelShape, type: ShapeType): number;
|
|
15
|
+
/** Deduplicated sub-shape hashes at `hashUpperBound`, no per-sub-shape handle (3.7.0). */
|
|
16
|
+
export declare function subShapeHashes(k: OcctKernelWasm, shape: KernelShape, type: ShapeType, hashUpperBound: number): number[];
|
|
13
17
|
export declare function sharedEdges(k: OcctKernelWasm, faceA: KernelShape, faceB: KernelShape): KernelShape[];
|
|
14
18
|
export declare function adjacentFaces(k: OcctKernelWasm, shape: KernelShape, face: KernelShape): KernelShape[];
|
|
15
19
|
export declare function sew(k: OcctKernelWasm, Module: OcctWasmModule, shapes: KernelShape[], tolerance?: number): KernelShape;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-CfvfdzVF.cjs");
|
|
2
2
|
const require_errors = require("./errors-CJU8CHng.cjs");
|
|
3
3
|
const require_types = require("./types-KjA8tY4Y.cjs");
|
|
4
4
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as isWire, d as createSolid, h as disposeResultShape, m as disposeDowncastSource, n as castResultShape, rt as getKernel, tt as _usingCtx, x as isShape3D } from "./shapeTypes-
|
|
1
|
+
import { T as isWire, d as createSolid, h as disposeResultShape, m as disposeDowncastSource, n as castResultShape, rt as getKernel, tt as _usingCtx, x as isShape3D } from "./shapeTypes-DZWeBLpa.js";
|
|
2
2
|
import { O as ok, S as isErr, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, v as err } from "./errors-B3CDG537.js";
|
|
3
3
|
import { r as toVec3 } from "./types-D24Y27N0.js";
|
|
4
4
|
import { c as vecLength, d as vecNormalize, t as vecAdd } from "./vecOps-SKPRvPH-.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { rt as getKernel } from "./shapeTypes-
|
|
1
|
+
import { rt as getKernel } from "./shapeTypes-DZWeBLpa.js";
|
|
2
2
|
import { O as ok, d as validationError, t as BrepErrorCode, v as err } from "./errors-B3CDG537.js";
|
|
3
|
-
import {
|
|
4
|
-
import { m as uvBounds } from "./faceFns-
|
|
3
|
+
import { T as kernelCallRaw } from "./topologyQueryFns-DiR_wMEy.js";
|
|
4
|
+
import { m as uvBounds } from "./faceFns-BGKBw92q.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-CfvfdzVF.cjs");
|
|
2
2
|
const require_errors = require("./errors-CJU8CHng.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-C4us1DQ1.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-DBv5u_f9.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-COF1whvP.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-BHEI76L8.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-CfvfdzVF.cjs");
|
|
2
2
|
const require_errors = require("./errors-CJU8CHng.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
-
const require_shapeFns = require("./shapeFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-C4us1DQ1.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-CO_l0k39.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 { St as qualityDeflection, rt as getKernel } from "./shapeTypes-
|
|
1
|
+
import { St as qualityDeflection, rt as getKernel } from "./shapeTypes-DZWeBLpa.js";
|
|
2
2
|
import { O as ok, r as ioError, v as err } from "./errors-B3CDG537.js";
|
|
3
|
-
import { d as getSolids, n as getBounds } from "./topologyQueryFns-
|
|
4
|
-
import { j as getFaceOrigins } from "./shapeFns-
|
|
3
|
+
import { d as getSolids, n as getBounds } from "./topologyQueryFns-DiR_wMEy.js";
|
|
4
|
+
import { j as getFaceOrigins } from "./shapeFns-CgZA6LDP.js";
|
|
5
5
|
//#region src/topology/meshCache.ts
|
|
6
6
|
/**
|
|
7
7
|
* Build a parameter key for the inner cache map (excludes shape identity).
|
|
@@ -1565,6 +1565,19 @@ function edgeToFaceMap(k, shape) {
|
|
|
1565
1565
|
}
|
|
1566
1566
|
return JSON.stringify(map);
|
|
1567
1567
|
}
|
|
1568
|
+
/** Count sub-shapes of `type` without materialising a handle per sub-shape (3.7.0). */
|
|
1569
|
+
function subShapeCount(k, shape, type) {
|
|
1570
|
+
return k.subShapeCount(unwrap(shape), type);
|
|
1571
|
+
}
|
|
1572
|
+
/** Deduplicated sub-shape hashes at `hashUpperBound`, no per-sub-shape handle (3.7.0). */
|
|
1573
|
+
function subShapeHashes(k, shape, type, hashUpperBound) {
|
|
1574
|
+
const vec = k.subShapeHashes(unwrap(shape), type, hashUpperBound);
|
|
1575
|
+
try {
|
|
1576
|
+
return readVecInt(vec);
|
|
1577
|
+
} finally {
|
|
1578
|
+
vec.delete();
|
|
1579
|
+
}
|
|
1580
|
+
}
|
|
1568
1581
|
function sharedEdges(k, faceA, faceB) {
|
|
1569
1582
|
const vec = k.sharedEdges(unwrap(faceA), unwrap(faceB));
|
|
1570
1583
|
const results = [];
|
|
@@ -5077,6 +5090,12 @@ var OcctWasmAdapter = class OcctWasmAdapter {
|
|
|
5077
5090
|
hashCode(shape, upperBound) {
|
|
5078
5091
|
return hashCode(this.k, shape, upperBound);
|
|
5079
5092
|
}
|
|
5093
|
+
subShapeCount(shape, type) {
|
|
5094
|
+
return subShapeCount(this.k, shape, type);
|
|
5095
|
+
}
|
|
5096
|
+
subShapeHashes(shape, type, hashUpperBound) {
|
|
5097
|
+
return subShapeHashes(this.k, shape, type, hashUpperBound);
|
|
5098
|
+
}
|
|
5080
5099
|
isNull(shape) {
|
|
5081
5100
|
return isNull(this.k, shape);
|
|
5082
5101
|
}
|
|
@@ -1565,6 +1565,19 @@ function edgeToFaceMap(k, shape) {
|
|
|
1565
1565
|
}
|
|
1566
1566
|
return JSON.stringify(map);
|
|
1567
1567
|
}
|
|
1568
|
+
/** Count sub-shapes of `type` without materialising a handle per sub-shape (3.7.0). */
|
|
1569
|
+
function subShapeCount(k, shape, type) {
|
|
1570
|
+
return k.subShapeCount(unwrap(shape), type);
|
|
1571
|
+
}
|
|
1572
|
+
/** Deduplicated sub-shape hashes at `hashUpperBound`, no per-sub-shape handle (3.7.0). */
|
|
1573
|
+
function subShapeHashes(k, shape, type, hashUpperBound) {
|
|
1574
|
+
const vec = k.subShapeHashes(unwrap(shape), type, hashUpperBound);
|
|
1575
|
+
try {
|
|
1576
|
+
return readVecInt(vec);
|
|
1577
|
+
} finally {
|
|
1578
|
+
vec.delete();
|
|
1579
|
+
}
|
|
1580
|
+
}
|
|
1568
1581
|
function sharedEdges(k, faceA, faceB) {
|
|
1569
1582
|
const vec = k.sharedEdges(unwrap(faceA), unwrap(faceB));
|
|
1570
1583
|
const results = [];
|
|
@@ -5077,6 +5090,12 @@ var OcctWasmAdapter = class OcctWasmAdapter {
|
|
|
5077
5090
|
hashCode(shape, upperBound) {
|
|
5078
5091
|
return hashCode(this.k, shape, upperBound);
|
|
5079
5092
|
}
|
|
5093
|
+
subShapeCount(shape, type) {
|
|
5094
|
+
return subShapeCount(this.k, shape, type);
|
|
5095
|
+
}
|
|
5096
|
+
subShapeHashes(shape, type, hashUpperBound) {
|
|
5097
|
+
return subShapeHashes(this.k, shape, type, hashUpperBound);
|
|
5098
|
+
}
|
|
5080
5099
|
isNull(shape) {
|
|
5081
5100
|
return isNull(this.k, shape);
|
|
5082
5101
|
}
|
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-B2GWWNfP.cjs");
|
|
3
|
+
const require_loftFns = require("./loftFns-Dlxh4HWG.cjs");
|
|
4
4
|
exports.addChild = require_threadFns.addChild;
|
|
5
5
|
exports.addJoint = require_threadFns.addJoint;
|
|
6
6
|
exports.addStep = require_threadFns.addStep;
|
package/dist/operations.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as setJointValue, B as createAssemblyNode, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, G as circularPattern, H as removeChild, J as exportAssemblySTEP, K as gridPattern, L as addChild, M as sphericalJoint, O as prismaticJoint, R as collectShapes, S as addJoint, T as jointTransform, U as updateNode, V as findNode, W as walkAssembly, Y as createAssembly, _ as exportURDF, b as inverseKinematics, c as modifyStep, d as replayFrom, f as replayHistory, g as undoLast, h as stepsFrom, i as createRegistry, j as setJointValues, k as revoluteJoint, l as registerOperation, m as stepCount, n as addStep, o as findStep, q as linearPattern, r as createHistory, s as getShape, t as thread, u as registerShape, v as importURDF, w as forwardKinematics, x as jointTrajectory, y as jointsFromDH, z as countNodes } from "./threadFns-
|
|
2
|
-
import { d as twistExtrude, l as supportExtrude, o as complexExtrude, u as sweep } from "./loftFns-
|
|
1
|
+
import { A as setJointValue, B as createAssemblyNode, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, G as circularPattern, H as removeChild, J as exportAssemblySTEP, K as gridPattern, L as addChild, M as sphericalJoint, O as prismaticJoint, R as collectShapes, S as addJoint, T as jointTransform, U as updateNode, V as findNode, W as walkAssembly, Y as createAssembly, _ as exportURDF, b as inverseKinematics, c as modifyStep, d as replayFrom, f as replayHistory, g as undoLast, h as stepsFrom, i as createRegistry, j as setJointValues, k as revoluteJoint, l as registerOperation, m as stepCount, n as addStep, o as findStep, q as linearPattern, r as createHistory, s as getShape, t as thread, u as registerShape, v as importURDF, w as forwardKinematics, x as jointTrajectory, y as jointsFromDH, z as countNodes } from "./threadFns-Cf31rpJU.js";
|
|
2
|
+
import { d as twistExtrude, l as supportExtrude, o as complexExtrude, u as sweep } from "./loftFns-DwFxOyHA.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,9 +1,9 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-CfvfdzVF.cjs");
|
|
2
2
|
const require_errors = require("./errors-CJU8CHng.cjs");
|
|
3
3
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
4
|
-
const require_shapeFns = require("./shapeFns-
|
|
5
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
6
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
4
|
+
const require_shapeFns = require("./shapeFns-CO_l0k39.cjs");
|
|
5
|
+
const require_surfaceBuilders = require("./surfaceBuilders-kmpmUZRX.cjs");
|
|
6
|
+
const require_solidBuilders = require("./solidBuilders-DmyjgcA-.cjs");
|
|
7
7
|
//#region src/topology/primitiveFns.ts
|
|
8
8
|
/**
|
|
9
9
|
* Create a box with the given dimensions.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as isClosedWire, d as createSolid, rt as getKernel, tt as _usingCtx } from "./shapeTypes-
|
|
1
|
+
import { D as isClosedWire, d as createSolid, rt as getKernel, tt as _usingCtx } from "./shapeTypes-DZWeBLpa.js";
|
|
2
2
|
import { O as ok, d as validationError, g as andThen, v as err } from "./errors-B3CDG537.js";
|
|
3
3
|
import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
4
|
-
import { g as translate } from "./shapeFns-
|
|
5
|
-
import { _ as makeThreePointArc, a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, g as makeTangentArc, h as makeLine, i as makeNewFaceWithinFace, m as makeHelix, o as makePolygon, p as makeEllipseArc, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeBezierCurve } from "./surfaceBuilders-
|
|
6
|
-
import { a as makeOffset, c as makeTorus, i as makeEllipsoid, l as makeVertex, n as makeCone, o as makeSolid, r as makeCylinder, s as makeSphere, t as makeCompound, u as weldShellsAndFaces } from "./solidBuilders-
|
|
4
|
+
import { g as translate } from "./shapeFns-CgZA6LDP.js";
|
|
5
|
+
import { _ as makeThreePointArc, a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, g as makeTangentArc, h as makeLine, i as makeNewFaceWithinFace, m as makeHelix, o as makePolygon, p as makeEllipseArc, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeBezierCurve } from "./surfaceBuilders-DjjtPLqS.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-PnxdyH9u.js";
|
|
7
7
|
//#region src/topology/primitiveFns.ts
|
|
8
8
|
/**
|
|
9
9
|
* Create a box with the given dimensions.
|
package/dist/projection.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_cameraFns = require("./cameraFns-
|
|
2
|
+
const require_cameraFns = require("./cameraFns-Bdkvayeo.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-x2CiTzWz.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-D83P_lxb.cjs");
|
|
3
|
+
const require_cornerFinder = require("./cornerFinder-D1FvVPF_.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-B2KCN_-N.js";
|
|
2
|
+
import { t as cornerFinder } from "./cornerFinder-sXfHxiyw.js";
|
|
3
3
|
export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as disposeTransientSubShape, o as castShapeWithKnownType, rt as getKernel } from "./shapeTypes-
|
|
2
|
-
import {
|
|
3
|
-
import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-
|
|
4
|
-
import { n as getHashCode } from "./shapeFns-
|
|
5
|
-
import { n as measureArea, s as measureLength } from "./measureFns-
|
|
6
|
-
import { a as sharedEdges, i as facesOfVertex, o as verticesOfEdge, r as facesOfEdge, s as verticesOfFace, t as adjacentFaces } from "./adjacencyFns-
|
|
1
|
+
import { g as disposeTransientSubShape, o as castShapeWithKnownType, rt as getKernel } from "./shapeTypes-DZWeBLpa.js";
|
|
2
|
+
import { C as vertexPosition, c as getFaces } from "./topologyQueryFns-DiR_wMEy.js";
|
|
3
|
+
import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-BGKBw92q.js";
|
|
4
|
+
import { n as getHashCode } from "./shapeFns-CgZA6LDP.js";
|
|
5
|
+
import { n as measureArea, s as measureLength } from "./measureFns-BHEI76L8.js";
|
|
6
|
+
import { a as sharedEdges, i as facesOfVertex, o as verticesOfEdge, r as facesOfEdge, s as verticesOfFace, t as adjacentFaces } from "./adjacencyFns-CME8_Ejy.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-CfvfdzVF.cjs");
|
|
2
|
+
const require_topologyQueryFns = require("./topologyQueryFns-C4us1DQ1.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-DBv5u_f9.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-CO_l0k39.cjs");
|
|
5
|
+
const require_measureFns = require("./measureFns-COF1whvP.cjs");
|
|
6
|
+
const require_adjacencyFns = require("./adjacencyFns-Rli_sYu0.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-CfvfdzVF.cjs");
|
|
2
2
|
const require_errors = require("./errors-CJU8CHng.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-C4us1DQ1.cjs");
|
|
4
4
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
5
|
//#region src/topology/metadata/originTrackingFns.ts
|
|
6
6
|
/**
|
|
@@ -13,12 +13,8 @@ const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
|
13
13
|
*/
|
|
14
14
|
function setShapeOrigin(shape, origin) {
|
|
15
15
|
const cache = require_topologyQueryFns.getOrCreateCache(shape);
|
|
16
|
-
const kernel = require_shapeTypes.getKernel();
|
|
17
16
|
const map = /* @__PURE__ */ new Map();
|
|
18
|
-
for (const
|
|
19
|
-
map.set(kernel.hashCode(face, require_constants.HASH_CODE_MAX), origin);
|
|
20
|
-
kernel.dispose(face);
|
|
21
|
-
}
|
|
17
|
+
for (const hash of require_topologyQueryFns.subShapeHashes(shape, "face")) map.set(hash, origin);
|
|
22
18
|
cache.faceOrigins = map;
|
|
23
19
|
}
|
|
24
20
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as castResultShape, rt as getKernel } from "./shapeTypes-
|
|
1
|
+
import { n as castResultShape, rt as getKernel } from "./shapeTypes-DZWeBLpa.js";
|
|
2
2
|
import { O as ok, d as validationError, t as BrepErrorCode, v as err } from "./errors-B3CDG537.js";
|
|
3
|
-
import {
|
|
3
|
+
import { S as subShapeHashes, T as kernelCallRaw, c as getFaces, l as getOrCreateCache, r as getCacheEntry, w as kernelCall } from "./topologyQueryFns-DiR_wMEy.js";
|
|
4
4
|
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
5
5
|
//#region src/topology/metadata/originTrackingFns.ts
|
|
6
6
|
/**
|
|
@@ -13,12 +13,8 @@ import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
|
13
13
|
*/
|
|
14
14
|
function setShapeOrigin(shape, origin) {
|
|
15
15
|
const cache = getOrCreateCache(shape);
|
|
16
|
-
const kernel = getKernel();
|
|
17
16
|
const map = /* @__PURE__ */ new Map();
|
|
18
|
-
for (const
|
|
19
|
-
map.set(kernel.hashCode(face, HASH_CODE_MAX), origin);
|
|
20
|
-
kernel.dispose(face);
|
|
21
|
-
}
|
|
17
|
+
for (const hash of subShapeHashes(shape, "face")) map.set(hash, origin);
|
|
22
18
|
cache.faceOrigins = map;
|
|
23
19
|
}
|
|
24
20
|
/**
|
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-CyeqAYfq.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-Cdsdnazm.js";
|
|
2
2
|
export { assignRoles, captureHint, createDerivedFaceRef, createEdgeRef, createRef, createVertexRef, defaultScorer, isDerivedFaceRef, isEdgeRef, isFaceRef, isLineageRef, isVertexRef, resolveDerivedFaceRef, resolveEdgeRef, resolveLineageRef, resolveRef, resolveRefIn, resolveRefParams, resolveVertexRef, updateRoles };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_occtWasmAdapter = require("./occtWasmAdapter-
|
|
1
|
+
const require_occtWasmAdapter = require("./occtWasmAdapter-Hkzb95Fy.cjs");
|
|
2
2
|
const require_bug = require("./bug-O02CsAmt.cjs");
|
|
3
3
|
const require_errors = require("./errors-CJU8CHng.cjs");
|
|
4
4
|
//#region src/kernel/quality.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as EXACT_BREP_CAPABILITIES, C as serializeCurve2d$2, D as UnsupportedKernelOperationError, E as quickHull, S as scaleCurve2d$2, T as translateCurve2d$2, _ as makeEllipse2d$2, a as buildBinarySTL, b as mirrorAtPoint, c as curveBounds, d as evaluateCurve2d$2, f as intersectCurves2dFn, g as makeCircle2d$2, h as makeBezier2d$2, i as buildAsciiSTL, l as curveTypeName, m as makeArc2dThreePoints, n as DEFAULT_STL_ANGULAR_TOLERANCE, o as addCurveToBBox, p as makeArc2dTangent, r as DEFAULT_STL_TOLERANCE, s as createBBox2d, t as OcctWasmAdapter, u as deserializeCurve2d$2, v as makeLine2d$2, w as tangentCurve2d, x as rotateCurve2d$2, y as mirrorAcrossAxis } from "./occtWasmAdapter-
|
|
1
|
+
import { A as EXACT_BREP_CAPABILITIES, C as serializeCurve2d$2, D as UnsupportedKernelOperationError, E as quickHull, S as scaleCurve2d$2, T as translateCurve2d$2, _ as makeEllipse2d$2, a as buildBinarySTL, b as mirrorAtPoint, c as curveBounds, d as evaluateCurve2d$2, f as intersectCurves2dFn, g as makeCircle2d$2, h as makeBezier2d$2, i as buildAsciiSTL, l as curveTypeName, m as makeArc2dThreePoints, n as DEFAULT_STL_ANGULAR_TOLERANCE, o as addCurveToBBox, p as makeArc2dTangent, r as DEFAULT_STL_TOLERANCE, s as createBBox2d, t as OcctWasmAdapter, u as deserializeCurve2d$2, v as makeLine2d$2, w as tangentCurve2d, x as rotateCurve2d$2, y as mirrorAcrossAxis } from "./occtWasmAdapter-CYfezu3P.js";
|
|
2
2
|
import { i as wasmIndex, r as vec3At } from "./bug-BdOHwn_e.js";
|
|
3
3
|
import { O as ok, v as err } from "./errors-B3CDG537.js";
|
|
4
4
|
//#region src/kernel/quality.ts
|
package/dist/sketching.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_textBlueprints = require("./textBlueprints
|
|
3
|
-
const require_blueprintSketcher = require("./blueprintSketcher-
|
|
4
|
-
const require_drawFns = require("./drawFns-
|
|
2
|
+
const require_textBlueprints = require("./textBlueprints-Bk5h559Y.cjs");
|
|
3
|
+
const require_blueprintSketcher = require("./blueprintSketcher-DmCll228.cjs");
|
|
4
|
+
const require_drawFns = require("./drawFns-CMEEUHjz.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-BRFHrNhR.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-CJB8-Alm.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-IeZPxfnz.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
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-CfvfdzVF.cjs");
|
|
2
2
|
const require_errors = require("./errors-CJU8CHng.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-C4us1DQ1.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-Cr25KWWA.cjs");
|
|
7
|
-
const require_faceFns = require("./faceFns-
|
|
8
|
-
const require_shapeFns = require("./shapeFns-
|
|
7
|
+
const require_faceFns = require("./faceFns-DBv5u_f9.cjs");
|
|
8
|
+
const require_shapeFns = require("./shapeFns-CO_l0k39.cjs");
|
|
9
9
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
10
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
10
|
+
const require_surfaceBuilders = require("./surfaceBuilders-kmpmUZRX.cjs");
|
|
11
11
|
//#region src/topology/booleanFns.ts
|
|
12
12
|
/**
|
|
13
13
|
* Boolean and compound operations — functional replacements for _3DShape boolean methods.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { C as isSolid, R as getShapeKind, S as isShell, d as createSolid, f as createVertex, h as disposeResultShape, i as castShape, m as disposeDowncastSource, n as castResultShape, rt as getKernel, s as createCompound, tt as _usingCtx, x as isShape3D } from "./shapeTypes-
|
|
1
|
+
import { C as isSolid, R as getShapeKind, S as isShell, d as createSolid, f as createVertex, h as disposeResultShape, i as castShape, m as disposeDowncastSource, n as castResultShape, rt as getKernel, s as createCompound, tt as _usingCtx, x as isShape3D } from "./shapeTypes-DZWeBLpa.js";
|
|
2
2
|
import { I as unwrap, O as ok, S as isErr, d as validationError, g as andThen, i as kernelError, l as typeCastError, t as BrepErrorCode, v as err } from "./errors-B3CDG537.js";
|
|
3
|
-
import { f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-
|
|
3
|
+
import { f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-DiR_wMEy.js";
|
|
4
4
|
import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
|
|
5
5
|
import { h as vecScale, t as vecAdd } from "./vecOps-SKPRvPH-.js";
|
|
6
6
|
import { o as resolvePlane } from "./planeOps-Cp6GQ23-.js";
|
|
7
|
-
import { _ as cast, y as downcast } from "./faceFns-
|
|
8
|
-
import { _ as collectInputFaceHashes, b as propagateMetadataByHash, y as propagateAllMetadata } from "./shapeFns-
|
|
7
|
+
import { _ as cast, y as downcast } from "./faceFns-BGKBw92q.js";
|
|
8
|
+
import { _ as collectInputFaceHashes, b as propagateMetadataByHash, y as propagateAllMetadata } from "./shapeFns-CgZA6LDP.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-DjjtPLqS.js";
|
|
11
11
|
//#region src/topology/booleanFns.ts
|
|
12
12
|
/**
|
|
13
13
|
* Boolean and compound operations — functional replacements for _3DShape boolean methods.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as isPlanarFace, W as DisposalScope, c as createEdge, l as createFace, p as createWire, rt as getKernel, tt as _usingCtx, y as isFace } from "./shapeTypes-
|
|
1
|
+
import { A as isPlanarFace, W as DisposalScope, c as createEdge, l as createFace, p as createWire, rt as getKernel, tt as _usingCtx, y as isFace } from "./shapeTypes-DZWeBLpa.js";
|
|
2
2
|
import { O as ok, d as validationError, g as andThen, i as kernelError, v as err } from "./errors-B3CDG537.js";
|
|
3
|
-
import { _ as cast, u as outerWire } from "./faceFns-
|
|
3
|
+
import { _ as cast, u as outerWire } from "./faceFns-BGKBw92q.js";
|
|
4
4
|
//#region src/utils/range.ts
|
|
5
5
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
6
6
|
function range(len) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-CfvfdzVF.cjs");
|
|
2
2
|
const require_errors = require("./errors-CJU8CHng.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-DBv5u_f9.cjs");
|
|
4
4
|
//#region src/utils/range.ts
|
|
5
5
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
6
6
|
function range(len) {
|
package/dist/text.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_textBlueprints = require("./textBlueprints
|
|
3
|
-
const require_textMetrics = require("./textMetrics-
|
|
2
|
+
const require_textBlueprints = require("./textBlueprints-Bk5h559Y.cjs");
|
|
3
|
+
const require_textMetrics = require("./textMetrics-DaeMRXkd.cjs");
|
|
4
4
|
exports.fontMetrics = require_textMetrics.fontMetrics;
|
|
5
5
|
exports.getFont = require_textBlueprints.getFont;
|
|
6
6
|
exports.loadFont = require_textBlueprints.loadFont;
|