brepjs 18.20.3 → 18.20.4
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 +7 -7
- package/dist/2d.js +7 -7
- package/dist/{blueprint-Cy5veXS3.js → blueprint-0bBVK6Be.js} +11 -11
- package/dist/{blueprint-Bl0YQjkk.cjs → blueprint-B6vmOy5_.cjs} +11 -11
- package/dist/{blueprintFns-Dkccxo6d.cjs → blueprintFns-Aiise3pc.cjs} +3 -3
- package/dist/{blueprintFns-CSB51aXT.js → blueprintFns-BJbTjW94.js} +3 -3
- package/dist/{blueprintSketcher-DeEogKbs.js → blueprintSketcher-BkZrvGoG.js} +7 -7
- package/dist/{blueprintSketcher-Cr9A-R8I.cjs → blueprintSketcher-D_Z8NfOF.cjs} +7 -7
- package/dist/{boolean2D-BZ1UjpjX.cjs → boolean2D-1gc4kqNS.cjs} +7 -7
- package/dist/{boolean2D-lE2uy4Mm.js → boolean2D-BAJ3efk_.js} +7 -7
- package/dist/{booleanFns-CtvYfQZq.js → booleanFns-BsjoPJAS.js} +9 -9
- package/dist/{booleanFns-CD25YZGm.cjs → booleanFns-D3mYqZxL.cjs} +9 -9
- package/dist/brepjs.cjs +151 -101
- package/dist/brepjs.js +151 -101
- package/dist/{cameraFns-CR2inEBU.cjs → cameraFns-DgTBC2w3.cjs} +4 -4
- package/dist/{cameraFns-Dg1lQP0S.js → cameraFns-QK8ahyDz.js} +4 -4
- package/dist/core.cjs +6 -6
- package/dist/core.js +6 -6
- package/dist/{cornerFinder-tfWhcA2M.js → cornerFinder-BaSsAk69.js} +3 -3
- package/dist/{cornerFinder-CXN1IxPg.cjs → cornerFinder-CkLZ23Kp.cjs} +3 -3
- package/dist/csg/evaluate.d.ts +1 -1
- package/dist/{curveFns-BEF8t7XY.js → curveFns-BiSx9FTh.js} +2 -2
- package/dist/{curveFns-CcheHkr4.cjs → curveFns-CE3b2sDD.cjs} +2 -2
- package/dist/{drawFns-CuzUHFyD.cjs → drawFns-BaxDgrlX.cjs} +19 -19
- package/dist/{drawFns-CEjshioX.js → drawFns-BtHAHYa-.js} +19 -19
- package/dist/{errors-8GZS3vy9.js → errors-BJSTLaDI.js} +1 -1
- package/dist/{errors-BiY8-q1s.cjs → errors-DxoD7zgx.cjs} +1 -1
- package/dist/{extrudeFns-gcWJSK9T.js → extrudeFns-CRG478Q3.js} +3 -3
- package/dist/{extrudeFns-BwU4ng1V.cjs → extrudeFns-DUPpueiL.cjs} +3 -3
- package/dist/{faceFns-BNhFoEII.js → faceFns-C3C6l-X0.js} +4 -4
- package/dist/{faceFns-BbESdudy.cjs → faceFns-CLzDRrUE.cjs} +4 -4
- package/dist/{helpers-BU3ANziG.cjs → helpers-DwG3OFk0.cjs} +9 -9
- package/dist/{helpers-D1J5VHbk.js → helpers-rNVdiDLn.js} +9 -9
- package/dist/{historyFns-XZp1D_aA.js → historyFns-CEr9D6ay.js} +6 -6
- package/dist/{historyFns-DHOoBh6G.cjs → historyFns-DSCnjCkQ.cjs} +6 -6
- package/dist/{importFns-CsRJ9lbm.cjs → importFns-A8v4Pdw2.cjs} +5 -5
- package/dist/{importFns-D1oB3yU8.js → importFns-Hh3S9NPm.js} +5 -5
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/brepkit/sweepOps.d.ts +3 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
- package/dist/{measureFns-C3y_WX_E.js → measureFns--uvW_r_P.js} +4 -4
- package/dist/{measureFns-BkoPw5JT.cjs → measureFns-DMyJp_x3.cjs} +4 -4
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-k0BdoBGR.js → meshFns-Bxt57KX1.js} +3 -3
- package/dist/{meshFns-CFMr9FBb.cjs → meshFns-DTn__aNb.cjs} +3 -3
- package/dist/{occtWasmAdapter-C2VW-uYg.cjs → occtWasmAdapter-BaidTDJk.cjs} +1 -1
- package/dist/{occtWasmAdapter--TZGP9DX.js → occtWasmAdapter-Dtp7Wu27.js} +1 -1
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{planeOps-2EyPq0tU.cjs → planeOps-C6wxugvC.cjs} +4 -4
- package/dist/{planeOps-Bea3T3mc.js → planeOps-CblVcWbn.js} +4 -4
- package/dist/{primitiveFns-CkMua35m.cjs → primitiveFns-CX5c_YGt.cjs} +10 -10
- package/dist/{primitiveFns-BsO-feBX.js → primitiveFns-w1zNsxTH.js} +10 -10
- 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/result.cjs +1 -1
- package/dist/result.js +1 -1
- package/dist/{shapeFns-x8vqq2fR.js → shapeFns-Dsxp5d_u.js} +4 -4
- package/dist/{shapeFns-CHTLdb_n.cjs → shapeFns-cTuUm-aP.cjs} +4 -4
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeRefFns-CDRLEUik.cjs → shapeRefFns-SctbRFju.cjs} +8 -8
- package/dist/{shapeRefFns-CE0yS0EB.js → shapeRefFns-zFWzAmQZ.js} +8 -8
- package/dist/{shapeTypes-BpKhed-9.cjs → shapeTypes-C1FUZ2zE.cjs} +336 -288
- package/dist/{shapeTypes-DGtDTS9s.js → shapeTypes-DmHPJc_M.js} +336 -288
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-BlBaFSCS.cjs → solidBuilders-BGJvTrDt.cjs} +3 -3
- package/dist/{solidBuilders-Cot05qzs.js → solidBuilders-CJ8ckc61.js} +3 -3
- package/dist/{surfaceBuilders-frj7YRrD.cjs → surfaceBuilders-B7A2uoBJ.cjs} +3 -3
- package/dist/{surfaceBuilders-zJyikeav.js → surfaceBuilders-B_wXW8QS.js} +3 -3
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-CHh9SChA.cjs → textBlueprints-BCTQk9T8.cjs} +12 -12
- package/dist/{textBlueprints-Bv6zhEyn.js → textBlueprints-LYHgEdsx.js} +12 -12
- package/dist/{textMetrics-CKNdQX02.cjs → textMetrics-BNfyRNxm.cjs} +2 -2
- package/dist/{textMetrics-vUJTTEFi.js → textMetrics-Dd-Vva8S.js} +2 -2
- package/dist/topology.cjs +7 -7
- package/dist/topology.js +7 -7
- package/dist/{topologyQueryFns-CcWaCxeb.js → topologyQueryFns-CcHXn5M2.js} +2 -2
- package/dist/{topologyQueryFns-CHsPXNbI.cjs → topologyQueryFns-DCICDnwA.cjs} +2 -2
- package/dist/vectors.cjs +4 -4
- package/dist/vectors.js +4 -4
- package/dist/worker.cjs +1 -1
- package/dist/worker.js +1 -1
- package/package.json +2 -5
- /package/dist/{arrayAccess-C5IWcxs9.js → arrayAccess-DrUGPADn.js} +0 -0
- /package/dist/{arrayAccess-7pTWqkJu.cjs → arrayAccess-e4H9cBfh.cjs} +0 -0
- /package/dist/{constants-DTorLmes.cjs → constants-BOVyEYGH.cjs} +0 -0
- /package/dist/{constants-Ci5CA3aZ.js → constants-ITRzCnCp.js} +0 -0
- /package/dist/{types-BIdk_GJY.js → types-D24Y27N0.js} +0 -0
- /package/dist/{types-CDkxah-M.cjs → types-KjA8tY4Y.cjs} +0 -0
- /package/dist/{vec3-S4Oh59IX.cjs → vec3-CFwOI0ZI.cjs} +0 -0
- /package/dist/{vec3-BRj3eI54.js → vec3-Dpha8d5k.js} +0 -0
- /package/dist/{vecOps-D7xplSx8.cjs → vecOps-CCnJt-yH.cjs} +0 -0
- /package/dist/{vecOps-DVROrqTV.js → vecOps-SKPRvPH-.js} +0 -0
- /package/dist/{workerHandler-DaulgMax.js → workerHandler-CFetYgIm.js} +0 -0
- /package/dist/{workerHandler-C7seK7H-.cjs → workerHandler-CdlOTwJg.cjs} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_errors = require("./errors-
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
-
const require_constants = require("./constants-
|
|
5
|
-
const require_vecOps = require("./vecOps-
|
|
6
|
-
const require_faceFns = require("./faceFns-
|
|
7
|
-
const require_shapeFns = require("./shapeFns-
|
|
8
|
-
const require_curveFns = require("./curveFns-
|
|
9
|
-
const require_measureFns = require("./measureFns-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-C1FUZ2zE.cjs");
|
|
2
|
+
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-DCICDnwA.cjs");
|
|
4
|
+
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
|
+
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
6
|
+
const require_faceFns = require("./faceFns-CLzDRrUE.cjs");
|
|
7
|
+
const require_shapeFns = require("./shapeFns-cTuUm-aP.cjs");
|
|
8
|
+
const require_curveFns = require("./curveFns-CE3b2sDD.cjs");
|
|
9
|
+
const require_measureFns = require("./measureFns-DMyJp_x3.cjs");
|
|
10
10
|
//#region src/utils/vec2d.ts
|
|
11
11
|
/** Precision for curve intersection and parameter operations. */
|
|
12
12
|
var PRECISION_INTERSECTION = 1e-9;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Z as getKernel, p as isFace } from "./shapeTypes-
|
|
2
|
-
import { A as ok, T as isOk, b as err, h as bug, o as queryError } from "./errors-
|
|
3
|
-
import { l as getVertices, o as getEdges, s as getFaces, u as getWires } from "./topologyQueryFns-
|
|
4
|
-
import { t as DEG2RAD } from "./constants-
|
|
5
|
-
import { a as vecDot, d as vecNormalize } from "./vecOps-
|
|
6
|
-
import { c as normalAt, o as getSurfaceType } from "./faceFns-
|
|
7
|
-
import { a as isSameShape, n as getHashCode } from "./shapeFns-
|
|
8
|
-
import { a as curveLength, d as getCurveType, r as curveIsClosed } from "./curveFns-
|
|
9
|
-
import { n as measureArea } from "./measureFns
|
|
1
|
+
import { Z as getKernel, p as isFace } from "./shapeTypes-DmHPJc_M.js";
|
|
2
|
+
import { A as ok, T as isOk, b as err, h as bug, o as queryError } from "./errors-BJSTLaDI.js";
|
|
3
|
+
import { l as getVertices, o as getEdges, s as getFaces, u as getWires } from "./topologyQueryFns-CcHXn5M2.js";
|
|
4
|
+
import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
5
|
+
import { a as vecDot, d as vecNormalize } from "./vecOps-SKPRvPH-.js";
|
|
6
|
+
import { c as normalAt, o as getSurfaceType } from "./faceFns-C3C6l-X0.js";
|
|
7
|
+
import { a as isSameShape, n as getHashCode } from "./shapeFns-Dsxp5d_u.js";
|
|
8
|
+
import { a as curveLength, d as getCurveType, r as curveIsClosed } from "./curveFns-BiSx9FTh.js";
|
|
9
|
+
import { n as measureArea } from "./measureFns--uvW_r_P.js";
|
|
10
10
|
//#region src/utils/vec2d.ts
|
|
11
11
|
/** Precision for curve intersection and parameter operations. */
|
|
12
12
|
var PRECISION_INTERSECTION = 1e-9;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { B as createKernelHandle, Z as getKernel, t as castShape } from "./shapeTypes-
|
|
2
|
-
import { A as ok, b as err, d as validationError, n as computationError, r as ioError } from "./errors-
|
|
3
|
-
import { d as vecNormalize, s as vecIsZero } from "./vecOps-
|
|
4
|
-
import { v as fromBREP } from "./faceFns-
|
|
5
|
-
import { s as toBREP } from "./shapeFns-
|
|
6
|
-
import { a as fuseAll } from "./booleanFns-
|
|
1
|
+
import { B as createKernelHandle, Z as getKernel, t as castShape } from "./shapeTypes-DmHPJc_M.js";
|
|
2
|
+
import { A as ok, b as err, d as validationError, n as computationError, r as ioError } from "./errors-BJSTLaDI.js";
|
|
3
|
+
import { d as vecNormalize, s as vecIsZero } from "./vecOps-SKPRvPH-.js";
|
|
4
|
+
import { v as fromBREP } from "./faceFns-C3C6l-X0.js";
|
|
5
|
+
import { s as toBREP } from "./shapeFns-Dsxp5d_u.js";
|
|
6
|
+
import { a as fuseAll } from "./booleanFns-BsjoPJAS.js";
|
|
7
7
|
//#region src/utils/uuid.ts
|
|
8
8
|
/** Generate a v4-style UUID string using `crypto.getRandomValues`. */
|
|
9
9
|
function uuidv() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_errors = require("./errors-
|
|
3
|
-
const require_vecOps = require("./vecOps-
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
5
|
-
const require_shapeFns = require("./shapeFns-
|
|
6
|
-
const require_booleanFns = require("./booleanFns-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-C1FUZ2zE.cjs");
|
|
2
|
+
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
+
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-CLzDRrUE.cjs");
|
|
5
|
+
const require_shapeFns = require("./shapeFns-cTuUm-aP.cjs");
|
|
6
|
+
const require_booleanFns = require("./booleanFns-D3mYqZxL.cjs");
|
|
7
7
|
//#region src/utils/uuid.ts
|
|
8
8
|
/** Generate a v4-style UUID string using `crypto.getRandomValues`. */
|
|
9
9
|
function uuidv() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_vec3 = require("./vec3-
|
|
3
|
-
const require_errors = require("./errors-
|
|
4
|
-
const require_arrayAccess = require("./arrayAccess-
|
|
5
|
-
const require_blueprint = require("./blueprint-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-C1FUZ2zE.cjs");
|
|
2
|
+
const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
|
|
3
|
+
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
4
|
+
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
5
|
+
const require_blueprint = require("./blueprint-B6vmOy5_.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 { Z as getKernel, t as castShape } from "./shapeTypes-
|
|
2
|
-
import { n as wasmIndex, t as vec3At$1 } from "./vec3-
|
|
3
|
-
import { A as ok, b as err, r as ioError, t as BrepErrorCode } from "./errors-
|
|
4
|
-
import { n as getAtOrThrow } from "./arrayAccess-
|
|
5
|
-
import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-
|
|
1
|
+
import { Z as getKernel, t as castShape } from "./shapeTypes-DmHPJc_M.js";
|
|
2
|
+
import { n as wasmIndex, t as vec3At$1 } from "./vec3-Dpha8d5k.js";
|
|
3
|
+
import { A as ok, b as err, r as ioError, t as BrepErrorCode } from "./errors-BJSTLaDI.js";
|
|
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-0bBVK6Be.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-DTn__aNb.cjs");
|
|
3
|
+
const require_importFns = require("./importFns-A8v4Pdw2.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-Bxt57KX1.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-Hh3S9NPm.js";
|
|
3
3
|
export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
|
|
@@ -10,11 +10,12 @@ export declare function sweep(bk: BrepkitKernel, wire: KernelShape, spine: Kerne
|
|
|
10
10
|
export declare function simplePipe(bk: BrepkitKernel, profile: KernelShape, spine: KernelShape): KernelShape;
|
|
11
11
|
export declare function helicalSweep(bk: BrepkitKernel, profile: KernelShape, axisOrigin: [number, number, number], axisDirection: [number, number, number], radius: number, pitch: number, turns: number): KernelShape;
|
|
12
12
|
export declare function sweepWithOptions(bk: BrepkitKernel, profile: KernelShape, pathEdge: KernelShape, contactMode: string, scaleValues: number[], segments: number): KernelShape;
|
|
13
|
-
|
|
13
|
+
type PipeShellResult = KernelShape | {
|
|
14
14
|
shape: KernelShape;
|
|
15
15
|
firstShape: KernelShape;
|
|
16
16
|
lastShape: KernelShape;
|
|
17
17
|
};
|
|
18
|
+
export declare function sweepPipeShell(bk: BrepkitKernel, profile: KernelShape, spine: KernelShape, options?: Record<string, unknown>): PipeShellResult;
|
|
18
19
|
export declare function loftAdvanced(bk: BrepkitKernel, wires: KernelShape[], options?: {
|
|
19
20
|
solid?: boolean;
|
|
20
21
|
ruled?: boolean;
|
|
@@ -61,3 +62,4 @@ export declare function makeSweepOps(bk: BrepkitKernel): {
|
|
|
61
62
|
buildExtrusionLaw: (profile: "linear" | "s-curve", length: number, endFactor: number) => any;
|
|
62
63
|
draftPrism: (shape: any, face: any, baseFace: any, height: number | null, angleDeg: number, fuse: boolean) => any;
|
|
63
64
|
};
|
|
65
|
+
export {};
|
|
@@ -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-BaidTDJk.cjs");
|
|
3
3
|
exports.OcctWasmAdapter = require_occtWasmAdapter.OcctWasmAdapter;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as OcctWasmAdapter } from "../../occtWasmAdapter
|
|
1
|
+
import { t as OcctWasmAdapter } from "../../occtWasmAdapter-Dtp7Wu27.js";
|
|
2
2
|
export { OcctWasmAdapter };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Z as getKernel } from "./shapeTypes-
|
|
2
|
-
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-
|
|
3
|
-
import { v as kernelCallRaw } from "./topologyQueryFns-
|
|
4
|
-
import { p as uvBounds } from "./faceFns-
|
|
1
|
+
import { Z as getKernel } from "./shapeTypes-DmHPJc_M.js";
|
|
2
|
+
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-BJSTLaDI.js";
|
|
3
|
+
import { v as kernelCallRaw } from "./topologyQueryFns-CcHXn5M2.js";
|
|
4
|
+
import { p as uvBounds } from "./faceFns-C3C6l-X0.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-
|
|
2
|
-
const require_errors = require("./errors-
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-C1FUZ2zE.cjs");
|
|
2
|
+
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-DCICDnwA.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-CLzDRrUE.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-DMyJp_x3.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--uvW_r_P.js";
|
|
2
2
|
export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Z as getKernel } from "./shapeTypes-
|
|
2
|
-
import { A as ok, b as err, r as ioError } from "./errors-
|
|
3
|
-
import { O as getFaceOrigins } from "./shapeFns-
|
|
1
|
+
import { Z as getKernel } from "./shapeTypes-DmHPJc_M.js";
|
|
2
|
+
import { A as ok, b as err, r as ioError } from "./errors-BJSTLaDI.js";
|
|
3
|
+
import { O as getFaceOrigins } from "./shapeFns-Dsxp5d_u.js";
|
|
4
4
|
//#region src/topology/meshCache.ts
|
|
5
5
|
/**
|
|
6
6
|
* Build a parameter key for the inner cache map (excludes shape identity).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_errors = require("./errors-
|
|
3
|
-
const require_shapeFns = require("./shapeFns-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-C1FUZ2zE.cjs");
|
|
2
|
+
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
+
const require_shapeFns = require("./shapeFns-cTuUm-aP.cjs");
|
|
4
4
|
//#region src/topology/meshCache.ts
|
|
5
5
|
/**
|
|
6
6
|
* Build a parameter key for the inner cache map (excludes shape identity).
|
package/dist/operations.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_historyFns = require("./historyFns-
|
|
3
|
-
const require_extrudeFns = require("./extrudeFns-
|
|
2
|
+
const require_historyFns = require("./historyFns-DSCnjCkQ.cjs");
|
|
3
|
+
const require_extrudeFns = require("./extrudeFns-DUPpueiL.cjs");
|
|
4
4
|
exports.addChild = require_historyFns.addChild;
|
|
5
5
|
exports.addStep = require_historyFns.addStep;
|
|
6
6
|
exports.circularPattern = require_historyFns.circularPattern;
|
package/dist/operations.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, T as gridPattern, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, g as addChild, h as undoLast, l as registerShape, m as stepsFrom, n as createHistory, o as getShape, p as stepCount, r as createRegistry, s as modifyStep, t as addStep, u as replayFrom, v as countNodes, w as circularPattern, x as removeChild, y as createAssemblyNode } from "./historyFns-
|
|
2
|
-
import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-
|
|
1
|
+
import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, T as gridPattern, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, g as addChild, h as undoLast, l as registerShape, m as stepsFrom, n as createHistory, o as getShape, p as stepCount, r as createRegistry, s as modifyStep, t as addStep, u as replayFrom, v as countNodes, w as circularPattern, x as removeChild, y as createAssemblyNode } from "./historyFns-CEr9D6ay.js";
|
|
2
|
+
import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-CRG478Q3.js";
|
|
3
3
|
export { addChild, addStep, circularPattern, collectShapes, complexExtrude, countNodes, createAssembly, createAssemblyNode, createHistory, createRegistry, exportAssemblySTEP, findNode, findStep, getShape as getHistoryShape, gridPattern, linearPattern, modifyStep, registerOperation, registerShape, removeChild, replayFrom, replayHistory, stepCount, stepsFrom, supportExtrude, sweep, twistExtrude, undoLast, updateNode, walkAssembly };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_errors = require("./errors-
|
|
2
|
-
const require_constants = require("./constants-
|
|
3
|
-
const require_types = require("./types-
|
|
4
|
-
const require_vecOps = require("./vecOps-
|
|
1
|
+
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
2
|
+
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
3
|
+
const require_types = require("./types-KjA8tY4Y.cjs");
|
|
4
|
+
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
5
5
|
//#region src/core/planeOps.ts
|
|
6
6
|
/**
|
|
7
7
|
* Create a {@link Plane} from an origin, optional X direction, and a normal.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as ok, R as unwrap, b as err, d as validationError } from "./errors-
|
|
2
|
-
import { t as DEG2RAD } from "./constants-
|
|
3
|
-
import { r as toVec3 } from "./types-
|
|
4
|
-
import { d as vecNormalize, h as vecScale, m as vecRotate, r as vecCross, s as vecIsZero, t as vecAdd } from "./vecOps-
|
|
1
|
+
import { A as ok, R as unwrap, b as err, d as validationError } from "./errors-BJSTLaDI.js";
|
|
2
|
+
import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
3
|
+
import { r as toVec3 } from "./types-D24Y27N0.js";
|
|
4
|
+
import { d as vecNormalize, h as vecScale, m as vecRotate, r as vecCross, s as vecIsZero, t as vecAdd } from "./vecOps-SKPRvPH-.js";
|
|
5
5
|
//#region src/core/planeOps.ts
|
|
6
6
|
/**
|
|
7
7
|
* Create a {@link Plane} from an origin, optional X direction, and a normal.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_errors = require("./errors-
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
-
const require_constants = require("./constants-
|
|
5
|
-
const require_faceFns = require("./faceFns-
|
|
6
|
-
const require_shapeFns = require("./shapeFns-
|
|
7
|
-
const require_arrayAccess = require("./arrayAccess-
|
|
8
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
9
|
-
const require_booleanFns = require("./booleanFns-
|
|
10
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-C1FUZ2zE.cjs");
|
|
2
|
+
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-DCICDnwA.cjs");
|
|
4
|
+
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
|
+
const require_faceFns = require("./faceFns-CLzDRrUE.cjs");
|
|
6
|
+
const require_shapeFns = require("./shapeFns-cTuUm-aP.cjs");
|
|
7
|
+
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
8
|
+
const require_surfaceBuilders = require("./surfaceBuilders-B7A2uoBJ.cjs");
|
|
9
|
+
const require_booleanFns = require("./booleanFns-D3mYqZxL.cjs");
|
|
10
|
+
const require_solidBuilders = require("./solidBuilders-BGJvTrDt.cjs");
|
|
11
11
|
//#region src/topology/threeHelpers.ts
|
|
12
12
|
/**
|
|
13
13
|
* Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Z as getKernel, _ as isSolid, c as createSolid, h as isShape3D, p as isFace, r as castShapeWithKnownType, t as castShape, x as isClosedWire, y as isWire } from "./shapeTypes-
|
|
2
|
-
import { A as ok, T as isOk, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, v as andThen, w as isErr } from "./errors-
|
|
3
|
-
import { c as getOrCreateCache, d as invalidateShapeCache, i as getCachedIsValid, o as getEdges, s as getFaces, u as getWires } from "./topologyQueryFns-
|
|
4
|
-
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-
|
|
5
|
-
import { _ as downcast } from "./faceFns-
|
|
6
|
-
import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-
|
|
7
|
-
import { t as firstOrThrow } from "./arrayAccess-
|
|
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-
|
|
9
|
-
import { a as fuseAll, i as fuse, n as cut, r as cutAll } from "./booleanFns-
|
|
10
|
-
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-
|
|
1
|
+
import { Z as getKernel, _ as isSolid, c as createSolid, h as isShape3D, p as isFace, r as castShapeWithKnownType, t as castShape, x as isClosedWire, y as isWire } from "./shapeTypes-DmHPJc_M.js";
|
|
2
|
+
import { A as ok, T as isOk, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, v as andThen, w as isErr } from "./errors-BJSTLaDI.js";
|
|
3
|
+
import { c as getOrCreateCache, d as invalidateShapeCache, i as getCachedIsValid, o as getEdges, s as getFaces, u as getWires } from "./topologyQueryFns-CcHXn5M2.js";
|
|
4
|
+
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
5
|
+
import { _ as downcast } from "./faceFns-C3C6l-X0.js";
|
|
6
|
+
import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-Dsxp5d_u.js";
|
|
7
|
+
import { t as firstOrThrow } from "./arrayAccess-DrUGPADn.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-B_wXW8QS.js";
|
|
9
|
+
import { a as fuseAll, i as fuse, n as cut, r as cutAll } from "./booleanFns-BsjoPJAS.js";
|
|
10
|
+
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-CJ8ckc61.js";
|
|
11
11
|
//#region src/topology/threeHelpers.ts
|
|
12
12
|
/**
|
|
13
13
|
* Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
|
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-DgTBC2w3.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-QK8ahyDz.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-DwG3OFk0.cjs");
|
|
3
|
+
const require_cornerFinder = require("./cornerFinder-CkLZ23Kp.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-rNVdiDLn.js";
|
|
2
|
+
import { t as cornerFinder } from "./cornerFinder-BaSsAk69.js";
|
|
3
3
|
export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
|
package/dist/result.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_errors = require("./errors-
|
|
2
|
+
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
3
|
exports.BrepBugError = require_errors.BrepBugError;
|
|
4
4
|
exports.BrepErrorCode = require_errors.BrepErrorCode;
|
|
5
5
|
exports.OK = require_errors.OK;
|
package/dist/result.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as ok, B as unwrapOr, E as map, I as tryCatch, L as tryCatchAsync, N as pipeline, O as mapErr, R as unwrap, T as isOk, V as unwrapOrElse, a as moduleInitError, b as err, c as sketcherStateError, d as validationError, g as OK, h as bug, i as kernelError, k as match, l as typeCastError, m as BrepBugError, n as computationError, o as queryError, r as ioError, t as BrepErrorCode, v as andThen, w as isErr, x as flatMap, y as collect, z as unwrapErr } from "./errors-
|
|
1
|
+
import { A as ok, B as unwrapOr, E as map, I as tryCatch, L as tryCatchAsync, N as pipeline, O as mapErr, R as unwrap, T as isOk, V as unwrapOrElse, a as moduleInitError, b as err, c as sketcherStateError, d as validationError, g as OK, h as bug, i as kernelError, k as match, l as typeCastError, m as BrepBugError, n as computationError, o as queryError, r as ioError, t as BrepErrorCode, v as andThen, w as isErr, x as flatMap, y as collect, z as unwrapErr } from "./errors-BJSTLaDI.js";
|
|
2
2
|
export { BrepBugError, BrepErrorCode, OK, andThen, bug, collect, computationError, err, flatMap, ioError, isErr, isOk, kernelError, map, mapErr, match, moduleInitError, ok, pipeline, queryError, sketcherStateError, tryCatch, tryCatchAsync, typeCastError, unwrap, unwrapErr, unwrapOr, unwrapOrElse, validationError };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Z as getKernel, t as castShape } from "./shapeTypes-
|
|
2
|
-
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-
|
|
3
|
-
import { _ as kernelCall, c as getOrCreateCache, r as getCacheEntry, s as getFaces, v as kernelCallRaw } from "./topologyQueryFns-
|
|
4
|
-
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-
|
|
1
|
+
import { Z as getKernel, t as castShape } from "./shapeTypes-DmHPJc_M.js";
|
|
2
|
+
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-BJSTLaDI.js";
|
|
3
|
+
import { _ as kernelCall, c as getOrCreateCache, r as getCacheEntry, s as getFaces, v as kernelCallRaw } from "./topologyQueryFns-CcHXn5M2.js";
|
|
4
|
+
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
5
5
|
//#region src/topology/metadata/originTrackingFns.ts
|
|
6
6
|
/**
|
|
7
7
|
* Face origin tracking — tag faces with integer origins and propagate
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_errors = require("./errors-
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
-
const require_constants = require("./constants-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-C1FUZ2zE.cjs");
|
|
2
|
+
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-DCICDnwA.cjs");
|
|
4
|
+
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
5
|
//#region src/topology/metadata/originTrackingFns.ts
|
|
6
6
|
/**
|
|
7
7
|
* Face origin tracking — tag faces with integer origins and propagate
|
package/dist/shapeRef.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_shapeRefFns = require("./shapeRefFns-
|
|
2
|
+
const require_shapeRefFns = require("./shapeRefFns-SctbRFju.cjs");
|
|
3
3
|
exports.assignRoles = require_shapeRefFns.assignRoles;
|
|
4
4
|
exports.captureHint = require_shapeRefFns.captureHint;
|
|
5
5
|
exports.createRef = require_shapeRefFns.createRef;
|
package/dist/shapeRef.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-
|
|
1
|
+
import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-zFWzAmQZ.js";
|
|
2
2
|
export { assignRoles, captureHint, createRef, defaultScorer, resolveRef, updateRoles };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_vec3 = require("./vec3-
|
|
2
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
4
|
-
const require_shapeFns = require("./shapeFns-
|
|
5
|
-
const require_measureFns = require("./measureFns-
|
|
1
|
+
const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
|
|
2
|
+
const require_topologyQueryFns = require("./topologyQueryFns-DCICDnwA.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-CLzDRrUE.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-cTuUm-aP.cjs");
|
|
5
|
+
const require_measureFns = require("./measureFns-DMyJp_x3.cjs");
|
|
6
6
|
//#region src/topology/shapeRef/scoring.ts
|
|
7
7
|
/**
|
|
8
8
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -64,11 +64,11 @@ var AXIS_THRESHOLD = .9;
|
|
|
64
64
|
/** Determine the cardinal role name for a box face from its outward normal. */
|
|
65
65
|
function boxRoleFromNormal(n) {
|
|
66
66
|
if (n[2] > AXIS_THRESHOLD) return "box:top";
|
|
67
|
-
if (n[2] <
|
|
67
|
+
if (n[2] < -.9) return "box:bottom";
|
|
68
68
|
if (n[1] > AXIS_THRESHOLD) return "box:back";
|
|
69
|
-
if (n[1] <
|
|
69
|
+
if (n[1] < -.9) return "box:front";
|
|
70
70
|
if (n[0] > AXIS_THRESHOLD) return "box:right";
|
|
71
|
-
if (n[0] <
|
|
71
|
+
if (n[0] < -.9) return "box:left";
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
74
|
* Auto-assign role names to the faces of a shape based on operation type.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as wasmIndex } from "./vec3-
|
|
2
|
-
import { s as getFaces } from "./topologyQueryFns-
|
|
3
|
-
import { c as normalAt, n as faceCenter, r as faceGeomType } from "./faceFns-
|
|
4
|
-
import { n as getHashCode } from "./shapeFns-
|
|
5
|
-
import { n as measureArea } from "./measureFns
|
|
1
|
+
import { n as wasmIndex } from "./vec3-Dpha8d5k.js";
|
|
2
|
+
import { s as getFaces } from "./topologyQueryFns-CcHXn5M2.js";
|
|
3
|
+
import { c as normalAt, n as faceCenter, r as faceGeomType } from "./faceFns-C3C6l-X0.js";
|
|
4
|
+
import { n as getHashCode } from "./shapeFns-Dsxp5d_u.js";
|
|
5
|
+
import { n as measureArea } from "./measureFns--uvW_r_P.js";
|
|
6
6
|
//#region src/topology/shapeRef/scoring.ts
|
|
7
7
|
/**
|
|
8
8
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -64,11 +64,11 @@ var AXIS_THRESHOLD = .9;
|
|
|
64
64
|
/** Determine the cardinal role name for a box face from its outward normal. */
|
|
65
65
|
function boxRoleFromNormal(n) {
|
|
66
66
|
if (n[2] > AXIS_THRESHOLD) return "box:top";
|
|
67
|
-
if (n[2] <
|
|
67
|
+
if (n[2] < -.9) return "box:bottom";
|
|
68
68
|
if (n[1] > AXIS_THRESHOLD) return "box:back";
|
|
69
|
-
if (n[1] <
|
|
69
|
+
if (n[1] < -.9) return "box:front";
|
|
70
70
|
if (n[0] > AXIS_THRESHOLD) return "box:right";
|
|
71
|
-
if (n[0] <
|
|
71
|
+
if (n[0] < -.9) return "box:left";
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
74
|
* Auto-assign role names to the faces of a shape based on operation type.
|