brepjs 18.28.0 → 18.30.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-DgVV4JnR.cjs → blueprint-CX2RHEEB.cjs} +5 -5
- package/dist/{blueprint-DCaLaW5V.js → blueprint-DjzrmC44.js} +5 -5
- package/dist/{blueprintFns-CaBBmBbd.cjs → blueprintFns-sYjcuD3S.cjs} +2 -2
- package/dist/{blueprintFns-DxDohOso.js → blueprintFns-uty9-SLX.js} +2 -2
- package/dist/{blueprintSketcher-DpZtLWPK.js → blueprintSketcher-Bs4zUnzq.js} +3 -3
- package/dist/{blueprintSketcher-CVzRSGDr.cjs → blueprintSketcher-CuUqou1w.cjs} +3 -3
- package/dist/{boolean2D-BdC7YBQP.js → boolean2D-BtQAX9qA.js} +4 -4
- package/dist/{boolean2D-BT0oRETS.cjs → boolean2D-CPHSLRai.cjs} +4 -4
- package/dist/{booleanFns-DQqY4Dss.js → booleanFns-DcT5S7PR.js} +4 -4
- package/dist/{booleanFns-CsFsde9t.cjs → booleanFns-DkMXJEWT.cjs} +4 -4
- package/dist/brepjs.cjs +24 -24
- package/dist/brepjs.js +24 -24
- package/dist/{cameraFns-CDB2SASG.js → cameraFns-DkeC7V5J.js} +2 -2
- package/dist/{cameraFns-Bj-i3990.cjs → cameraFns-K_Nl1guR.cjs} +2 -2
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-B2gMJSrd.js → cornerFinder-BJJFyfEh.js} +1 -1
- package/dist/{cornerFinder-D6UY4k4j.cjs → cornerFinder-DFiCSIfH.cjs} +1 -1
- package/dist/{curveFns-qm5yRPDB.js → curveFns-BAeFDquO.js} +1 -1
- package/dist/{curveFns-Y73GytYk.cjs → curveFns-BgkFOuyU.cjs} +1 -1
- package/dist/{drawFns-9oTTEwVI.cjs → drawFns-BIpCVb2d.cjs} +12 -12
- package/dist/{drawFns-DOe4jAxV.js → drawFns-CvJdaSme.js} +12 -12
- package/dist/{extrudeFns-DpPpBy40.js → extrudeFns-B5gjM-FM.js} +1 -1
- package/dist/{extrudeFns-D_nDWO4O.cjs → extrudeFns-CXPBh5nU.cjs} +1 -1
- package/dist/{faceFns-B_wyCXSR.cjs → faceFns-CyHH4kTh.cjs} +2 -2
- package/dist/{faceFns-CEZFie5M.js → faceFns-Mc45gFVz.js} +2 -2
- package/dist/{helpers-CDzCYf6t.js → helpers-BbDE_mL4.js} +6 -6
- package/dist/{helpers-BeAdQnoh.cjs → helpers-CE0Raxxr.cjs} +6 -6
- package/dist/{historyFns-CiOuKAHR.js → historyFns-DZKQl8qL.js} +4 -4
- package/dist/{historyFns-o5YPr6kB.cjs → historyFns-KpkhqpgM.cjs} +4 -4
- package/dist/{importFns-ySU9FOAT.cjs → importFns-Cwfs-weK.cjs} +2 -2
- package/dist/{importFns-DWXQjwcN.js → importFns-Dn2UEtZd.js} +2 -2
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/brepkit/brepkitWasmTypes.d.ts +9 -7
- package/dist/kernel/brepkit/constructionOps.d.ts +1 -1
- package/dist/kernel/brepkit/geometryOps.d.ts +18 -4
- package/dist/{measureFns-CnNsxJ3r.js → measureFns-C7SJOyBc.js} +3 -3
- package/dist/{measureFns-C7sDwFbi.cjs → measureFns-DGayqGpX.cjs} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-Bnzdb8Hi.cjs → meshFns-CkYAnECP.cjs} +2 -2
- package/dist/{meshFns-De5ytGeY.js → meshFns-_FNR4QJM.js} +2 -2
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-BW2Z-ol6.js → primitiveFns-CnnO2ark.js} +7 -7
- package/dist/{primitiveFns-DcGUodn_.cjs → primitiveFns-OIIvukU7.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-BSS9CJ76.js → shapeFns-CAajqXTr.js} +2 -2
- package/dist/{shapeFns-DeIskguL.cjs → shapeFns-DmeM98ps.cjs} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeRefFns-TS1Z4wYF.js → shapeRefFns-D-o1iNz2.js} +4 -4
- package/dist/{shapeRefFns-C5Pf5Hq4.cjs → shapeRefFns-XZ0m15hb.cjs} +4 -4
- package/dist/{shapeTypes-7h6IgcC-.cjs → shapeTypes-Cm921nQl.cjs} +37 -14
- package/dist/{shapeTypes-BNSmLg5K.js → shapeTypes-DoQpZDvB.js} +37 -14
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-BVEXfPe5.js → solidBuilders-BiX5zCdw.js} +2 -2
- package/dist/{solidBuilders-DVsQV6gF.cjs → solidBuilders-ByFrBRBR.cjs} +2 -2
- package/dist/{surfaceBuilders-T8OQoZ1R.js → surfaceBuilders-C3qCxovs.js} +2 -2
- package/dist/{surfaceBuilders-DlSyRZE7.cjs → surfaceBuilders-Ce_8WGQP.cjs} +2 -2
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-f5p3Ltou.js → textBlueprints-BJ_hCrTm.js} +7 -7
- package/dist/{textBlueprints-DMtErtGx.cjs → textBlueprints-IkLHU-vh.cjs} +7 -7
- package/dist/{textMetrics-uXYdyNt0.js → textMetrics-BXiQ0eD2.js} +1 -1
- package/dist/{textMetrics-BrvEBE7v.cjs → textMetrics-BxcmbaRn.cjs} +1 -1
- package/dist/topology.cjs +7 -7
- package/dist/topology.js +7 -7
- package/dist/{topologyQueryFns-BV0fjpXF.cjs → topologyQueryFns-CAIQlNoT.cjs} +1 -1
- package/dist/{topologyQueryFns-COoNTJha.js → topologyQueryFns-CN_fFTlr.js} +1 -1
- package/package.json +2 -2
|
@@ -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-DoQpZDvB.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, n as computationError, r as ioError } from "./errors-BJSTLaDI.js";
|
|
3
3
|
import { d as vecNormalize, s as vecIsZero } from "./vecOps-SKPRvPH-.js";
|
|
4
|
-
import { v as fromBREP } from "./faceFns-
|
|
5
|
-
import { s as toBREP } from "./shapeFns-
|
|
6
|
-
import { a as fuseAll } from "./booleanFns-
|
|
4
|
+
import { v as fromBREP } from "./faceFns-Mc45gFVz.js";
|
|
5
|
+
import { s as toBREP } from "./shapeFns-CAajqXTr.js";
|
|
6
|
+
import { a as fuseAll } from "./booleanFns-DcT5S7PR.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-Cm921nQl.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.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-CyHH4kTh.cjs");
|
|
5
|
+
const require_shapeFns = require("./shapeFns-DmeM98ps.cjs");
|
|
6
|
+
const require_booleanFns = require("./booleanFns-DkMXJEWT.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-Cm921nQl.cjs");
|
|
2
2
|
const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
|
|
3
3
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
4
4
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
5
|
-
const require_blueprint = require("./blueprint-
|
|
5
|
+
const require_blueprint = require("./blueprint-CX2RHEEB.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-DoQpZDvB.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-BJSTLaDI.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-DjzrmC44.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-CkYAnECP.cjs");
|
|
3
|
+
const require_importFns = require("./importFns-Cwfs-weK.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-_FNR4QJM.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-Dn2UEtZd.js";
|
|
3
3
|
export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Type-safe interface for the brepkit WASM kernel (`BrepKernel`).
|
|
3
3
|
*
|
|
4
4
|
* AUTO-GENERATED by `npm run sync:brepkit-types`.
|
|
5
|
-
* Synced against `brepkit-wasm@2.
|
|
5
|
+
* Synced against `brepkit-wasm@2.99.0`.
|
|
6
6
|
*
|
|
7
7
|
* Methods not yet referenced in the adapter layer are tagged `@unwired`.
|
|
8
8
|
*
|
|
@@ -285,27 +285,29 @@ export interface BrepkitKernel {
|
|
|
285
285
|
getNurbsCurveData(edge: number): string;
|
|
286
286
|
/** @unwired */
|
|
287
287
|
getNurbsSurfaceData(face: number): string;
|
|
288
|
+
getNurbsSurfaceDataParity(face: number): string;
|
|
288
289
|
makeCircleEdge(cx: number, cy: number, cz: number, nx: number, ny: number, nz: number, radius: number): number;
|
|
289
290
|
/** @unwired */
|
|
290
291
|
makeCircleEdgeWithRef(cx: number, cy: number, cz: number, nx: number, ny: number, nz: number, radius: number, rx: number, ry: number, rz: number): number;
|
|
291
292
|
makeEllipseEdge(cx: number, cy: number, cz: number, nx: number, ny: number, nz: number, semiMajor: number, semiMinor: number): number;
|
|
292
293
|
makeEllipseEdgeWithRef(cx: number, cy: number, cz: number, nx: number, ny: number, nz: number, semiMajor: number, semiMinor: number, rx: number, ry: number, rz: number): number;
|
|
294
|
+
makePlanarFaceFromWire(wire: number): number;
|
|
293
295
|
/** @unwired */
|
|
294
296
|
sketchAddCircle(sketch: number, centerIdx: number, radius: number): number;
|
|
295
297
|
/** @unwired */
|
|
296
298
|
toBrepJson(solid: number): string;
|
|
297
299
|
transformFace(face: number, matrix: Float64Array | number[]): void;
|
|
298
|
-
/** @future Not in brepkit-wasm 2.
|
|
300
|
+
/** @future Not in brepkit-wasm 2.99.0. Referenced with feature detection in adapter. */
|
|
299
301
|
chamferAsymmetric?(solid: number, edgeHandles: Uint32Array | number[], d1: number, d2: number): number;
|
|
300
|
-
/** @future Not in brepkit-wasm 2.
|
|
302
|
+
/** @future Not in brepkit-wasm 2.99.0. Referenced with feature detection in adapter. */
|
|
301
303
|
compoundFuse?(solidIds: Uint32Array | number[]): number;
|
|
302
|
-
/** @future Not in brepkit-wasm 2.
|
|
304
|
+
/** @future Not in brepkit-wasm 2.99.0. Referenced with feature detection in adapter. */
|
|
303
305
|
copyEdge?(edge: number): number;
|
|
304
|
-
/** @future Not in brepkit-wasm 2.
|
|
306
|
+
/** @future Not in brepkit-wasm 2.99.0. Referenced with feature detection in adapter. */
|
|
305
307
|
copyFace?(face: number): number;
|
|
306
|
-
/** @future Not in brepkit-wasm 2.
|
|
308
|
+
/** @future Not in brepkit-wasm 2.99.0. Referenced with feature detection in adapter. */
|
|
307
309
|
transformEdge?(edge: number, matrix: Float64Array | number[]): void;
|
|
308
|
-
/** @future Not in brepkit-wasm 2.
|
|
310
|
+
/** @future Not in brepkit-wasm 2.99.0. Referenced with feature detection in adapter. */
|
|
309
311
|
validateSolidDetails?(solid: number): string;
|
|
310
312
|
/** Release the entire arena. */
|
|
311
313
|
free(): void;
|
|
@@ -4,7 +4,7 @@ import { Vec3 } from '../../utils/vec3.js';
|
|
|
4
4
|
export declare function makeVertex(bk: BrepkitKernel, x: number, y: number, z: number): KernelShape;
|
|
5
5
|
export declare function makeEdge(bk: BrepkitKernel, curve: KernelType, start?: number, end?: number): KernelShape;
|
|
6
6
|
export declare function makeWire(bk: BrepkitKernel, edges: KernelShape[]): KernelShape;
|
|
7
|
-
export declare function makeFace(bk: BrepkitKernel, wire: KernelShape,
|
|
7
|
+
export declare function makeFace(bk: BrepkitKernel, wire: KernelShape, planar?: boolean): KernelShape;
|
|
8
8
|
export declare function makeBox(bk: BrepkitKernel, width: number, height: number, depth: number): KernelShape;
|
|
9
9
|
export declare function makeRectangle(bk: BrepkitKernel, width: number, height: number): KernelShape;
|
|
10
10
|
export declare function makeCylinder(bk: BrepkitKernel, radius: number, height: number, center?: [number, number, number], direction?: [number, number, number]): KernelShape;
|
|
@@ -53,10 +53,24 @@ export declare function projectEdges(bk: BrepkitKernel, shape: KernelShape, _cam
|
|
|
53
53
|
sharp: KernelShape;
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
|
-
/**
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
/**
|
|
57
|
+
* Read-only canonical NURBS data for the curve underlying an edge.
|
|
58
|
+
*
|
|
59
|
+
* Analytic curves (line, circle, ellipse) are converted to their exact NURBS
|
|
60
|
+
* form by the kernel; interpolated/approximated B-spline edges return their
|
|
61
|
+
* native poles and knots. The kernel emits a compressed knot representation
|
|
62
|
+
* (distinct knots + multiplicities), which maps directly to the brepjs
|
|
63
|
+
* {@link NurbsCurveData} shape.
|
|
64
|
+
*/
|
|
65
|
+
export declare function getNurbsCurveData(bk: BrepkitKernel, edge: KernelShape): NurbsCurveData | null;
|
|
66
|
+
/**
|
|
67
|
+
* Read-only B-Spline/NURBS surface data for a face.
|
|
68
|
+
*
|
|
69
|
+
* Type-gated: analytic faces (plane, cylinder, cone, sphere, torus) return
|
|
70
|
+
* `null`; only intrinsically free-form faces yield a record. The kernel emits
|
|
71
|
+
* distinct knots paired with multiplicities, matching {@link NurbsSurfaceData}.
|
|
72
|
+
*/
|
|
73
|
+
export declare function getNurbsSurfaceData(bk: BrepkitKernel, face: KernelShape): NurbsSurfaceData | null;
|
|
60
74
|
/** Co-located factory: returns the geometry-query slice of {@link KernelAdapter} bound to `bk`. */
|
|
61
75
|
export declare function makeGeometryOps(bk: BrepkitKernel): {
|
|
62
76
|
vertexPosition: (vertex: any) => [number, number, number];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Z as getKernel } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel } from "./shapeTypes-DoQpZDvB.js";
|
|
2
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-
|
|
4
|
-
import { p as uvBounds } from "./faceFns-
|
|
3
|
+
import { v as kernelCallRaw } from "./topologyQueryFns-CN_fFTlr.js";
|
|
4
|
+
import { p as uvBounds } from "./faceFns-Mc45gFVz.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-Cm921nQl.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-CAIQlNoT.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-CyHH4kTh.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-DGayqGpX.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-C7SJOyBc.js";
|
|
2
2
|
export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-Cm921nQl.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
-
const require_shapeFns = require("./shapeFns-
|
|
3
|
+
const require_shapeFns = require("./shapeFns-DmeM98ps.cjs");
|
|
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
|
-
import { Z as getKernel } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel } from "./shapeTypes-DoQpZDvB.js";
|
|
2
2
|
import { A as ok, b as err, r as ioError } from "./errors-BJSTLaDI.js";
|
|
3
|
-
import { O as getFaceOrigins } from "./shapeFns-
|
|
3
|
+
import { O as getFaceOrigins } from "./shapeFns-CAajqXTr.js";
|
|
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-KpkhqpgM.cjs");
|
|
3
|
+
const require_extrudeFns = require("./extrudeFns-CXPBh5nU.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-DZKQl8qL.js";
|
|
2
|
+
import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-B5gjM-FM.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-DoQpZDvB.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-BJSTLaDI.js";
|
|
3
|
-
import { c as getOrCreateCache, d as invalidateShapeCache, i as getCachedIsValid, o as getEdges, s as getFaces, u as getWires } from "./topologyQueryFns-
|
|
3
|
+
import { c as getOrCreateCache, d as invalidateShapeCache, i as getCachedIsValid, o as getEdges, s as getFaces, u as getWires } from "./topologyQueryFns-CN_fFTlr.js";
|
|
4
4
|
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
5
|
-
import { _ as downcast } from "./faceFns-
|
|
6
|
-
import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-
|
|
5
|
+
import { _ as downcast } from "./faceFns-Mc45gFVz.js";
|
|
6
|
+
import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-CAajqXTr.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-C3qCxovs.js";
|
|
9
|
+
import { a as fuseAll, i as fuse, n as cut, r as cutAll } from "./booleanFns-DcT5S7PR.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-BiX5zCdw.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-Cm921nQl.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-CAIQlNoT.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-CyHH4kTh.cjs");
|
|
6
|
+
const require_shapeFns = require("./shapeFns-DmeM98ps.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-Ce_8WGQP.cjs");
|
|
9
|
+
const require_booleanFns = require("./booleanFns-DkMXJEWT.cjs");
|
|
10
|
+
const require_solidBuilders = require("./solidBuilders-ByFrBRBR.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-K_Nl1guR.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-DkeC7V5J.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-CE0Raxxr.cjs");
|
|
3
|
+
const require_cornerFinder = require("./cornerFinder-DFiCSIfH.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-BbDE_mL4.js";
|
|
2
|
+
import { t as cornerFinder } from "./cornerFinder-BJJFyfEh.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-DoQpZDvB.js";
|
|
2
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-
|
|
3
|
+
import { _ as kernelCall, c as getOrCreateCache, r as getCacheEntry, s as getFaces, v as kernelCallRaw } from "./topologyQueryFns-CN_fFTlr.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-Cm921nQl.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-CAIQlNoT.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-XZ0m15hb.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-D-o1iNz2.js";
|
|
2
2
|
export { assignRoles, captureHint, createRef, defaultScorer, resolveRef, updateRoles };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as wasmIndex } from "./vec3-Dpha8d5k.js";
|
|
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-
|
|
2
|
+
import { s as getFaces } from "./topologyQueryFns-CN_fFTlr.js";
|
|
3
|
+
import { c as normalAt, n as faceCenter, r as faceGeomType } from "./faceFns-Mc45gFVz.js";
|
|
4
|
+
import { n as getHashCode } from "./shapeFns-CAajqXTr.js";
|
|
5
|
+
import { n as measureArea } from "./measureFns-C7SJOyBc.js";
|
|
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
|
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-CAIQlNoT.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-CyHH4kTh.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-DmeM98ps.cjs");
|
|
5
|
+
const require_measureFns = require("./measureFns-DGayqGpX.cjs");
|
|
6
6
|
//#region src/topology/shapeRef/scoring.ts
|
|
7
7
|
/**
|
|
8
8
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -6233,13 +6233,39 @@ function projectEdges(bk, shape, _cameraOrigin, _cameraDirection, _cameraXAxis)
|
|
|
6233
6233
|
}
|
|
6234
6234
|
};
|
|
6235
6235
|
}
|
|
6236
|
-
/**
|
|
6237
|
-
|
|
6238
|
-
|
|
6236
|
+
/**
|
|
6237
|
+
* Read-only canonical NURBS data for the curve underlying an edge.
|
|
6238
|
+
*
|
|
6239
|
+
* Analytic curves (line, circle, ellipse) are converted to their exact NURBS
|
|
6240
|
+
* form by the kernel; interpolated/approximated B-spline edges return their
|
|
6241
|
+
* native poles and knots. The kernel emits a compressed knot representation
|
|
6242
|
+
* (distinct knots + multiplicities), which maps directly to the brepjs
|
|
6243
|
+
* {@link NurbsCurveData} shape.
|
|
6244
|
+
*/
|
|
6245
|
+
function getNurbsCurveData(bk, edge) {
|
|
6246
|
+
const edgeId = unwrap(edge, "edge");
|
|
6247
|
+
const json = bk.getNurbsCurveData(edgeId);
|
|
6248
|
+
if (!json) return null;
|
|
6249
|
+
const data = JSON.parse(json);
|
|
6250
|
+
return {
|
|
6251
|
+
degree: data.degree,
|
|
6252
|
+
poles: data.controlPoints,
|
|
6253
|
+
weights: data.weights,
|
|
6254
|
+
knots: data.distinctKnots,
|
|
6255
|
+
multiplicities: data.multiplicities,
|
|
6256
|
+
isPeriodic: data.periodic,
|
|
6257
|
+
isRational: data.rational
|
|
6258
|
+
};
|
|
6239
6259
|
}
|
|
6240
|
-
/**
|
|
6241
|
-
|
|
6242
|
-
|
|
6260
|
+
/**
|
|
6261
|
+
* Read-only B-Spline/NURBS surface data for a face.
|
|
6262
|
+
*
|
|
6263
|
+
* Type-gated: analytic faces (plane, cylinder, cone, sphere, torus) return
|
|
6264
|
+
* `null`; only intrinsically free-form faces yield a record. The kernel emits
|
|
6265
|
+
* distinct knots paired with multiplicities, matching {@link NurbsSurfaceData}.
|
|
6266
|
+
*/
|
|
6267
|
+
function getNurbsSurfaceData(bk, face) {
|
|
6268
|
+
return JSON.parse(bk.getNurbsSurfaceDataParity(unwrap(face, "face")));
|
|
6243
6269
|
}
|
|
6244
6270
|
/** Co-located factory: returns the geometry-query slice of {@link KernelAdapter} bound to `bk`. */
|
|
6245
6271
|
function makeGeometryOps(bk) {
|
|
@@ -6867,13 +6893,10 @@ function makeWire(bk, edges) {
|
|
|
6867
6893
|
}
|
|
6868
6894
|
return wireHandle(bk.makeWire(edgeIds, true));
|
|
6869
6895
|
}
|
|
6870
|
-
function makeFace(bk, wire,
|
|
6896
|
+
function makeFace(bk, wire, planar) {
|
|
6871
6897
|
const h = wire;
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
return faceHandle(bk.makeFaceFromWire(wireId));
|
|
6875
|
-
}
|
|
6876
|
-
return faceHandle(bk.makeFaceFromWire(unwrap(wire, "wire")));
|
|
6898
|
+
const wireId = h.type === "edge" ? bk.makeWire([h.id], true) : unwrap(wire, "wire");
|
|
6899
|
+
return faceHandle(planar ? bk.makePlanarFaceFromWire(wireId) : bk.makeFaceFromWire(wireId));
|
|
6877
6900
|
}
|
|
6878
6901
|
function makeBox(bk, width, height, depth) {
|
|
6879
6902
|
return solidHandle(bk.makeBox(width, height, depth));
|
|
@@ -7076,7 +7099,7 @@ function solidFromShell(bk, shell) {
|
|
|
7076
7099
|
return solidHandle(bk.solidFromShell(unwrap(shell, "shell")));
|
|
7077
7100
|
}
|
|
7078
7101
|
function makeNonPlanarFace(bk, wire) {
|
|
7079
|
-
return makeFace(bk, wire,
|
|
7102
|
+
return makeFace(bk, wire, false);
|
|
7080
7103
|
}
|
|
7081
7104
|
function addHolesInFace(bk, face, holeWires) {
|
|
7082
7105
|
const wireIds = holeWires.map((w) => unwrap(w, "wire"));
|
|
@@ -7086,7 +7109,7 @@ function removeHolesFromFace(bk, face) {
|
|
|
7086
7109
|
return faceHandle(bk.removeHolesFromFace(unwrap(face, "face")));
|
|
7087
7110
|
}
|
|
7088
7111
|
function makeFaceOnSurface(bk, _surface, wire) {
|
|
7089
|
-
return makeFace(bk, wire,
|
|
7112
|
+
return makeFace(bk, wire, false);
|
|
7090
7113
|
}
|
|
7091
7114
|
function bsplineSurface(bk, points, rows, cols) {
|
|
7092
7115
|
const coords = [];
|
|
@@ -6229,13 +6229,39 @@ function projectEdges(bk, shape, _cameraOrigin, _cameraDirection, _cameraXAxis)
|
|
|
6229
6229
|
}
|
|
6230
6230
|
};
|
|
6231
6231
|
}
|
|
6232
|
-
/**
|
|
6233
|
-
|
|
6234
|
-
|
|
6232
|
+
/**
|
|
6233
|
+
* Read-only canonical NURBS data for the curve underlying an edge.
|
|
6234
|
+
*
|
|
6235
|
+
* Analytic curves (line, circle, ellipse) are converted to their exact NURBS
|
|
6236
|
+
* form by the kernel; interpolated/approximated B-spline edges return their
|
|
6237
|
+
* native poles and knots. The kernel emits a compressed knot representation
|
|
6238
|
+
* (distinct knots + multiplicities), which maps directly to the brepjs
|
|
6239
|
+
* {@link NurbsCurveData} shape.
|
|
6240
|
+
*/
|
|
6241
|
+
function getNurbsCurveData(bk, edge) {
|
|
6242
|
+
const edgeId = unwrap(edge, "edge");
|
|
6243
|
+
const json = bk.getNurbsCurveData(edgeId);
|
|
6244
|
+
if (!json) return null;
|
|
6245
|
+
const data = JSON.parse(json);
|
|
6246
|
+
return {
|
|
6247
|
+
degree: data.degree,
|
|
6248
|
+
poles: data.controlPoints,
|
|
6249
|
+
weights: data.weights,
|
|
6250
|
+
knots: data.distinctKnots,
|
|
6251
|
+
multiplicities: data.multiplicities,
|
|
6252
|
+
isPeriodic: data.periodic,
|
|
6253
|
+
isRational: data.rational
|
|
6254
|
+
};
|
|
6235
6255
|
}
|
|
6236
|
-
/**
|
|
6237
|
-
|
|
6238
|
-
|
|
6256
|
+
/**
|
|
6257
|
+
* Read-only B-Spline/NURBS surface data for a face.
|
|
6258
|
+
*
|
|
6259
|
+
* Type-gated: analytic faces (plane, cylinder, cone, sphere, torus) return
|
|
6260
|
+
* `null`; only intrinsically free-form faces yield a record. The kernel emits
|
|
6261
|
+
* distinct knots paired with multiplicities, matching {@link NurbsSurfaceData}.
|
|
6262
|
+
*/
|
|
6263
|
+
function getNurbsSurfaceData(bk, face) {
|
|
6264
|
+
return JSON.parse(bk.getNurbsSurfaceDataParity(unwrap(face, "face")));
|
|
6239
6265
|
}
|
|
6240
6266
|
/** Co-located factory: returns the geometry-query slice of {@link KernelAdapter} bound to `bk`. */
|
|
6241
6267
|
function makeGeometryOps(bk) {
|
|
@@ -6863,13 +6889,10 @@ function makeWire(bk, edges) {
|
|
|
6863
6889
|
}
|
|
6864
6890
|
return wireHandle(bk.makeWire(edgeIds, true));
|
|
6865
6891
|
}
|
|
6866
|
-
function makeFace(bk, wire,
|
|
6892
|
+
function makeFace(bk, wire, planar) {
|
|
6867
6893
|
const h = wire;
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
return faceHandle(bk.makeFaceFromWire(wireId));
|
|
6871
|
-
}
|
|
6872
|
-
return faceHandle(bk.makeFaceFromWire(unwrap(wire, "wire")));
|
|
6894
|
+
const wireId = h.type === "edge" ? bk.makeWire([h.id], true) : unwrap(wire, "wire");
|
|
6895
|
+
return faceHandle(planar ? bk.makePlanarFaceFromWire(wireId) : bk.makeFaceFromWire(wireId));
|
|
6873
6896
|
}
|
|
6874
6897
|
function makeBox(bk, width, height, depth) {
|
|
6875
6898
|
return solidHandle(bk.makeBox(width, height, depth));
|
|
@@ -7072,7 +7095,7 @@ function solidFromShell(bk, shell) {
|
|
|
7072
7095
|
return solidHandle(bk.solidFromShell(unwrap(shell, "shell")));
|
|
7073
7096
|
}
|
|
7074
7097
|
function makeNonPlanarFace(bk, wire) {
|
|
7075
|
-
return makeFace(bk, wire,
|
|
7098
|
+
return makeFace(bk, wire, false);
|
|
7076
7099
|
}
|
|
7077
7100
|
function addHolesInFace(bk, face, holeWires) {
|
|
7078
7101
|
const wireIds = holeWires.map((w) => unwrap(w, "wire"));
|
|
@@ -7082,7 +7105,7 @@ function removeHolesFromFace(bk, face) {
|
|
|
7082
7105
|
return faceHandle(bk.removeHolesFromFace(unwrap(face, "face")));
|
|
7083
7106
|
}
|
|
7084
7107
|
function makeFaceOnSurface(bk, _surface, wire) {
|
|
7085
|
-
return makeFace(bk, wire,
|
|
7108
|
+
return makeFace(bk, wire, false);
|
|
7086
7109
|
}
|
|
7087
7110
|
function bsplineSurface(bk, points, rows, cols) {
|
|
7088
7111
|
const coords = [];
|
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-IkLHU-vh.cjs");
|
|
3
|
+
const require_blueprintSketcher = require("./blueprintSketcher-CuUqou1w.cjs");
|
|
4
|
+
const require_drawFns = require("./drawFns-BIpCVb2d.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-Bs4zUnzq.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-CvJdaSme.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-BJ_hCrTm.js";
|
|
4
4
|
//#region src/sketching.ts
|
|
5
5
|
/**
|
|
6
6
|
* brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Z as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-DoQpZDvB.js";
|
|
2
2
|
import { A as ok, R as unwrap, b as err, l as typeCastError, v as andThen } from "./errors-BJSTLaDI.js";
|
|
3
|
-
import { _ as downcast, g as cast } from "./faceFns-
|
|
3
|
+
import { _ as downcast, g as cast } from "./faceFns-Mc45gFVz.js";
|
|
4
4
|
//#region src/topology/shapeUtils.ts
|
|
5
5
|
/**
|
|
6
6
|
* Shape assembly utilities — welding and sewing operations.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-Cm921nQl.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-CyHH4kTh.cjs");
|
|
4
4
|
//#region src/topology/shapeUtils.ts
|
|
5
5
|
/**
|
|
6
6
|
* Shape assembly utilities — welding and sewing operations.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Z as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-DoQpZDvB.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, i as kernelError, v as andThen } from "./errors-BJSTLaDI.js";
|
|
3
|
-
import { g as cast, l as outerWire } from "./faceFns-
|
|
3
|
+
import { g as cast, l as outerWire } from "./faceFns-Mc45gFVz.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-Cm921nQl.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-CyHH4kTh.cjs");
|
|
4
4
|
//#region src/utils/range.ts
|
|
5
5
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
6
6
|
function range(len) {
|