brepjs 18.14.3 → 18.15.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-B8ogGJiQ.cjs → blueprint-CIeewjzr.cjs} +5 -5
- package/dist/{blueprint-Dv45Evnu.js → blueprint-DLBGUTNd.js} +5 -5
- package/dist/{blueprintFns-BK3FYYjO.cjs → blueprintFns-1IMqWPMW.cjs} +2 -2
- package/dist/{blueprintFns-a9C2g8_E.js → blueprintFns-D2sdw7JS.js} +2 -2
- package/dist/{blueprintSketcher-xDsl9GXO.js → blueprintSketcher-Ba0ixD62.js} +3 -3
- package/dist/{blueprintSketcher-Bei866Bt.cjs → blueprintSketcher-CoTpkqM0.cjs} +3 -3
- package/dist/{boolean2D-DGuiEJHA.cjs → boolean2D-B-cjvCbH.cjs} +4 -4
- package/dist/{boolean2D-Z7P0c012.js → boolean2D-K-P8u3Zt.js} +4 -4
- package/dist/{booleanFns-CRa80qMX.js → booleanFns-B-tCyTus.js} +4 -4
- package/dist/{booleanFns-qmgMQyDl.cjs → booleanFns-Dt7PFRBn.cjs} +4 -4
- package/dist/brepjs.cjs +24 -24
- package/dist/brepjs.js +24 -24
- package/dist/{cameraFns-1y1NyACI.cjs → cameraFns-Bap3OkVd.cjs} +2 -2
- package/dist/{cameraFns-CUzI5RKS.js → cameraFns-BpNyXRL0.js} +2 -2
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-CC8EBRCR.cjs → cornerFinder-Cu6DxBA7.cjs} +1 -1
- package/dist/{cornerFinder-Dix2ghke.js → cornerFinder-RFLVg-8z.js} +1 -1
- package/dist/{curveFns-CD20-4fM.cjs → curveFns-JWMOpM_Z.cjs} +1 -1
- package/dist/{curveFns-B4tWuinR.js → curveFns-tIaVzLWg.js} +1 -1
- package/dist/{drawFns-LlOZoFyp.cjs → drawFns-BfoxxF6K.cjs} +12 -12
- package/dist/{drawFns-BsarLfUN.js → drawFns-Dx4U245x.js} +12 -12
- package/dist/{extrudeFns-DD36mWKv.cjs → extrudeFns-B9e4Urrs.cjs} +1 -1
- package/dist/{extrudeFns-7pE8dIWz.js → extrudeFns-Br-TQlqe.js} +1 -1
- package/dist/{faceFns-BFWz17_E.js → faceFns-Dh6ia36N.js} +2 -2
- package/dist/{faceFns-DP7i60yJ.cjs → faceFns-DyyliCoO.cjs} +2 -2
- package/dist/{helpers-vV2ONZwD.js → helpers-9O1EHKeD.js} +6 -6
- package/dist/{helpers-Cyj6gaqy.cjs → helpers-Bf9M9irw.cjs} +6 -6
- package/dist/{historyFns-DGb61ETW.js → historyFns-CCmqoEed.js} +4 -4
- package/dist/{historyFns-DfyrPjnK.cjs → historyFns-DFbLPUpo.cjs} +4 -4
- package/dist/{importFns-Ci-L2iB3.js → importFns-BwQDL4Mg.js} +2 -2
- package/dist/{importFns-C-p0vl_h.cjs → importFns-DPuLof3W.cjs} +2 -2
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/brepkit/brepkitWasmTypes.d.ts +18 -8
- package/dist/{measureFns-6ifSQfJt.cjs → measureFns-BasuMKIB.cjs} +3 -3
- package/dist/{measureFns-Io2nHE1k.js → measureFns-DKfe_lKQ.js} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-DSdkRFWq.js → meshFns-BqNgRz5J.js} +2 -2
- package/dist/{meshFns-BCRVZgPi.cjs → meshFns-DJEO3Xzo.cjs} +2 -2
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-BH-JQPzh.cjs → primitiveFns-CoY9qQKS.cjs} +6 -6
- package/dist/{primitiveFns-C1p92ZcD.js → primitiveFns-oB_qrMX7.js} +6 -6
- 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-B7x82K11.cjs → shapeFns-BQEXWpOn.cjs} +2 -2
- package/dist/{shapeFns-BhZ9weSI.js → shapeFns-CgTb28LK.js} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeRefFns-B9PsEqWf.js → shapeRefFns-BtlEH773.js} +4 -4
- package/dist/{shapeRefFns-wDY88A8u.cjs → shapeRefFns-SBgfTcFt.cjs} +4 -4
- package/dist/{shapeTypes-BTt_LLbk.cjs → shapeTypes-BEnecQfR.cjs} +5 -2
- package/dist/{shapeTypes-C--1jaT1.js → shapeTypes-CkIR5uw9.js} +5 -2
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-Xs7VDMGD.js → solidBuilders-B5ziZaO1.js} +2 -2
- package/dist/{solidBuilders-CX_197Xm.cjs → solidBuilders-C1wp165c.cjs} +2 -2
- package/dist/{surfaceBuilders-CYeTNW33.cjs → surfaceBuilders-BubnFY4J.cjs} +2 -2
- package/dist/{surfaceBuilders-CinmHCbZ.js → surfaceBuilders-Clv5-PvA.js} +2 -2
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-Do6xNsLt.js → textBlueprints-3GvYFwnk.js} +7 -7
- package/dist/{textBlueprints-oWhiABaY.cjs → textBlueprints-BTSm4oyv.cjs} +7 -7
- package/dist/{textMetrics-CUvtglQE.cjs → textMetrics-Bxe1tjz1.cjs} +1 -1
- package/dist/{textMetrics-BjJ8sn_e.js → textMetrics-wSAplSdV.js} +1 -1
- package/dist/topology.cjs +7 -7
- package/dist/topology.js +7 -7
- package/dist/{topologyQueryFns-BU0qdNJP.cjs → topologyQueryFns-BqjkMjAy.cjs} +1 -1
- package/dist/{topologyQueryFns-Dhf85ZBK.js → topologyQueryFns-CStNJ-6H.js} +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { B as createKernelHandle, X as getKernel, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { B as createKernelHandle, X as getKernel, t as castShape } from "./shapeTypes-CkIR5uw9.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, n as computationError, r as ioError } from "./errors-0fYW_YnO.js";
|
|
3
3
|
import { d as vecNormalize, s as vecIsZero } from "./vecOps-DVROrqTV.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-Dh6ia36N.js";
|
|
5
|
+
import { s as toBREP } from "./shapeFns-CgTb28LK.js";
|
|
6
|
+
import { a as fuseAll } from "./booleanFns-B-tCyTus.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-BEnecQfR.cjs");
|
|
2
2
|
const require_errors = require("./errors-Dv6pfNct.cjs");
|
|
3
3
|
const require_vecOps = require("./vecOps-D7xplSx8.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-DyyliCoO.cjs");
|
|
5
|
+
const require_shapeFns = require("./shapeFns-BQEXWpOn.cjs");
|
|
6
|
+
const require_booleanFns = require("./booleanFns-Dt7PFRBn.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
|
-
import { X as getKernel, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { X as getKernel, t as castShape } from "./shapeTypes-CkIR5uw9.js";
|
|
2
2
|
import { n as wasmIndex, t as vec3At$1 } from "./vec3-BRj3eI54.js";
|
|
3
3
|
import { A as ok, b as err, r as ioError, t as BrepErrorCode } from "./errors-0fYW_YnO.js";
|
|
4
4
|
import { n as getAtOrThrow } from "./arrayAccess-C5IWcxs9.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-DLBGUTNd.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) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BEnecQfR.cjs");
|
|
2
2
|
const require_vec3 = require("./vec3-S4Oh59IX.cjs");
|
|
3
3
|
const require_errors = require("./errors-Dv6pfNct.cjs");
|
|
4
4
|
const require_arrayAccess = require("./arrayAccess-7pTWqkJu.cjs");
|
|
5
|
-
const require_blueprint = require("./blueprint-
|
|
5
|
+
const require_blueprint = require("./blueprint-CIeewjzr.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) {
|
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-DJEO3Xzo.cjs");
|
|
3
|
+
const require_importFns = require("./importFns-DPuLof3W.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-BqNgRz5J.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-BwQDL4Mg.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.88.0`.
|
|
6
6
|
*
|
|
7
7
|
* Methods not yet referenced in the adapter layer are tagged `@unwired`.
|
|
8
8
|
*
|
|
@@ -274,21 +274,31 @@ export interface BrepkitKernel {
|
|
|
274
274
|
/** @unwired */
|
|
275
275
|
assemblyBom(assembly: number): string;
|
|
276
276
|
toBREP(solid: number): string;
|
|
277
|
-
fromBREP(
|
|
277
|
+
fromBREP(data: string): number;
|
|
278
|
+
/** @unwired */
|
|
279
|
+
convertToBspline(solid: number): number;
|
|
280
|
+
/** @unwired */
|
|
281
|
+
convertToElementary(solid: number): number;
|
|
282
|
+
/** @unwired */
|
|
283
|
+
detectCoincidentFaces(a: number, b: number): string;
|
|
284
|
+
makeCircleEdge(cx: number, cy: number, cz: number, nx: number, ny: number, nz: number, radius: number): number;
|
|
285
|
+
makeEllipseEdge(cx: number, cy: number, cz: number, nx: number, ny: number, nz: number, semiMajor: number, semiMinor: number): number;
|
|
278
286
|
/** @unwired */
|
|
279
287
|
sketchAddCircle(sketch: number, centerIdx: number, radius: number): number;
|
|
288
|
+
/** @unwired */
|
|
289
|
+
toBrepJson(solid: number): string;
|
|
280
290
|
transformFace(face: number, matrix: Float64Array | number[]): void;
|
|
281
|
-
/** @future Not in brepkit-wasm 2.
|
|
291
|
+
/** @future Not in brepkit-wasm 2.88.0. Referenced with feature detection in adapter. */
|
|
282
292
|
chamferAsymmetric?(solid: number, edgeHandles: Uint32Array | number[], d1: number, d2: number): number;
|
|
283
|
-
/** @future Not in brepkit-wasm 2.
|
|
293
|
+
/** @future Not in brepkit-wasm 2.88.0. Referenced with feature detection in adapter. */
|
|
284
294
|
compoundFuse?(solidIds: Uint32Array | number[]): number;
|
|
285
|
-
/** @future Not in brepkit-wasm 2.
|
|
295
|
+
/** @future Not in brepkit-wasm 2.88.0. Referenced with feature detection in adapter. */
|
|
286
296
|
copyEdge?(edge: number): number;
|
|
287
|
-
/** @future Not in brepkit-wasm 2.
|
|
297
|
+
/** @future Not in brepkit-wasm 2.88.0. Referenced with feature detection in adapter. */
|
|
288
298
|
copyFace?(face: number): number;
|
|
289
|
-
/** @future Not in brepkit-wasm 2.
|
|
299
|
+
/** @future Not in brepkit-wasm 2.88.0. Referenced with feature detection in adapter. */
|
|
290
300
|
transformEdge?(edge: number, matrix: Float64Array | number[]): void;
|
|
291
|
-
/** @future Not in brepkit-wasm 2.
|
|
301
|
+
/** @future Not in brepkit-wasm 2.88.0. Referenced with feature detection in adapter. */
|
|
292
302
|
validateSolidDetails?(solid: number): string;
|
|
293
303
|
/** Release the entire arena. */
|
|
294
304
|
free(): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BEnecQfR.cjs");
|
|
2
2
|
const require_errors = require("./errors-Dv6pfNct.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-BqjkMjAy.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-DyyliCoO.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 { X as getKernel } from "./shapeTypes-
|
|
1
|
+
import { X as getKernel } from "./shapeTypes-CkIR5uw9.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-0fYW_YnO.js";
|
|
3
|
-
import { v as kernelCallRaw } from "./topologyQueryFns-
|
|
4
|
-
import { p as uvBounds } from "./faceFns-
|
|
3
|
+
import { v as kernelCallRaw } from "./topologyQueryFns-CStNJ-6H.js";
|
|
4
|
+
import { p as uvBounds } from "./faceFns-Dh6ia36N.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-BasuMKIB.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-DKfe_lKQ.js";
|
|
2
2
|
export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { X as getKernel } from "./shapeTypes-
|
|
1
|
+
import { X as getKernel } from "./shapeTypes-CkIR5uw9.js";
|
|
2
2
|
import { A as ok, b as err, r as ioError } from "./errors-0fYW_YnO.js";
|
|
3
|
-
import { O as getFaceOrigins } from "./shapeFns-
|
|
3
|
+
import { O as getFaceOrigins } from "./shapeFns-CgTb28LK.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-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BEnecQfR.cjs");
|
|
2
2
|
const require_errors = require("./errors-Dv6pfNct.cjs");
|
|
3
|
-
const require_shapeFns = require("./shapeFns-
|
|
3
|
+
const require_shapeFns = require("./shapeFns-BQEXWpOn.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-DFbLPUpo.cjs");
|
|
3
|
+
const require_extrudeFns = require("./extrudeFns-B9e4Urrs.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-CCmqoEed.js";
|
|
2
|
+
import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-Br-TQlqe.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,11 +1,11 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BEnecQfR.cjs");
|
|
2
2
|
const require_errors = require("./errors-Dv6pfNct.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-BqjkMjAy.cjs");
|
|
4
4
|
const require_constants = require("./constants-DTorLmes.cjs");
|
|
5
|
-
const require_faceFns = require("./faceFns-
|
|
6
|
-
const require_shapeFns = require("./shapeFns-
|
|
7
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
8
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
5
|
+
const require_faceFns = require("./faceFns-DyyliCoO.cjs");
|
|
6
|
+
const require_shapeFns = require("./shapeFns-BQEXWpOn.cjs");
|
|
7
|
+
const require_surfaceBuilders = require("./surfaceBuilders-BubnFY4J.cjs");
|
|
8
|
+
const require_solidBuilders = require("./solidBuilders-C1wp165c.cjs");
|
|
9
9
|
//#region src/topology/threeHelpers.ts
|
|
10
10
|
/**
|
|
11
11
|
* Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { X 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 { X 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-CkIR5uw9.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-0fYW_YnO.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-CStNJ-6H.js";
|
|
4
4
|
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-Ci5CA3aZ.js";
|
|
5
|
-
import { _ as downcast } from "./faceFns-
|
|
6
|
-
import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-
|
|
7
|
-
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-
|
|
8
|
-
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-
|
|
5
|
+
import { _ as downcast } from "./faceFns-Dh6ia36N.js";
|
|
6
|
+
import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-CgTb28LK.js";
|
|
7
|
+
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-Clv5-PvA.js";
|
|
8
|
+
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-B5ziZaO1.js";
|
|
9
9
|
//#region src/topology/threeHelpers.ts
|
|
10
10
|
/**
|
|
11
11
|
* 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-Bap3OkVd.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-BpNyXRL0.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-Bf9M9irw.cjs");
|
|
3
|
+
const require_cornerFinder = require("./cornerFinder-Cu6DxBA7.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-9O1EHKeD.js";
|
|
2
|
+
import { t as cornerFinder } from "./cornerFinder-RFLVg-8z.js";
|
|
3
3
|
export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BEnecQfR.cjs");
|
|
2
2
|
const require_errors = require("./errors-Dv6pfNct.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-BqjkMjAy.cjs");
|
|
4
4
|
const require_constants = require("./constants-DTorLmes.cjs");
|
|
5
5
|
//#region src/topology/metadata/originTrackingFns.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { X as getKernel, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { X as getKernel, t as castShape } from "./shapeTypes-CkIR5uw9.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-0fYW_YnO.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-CStNJ-6H.js";
|
|
4
4
|
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-Ci5CA3aZ.js";
|
|
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-SBgfTcFt.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-BtlEH773.js";
|
|
2
2
|
export { assignRoles, captureHint, createRef, defaultScorer, resolveRef, updateRoles };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as wasmIndex } from "./vec3-BRj3eI54.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-CStNJ-6H.js";
|
|
3
|
+
import { c as normalAt, n as faceCenter, r as faceGeomType } from "./faceFns-Dh6ia36N.js";
|
|
4
|
+
import { n as getHashCode } from "./shapeFns-CgTb28LK.js";
|
|
5
|
+
import { n as measureArea } from "./measureFns-DKfe_lKQ.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-S4Oh59IX.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-BqjkMjAy.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-DyyliCoO.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-BQEXWpOn.cjs");
|
|
5
|
+
const require_measureFns = require("./measureFns-BasuMKIB.cjs");
|
|
6
6
|
//#region src/topology/shapeRef/scoring.ts
|
|
7
7
|
/**
|
|
8
8
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -6891,7 +6891,8 @@ function makeLineEdge(bk, p1, p2) {
|
|
|
6891
6891
|
return edgeHandle(bk.makeLineEdge(p1[0], p1[1], p1[2], p2[0], p2[1], p2[2]));
|
|
6892
6892
|
}
|
|
6893
6893
|
function makeCircleEdge(bk, center, normal, radius) {
|
|
6894
|
-
|
|
6894
|
+
const nLen = Math.sqrt(normal[0] ** 2 + normal[1] ** 2 + normal[2] ** 2);
|
|
6895
|
+
return edgeHandle(bk.makeCircleEdge(center[0], center[1], center[2], normal[0] / nLen, normal[1] / nLen, normal[2] / nLen, radius));
|
|
6895
6896
|
}
|
|
6896
6897
|
function makeCircleArc(bk, center, normal, radius, startAngle, endAngle) {
|
|
6897
6898
|
return makeCircleNurbs(bk, center, normal, radius, startAngle, endAngle);
|
|
@@ -6957,7 +6958,9 @@ function makeArcEdge(bk, p1, p2, p3) {
|
|
|
6957
6958
|
return edgeHandle(bk.makeCircleArc3d(p1[0], p1[1], p1[2], p3[0], p3[1], p3[2], center[0], center[1], center[2], nz[0], nz[1], nz[2]));
|
|
6958
6959
|
}
|
|
6959
6960
|
function makeEllipseEdge(bk, center, normal, majorRadius, minorRadius, xDir) {
|
|
6960
|
-
return makeEllipseNurbs(bk, center, normal, majorRadius, minorRadius, 0, 2 * Math.PI, xDir);
|
|
6961
|
+
if (xDir !== void 0) return makeEllipseNurbs(bk, center, normal, majorRadius, minorRadius, 0, 2 * Math.PI, xDir);
|
|
6962
|
+
const nLen = Math.sqrt(normal[0] ** 2 + normal[1] ** 2 + normal[2] ** 2);
|
|
6963
|
+
return edgeHandle(bk.makeEllipseEdge(center[0], center[1], center[2], normal[0] / nLen, normal[1] / nLen, normal[2] / nLen, majorRadius, minorRadius));
|
|
6961
6964
|
}
|
|
6962
6965
|
function makeEllipseArc(bk, center, normal, majorRadius, minorRadius, startAngle, endAngle, xDir) {
|
|
6963
6966
|
return makeEllipseNurbs(bk, center, normal, majorRadius, minorRadius, startAngle, endAngle, xDir);
|
|
@@ -6887,7 +6887,8 @@ function makeLineEdge(bk, p1, p2) {
|
|
|
6887
6887
|
return edgeHandle(bk.makeLineEdge(p1[0], p1[1], p1[2], p2[0], p2[1], p2[2]));
|
|
6888
6888
|
}
|
|
6889
6889
|
function makeCircleEdge(bk, center, normal, radius) {
|
|
6890
|
-
|
|
6890
|
+
const nLen = Math.sqrt(normal[0] ** 2 + normal[1] ** 2 + normal[2] ** 2);
|
|
6891
|
+
return edgeHandle(bk.makeCircleEdge(center[0], center[1], center[2], normal[0] / nLen, normal[1] / nLen, normal[2] / nLen, radius));
|
|
6891
6892
|
}
|
|
6892
6893
|
function makeCircleArc(bk, center, normal, radius, startAngle, endAngle) {
|
|
6893
6894
|
return makeCircleNurbs(bk, center, normal, radius, startAngle, endAngle);
|
|
@@ -6953,7 +6954,9 @@ function makeArcEdge(bk, p1, p2, p3) {
|
|
|
6953
6954
|
return edgeHandle(bk.makeCircleArc3d(p1[0], p1[1], p1[2], p3[0], p3[1], p3[2], center[0], center[1], center[2], nz[0], nz[1], nz[2]));
|
|
6954
6955
|
}
|
|
6955
6956
|
function makeEllipseEdge(bk, center, normal, majorRadius, minorRadius, xDir) {
|
|
6956
|
-
return makeEllipseNurbs(bk, center, normal, majorRadius, minorRadius, 0, 2 * Math.PI, xDir);
|
|
6957
|
+
if (xDir !== void 0) return makeEllipseNurbs(bk, center, normal, majorRadius, minorRadius, 0, 2 * Math.PI, xDir);
|
|
6958
|
+
const nLen = Math.sqrt(normal[0] ** 2 + normal[1] ** 2 + normal[2] ** 2);
|
|
6959
|
+
return edgeHandle(bk.makeEllipseEdge(center[0], center[1], center[2], normal[0] / nLen, normal[1] / nLen, normal[2] / nLen, majorRadius, minorRadius));
|
|
6957
6960
|
}
|
|
6958
6961
|
function makeEllipseArc(bk, center, normal, majorRadius, minorRadius, startAngle, endAngle, xDir) {
|
|
6959
6962
|
return makeEllipseNurbs(bk, center, normal, majorRadius, minorRadius, startAngle, endAngle, xDir);
|
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-BTSm4oyv.cjs");
|
|
3
|
+
const require_blueprintSketcher = require("./blueprintSketcher-CoTpkqM0.cjs");
|
|
4
|
+
const require_drawFns = require("./drawFns-BfoxxF6K.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-Ba0ixD62.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-Dx4U245x.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-3GvYFwnk.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 { X as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-
|
|
1
|
+
import { X as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-CkIR5uw9.js";
|
|
2
2
|
import { A as ok, R as unwrap, b as err, l as typeCastError, v as andThen } from "./errors-0fYW_YnO.js";
|
|
3
|
-
import { _ as downcast, g as cast } from "./faceFns-
|
|
3
|
+
import { _ as downcast, g as cast } from "./faceFns-Dh6ia36N.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-BEnecQfR.cjs");
|
|
2
2
|
const require_errors = require("./errors-Dv6pfNct.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-DyyliCoO.cjs");
|
|
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-BEnecQfR.cjs");
|
|
2
2
|
const require_errors = require("./errors-Dv6pfNct.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-DyyliCoO.cjs");
|
|
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
|
-
import { X as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-
|
|
1
|
+
import { X as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-CkIR5uw9.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, i as kernelError, v as andThen } from "./errors-0fYW_YnO.js";
|
|
3
|
-
import { g as cast, l as outerWire } from "./faceFns-
|
|
3
|
+
import { g as cast, l as outerWire } from "./faceFns-Dh6ia36N.js";
|
|
4
4
|
//#region src/utils/range.ts
|
|
5
5
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
6
6
|
function range(len) {
|
package/dist/text.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_textBlueprints = require("./textBlueprints-
|
|
3
|
-
const require_textMetrics = require("./textMetrics-
|
|
2
|
+
const require_textBlueprints = require("./textBlueprints-BTSm4oyv.cjs");
|
|
3
|
+
const require_textMetrics = require("./textMetrics-Bxe1tjz1.cjs");
|
|
4
4
|
exports.fontMetrics = require_textMetrics.fontMetrics;
|
|
5
5
|
exports.getFont = require_textBlueprints.getFont;
|
|
6
6
|
exports.loadFont = require_textBlueprints.loadFont;
|
package/dist/text.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as getFont, r as loadFont, t as textBlueprints } from "./textBlueprints-
|
|
2
|
-
import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-
|
|
1
|
+
import { n as getFont, r as loadFont, t as textBlueprints } from "./textBlueprints-3GvYFwnk.js";
|
|
2
|
+
import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-wSAplSdV.js";
|
|
3
3
|
export { fontMetrics, getFont, loadFont, sketchText, textBlueprints, textMetrics };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { X as getKernel, h as isShape3D, o as createFace, p as isFace, t as castShape, u as createWire } from "./shapeTypes-
|
|
1
|
+
import { X as getKernel, h as isShape3D, o as createFace, p as isFace, t as castShape, u as createWire } from "./shapeTypes-CkIR5uw9.js";
|
|
2
2
|
import { A as ok, R as unwrap, T as isOk, b as err, d as validationError, h as bug, i as kernelError, l as typeCastError, r as ioError, t as BrepErrorCode } from "./errors-0fYW_YnO.js";
|
|
3
3
|
import { r as toVec3 } from "./types-BIdk_GJY.js";
|
|
4
4
|
import { d as vecNormalize, h as vecScale, r as vecCross } from "./vecOps-DVROrqTV.js";
|
|
5
5
|
import { n as createPlane } from "./planeOps-4i2qEraD.js";
|
|
6
|
-
import { _ as downcast, g as cast } from "./faceFns-
|
|
7
|
-
import { c as curveStartPoint, l as curveTangentAt } from "./curveFns-
|
|
6
|
+
import { _ as downcast, g as cast } from "./faceFns-Dh6ia36N.js";
|
|
7
|
+
import { c as curveStartPoint, l as curveTangentAt } from "./curveFns-tIaVzLWg.js";
|
|
8
8
|
import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-C5IWcxs9.js";
|
|
9
|
-
import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-
|
|
10
|
-
import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-
|
|
11
|
-
import { o as makeSolid, t as makeCompound } from "./solidBuilders-
|
|
12
|
-
import { c as sweep, i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-
|
|
9
|
+
import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-Clv5-PvA.js";
|
|
10
|
+
import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-Ba0ixD62.js";
|
|
11
|
+
import { o as makeSolid, t as makeCompound } from "./solidBuilders-B5ziZaO1.js";
|
|
12
|
+
import { c as sweep, i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-Br-TQlqe.js";
|
|
13
13
|
import opentype from "opentype.js";
|
|
14
14
|
//#region src/operations/loftFns.ts
|
|
15
15
|
/**
|
|
@@ -29,18 +29,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
29
|
enumerable: true
|
|
30
30
|
}) : target, mod));
|
|
31
31
|
//#endregion
|
|
32
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
32
|
+
const require_shapeTypes = require("./shapeTypes-BEnecQfR.cjs");
|
|
33
33
|
const require_errors = require("./errors-Dv6pfNct.cjs");
|
|
34
34
|
const require_types = require("./types-CDkxah-M.cjs");
|
|
35
35
|
const require_vecOps = require("./vecOps-D7xplSx8.cjs");
|
|
36
36
|
const require_planeOps = require("./planeOps-CH4ruLuj.cjs");
|
|
37
|
-
const require_faceFns = require("./faceFns-
|
|
38
|
-
const require_curveFns = require("./curveFns-
|
|
37
|
+
const require_faceFns = require("./faceFns-DyyliCoO.cjs");
|
|
38
|
+
const require_curveFns = require("./curveFns-JWMOpM_Z.cjs");
|
|
39
39
|
const require_arrayAccess = require("./arrayAccess-7pTWqkJu.cjs");
|
|
40
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
41
|
-
const require_blueprintSketcher = require("./blueprintSketcher-
|
|
42
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
43
|
-
const require_extrudeFns = require("./extrudeFns-
|
|
40
|
+
const require_surfaceBuilders = require("./surfaceBuilders-BubnFY4J.cjs");
|
|
41
|
+
const require_blueprintSketcher = require("./blueprintSketcher-CoTpkqM0.cjs");
|
|
42
|
+
const require_solidBuilders = require("./solidBuilders-C1wp165c.cjs");
|
|
43
|
+
const require_extrudeFns = require("./extrudeFns-B9e4Urrs.cjs");
|
|
44
44
|
let opentype_js = require("opentype.js");
|
|
45
45
|
opentype_js = __toESM(opentype_js, 1);
|
|
46
46
|
//#region src/operations/loftFns.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-0fYW_YnO.js";
|
|
2
|
-
import { g as wrapSketchData, i as Sketches, n as getFont, t as textBlueprints, v as CompoundSketch } from "./textBlueprints-
|
|
2
|
+
import { g as wrapSketchData, i as Sketches, n as getFont, t as textBlueprints, v as CompoundSketch } from "./textBlueprints-3GvYFwnk.js";
|
|
3
3
|
//#region src/text/sketchText.ts
|
|
4
4
|
/**
|
|
5
5
|
* Render text as 3D sketch outlines on a plane.
|
package/dist/topology.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
4
|
-
const require_shapeFns = require("./shapeFns-
|
|
5
|
-
const require_curveFns = require("./curveFns-
|
|
6
|
-
const require_meshFns = require("./meshFns-
|
|
7
|
-
const require_booleanFns = require("./booleanFns-
|
|
8
|
-
const require_primitiveFns = require("./primitiveFns-
|
|
2
|
+
const require_topologyQueryFns = require("./topologyQueryFns-BqjkMjAy.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-DyyliCoO.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-BQEXWpOn.cjs");
|
|
5
|
+
const require_curveFns = require("./curveFns-JWMOpM_Z.cjs");
|
|
6
|
+
const require_meshFns = require("./meshFns-DJEO3Xzo.cjs");
|
|
7
|
+
const require_booleanFns = require("./booleanFns-Dt7PFRBn.cjs");
|
|
8
|
+
const require_primitiveFns = require("./primitiveFns-CoY9qQKS.cjs");
|
|
9
9
|
exports.addHoles = require_primitiveFns.addHoles;
|
|
10
10
|
exports.adjacentFaces = require_primitiveFns.adjacentFaces;
|
|
11
11
|
exports.approximateCurve = require_curveFns.approximateCurve;
|
package/dist/topology.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as invalidateShapeCache, f as iterEdges, g as vertexPosition, h as iterWires, l as getVertices, m as iterVertices, n as getBounds, o as getEdges, p as iterFaces, s as getFaces, u as getWires } from "./topologyQueryFns-
|
|
2
|
-
import { _ as downcast, a as flipFaceOrientation, b as iterTopo, c as normalAt, d as projectPointOnFace, g as cast, h as asTopo, i as faceOrientation, l as outerWire, m as uvCoordinates, n as faceCenter, o as getSurfaceType, p as uvBounds, r as faceGeomType, s as innerWires, t as classifyPointOnFace, u as pointOnSurface, v as fromBREP, x as shapeType, y as isCompSolid } from "./faceFns-
|
|
3
|
-
import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-
|
|
4
|
-
import { a as curveLength, c as curveStartPoint, d as getCurveType, f as getOrientation, i as curveIsPeriodic, l as curveTangentAt, m as offsetWire2D, n as curveEndPoint, o as curvePeriod, p as interpolateCurve, r as curveIsClosed, s as curvePointAt, t as approximateCurve, u as flipOrientation } from "./curveFns-
|
|
5
|
-
import { c as createMeshCache, n as exportSTEP, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-
|
|
6
|
-
import { a as fuseAll, r as cutAll } from "./booleanFns-
|
|
7
|
-
import { $ as getNurbsSurfaceData, A as fixShape, C as threePointArc, D as wireLoop, E as wire, G as chamferWithEvolution, I as solidFromShell, J as fuseWithEvolution, K as cutWithEvolution, M as healFace, N as healSolid, O as autoHeal, P as healWire, Q as getNurbsCurveData, S as tangentArc, T as vertex, U as variableFillet, W as positionOnCurve, X as shellWithEvolution, Y as intersectWithEvolution, Z as checkBoolean, _ as polygon, a as circle, at as wiresOfFace, b as sphere, c as cylinder, ct as toGroupedBufferGeometryData, d as ellipsoid, et as adjacentFaces, f as face, g as offsetFace, h as line, i as bsplineApprox, it as verticesOfEdge, k as fixSelfIntersection, l as ellipse, m as helix, n as bezier, nt as facesOfEdge, o as compound, ot as chamferDistAngle, p as filledFace, q as filletWithEvolution, r as box, rt as sharedEdges, s as cone, st as toBufferGeometryData, t as addHoles, tt as edgesOfFace, u as ellipseArc, ut as toLineGeometryData, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-
|
|
1
|
+
import { d as invalidateShapeCache, f as iterEdges, g as vertexPosition, h as iterWires, l as getVertices, m as iterVertices, n as getBounds, o as getEdges, p as iterFaces, s as getFaces, u as getWires } from "./topologyQueryFns-CStNJ-6H.js";
|
|
2
|
+
import { _ as downcast, a as flipFaceOrientation, b as iterTopo, c as normalAt, d as projectPointOnFace, g as cast, h as asTopo, i as faceOrientation, l as outerWire, m as uvCoordinates, n as faceCenter, o as getSurfaceType, p as uvBounds, r as faceGeomType, s as innerWires, t as classifyPointOnFace, u as pointOnSurface, v as fromBREP, x as shapeType, y as isCompSolid } from "./faceFns-Dh6ia36N.js";
|
|
3
|
+
import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-CgTb28LK.js";
|
|
4
|
+
import { a as curveLength, c as curveStartPoint, d as getCurveType, f as getOrientation, i as curveIsPeriodic, l as curveTangentAt, m as offsetWire2D, n as curveEndPoint, o as curvePeriod, p as interpolateCurve, r as curveIsClosed, s as curvePointAt, t as approximateCurve, u as flipOrientation } from "./curveFns-tIaVzLWg.js";
|
|
5
|
+
import { c as createMeshCache, n as exportSTEP, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-BqNgRz5J.js";
|
|
6
|
+
import { a as fuseAll, r as cutAll } from "./booleanFns-B-tCyTus.js";
|
|
7
|
+
import { $ as getNurbsSurfaceData, A as fixShape, C as threePointArc, D as wireLoop, E as wire, G as chamferWithEvolution, I as solidFromShell, J as fuseWithEvolution, K as cutWithEvolution, M as healFace, N as healSolid, O as autoHeal, P as healWire, Q as getNurbsCurveData, S as tangentArc, T as vertex, U as variableFillet, W as positionOnCurve, X as shellWithEvolution, Y as intersectWithEvolution, Z as checkBoolean, _ as polygon, a as circle, at as wiresOfFace, b as sphere, c as cylinder, ct as toGroupedBufferGeometryData, d as ellipsoid, et as adjacentFaces, f as face, g as offsetFace, h as line, i as bsplineApprox, it as verticesOfEdge, k as fixSelfIntersection, l as ellipse, m as helix, n as bezier, nt as facesOfEdge, o as compound, ot as chamferDistAngle, p as filledFace, q as filletWithEvolution, r as box, rt as sharedEdges, s as cone, st as toBufferGeometryData, t as addHoles, tt as edgesOfFace, u as ellipseArc, ut as toLineGeometryData, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-oB_qrMX7.js";
|
|
8
8
|
export { addHoles, adjacentFaces, approximateCurve, asTopo, autoHeal, bezier, box, bsplineApprox, cast, chamferDistAngle as chamferDistAngleShape, chamferWithEvolution, checkBoolean, circle, classifyPointOnFace, clearMeshCache, compound, cone, createMeshCache, curveEndPoint, curveIsClosed, curveIsPeriodic, curveLength, curvePeriod, curvePointAt, curveStartPoint, curveTangentAt, cutAll, cutWithEvolution, cylinder, fromBREP as deserializeShape, downcast, edgesOfFace, ellipse, ellipseArc, ellipsoid, exportIGES, exportSTEP, exportSTL, face, faceCenter, faceGeomType, faceOrientation, facesOfEdge, filledFace, filletWithEvolution, fixSelfIntersection, fixShape, flipFaceOrientation, flipOrientation, fuseAll, fuseWithEvolution, getBounds, getCurveType, getEdges, getFaces, getHashCode, getNurbsCurveData, getNurbsSurfaceData, getOrientation, getSurfaceType, getVertices, getWires, healFace, healSolid, healWire, helix, innerWires, interpolateCurve, intersectWithEvolution, invalidateShapeCache, isCompSolid, isEqualShape, isSameShape, iterEdges, iterFaces, iterTopo, iterVertices, iterWires, line, normalAt, offsetFace, offsetWire2D, outerWire, pointOnSurface, polygon, positionOnCurve, projectPointOnFace, sewShells, shapeType, sharedEdges, shellWithEvolution, solid, solidFromShell, sphere, subFace, tangentArc, threePointArc, toBufferGeometryData, toGroupedBufferGeometryData, toLineGeometryData, torus, uvBounds, uvCoordinates, variableFillet, vertex, vertexPosition, verticesOfEdge, wire, wireLoop, wiresOfFace };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BEnecQfR.cjs");
|
|
2
2
|
const require_errors = require("./errors-Dv6pfNct.cjs");
|
|
3
3
|
//#region src/core/kernelCall.ts
|
|
4
4
|
function buildError(kind, code, message, cause, suggestion) {
|