brepjs 18.74.0 → 18.75.0
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/{blueprint-jlSsZ0sZ.cjs → blueprint-DiaBfB57.cjs} +5 -5
- package/dist/{blueprint-qVw9ZkE4.js → blueprint-OgMkiq7a.js} +5 -5
- package/dist/{blueprintFns-zLwbytjs.js → blueprintFns-C3EQ12Ix.js} +2 -2
- package/dist/{blueprintFns-DsuY7gCu.cjs → blueprintFns-uYr43qo4.cjs} +2 -2
- package/dist/{blueprintSketcher-BRKbVgE2.js → blueprintSketcher-Bp3oMzVW.js} +3 -3
- package/dist/{blueprintSketcher-dZZ8e5ey.cjs → blueprintSketcher-CZqT7_gf.cjs} +3 -3
- package/dist/{boolean2D-4E1kbwQx.cjs → boolean2D-4fXjKx5f.cjs} +4 -4
- package/dist/{boolean2D-CANP43pN.js → boolean2D-DXti_c7k.js} +4 -4
- package/dist/{booleanFns-DYSaupiG.js → booleanFns-Cu-J1THp.js} +4 -4
- package/dist/{booleanFns-Bp_wYEwG.cjs → booleanFns-DxnTjP19.cjs} +4 -4
- package/dist/brepjs.cjs +25 -25
- package/dist/brepjs.js +25 -25
- package/dist/{cameraFns-BFRGMXSn.js → cameraFns-Ctxe8ev-.js} +2 -2
- package/dist/{cameraFns-dRK1CnFi.cjs → cameraFns-G2lc5c9M.cjs} +2 -2
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-CQPXY8Aw.cjs → cornerFinder-CAoT1uIs.cjs} +1 -1
- package/dist/{cornerFinder-DcHCKoUh.js → cornerFinder-CmXx269_.js} +1 -1
- package/dist/{curveFns-CXhOkKR4.js → curveFns-C7t4yHtQ.js} +1 -1
- package/dist/{curveFns-uPVW6eo-.cjs → curveFns-DQlllRhs.cjs} +1 -1
- package/dist/{drawFns-ZqWpAG8b.js → drawFns-B7l3h4FX.js} +12 -12
- package/dist/{drawFns-eMU4H__w.cjs → drawFns-SddAG_uY.cjs} +12 -12
- package/dist/{extrudeFns-CzQans6p.cjs → extrudeFns-b7JHaMsv.cjs} +1 -1
- package/dist/{extrudeFns-CSy2C7WW.js → extrudeFns-msxcCUm2.js} +1 -1
- package/dist/{faceFns-BBcrvY7r.js → faceFns-BJ0mbRh5.js} +2 -2
- package/dist/{faceFns-CcLFCtg4.cjs → faceFns-CZvemlPW.cjs} +2 -2
- package/dist/{helpers-BmY5kO0w.cjs → helpers-CRBTGZO7.cjs} +6 -6
- package/dist/{helpers-CxT3j8jG.js → helpers-CYSAsvRe.js} +6 -6
- package/dist/{historyFns-ClLT60_V.js → historyFns-BV5sQxft.js} +4 -4
- package/dist/{historyFns-BEB2Yjld.cjs → historyFns-xUNAdUYV.cjs} +4 -4
- package/dist/{importFns-DA0Klh7_.cjs → importFns-BY0rgGAN.cjs} +2 -2
- package/dist/{importFns-BNDWuBuq.js → importFns-eHSyuIJF.js} +2 -2
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/brepkit/geometryOps.d.ts +8 -1
- 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/surfaceOps.d.ts +6 -11
- package/dist/{measureFns-zGABZl6o.cjs → measureFns-CRS3U8gj.cjs} +3 -3
- package/dist/{measureFns-DAP8LjBB.js → measureFns-DYeTPyHr.js} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-D-nLiHvU.js → meshFns-CLQL2D95.js} +3 -3
- package/dist/{meshFns-CEGnFm33.cjs → meshFns-CvmTzMPL.cjs} +3 -3
- package/dist/{occtWasmAdapter-Crs07qIe.cjs → occtWasmAdapter-DdghAlnN.cjs} +49 -27
- package/dist/{occtWasmAdapter-D0MtWZYO.js → occtWasmAdapter-m4Nua92H.js} +49 -27
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-CDbe5gjc.js → primitiveFns-B6Q6lx9-.js} +7 -7
- package/dist/{primitiveFns-CpkG8ZkI.cjs → primitiveFns-FudrSXrp.cjs} +7 -7
- 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/{shapeFns-DVUNOG2I.js → shapeFns-CQRGTifg.js} +2 -2
- package/dist/{shapeFns-CDHya-nt.cjs → shapeFns-CQmd2W5F.cjs} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeRefFns-B1Tygk9V.cjs → shapeRefFns-DoPplxoN.cjs} +4 -4
- package/dist/{shapeRefFns-CAJUDLTi.js → shapeRefFns-DvIvS0do.js} +4 -4
- package/dist/{shapeTypes-DRxArFIc.cjs → shapeTypes-C4cMKLoj.cjs} +24 -4
- package/dist/{shapeTypes-2cKwu2z4.js → shapeTypes-VCBsDI43.js} +24 -4
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-ibLq_9EK.cjs → solidBuilders-B0Hzin8a.cjs} +2 -2
- package/dist/{solidBuilders-Bx3UdW91.js → solidBuilders-DBsHetmI.js} +2 -2
- package/dist/{surfaceBuilders-BtNrSolT.js → surfaceBuilders-DllH3kXs.js} +2 -2
- package/dist/{surfaceBuilders-D2PBBoja.cjs → surfaceBuilders-QK_Cnn_u.cjs} +2 -2
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-COG8m1aE.cjs → textBlueprints-BxbCj29U.cjs} +7 -7
- package/dist/{textBlueprints-HfRD4iNF.js → textBlueprints-C9ne8G24.js} +7 -7
- package/dist/{textMetrics-CTSpUXtk.cjs → textMetrics-DRfvY1yT.cjs} +1 -1
- package/dist/{textMetrics-Zp8rzokO.js → textMetrics-Ddpxhy0z.js} +1 -1
- package/dist/topology.cjs +7 -7
- package/dist/topology.js +7 -7
- package/dist/{topologyQueryFns-024l64sD.cjs → topologyQueryFns-Bj5wpC75.cjs} +1 -1
- package/dist/{topologyQueryFns-c2RQIcfW.js → topologyQueryFns-BtfhAVY2.js} +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { B as createKernelHandle, Z as getKernel, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { B as createKernelHandle, Z as getKernel, t as castShape } from "./shapeTypes-VCBsDI43.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, n as computationError, r as ioError } from "./errors-DNWJsfVU.js";
|
|
3
3
|
import { d as vecNormalize, s as vecIsZero } from "./vecOps-SKPRvPH-.js";
|
|
4
|
-
import { y as fromBREP } from "./faceFns-
|
|
5
|
-
import { s as toBREP } from "./shapeFns-
|
|
6
|
-
import { a as fuseAll } from "./booleanFns-
|
|
4
|
+
import { y as fromBREP } from "./faceFns-BJ0mbRh5.js";
|
|
5
|
+
import { s as toBREP } from "./shapeFns-CQRGTifg.js";
|
|
6
|
+
import { a as fuseAll } from "./booleanFns-Cu-J1THp.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-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-C4cMKLoj.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
3
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
5
|
-
const require_shapeFns = require("./shapeFns-
|
|
6
|
-
const require_booleanFns = require("./booleanFns-
|
|
4
|
+
const require_faceFns = require("./faceFns-CZvemlPW.cjs");
|
|
5
|
+
const require_shapeFns = require("./shapeFns-CQmd2W5F.cjs");
|
|
6
|
+
const require_booleanFns = require("./booleanFns-DxnTjP19.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-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-C4cMKLoj.cjs");
|
|
2
2
|
const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
|
|
3
3
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
4
4
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
5
|
-
const require_blueprint = require("./blueprint-
|
|
5
|
+
const require_blueprint = require("./blueprint-DiaBfB57.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-
|
|
1
|
+
import { Z as getKernel, t as castShape } from "./shapeTypes-VCBsDI43.js";
|
|
2
2
|
import { n as wasmIndex, t as vec3At$1 } from "./vec3-Dpha8d5k.js";
|
|
3
3
|
import { A as ok, b as err, r as ioError, t as BrepErrorCode } from "./errors-DNWJsfVU.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-OgMkiq7a.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-CvmTzMPL.cjs");
|
|
3
|
+
const require_importFns = require("./importFns-BY0rgGAN.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-CLQL2D95.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-eHSyuIJF.js";
|
|
3
3
|
export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
|
|
@@ -35,6 +35,10 @@ export declare function getSurfaceCylinderData(bk: BrepkitKernel, surface: Kerne
|
|
|
35
35
|
radius: number;
|
|
36
36
|
isDirect: boolean;
|
|
37
37
|
} | null;
|
|
38
|
+
export declare function getSurfaceAxis(bk: BrepkitKernel, face: KernelShape): {
|
|
39
|
+
origin: [number, number, number];
|
|
40
|
+
direction: [number, number, number];
|
|
41
|
+
} | null;
|
|
38
42
|
export declare function reverseSurfaceU(_bk: BrepkitKernel, surface: KernelType): KernelType;
|
|
39
43
|
export declare function classifyPointOnFace(bk: BrepkitKernel, face: KernelShape, u: number, v: number, tolerance?: number): 'in' | 'on' | 'out';
|
|
40
44
|
export declare function classifyPointRobust(bk: BrepkitKernel, shape: KernelShape, point: [number, number, number], tolerance: number): string;
|
|
@@ -108,7 +112,10 @@ export declare function makeGeometryOps(bk: BrepkitKernel): {
|
|
|
108
112
|
radius: number;
|
|
109
113
|
isDirect: boolean;
|
|
110
114
|
} | null;
|
|
111
|
-
getSurfaceAxis: () =>
|
|
115
|
+
getSurfaceAxis: (face: any) => {
|
|
116
|
+
origin: [number, number, number];
|
|
117
|
+
direction: [number, number, number];
|
|
118
|
+
} | null;
|
|
112
119
|
reverseSurfaceU: (surface: any) => any;
|
|
113
120
|
classifyPointOnFace: (face: any, u: number, v: number, tolerance: number | undefined) => "in" | "on" | "out";
|
|
114
121
|
classifyPointRobust: (shape: any, point: [number, number, number], tolerance: number) => string;
|
|
@@ -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-DdghAlnN.cjs");
|
|
3
3
|
exports.OcctWasmAdapter = require_occtWasmAdapter.OcctWasmAdapter;
|
|
@@ -317,7 +317,7 @@ export declare class OcctWasmAdapter implements KernelAdapter {
|
|
|
317
317
|
classifyPointWinding(_shape: KernelShape, _point: [number, number, number], _tolerance: number): string;
|
|
318
318
|
approximateSurfaceLspia(_coords: number[], _rows: number, _cols: number, _degreeU: number, _degreeV: number, _numCpsU: number, _numCpsV: number, _tolerance: number, _maxIterations: number): KernelShape;
|
|
319
319
|
untrimFace(_face: KernelShape, _samplesPerCurve: number, _interiorSamples: number): KernelShape;
|
|
320
|
-
getSurfaceCylinderData(
|
|
320
|
+
getSurfaceCylinderData(surface: KernelType): {
|
|
321
321
|
radius: number;
|
|
322
322
|
isDirect: boolean;
|
|
323
323
|
} | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as OcctWasmAdapter } from "../../occtWasmAdapter-
|
|
1
|
+
import { t as OcctWasmAdapter } from "../../occtWasmAdapter-m4Nua92H.js";
|
|
2
2
|
export { OcctWasmAdapter };
|
|
@@ -12,21 +12,16 @@ export declare function outerWire(k: OcctKernelWasm, face: KernelShape): KernelS
|
|
|
12
12
|
export declare function surfaceNormal(k: OcctKernelWasm, face: KernelShape, u: number, v: number): [number, number, number];
|
|
13
13
|
export declare function pointOnSurface(k: OcctKernelWasm, face: KernelShape, u: number, v: number): [number, number, number];
|
|
14
14
|
type V3 = [number, number, number];
|
|
15
|
-
/**
|
|
16
|
-
* Derive a cylindrical face's axis (point on axis + unit direction) from the
|
|
17
|
-
* primitives occt-wasm exposes — it has no analytic `gp_Cylinder` accessor.
|
|
18
|
-
*
|
|
19
|
-
* Two surface samples at the same height v give radial normals n1,n2 (lying in
|
|
20
|
-
* the plane perpendicular to the axis), so `n1 x n2` is parallel to the axis.
|
|
21
|
-
* The points satisfy `p1 - p2 = ±r(n1 - n2)`, giving the radius
|
|
22
|
-
* `r = |p1-p2| / |n1-n2|`; the axis point is then `p - r·n` with the normal's
|
|
23
|
-
* sign chosen so both samples agree. Exact for full and partial cylinders.
|
|
24
|
-
* Returns null for non-cylinders.
|
|
25
|
-
*/
|
|
15
|
+
/** Cylindrical face axis (point on axis + unit direction). Null for non-cylinders. */
|
|
26
16
|
export declare function getSurfaceAxis(k: OcctKernelWasm, face: KernelShape): {
|
|
27
17
|
origin: V3;
|
|
28
18
|
direction: V3;
|
|
29
19
|
} | null;
|
|
20
|
+
/** Cylinder radius + handedness for a cylindrical surface. Null for non-cylinders. */
|
|
21
|
+
export declare function getSurfaceCylinderData(k: OcctKernelWasm, surface: KernelShape): {
|
|
22
|
+
radius: number;
|
|
23
|
+
isDirect: boolean;
|
|
24
|
+
} | null;
|
|
30
25
|
export declare function uvFromPoint(k: OcctKernelWasm, face: KernelShape, point: [number, number, number]): [number, number] | null;
|
|
31
26
|
export declare function projectPointOnFace(k: OcctKernelWasm, face: KernelShape, point: [number, number, number]): [number, number, number];
|
|
32
27
|
export declare function classifyPointOnFace(k: OcctKernelWasm, face: KernelShape, u: number, v: number, _tolerance?: number): 'in' | 'on' | 'out';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-C4cMKLoj.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-Bj5wpC75.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-CZvemlPW.cjs");
|
|
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
|
-
import { Z as getKernel } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel } from "./shapeTypes-VCBsDI43.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
|
|
3
|
-
import { w as kernelCallRaw } from "./topologyQueryFns-
|
|
4
|
-
import { m as uvBounds } from "./faceFns-
|
|
3
|
+
import { w as kernelCallRaw } from "./topologyQueryFns-BtfhAVY2.js";
|
|
4
|
+
import { m as uvBounds } from "./faceFns-BJ0mbRh5.js";
|
|
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-CRS3U8gj.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-DYeTPyHr.js";
|
|
2
2
|
export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Z as getKernel, gt as qualityDeflection } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, gt as qualityDeflection } from "./shapeTypes-VCBsDI43.js";
|
|
2
2
|
import { A as ok, b as err, r as ioError } from "./errors-DNWJsfVU.js";
|
|
3
|
-
import { d as getSolids, n as getBounds } from "./topologyQueryFns-
|
|
4
|
-
import { O as getFaceOrigins } from "./shapeFns-
|
|
3
|
+
import { d as getSolids, n as getBounds } from "./topologyQueryFns-BtfhAVY2.js";
|
|
4
|
+
import { O as getFaceOrigins } from "./shapeFns-CQRGTifg.js";
|
|
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
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-C4cMKLoj.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
-
const require_shapeFns = require("./shapeFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-Bj5wpC75.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-CQmd2W5F.cjs");
|
|
5
5
|
//#region src/topology/meshCache.ts
|
|
6
6
|
/**
|
|
7
7
|
* Build a parameter key for the inner cache map (excludes shape identity).
|
|
@@ -1777,6 +1777,7 @@ var subV = (a, b) => [
|
|
|
1777
1777
|
a[1] - b[1],
|
|
1778
1778
|
a[2] - b[2]
|
|
1779
1779
|
];
|
|
1780
|
+
var dotV = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
|
|
1780
1781
|
var lenV = (a) => Math.hypot(a[0], a[1], a[2]);
|
|
1781
1782
|
var crossV = (a, b) => [
|
|
1782
1783
|
a[1] * b[2] - a[2] * b[1],
|
|
@@ -1784,17 +1785,23 @@ var crossV = (a, b) => [
|
|
|
1784
1785
|
a[0] * b[1] - a[1] * b[0]
|
|
1785
1786
|
];
|
|
1786
1787
|
/**
|
|
1787
|
-
* Derive a cylindrical face's
|
|
1788
|
-
*
|
|
1788
|
+
* Derive a cylindrical face's analytic parameters from the primitives occt-wasm
|
|
1789
|
+
* exposes — it has no `gp_Cylinder` accessor.
|
|
1789
1790
|
*
|
|
1790
|
-
* Two surface samples at the same height v give radial normals n1,n2 (lying
|
|
1791
|
-
* the plane perpendicular to the axis), so `n1 x n2` is parallel to the axis.
|
|
1791
|
+
* Two surface samples at the same height v give radial unit normals n1,n2 (lying
|
|
1792
|
+
* in the plane perpendicular to the axis), so `n1 x n2` is parallel to the axis.
|
|
1792
1793
|
* The points satisfy `p1 - p2 = ±r(n1 - n2)`, giving the radius
|
|
1793
1794
|
* `r = |p1-p2| / |n1-n2|`; the axis point is then `p - r·n` with the normal's
|
|
1794
|
-
* sign chosen so both samples agree.
|
|
1795
|
-
*
|
|
1795
|
+
* sign chosen so both samples agree.
|
|
1796
|
+
*
|
|
1797
|
+
* `isDirect` mirrors OCCT's `gp_Cylinder::Direct()` — the handedness of the
|
|
1798
|
+
* cylinder's coordinate system, independent of face orientation. occt-wasm's
|
|
1799
|
+
* `surfaceNormal` is orientation-aware (a REVERSED face reports an inward
|
|
1800
|
+
* normal), so we undo the face orientation before the outward test; otherwise an
|
|
1801
|
+
* inner bore (a reversed face on an otherwise-direct cylinder) would wrongly
|
|
1802
|
+
* report `isDirect: false`. Exact for full and partial cylinders; null otherwise.
|
|
1796
1803
|
*/
|
|
1797
|
-
function
|
|
1804
|
+
function deriveCylinder(k, face) {
|
|
1798
1805
|
if (surfaceType(k, face) !== "cylinder") return null;
|
|
1799
1806
|
const b = uvBounds(k, face);
|
|
1800
1807
|
const vMid = .5 * (b.vMin + b.vMax);
|
|
@@ -1813,29 +1820,44 @@ function getSurfaceAxis(k, face) {
|
|
|
1813
1820
|
axis[1] / axisLen,
|
|
1814
1821
|
axis[2] / axisLen
|
|
1815
1822
|
];
|
|
1816
|
-
const
|
|
1823
|
+
const radius = lenV(subV(p1, p2)) / dnLen;
|
|
1817
1824
|
const minus1 = [
|
|
1818
|
-
p1[0] -
|
|
1819
|
-
p1[1] -
|
|
1820
|
-
p1[2] -
|
|
1825
|
+
p1[0] - radius * n1[0],
|
|
1826
|
+
p1[1] - radius * n1[1],
|
|
1827
|
+
p1[2] - radius * n1[2]
|
|
1828
|
+
];
|
|
1829
|
+
const origin = lenV(subV(minus1, [
|
|
1830
|
+
p2[0] - radius * n2[0],
|
|
1831
|
+
p2[1] - radius * n2[1],
|
|
1832
|
+
p2[2] - radius * n2[2]
|
|
1833
|
+
])) < 1e-6 ? minus1 : [
|
|
1834
|
+
p1[0] + radius * n1[0],
|
|
1835
|
+
p1[1] + radius * n1[1],
|
|
1836
|
+
p1[2] + radius * n1[2]
|
|
1821
1837
|
];
|
|
1822
|
-
if (lenV(subV(minus1, [
|
|
1823
|
-
p2[0] - r * n2[0],
|
|
1824
|
-
p2[1] - r * n2[1],
|
|
1825
|
-
p2[2] - r * n2[2]
|
|
1826
|
-
])) < 1e-6) return {
|
|
1827
|
-
origin: minus1,
|
|
1828
|
-
direction
|
|
1829
|
-
};
|
|
1830
1838
|
return {
|
|
1831
|
-
origin
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
],
|
|
1836
|
-
direction
|
|
1839
|
+
origin,
|
|
1840
|
+
direction,
|
|
1841
|
+
radius,
|
|
1842
|
+
isDirect: (shapeOrientation(k, face) === "reversed" ? -1 : 1) * dotV(n1, subV(p1, origin)) > 0
|
|
1837
1843
|
};
|
|
1838
1844
|
}
|
|
1845
|
+
/** Cylindrical face axis (point on axis + unit direction). Null for non-cylinders. */
|
|
1846
|
+
function getSurfaceAxis(k, face) {
|
|
1847
|
+
const cyl = deriveCylinder(k, face);
|
|
1848
|
+
return cyl ? {
|
|
1849
|
+
origin: cyl.origin,
|
|
1850
|
+
direction: cyl.direction
|
|
1851
|
+
} : null;
|
|
1852
|
+
}
|
|
1853
|
+
/** Cylinder radius + handedness for a cylindrical surface. Null for non-cylinders. */
|
|
1854
|
+
function getSurfaceCylinderData(k, surface) {
|
|
1855
|
+
const cyl = deriveCylinder(k, surface);
|
|
1856
|
+
return cyl ? {
|
|
1857
|
+
radius: cyl.radius,
|
|
1858
|
+
isDirect: cyl.isDirect
|
|
1859
|
+
} : null;
|
|
1860
|
+
}
|
|
1839
1861
|
function uvFromPoint(k, face, point) {
|
|
1840
1862
|
const vec = k.uvFromPoint(unwrap(face), point[0], point[1], point[2]);
|
|
1841
1863
|
try {
|
|
@@ -4838,8 +4860,8 @@ var OcctWasmAdapter = class OcctWasmAdapter {
|
|
|
4838
4860
|
untrimFace(_face, _samplesPerCurve, _interiorSamples) {
|
|
4839
4861
|
notImplemented("untrimFace");
|
|
4840
4862
|
}
|
|
4841
|
-
getSurfaceCylinderData(
|
|
4842
|
-
|
|
4863
|
+
getSurfaceCylinderData(surface) {
|
|
4864
|
+
return getSurfaceCylinderData(this.k, surface);
|
|
4843
4865
|
}
|
|
4844
4866
|
getSurfaceAxis(face) {
|
|
4845
4867
|
return getSurfaceAxis(this.k, face);
|
|
@@ -1777,6 +1777,7 @@ var subV = (a, b) => [
|
|
|
1777
1777
|
a[1] - b[1],
|
|
1778
1778
|
a[2] - b[2]
|
|
1779
1779
|
];
|
|
1780
|
+
var dotV = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
|
|
1780
1781
|
var lenV = (a) => Math.hypot(a[0], a[1], a[2]);
|
|
1781
1782
|
var crossV = (a, b) => [
|
|
1782
1783
|
a[1] * b[2] - a[2] * b[1],
|
|
@@ -1784,17 +1785,23 @@ var crossV = (a, b) => [
|
|
|
1784
1785
|
a[0] * b[1] - a[1] * b[0]
|
|
1785
1786
|
];
|
|
1786
1787
|
/**
|
|
1787
|
-
* Derive a cylindrical face's
|
|
1788
|
-
*
|
|
1788
|
+
* Derive a cylindrical face's analytic parameters from the primitives occt-wasm
|
|
1789
|
+
* exposes — it has no `gp_Cylinder` accessor.
|
|
1789
1790
|
*
|
|
1790
|
-
* Two surface samples at the same height v give radial normals n1,n2 (lying
|
|
1791
|
-
* the plane perpendicular to the axis), so `n1 x n2` is parallel to the axis.
|
|
1791
|
+
* Two surface samples at the same height v give radial unit normals n1,n2 (lying
|
|
1792
|
+
* in the plane perpendicular to the axis), so `n1 x n2` is parallel to the axis.
|
|
1792
1793
|
* The points satisfy `p1 - p2 = ±r(n1 - n2)`, giving the radius
|
|
1793
1794
|
* `r = |p1-p2| / |n1-n2|`; the axis point is then `p - r·n` with the normal's
|
|
1794
|
-
* sign chosen so both samples agree.
|
|
1795
|
-
*
|
|
1795
|
+
* sign chosen so both samples agree.
|
|
1796
|
+
*
|
|
1797
|
+
* `isDirect` mirrors OCCT's `gp_Cylinder::Direct()` — the handedness of the
|
|
1798
|
+
* cylinder's coordinate system, independent of face orientation. occt-wasm's
|
|
1799
|
+
* `surfaceNormal` is orientation-aware (a REVERSED face reports an inward
|
|
1800
|
+
* normal), so we undo the face orientation before the outward test; otherwise an
|
|
1801
|
+
* inner bore (a reversed face on an otherwise-direct cylinder) would wrongly
|
|
1802
|
+
* report `isDirect: false`. Exact for full and partial cylinders; null otherwise.
|
|
1796
1803
|
*/
|
|
1797
|
-
function
|
|
1804
|
+
function deriveCylinder(k, face) {
|
|
1798
1805
|
if (surfaceType(k, face) !== "cylinder") return null;
|
|
1799
1806
|
const b = uvBounds(k, face);
|
|
1800
1807
|
const vMid = .5 * (b.vMin + b.vMax);
|
|
@@ -1813,29 +1820,44 @@ function getSurfaceAxis(k, face) {
|
|
|
1813
1820
|
axis[1] / axisLen,
|
|
1814
1821
|
axis[2] / axisLen
|
|
1815
1822
|
];
|
|
1816
|
-
const
|
|
1823
|
+
const radius = lenV(subV(p1, p2)) / dnLen;
|
|
1817
1824
|
const minus1 = [
|
|
1818
|
-
p1[0] -
|
|
1819
|
-
p1[1] -
|
|
1820
|
-
p1[2] -
|
|
1825
|
+
p1[0] - radius * n1[0],
|
|
1826
|
+
p1[1] - radius * n1[1],
|
|
1827
|
+
p1[2] - radius * n1[2]
|
|
1828
|
+
];
|
|
1829
|
+
const origin = lenV(subV(minus1, [
|
|
1830
|
+
p2[0] - radius * n2[0],
|
|
1831
|
+
p2[1] - radius * n2[1],
|
|
1832
|
+
p2[2] - radius * n2[2]
|
|
1833
|
+
])) < 1e-6 ? minus1 : [
|
|
1834
|
+
p1[0] + radius * n1[0],
|
|
1835
|
+
p1[1] + radius * n1[1],
|
|
1836
|
+
p1[2] + radius * n1[2]
|
|
1821
1837
|
];
|
|
1822
|
-
if (lenV(subV(minus1, [
|
|
1823
|
-
p2[0] - r * n2[0],
|
|
1824
|
-
p2[1] - r * n2[1],
|
|
1825
|
-
p2[2] - r * n2[2]
|
|
1826
|
-
])) < 1e-6) return {
|
|
1827
|
-
origin: minus1,
|
|
1828
|
-
direction
|
|
1829
|
-
};
|
|
1830
1838
|
return {
|
|
1831
|
-
origin
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
],
|
|
1836
|
-
direction
|
|
1839
|
+
origin,
|
|
1840
|
+
direction,
|
|
1841
|
+
radius,
|
|
1842
|
+
isDirect: (shapeOrientation(k, face) === "reversed" ? -1 : 1) * dotV(n1, subV(p1, origin)) > 0
|
|
1837
1843
|
};
|
|
1838
1844
|
}
|
|
1845
|
+
/** Cylindrical face axis (point on axis + unit direction). Null for non-cylinders. */
|
|
1846
|
+
function getSurfaceAxis(k, face) {
|
|
1847
|
+
const cyl = deriveCylinder(k, face);
|
|
1848
|
+
return cyl ? {
|
|
1849
|
+
origin: cyl.origin,
|
|
1850
|
+
direction: cyl.direction
|
|
1851
|
+
} : null;
|
|
1852
|
+
}
|
|
1853
|
+
/** Cylinder radius + handedness for a cylindrical surface. Null for non-cylinders. */
|
|
1854
|
+
function getSurfaceCylinderData(k, surface) {
|
|
1855
|
+
const cyl = deriveCylinder(k, surface);
|
|
1856
|
+
return cyl ? {
|
|
1857
|
+
radius: cyl.radius,
|
|
1858
|
+
isDirect: cyl.isDirect
|
|
1859
|
+
} : null;
|
|
1860
|
+
}
|
|
1839
1861
|
function uvFromPoint(k, face, point) {
|
|
1840
1862
|
const vec = k.uvFromPoint(unwrap(face), point[0], point[1], point[2]);
|
|
1841
1863
|
try {
|
|
@@ -4838,8 +4860,8 @@ var OcctWasmAdapter = class OcctWasmAdapter {
|
|
|
4838
4860
|
untrimFace(_face, _samplesPerCurve, _interiorSamples) {
|
|
4839
4861
|
notImplemented("untrimFace");
|
|
4840
4862
|
}
|
|
4841
|
-
getSurfaceCylinderData(
|
|
4842
|
-
|
|
4863
|
+
getSurfaceCylinderData(surface) {
|
|
4864
|
+
return getSurfaceCylinderData(this.k, surface);
|
|
4843
4865
|
}
|
|
4844
4866
|
getSurfaceAxis(face) {
|
|
4845
4867
|
return getSurfaceAxis(this.k, face);
|
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-xUNAdUYV.cjs");
|
|
3
|
+
const require_extrudeFns = require("./extrudeFns-b7JHaMsv.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-BV5sQxft.js";
|
|
2
|
+
import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-msxcCUm2.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,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-
|
|
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-VCBsDI43.js";
|
|
2
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-DNWJsfVU.js";
|
|
3
|
-
import { c as getFaces, i as getCachedIsValid, l as getOrCreateCache, m as invalidateShapeCache, p as getWires, s as getEdges } from "./topologyQueryFns-
|
|
3
|
+
import { c as getFaces, i as getCachedIsValid, l as getOrCreateCache, m as invalidateShapeCache, p as getWires, s as getEdges } from "./topologyQueryFns-BtfhAVY2.js";
|
|
4
4
|
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
5
|
-
import { v as downcast } from "./faceFns-
|
|
6
|
-
import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-
|
|
5
|
+
import { v as downcast } from "./faceFns-BJ0mbRh5.js";
|
|
6
|
+
import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-CQRGTifg.js";
|
|
7
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-
|
|
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-
|
|
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-DllH3kXs.js";
|
|
9
|
+
import { a as fuseAll, i as fuse, n as cut, r as cutAll } from "./booleanFns-Cu-J1THp.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-DBsHetmI.js";
|
|
11
11
|
//#region src/topology/threeHelpers.ts
|
|
12
12
|
/**
|
|
13
13
|
* Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-C4cMKLoj.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-Bj5wpC75.cjs");
|
|
4
4
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
|
-
const require_faceFns = require("./faceFns-
|
|
6
|
-
const require_shapeFns = require("./shapeFns-
|
|
5
|
+
const require_faceFns = require("./faceFns-CZvemlPW.cjs");
|
|
6
|
+
const require_shapeFns = require("./shapeFns-CQmd2W5F.cjs");
|
|
7
7
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
8
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
9
|
-
const require_booleanFns = require("./booleanFns-
|
|
10
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
8
|
+
const require_surfaceBuilders = require("./surfaceBuilders-QK_Cnn_u.cjs");
|
|
9
|
+
const require_booleanFns = require("./booleanFns-DxnTjP19.cjs");
|
|
10
|
+
const require_solidBuilders = require("./solidBuilders-B0Hzin8a.cjs");
|
|
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-G2lc5c9M.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-Ctxe8ev-.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-CRBTGZO7.cjs");
|
|
3
|
+
const require_cornerFinder = require("./cornerFinder-CAoT1uIs.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-CYSAsvRe.js";
|
|
2
|
+
import { t as cornerFinder } from "./cornerFinder-CmXx269_.js";
|
|
3
3
|
export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Z as getKernel, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, t as castShape } from "./shapeTypes-VCBsDI43.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
|
|
3
|
-
import { C as kernelCall, c as getFaces, l as getOrCreateCache, r as getCacheEntry, w as kernelCallRaw } from "./topologyQueryFns-
|
|
3
|
+
import { C as kernelCall, c as getFaces, l as getOrCreateCache, r as getCacheEntry, w as kernelCallRaw } from "./topologyQueryFns-BtfhAVY2.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
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-C4cMKLoj.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-Bj5wpC75.cjs");
|
|
4
4
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
5
|
//#region src/topology/metadata/originTrackingFns.ts
|
|
6
6
|
/**
|
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-DoPplxoN.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-DvIvS0do.js";
|
|
2
2
|
export { assignRoles, captureHint, createRef, defaultScorer, resolveRef, updateRoles };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
|
|
2
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
4
|
-
const require_shapeFns = require("./shapeFns-
|
|
5
|
-
const require_measureFns = require("./measureFns-
|
|
2
|
+
const require_topologyQueryFns = require("./topologyQueryFns-Bj5wpC75.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-CZvemlPW.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-CQmd2W5F.cjs");
|
|
5
|
+
const require_measureFns = require("./measureFns-CRS3U8gj.cjs");
|
|
6
6
|
//#region src/topology/shapeRef/scoring.ts
|
|
7
7
|
/**
|
|
8
8
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as wasmIndex } from "./vec3-Dpha8d5k.js";
|
|
2
|
-
import { c as getFaces } from "./topologyQueryFns-
|
|
3
|
-
import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-
|
|
4
|
-
import { n as getHashCode } from "./shapeFns-
|
|
5
|
-
import { n as measureArea } from "./measureFns-
|
|
2
|
+
import { c as getFaces } from "./topologyQueryFns-BtfhAVY2.js";
|
|
3
|
+
import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-BJ0mbRh5.js";
|
|
4
|
+
import { n as getHashCode } from "./shapeFns-CQRGTifg.js";
|
|
5
|
+
import { n as measureArea } from "./measureFns-DYeTPyHr.js";
|
|
6
6
|
//#region src/topology/shapeRef/scoring.ts
|
|
7
7
|
/**
|
|
8
8
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|