brepjs 18.15.0 → 18.16.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-CIeewjzr.cjs → blueprint-B-_I2JZG.cjs} +5 -5
- package/dist/{blueprint-DLBGUTNd.js → blueprint-ikzatPnY.js} +5 -5
- package/dist/{blueprintFns-D2sdw7JS.js → blueprintFns-BMXI2i-q.js} +2 -2
- package/dist/{blueprintFns-1IMqWPMW.cjs → blueprintFns-BnQXDtD5.cjs} +2 -2
- package/dist/{blueprintSketcher-CoTpkqM0.cjs → blueprintSketcher-BCziFaUa.cjs} +3 -3
- package/dist/{blueprintSketcher-Ba0ixD62.js → blueprintSketcher-CFJMW87j.js} +3 -3
- package/dist/{boolean2D-K-P8u3Zt.js → boolean2D-DXQ_6mQu.js} +4 -4
- package/dist/{boolean2D-B-cjvCbH.cjs → boolean2D-DqCdFA1T.cjs} +4 -4
- package/dist/{booleanFns-Dt7PFRBn.cjs → booleanFns-Bda4uiVa.cjs} +4 -4
- package/dist/{booleanFns-B-tCyTus.js → booleanFns-CCOESl4t.js} +4 -4
- package/dist/brepjs.cjs +24 -24
- package/dist/brepjs.js +24 -24
- package/dist/{cameraFns-BpNyXRL0.js → cameraFns-Bs3nT_Lm.js} +2 -2
- package/dist/{cameraFns-Bap3OkVd.cjs → cameraFns-CDlfyzQ2.cjs} +2 -2
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-RFLVg-8z.js → cornerFinder-DbRtXB7k.js} +1 -1
- package/dist/{cornerFinder-Cu6DxBA7.cjs → cornerFinder-S6SGNOBH.cjs} +1 -1
- package/dist/{curveFns-tIaVzLWg.js → curveFns-BiWl9ar3.js} +1 -1
- package/dist/{curveFns-JWMOpM_Z.cjs → curveFns-CmsliddL.cjs} +1 -1
- package/dist/{drawFns-BfoxxF6K.cjs → drawFns-BV9w78Uq.cjs} +12 -12
- package/dist/{drawFns-Dx4U245x.js → drawFns-D3yNlpCh.js} +12 -12
- package/dist/{extrudeFns-Br-TQlqe.js → extrudeFns-C0F_eI5r.js} +1 -1
- package/dist/{extrudeFns-B9e4Urrs.cjs → extrudeFns-qUXVAc9n.cjs} +1 -1
- package/dist/{faceFns-DyyliCoO.cjs → faceFns-BX1MXgbr.cjs} +2 -2
- package/dist/{faceFns-Dh6ia36N.js → faceFns-Du_azsPS.js} +2 -2
- package/dist/{helpers-Bf9M9irw.cjs → helpers-1zzF3G07.cjs} +6 -6
- package/dist/{helpers-9O1EHKeD.js → helpers-BFfNSQO5.js} +6 -6
- package/dist/{historyFns-CCmqoEed.js → historyFns-BANI5Fxr.js} +4 -4
- package/dist/{historyFns-DFbLPUpo.cjs → historyFns-CbWdwkLf.cjs} +4 -4
- package/dist/{importFns-BwQDL4Mg.js → importFns-Bke6uuPq.js} +2 -2
- package/dist/{importFns-DPuLof3W.cjs → importFns-DDC3bVU1.cjs} +2 -2
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/brepkit/booleanOps.d.ts +1 -0
- package/dist/{measureFns-BasuMKIB.cjs → measureFns-B7tmvuwe.cjs} +3 -3
- package/dist/{measureFns-DKfe_lKQ.js → measureFns-CI_DLQRR.js} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-BqNgRz5J.js → meshFns-BpArofqr.js} +2 -2
- package/dist/{meshFns-DJEO3Xzo.cjs → meshFns-DfnGfiZi.cjs} +2 -2
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-CoY9qQKS.cjs → primitiveFns-C00eEXfn.cjs} +6 -6
- package/dist/{primitiveFns-oB_qrMX7.js → primitiveFns-Ck3VkvLr.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-BQEXWpOn.cjs → shapeFns-BVu9YuwZ.cjs} +2 -2
- package/dist/{shapeFns-CgTb28LK.js → shapeFns-DgzIuU3e.js} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeRefFns-SBgfTcFt.cjs → shapeRefFns-B64NFTTk.cjs} +4 -4
- package/dist/{shapeRefFns-BtlEH773.js → shapeRefFns-CjVKlLf0.js} +4 -4
- package/dist/{shapeTypes-BEnecQfR.cjs → shapeTypes-BrPRKrFT.cjs} +43 -7
- package/dist/{shapeTypes-CkIR5uw9.js → shapeTypes-DeYSblL_.js} +43 -7
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-C1wp165c.cjs → solidBuilders--sJpILFx.cjs} +2 -2
- package/dist/{solidBuilders-B5ziZaO1.js → solidBuilders-C__rrdcb.js} +2 -2
- package/dist/{surfaceBuilders-BubnFY4J.cjs → surfaceBuilders-De1zZJC0.cjs} +2 -2
- package/dist/{surfaceBuilders-Clv5-PvA.js → surfaceBuilders-Dlmws13n.js} +2 -2
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-BTSm4oyv.cjs → textBlueprints-B08n9QVQ.cjs} +7 -7
- package/dist/{textBlueprints-3GvYFwnk.js → textBlueprints-CShZgawf.js} +7 -7
- package/dist/{textMetrics-Bxe1tjz1.cjs → textMetrics-DbYxneqj.cjs} +1 -1
- package/dist/{textMetrics-wSAplSdV.js → textMetrics-DdB0OqCu.js} +1 -1
- package/dist/topology.cjs +7 -7
- package/dist/topology.js +7 -7
- package/dist/{topologyQueryFns-BqjkMjAy.cjs → topologyQueryFns-Brp0qdPT.cjs} +1 -1
- package/dist/{topologyQueryFns-CStNJ-6H.js → topologyQueryFns-DQnQuy7O.js} +1 -1
- package/package.json +1 -1
|
@@ -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-DeYSblL_.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-Du_azsPS.js";
|
|
5
|
+
import { s as toBREP } from "./shapeFns-DgzIuU3e.js";
|
|
6
|
+
import { a as fuseAll } from "./booleanFns-CCOESl4t.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-BrPRKrFT.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-BX1MXgbr.cjs");
|
|
5
|
+
const require_shapeFns = require("./shapeFns-BVu9YuwZ.cjs");
|
|
6
|
+
const require_booleanFns = require("./booleanFns-Bda4uiVa.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-DeYSblL_.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-ikzatPnY.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-BrPRKrFT.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-B-_I2JZG.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-DfnGfiZi.cjs");
|
|
3
|
+
const require_importFns = require("./importFns-DDC3bVU1.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-BpArofqr.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-Bke6uuPq.js";
|
|
3
3
|
export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BrepkitKernel } from './brepkitWasmTypes.js';
|
|
2
2
|
import { BooleanOpType, CheckBooleanResult, KernelShape, KernelMeshResult, BooleanOptions } from '../types.js';
|
|
3
|
+
export declare function isEmptyBooleanError(e: unknown): boolean;
|
|
3
4
|
export declare function fuse(bk: BrepkitKernel, shape: KernelShape, tool: KernelShape, _options?: BooleanOptions): KernelShape;
|
|
4
5
|
export declare function cut(bk: BrepkitKernel, shape: KernelShape, tool: KernelShape, _options?: BooleanOptions): KernelShape;
|
|
5
6
|
export declare function intersect(bk: BrepkitKernel, shape: KernelShape, tool: KernelShape, _options?: BooleanOptions): KernelShape;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BrPRKrFT.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-Brp0qdPT.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-BX1MXgbr.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-DeYSblL_.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-DQnQuy7O.js";
|
|
4
|
+
import { p as uvBounds } from "./faceFns-Du_azsPS.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-B7tmvuwe.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-CI_DLQRR.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-DeYSblL_.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-DgzIuU3e.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-BrPRKrFT.cjs");
|
|
2
2
|
const require_errors = require("./errors-Dv6pfNct.cjs");
|
|
3
|
-
const require_shapeFns = require("./shapeFns-
|
|
3
|
+
const require_shapeFns = require("./shapeFns-BVu9YuwZ.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-CbWdwkLf.cjs");
|
|
3
|
+
const require_extrudeFns = require("./extrudeFns-qUXVAc9n.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-BANI5Fxr.js";
|
|
2
|
+
import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-C0F_eI5r.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-BrPRKrFT.cjs");
|
|
2
2
|
const require_errors = require("./errors-Dv6pfNct.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-Brp0qdPT.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-BX1MXgbr.cjs");
|
|
6
|
+
const require_shapeFns = require("./shapeFns-BVu9YuwZ.cjs");
|
|
7
|
+
const require_surfaceBuilders = require("./surfaceBuilders-De1zZJC0.cjs");
|
|
8
|
+
const require_solidBuilders = require("./solidBuilders--sJpILFx.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-DeYSblL_.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-DQnQuy7O.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-Du_azsPS.js";
|
|
6
|
+
import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-DgzIuU3e.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-Dlmws13n.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-C__rrdcb.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-CDlfyzQ2.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-Bs3nT_Lm.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-1zzF3G07.cjs");
|
|
3
|
+
const require_cornerFinder = require("./cornerFinder-S6SGNOBH.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-BFfNSQO5.js";
|
|
2
|
+
import { t as cornerFinder } from "./cornerFinder-DbRtXB7k.js";
|
|
3
3
|
export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BrPRKrFT.cjs");
|
|
2
2
|
const require_errors = require("./errors-Dv6pfNct.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-Brp0qdPT.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-DeYSblL_.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-DQnQuy7O.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-B64NFTTk.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-CjVKlLf0.js";
|
|
2
2
|
export { assignRoles, captureHint, createRef, defaultScorer, resolveRef, updateRoles };
|
|
@@ -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-Brp0qdPT.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-BX1MXgbr.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-BVu9YuwZ.cjs");
|
|
5
|
+
const require_measureFns = require("./measureFns-B7tmvuwe.cjs");
|
|
6
6
|
//#region src/topology/shapeRef/scoring.ts
|
|
7
7
|
/**
|
|
8
8
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as wasmIndex } from "./vec3-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-DQnQuy7O.js";
|
|
3
|
+
import { c as normalAt, n as faceCenter, r as faceGeomType } from "./faceFns-Du_azsPS.js";
|
|
4
|
+
import { n as getHashCode } from "./shapeFns-DgzIuU3e.js";
|
|
5
|
+
import { n as measureArea } from "./measureFns-CI_DLQRR.js";
|
|
6
6
|
//#region src/topology/shapeRef/scoring.ts
|
|
7
7
|
/**
|
|
8
8
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -6610,8 +6610,22 @@ function makeRepairOps(bk) {
|
|
|
6610
6610
|
}
|
|
6611
6611
|
//#endregion
|
|
6612
6612
|
//#region src/kernel/brepkit/booleanOps.ts
|
|
6613
|
+
function isEmptyBooleanError(e) {
|
|
6614
|
+
if (!(e instanceof Error)) return false;
|
|
6615
|
+
const msg = e.message;
|
|
6616
|
+
return msg.includes("produced empty result") || msg.includes("produces empty result");
|
|
6617
|
+
}
|
|
6618
|
+
function isEmptyCompound(bk, h) {
|
|
6619
|
+
if (h.type !== "compound") return false;
|
|
6620
|
+
return toArray(bk.getCompoundSolids(h.id)).length === 0;
|
|
6621
|
+
}
|
|
6622
|
+
function emptyCompound(bk) {
|
|
6623
|
+
return compoundHandle(bk.makeCompound([]));
|
|
6624
|
+
}
|
|
6613
6625
|
function fuse(bk, shape, tool, _options) {
|
|
6614
6626
|
if (_options && hasBooleanOptions(_options)) warnOnce("boolean-options", "BooleanOptions (optimisation, simplify, strategy, fuzzyValue) not supported; ignored.");
|
|
6627
|
+
if (isEmptyCompound(bk, shape)) return tool;
|
|
6628
|
+
if (isEmptyCompound(bk, tool)) return shape;
|
|
6615
6629
|
const baseId = unwrapSolidOrThrow(shape, "fuse");
|
|
6616
6630
|
const toolHandle = tool;
|
|
6617
6631
|
if (toolHandle.type === "compound") {
|
|
@@ -6624,19 +6638,37 @@ function fuse(bk, shape, tool, _options) {
|
|
|
6624
6638
|
}
|
|
6625
6639
|
function cut(bk, shape, tool, _options) {
|
|
6626
6640
|
if (_options && hasBooleanOptions(_options)) warnOnce("boolean-options", "BooleanOptions (optimisation, simplify, strategy, fuzzyValue) not supported; ignored.");
|
|
6641
|
+
if (isEmptyCompound(bk, shape)) return emptyCompound(bk);
|
|
6642
|
+
if (isEmptyCompound(bk, tool)) return shape;
|
|
6627
6643
|
const baseId = unwrapSolidOrThrow(shape, "cut");
|
|
6628
6644
|
const toolHandle = tool;
|
|
6629
6645
|
if (toolHandle.type === "compound") {
|
|
6630
6646
|
const toolSolidIds = toArray(bk.getCompoundSolids(toolHandle.id));
|
|
6631
6647
|
let currentId = baseId;
|
|
6632
|
-
for (const toolSolidId of toolSolidIds)
|
|
6648
|
+
for (const toolSolidId of toolSolidIds) try {
|
|
6649
|
+
currentId = bk.cut(currentId, toolSolidId);
|
|
6650
|
+
} catch (e) {
|
|
6651
|
+
if (isEmptyBooleanError(e)) return emptyCompound(bk);
|
|
6652
|
+
throw e;
|
|
6653
|
+
}
|
|
6633
6654
|
return solidHandle(currentId);
|
|
6634
6655
|
}
|
|
6635
|
-
|
|
6656
|
+
try {
|
|
6657
|
+
return solidHandle(bk.cut(baseId, unwrapSolidOrThrow(tool, "cut")));
|
|
6658
|
+
} catch (e) {
|
|
6659
|
+
if (isEmptyBooleanError(e)) return emptyCompound(bk);
|
|
6660
|
+
throw e;
|
|
6661
|
+
}
|
|
6636
6662
|
}
|
|
6637
6663
|
function intersect(bk, shape, tool, _options) {
|
|
6638
6664
|
if (_options && hasBooleanOptions(_options)) warnOnce("boolean-options", "BooleanOptions (optimisation, simplify, strategy, fuzzyValue) not supported; ignored.");
|
|
6639
|
-
|
|
6665
|
+
if (isEmptyCompound(bk, shape) || isEmptyCompound(bk, tool)) return emptyCompound(bk);
|
|
6666
|
+
try {
|
|
6667
|
+
return solidHandle(bk.intersect(unwrapSolidOrThrow(shape, "intersect"), unwrapSolidOrThrow(tool, "intersect")));
|
|
6668
|
+
} catch (e) {
|
|
6669
|
+
if (isEmptyBooleanError(e)) return emptyCompound(bk);
|
|
6670
|
+
throw e;
|
|
6671
|
+
}
|
|
6640
6672
|
}
|
|
6641
6673
|
function section(bk, shape, plane, _approximation) {
|
|
6642
6674
|
const { point, normal } = extractPlaneFromFace(bk, plane);
|
|
@@ -7877,10 +7909,14 @@ function booleanWithHistoryImpl(bk, shape, tool, inputFaceHashes, hashUpperBound
|
|
|
7877
7909
|
const sh = shape;
|
|
7878
7910
|
const th = tool;
|
|
7879
7911
|
if (inputFaceHashes.length > 0 && sh.type === "solid") {
|
|
7880
|
-
if (th.type === "solid")
|
|
7881
|
-
|
|
7882
|
-
|
|
7883
|
-
|
|
7912
|
+
if (th.type === "solid") try {
|
|
7913
|
+
return {
|
|
7914
|
+
...parseNativeEvolution(nativeFn(sh.id, th.id), hashUpperBound),
|
|
7915
|
+
diagnostics: noDiagnostics
|
|
7916
|
+
};
|
|
7917
|
+
} catch (e) {
|
|
7918
|
+
if (!isEmptyBooleanError(e)) throw e;
|
|
7919
|
+
}
|
|
7884
7920
|
if (th.type === "compound") {
|
|
7885
7921
|
const childSolidIds = toArray(bk.getCompoundSolids(th.id));
|
|
7886
7922
|
let currentShape = shape;
|
|
@@ -6606,8 +6606,22 @@ function makeRepairOps(bk) {
|
|
|
6606
6606
|
}
|
|
6607
6607
|
//#endregion
|
|
6608
6608
|
//#region src/kernel/brepkit/booleanOps.ts
|
|
6609
|
+
function isEmptyBooleanError(e) {
|
|
6610
|
+
if (!(e instanceof Error)) return false;
|
|
6611
|
+
const msg = e.message;
|
|
6612
|
+
return msg.includes("produced empty result") || msg.includes("produces empty result");
|
|
6613
|
+
}
|
|
6614
|
+
function isEmptyCompound(bk, h) {
|
|
6615
|
+
if (h.type !== "compound") return false;
|
|
6616
|
+
return toArray(bk.getCompoundSolids(h.id)).length === 0;
|
|
6617
|
+
}
|
|
6618
|
+
function emptyCompound(bk) {
|
|
6619
|
+
return compoundHandle(bk.makeCompound([]));
|
|
6620
|
+
}
|
|
6609
6621
|
function fuse(bk, shape, tool, _options) {
|
|
6610
6622
|
if (_options && hasBooleanOptions(_options)) warnOnce("boolean-options", "BooleanOptions (optimisation, simplify, strategy, fuzzyValue) not supported; ignored.");
|
|
6623
|
+
if (isEmptyCompound(bk, shape)) return tool;
|
|
6624
|
+
if (isEmptyCompound(bk, tool)) return shape;
|
|
6611
6625
|
const baseId = unwrapSolidOrThrow(shape, "fuse");
|
|
6612
6626
|
const toolHandle = tool;
|
|
6613
6627
|
if (toolHandle.type === "compound") {
|
|
@@ -6620,19 +6634,37 @@ function fuse(bk, shape, tool, _options) {
|
|
|
6620
6634
|
}
|
|
6621
6635
|
function cut(bk, shape, tool, _options) {
|
|
6622
6636
|
if (_options && hasBooleanOptions(_options)) warnOnce("boolean-options", "BooleanOptions (optimisation, simplify, strategy, fuzzyValue) not supported; ignored.");
|
|
6637
|
+
if (isEmptyCompound(bk, shape)) return emptyCompound(bk);
|
|
6638
|
+
if (isEmptyCompound(bk, tool)) return shape;
|
|
6623
6639
|
const baseId = unwrapSolidOrThrow(shape, "cut");
|
|
6624
6640
|
const toolHandle = tool;
|
|
6625
6641
|
if (toolHandle.type === "compound") {
|
|
6626
6642
|
const toolSolidIds = toArray(bk.getCompoundSolids(toolHandle.id));
|
|
6627
6643
|
let currentId = baseId;
|
|
6628
|
-
for (const toolSolidId of toolSolidIds)
|
|
6644
|
+
for (const toolSolidId of toolSolidIds) try {
|
|
6645
|
+
currentId = bk.cut(currentId, toolSolidId);
|
|
6646
|
+
} catch (e) {
|
|
6647
|
+
if (isEmptyBooleanError(e)) return emptyCompound(bk);
|
|
6648
|
+
throw e;
|
|
6649
|
+
}
|
|
6629
6650
|
return solidHandle(currentId);
|
|
6630
6651
|
}
|
|
6631
|
-
|
|
6652
|
+
try {
|
|
6653
|
+
return solidHandle(bk.cut(baseId, unwrapSolidOrThrow(tool, "cut")));
|
|
6654
|
+
} catch (e) {
|
|
6655
|
+
if (isEmptyBooleanError(e)) return emptyCompound(bk);
|
|
6656
|
+
throw e;
|
|
6657
|
+
}
|
|
6632
6658
|
}
|
|
6633
6659
|
function intersect(bk, shape, tool, _options) {
|
|
6634
6660
|
if (_options && hasBooleanOptions(_options)) warnOnce("boolean-options", "BooleanOptions (optimisation, simplify, strategy, fuzzyValue) not supported; ignored.");
|
|
6635
|
-
|
|
6661
|
+
if (isEmptyCompound(bk, shape) || isEmptyCompound(bk, tool)) return emptyCompound(bk);
|
|
6662
|
+
try {
|
|
6663
|
+
return solidHandle(bk.intersect(unwrapSolidOrThrow(shape, "intersect"), unwrapSolidOrThrow(tool, "intersect")));
|
|
6664
|
+
} catch (e) {
|
|
6665
|
+
if (isEmptyBooleanError(e)) return emptyCompound(bk);
|
|
6666
|
+
throw e;
|
|
6667
|
+
}
|
|
6636
6668
|
}
|
|
6637
6669
|
function section(bk, shape, plane, _approximation) {
|
|
6638
6670
|
const { point, normal } = extractPlaneFromFace(bk, plane);
|
|
@@ -7873,10 +7905,14 @@ function booleanWithHistoryImpl(bk, shape, tool, inputFaceHashes, hashUpperBound
|
|
|
7873
7905
|
const sh = shape;
|
|
7874
7906
|
const th = tool;
|
|
7875
7907
|
if (inputFaceHashes.length > 0 && sh.type === "solid") {
|
|
7876
|
-
if (th.type === "solid")
|
|
7877
|
-
|
|
7878
|
-
|
|
7879
|
-
|
|
7908
|
+
if (th.type === "solid") try {
|
|
7909
|
+
return {
|
|
7910
|
+
...parseNativeEvolution(nativeFn(sh.id, th.id), hashUpperBound),
|
|
7911
|
+
diagnostics: noDiagnostics
|
|
7912
|
+
};
|
|
7913
|
+
} catch (e) {
|
|
7914
|
+
if (!isEmptyBooleanError(e)) throw e;
|
|
7915
|
+
}
|
|
7880
7916
|
if (th.type === "compound") {
|
|
7881
7917
|
const childSolidIds = toArray(bk.getCompoundSolids(th.id));
|
|
7882
7918
|
let currentShape = shape;
|
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-B08n9QVQ.cjs");
|
|
3
|
+
const require_blueprintSketcher = require("./blueprintSketcher-BCziFaUa.cjs");
|
|
4
|
+
const require_drawFns = require("./drawFns-BV9w78Uq.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-CFJMW87j.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-D3yNlpCh.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-CShZgawf.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
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BrPRKrFT.cjs");
|
|
2
2
|
const require_errors = require("./errors-Dv6pfNct.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-BX1MXgbr.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 { 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-DeYSblL_.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-Du_azsPS.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-BrPRKrFT.cjs");
|
|
2
2
|
const require_errors = require("./errors-Dv6pfNct.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-BX1MXgbr.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-DeYSblL_.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-Du_azsPS.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-B08n9QVQ.cjs");
|
|
3
|
+
const require_textMetrics = require("./textMetrics-DbYxneqj.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-CShZgawf.js";
|
|
2
|
+
import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-DdB0OqCu.js";
|
|
3
3
|
export { fontMetrics, getFont, loadFont, sketchText, textBlueprints, textMetrics };
|
|
@@ -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-BrPRKrFT.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-BX1MXgbr.cjs");
|
|
38
|
+
const require_curveFns = require("./curveFns-CmsliddL.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-De1zZJC0.cjs");
|
|
41
|
+
const require_blueprintSketcher = require("./blueprintSketcher-BCziFaUa.cjs");
|
|
42
|
+
const require_solidBuilders = require("./solidBuilders--sJpILFx.cjs");
|
|
43
|
+
const require_extrudeFns = require("./extrudeFns-qUXVAc9n.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,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-DeYSblL_.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-Du_azsPS.js";
|
|
7
|
+
import { c as curveStartPoint, l as curveTangentAt } from "./curveFns-BiWl9ar3.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-Dlmws13n.js";
|
|
10
|
+
import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-CFJMW87j.js";
|
|
11
|
+
import { o as makeSolid, t as makeCompound } from "./solidBuilders-C__rrdcb.js";
|
|
12
|
+
import { c as sweep, i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-C0F_eI5r.js";
|
|
13
13
|
import opentype from "opentype.js";
|
|
14
14
|
//#region src/operations/loftFns.ts
|
|
15
15
|
/**
|