brepjs 18.100.1 → 18.100.3
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/README.md +6 -0
- package/dist/2d.cjs +6 -6
- package/dist/2d.js +6 -6
- package/dist/{blueprint-BhCha_8H.cjs → blueprint-1x01ITBT.cjs} +7 -7
- package/dist/{blueprint-Bqmxcyfd.js → blueprint-DZB6Drrd.js} +7 -7
- package/dist/{blueprintFns-DKmyNVyL.cjs → blueprintFns-DkmuKpz6.cjs} +2 -2
- package/dist/{blueprintFns-_emMJGKf.js → blueprintFns-o4dhTIZQ.js} +2 -2
- package/dist/{blueprintSketcher-DwL9iPAG.cjs → blueprintSketcher-BoHwuwaU.cjs} +3 -3
- package/dist/{blueprintSketcher-B5XBXgri.js → blueprintSketcher-C5Q-JLEK.js} +3 -3
- package/dist/{boolean2D-BJ6MwGgV.cjs → boolean2D-C1Akp29q.cjs} +4 -4
- package/dist/{boolean2D-DiQyJiA-.js → boolean2D-DV642GXt.js} +4 -4
- package/dist/brepjs.cjs +26 -26
- package/dist/brepjs.js +26 -26
- package/dist/{cameraFns-BjcKjYpw.cjs → cameraFns-B-T9D-ie.cjs} +2 -2
- package/dist/{cameraFns-BCLtAeFB.js → cameraFns-B62EdiYs.js} +2 -2
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-B-zZ2G9-.js → cornerFinder-Bmjk2BOw.js} +1 -1
- package/dist/{cornerFinder-DyYE74wI.cjs → cornerFinder-CqSNuWBI.cjs} +1 -1
- package/dist/{curveFns-DwBW-FmM.cjs → curveFns-BIlzT4bO.cjs} +1 -1
- package/dist/{curveFns-BKpLwUdG.js → curveFns-CaEoZJFJ.js} +1 -1
- package/dist/{drawFns-SFAjbxKc.js → drawFns-BVVGRW0h.js} +12 -12
- package/dist/{drawFns-BDPAuKxN.cjs → drawFns-Dwq6JHbb.cjs} +12 -12
- package/dist/{faceFns-DrBS1FKx.cjs → faceFns-B7yceDjt.cjs} +4 -4
- package/dist/{faceFns-B642NCgD.js → faceFns-CFvc_qXI.js} +4 -4
- package/dist/{healingFns-CWicvCr2.js → healingFns-BY6Q9gge.js} +5 -5
- package/dist/{healingFns-CA_Pxs_R.cjs → healingFns-CEzX-45q.cjs} +5 -5
- package/dist/{helpers-BVwuuo7f.cjs → helpers-A0a3O6af.cjs} +6 -6
- package/dist/{helpers-VUDxsMV6.js → helpers-BamnXOMX.js} +6 -6
- package/dist/{importFns-CPEC-mu2.js → importFns-Cfe_tEh_.js} +8 -8
- package/dist/{importFns-D7CBrzdj.cjs → importFns-Dj107tFY.cjs} +8 -8
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/brepkit/brepkitWasmTypes.d.ts +14 -6
- package/dist/{loftFns-BG5aCsSy.cjs → loftFns-CFyOO359.cjs} +1 -1
- package/dist/{loftFns-6LL25A5A.js → loftFns-D5rQxNOI.js} +1 -1
- package/dist/{measureFns-o-fR5CV_.js → measureFns-Bb0Do7in.js} +3 -3
- package/dist/{measureFns-CMzOaAYQ.cjs → measureFns-Cmc_y0WE.cjs} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-DoqRG8XQ.cjs → meshFns-BKBGgLB4.cjs} +3 -3
- package/dist/{meshFns-k2Bsp0Xp.js → meshFns-Bkcg1u5D.js} +3 -3
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-jeA2auqw.cjs → primitiveFns-B898KlXM.cjs} +4 -4
- package/dist/{primitiveFns-CPbjoGeA.js → primitiveFns-DS7-3evP.js} +4 -4
- 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-eQx9e6lo.cjs → shapeFns-B3GP-0FJ.cjs} +2 -2
- package/dist/{shapeFns-FrRtxWiz.js → shapeFns-D-4StVDd.js} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeRefFns-D1WVYLvG.cjs → shapeRefFns-C6L7KhTi.cjs} +4 -4
- package/dist/{shapeRefFns-C2oR3Cid.js → shapeRefFns-DzVlxDhd.js} +4 -4
- package/dist/{shapeTypes-DplVM8Fy.cjs → shapeTypes-DQfoZt_L.cjs} +32 -0
- package/dist/{shapeTypes-D9XYNPBs.js → shapeTypes-z5bfGPVI.js} +32 -0
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-CxJJkiPi.js → solidBuilders-8H08aDto.js} +5 -5
- package/dist/{solidBuilders-DI4CSKe-.cjs → solidBuilders-B0Uyvvyy.cjs} +5 -5
- package/dist/{surfaceBuilders-Cf3c00zK.js → surfaceBuilders-BYopOndo.js} +10 -10
- package/dist/{surfaceBuilders-CDrFrFBH.cjs → surfaceBuilders-zGpnLDxz.cjs} +10 -10
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-ypK-L96F.cjs → textBlueprints-B8cDsSHe.cjs} +7 -7
- package/dist/{textBlueprints-DbLlIr5s.js → textBlueprints-ziKppdNm.js} +7 -7
- package/dist/{textMetrics-CMXyoBtR.cjs → textMetrics-B8qEy3dh.cjs} +1 -1
- package/dist/{textMetrics-BWST-GMU.js → textMetrics-CP-jrZ98.js} +1 -1
- package/dist/{threadFns-BcgGRuMg.js → threadFns-7jlwHbES.js} +6 -6
- package/dist/{threadFns-CvjUrsgG.cjs → threadFns-B_8tna0V.cjs} +6 -6
- package/dist/topology.cjs +8 -8
- package/dist/topology.js +8 -8
- package/dist/{topologyQueryFns-Dzw_tis6.cjs → topologyQueryFns-BLkQkExs.cjs} +1 -1
- package/dist/{topologyQueryFns-jDWO6A94.js → topologyQueryFns-De27Nxmf.js} +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Z as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-z5bfGPVI.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, i as kernelError, v as andThen } from "./errors-DNWJsfVU.js";
|
|
3
|
-
import { _ as cast, u as outerWire } from "./faceFns-
|
|
3
|
+
import { _ as cast, u as outerWire } from "./faceFns-CFvc_qXI.js";
|
|
4
4
|
//#region src/utils/range.ts
|
|
5
5
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
6
6
|
function range(len) {
|
|
@@ -112,8 +112,8 @@ function makeBSplineApproximation(points, { tolerance = .001, smoothing = null,
|
|
|
112
112
|
degMax,
|
|
113
113
|
smoothing
|
|
114
114
|
})));
|
|
115
|
-
} catch {
|
|
116
|
-
return err(kernelError("BSPLINE_FAILED", "B-spline approximation failed"));
|
|
115
|
+
} catch (e) {
|
|
116
|
+
return err(kernelError("BSPLINE_FAILED", "B-spline approximation failed", e));
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
/**
|
|
@@ -128,8 +128,8 @@ function makeBSplineInterpolation(points, { periodic = false, tolerance = 1e-7 }
|
|
|
128
128
|
periodic,
|
|
129
129
|
tolerance
|
|
130
130
|
})));
|
|
131
|
-
} catch {
|
|
132
|
-
return err(kernelError("BSPLINE_INTERP_FAILED", "B-spline interpolation failed"));
|
|
131
|
+
} catch (e) {
|
|
132
|
+
return err(kernelError("BSPLINE_INTERP_FAILED", "B-spline interpolation failed", e));
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
/**
|
|
@@ -184,8 +184,8 @@ function makeFace(wire, holes) {
|
|
|
184
184
|
const face = createFace(faceShape);
|
|
185
185
|
if (!isPlanarFace(face)) return err(validationError("FACE_NOT_PLANAR", "makeFace produced a non-planar face — wire may not be truly planar"));
|
|
186
186
|
return ok(face);
|
|
187
|
-
} catch {
|
|
188
|
-
return err(kernelError("FACE_BUILD_FAILED", "Failed to build the face. Your wire might be non planar."));
|
|
187
|
+
} catch (e) {
|
|
188
|
+
return err(kernelError("FACE_BUILD_FAILED", "Failed to build the face. Your wire might be non planar.", e));
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
/**
|
|
@@ -217,8 +217,8 @@ function makeNonPlanarFace(wire) {
|
|
|
217
217
|
if (!isFace(newFace)) return err(kernelError("FACE_BUILD_FAILED", "Failed to create a non-planar face"));
|
|
218
218
|
return ok(newFace);
|
|
219
219
|
});
|
|
220
|
-
} catch {
|
|
221
|
-
return err(kernelError("FACE_BUILD_FAILED", "Failed to create a non-planar face"));
|
|
220
|
+
} catch (e) {
|
|
221
|
+
return err(kernelError("FACE_BUILD_FAILED", "Failed to create a non-planar face", e));
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
function addHolesInFace(face, holes) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DQfoZt_L.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-B7yceDjt.cjs");
|
|
4
4
|
//#region src/utils/range.ts
|
|
5
5
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
6
6
|
function range(len) {
|
|
@@ -112,8 +112,8 @@ function makeBSplineApproximation(points, { tolerance = .001, smoothing = null,
|
|
|
112
112
|
degMax,
|
|
113
113
|
smoothing
|
|
114
114
|
})));
|
|
115
|
-
} catch {
|
|
116
|
-
return require_errors.err(require_errors.kernelError("BSPLINE_FAILED", "B-spline approximation failed"));
|
|
115
|
+
} catch (e) {
|
|
116
|
+
return require_errors.err(require_errors.kernelError("BSPLINE_FAILED", "B-spline approximation failed", e));
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
/**
|
|
@@ -128,8 +128,8 @@ function makeBSplineInterpolation(points, { periodic = false, tolerance = 1e-7 }
|
|
|
128
128
|
periodic,
|
|
129
129
|
tolerance
|
|
130
130
|
})));
|
|
131
|
-
} catch {
|
|
132
|
-
return require_errors.err(require_errors.kernelError("BSPLINE_INTERP_FAILED", "B-spline interpolation failed"));
|
|
131
|
+
} catch (e) {
|
|
132
|
+
return require_errors.err(require_errors.kernelError("BSPLINE_INTERP_FAILED", "B-spline interpolation failed", e));
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
/**
|
|
@@ -184,8 +184,8 @@ function makeFace(wire, holes) {
|
|
|
184
184
|
const face = require_shapeTypes.createFace(faceShape);
|
|
185
185
|
if (!require_shapeTypes.isPlanarFace(face)) return require_errors.err(require_errors.validationError("FACE_NOT_PLANAR", "makeFace produced a non-planar face — wire may not be truly planar"));
|
|
186
186
|
return require_errors.ok(face);
|
|
187
|
-
} catch {
|
|
188
|
-
return require_errors.err(require_errors.kernelError("FACE_BUILD_FAILED", "Failed to build the face. Your wire might be non planar."));
|
|
187
|
+
} catch (e) {
|
|
188
|
+
return require_errors.err(require_errors.kernelError("FACE_BUILD_FAILED", "Failed to build the face. Your wire might be non planar.", e));
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
/**
|
|
@@ -217,8 +217,8 @@ function makeNonPlanarFace(wire) {
|
|
|
217
217
|
if (!require_shapeTypes.isFace(newFace)) return require_errors.err(require_errors.kernelError("FACE_BUILD_FAILED", "Failed to create a non-planar face"));
|
|
218
218
|
return require_errors.ok(newFace);
|
|
219
219
|
});
|
|
220
|
-
} catch {
|
|
221
|
-
return require_errors.err(require_errors.kernelError("FACE_BUILD_FAILED", "Failed to create a non-planar face"));
|
|
220
|
+
} catch (e) {
|
|
221
|
+
return require_errors.err(require_errors.kernelError("FACE_BUILD_FAILED", "Failed to create a non-planar face", e));
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
function addHolesInFace(face, holes) {
|
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-B8cDsSHe.cjs");
|
|
3
|
+
const require_textMetrics = require("./textMetrics-B8qEy3dh.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-ziKppdNm.js";
|
|
2
|
+
import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-CP-jrZ98.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-DQfoZt_L.cjs");
|
|
33
33
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
34
34
|
const require_types = require("./types-KjA8tY4Y.cjs");
|
|
35
35
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
36
36
|
const require_planeOps = require("./planeOps-BA4HfgQu.cjs");
|
|
37
|
-
const require_faceFns = require("./faceFns-
|
|
38
|
-
const require_curveFns = require("./curveFns-
|
|
37
|
+
const require_faceFns = require("./faceFns-B7yceDjt.cjs");
|
|
38
|
+
const require_curveFns = require("./curveFns-BIlzT4bO.cjs");
|
|
39
39
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
40
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
41
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
42
|
-
const require_blueprintSketcher = require("./blueprintSketcher-
|
|
43
|
-
const require_loftFns = require("./loftFns-
|
|
40
|
+
const require_surfaceBuilders = require("./surfaceBuilders-zGpnLDxz.cjs");
|
|
41
|
+
const require_solidBuilders = require("./solidBuilders-B0Uyvvyy.cjs");
|
|
42
|
+
const require_blueprintSketcher = require("./blueprintSketcher-BoHwuwaU.cjs");
|
|
43
|
+
const require_loftFns = require("./loftFns-CFyOO359.cjs");
|
|
44
44
|
let opentype_js = require("opentype.js");
|
|
45
45
|
opentype_js = __toESM(opentype_js, 1);
|
|
46
46
|
//#region src/sketching/compoundSketch.ts
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { o as createFace, u as createWire } from "./shapeTypes-
|
|
1
|
+
import { o as createFace, u as createWire } from "./shapeTypes-z5bfGPVI.js";
|
|
2
2
|
import { A as ok, R as unwrap, b as err, h as bug, r as ioError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
|
|
3
3
|
import { r as toVec3 } from "./types-D24Y27N0.js";
|
|
4
4
|
import { d as vecNormalize, h as vecScale, r as vecCross } from "./vecOps-SKPRvPH-.js";
|
|
5
5
|
import { n as createPlane } from "./planeOps-DSjjtrjg.js";
|
|
6
|
-
import { v as downcast } from "./faceFns-
|
|
7
|
-
import { l as curveStartPoint, u as curveTangentAt } from "./curveFns-
|
|
6
|
+
import { v as downcast } from "./faceFns-CFvc_qXI.js";
|
|
7
|
+
import { l as curveStartPoint, u as curveTangentAt } from "./curveFns-CaEoZJFJ.js";
|
|
8
8
|
import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
|
|
9
|
-
import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-
|
|
10
|
-
import { o as makeSolid, p as cutAll, t as makeCompound } from "./solidBuilders-
|
|
11
|
-
import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-
|
|
12
|
-
import { a as revolve, d as twistExtrude, o as complexExtrude, r as extrude, t as loft, u as sweep } from "./loftFns-
|
|
9
|
+
import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-BYopOndo.js";
|
|
10
|
+
import { o as makeSolid, p as cutAll, t as makeCompound } from "./solidBuilders-8H08aDto.js";
|
|
11
|
+
import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-C5Q-JLEK.js";
|
|
12
|
+
import { a as revolve, d as twistExtrude, o as complexExtrude, r as extrude, t as loft, u as sweep } from "./loftFns-D5rQxNOI.js";
|
|
13
13
|
import opentype from "opentype.js";
|
|
14
14
|
//#region src/sketching/compoundSketch.ts
|
|
15
15
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DNWJsfVU.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-ziKppdNm.js";
|
|
3
3
|
//#region src/text/sketchText.ts
|
|
4
4
|
/**
|
|
5
5
|
* Render text as 3D sketch outlines on a plane.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { B as createKernelHandle, R as DisposalScope, Y as _usingCtx, Z as getKernel, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { B as createKernelHandle, R as DisposalScope, Y as _usingCtx, Z as getKernel, t as castShape } from "./shapeTypes-z5bfGPVI.js";
|
|
2
2
|
import { A as ok, T as isOk, b as err, d as validationError, n as computationError, r as ioError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
|
|
3
3
|
import { d as vecNormalize, s as vecIsZero } from "./vecOps-SKPRvPH-.js";
|
|
4
|
-
import { y as fromBREP } from "./faceFns-
|
|
5
|
-
import { s as toBREP } from "./shapeFns-
|
|
6
|
-
import { h as fuseAll } from "./solidBuilders-
|
|
7
|
-
import { t as loft } from "./loftFns-
|
|
8
|
-
import { E as wire, h as line } from "./primitiveFns-
|
|
4
|
+
import { y as fromBREP } from "./faceFns-CFvc_qXI.js";
|
|
5
|
+
import { s as toBREP } from "./shapeFns-D-4StVDd.js";
|
|
6
|
+
import { h as fuseAll } from "./solidBuilders-8H08aDto.js";
|
|
7
|
+
import { t as loft } from "./loftFns-D5rQxNOI.js";
|
|
8
|
+
import { E as wire, h as line } from "./primitiveFns-DS7-3evP.js";
|
|
9
9
|
//#region src/utils/uuid.ts
|
|
10
10
|
/** Generate a v4-style UUID string using `crypto.getRandomValues`. */
|
|
11
11
|
function uuidv() {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DQfoZt_L.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
3
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
5
|
-
const require_shapeFns = require("./shapeFns-
|
|
6
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
7
|
-
const require_loftFns = require("./loftFns-
|
|
8
|
-
const require_primitiveFns = require("./primitiveFns-
|
|
4
|
+
const require_faceFns = require("./faceFns-B7yceDjt.cjs");
|
|
5
|
+
const require_shapeFns = require("./shapeFns-B3GP-0FJ.cjs");
|
|
6
|
+
const require_solidBuilders = require("./solidBuilders-B0Uyvvyy.cjs");
|
|
7
|
+
const require_loftFns = require("./loftFns-CFyOO359.cjs");
|
|
8
|
+
const require_primitiveFns = require("./primitiveFns-B898KlXM.cjs");
|
|
9
9
|
//#region src/utils/uuid.ts
|
|
10
10
|
/** Generate a v4-style UUID string using `crypto.getRandomValues`. */
|
|
11
11
|
function uuidv() {
|
package/dist/topology.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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_solidBuilders = require("./solidBuilders-
|
|
8
|
-
const require_healingFns = require("./healingFns-
|
|
9
|
-
const require_primitiveFns = require("./primitiveFns-
|
|
2
|
+
const require_topologyQueryFns = require("./topologyQueryFns-BLkQkExs.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-B7yceDjt.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-B3GP-0FJ.cjs");
|
|
5
|
+
const require_curveFns = require("./curveFns-BIlzT4bO.cjs");
|
|
6
|
+
const require_meshFns = require("./meshFns-BKBGgLB4.cjs");
|
|
7
|
+
const require_solidBuilders = require("./solidBuilders-B0Uyvvyy.cjs");
|
|
8
|
+
const require_healingFns = require("./healingFns-CEzX-45q.cjs");
|
|
9
|
+
const require_primitiveFns = require("./primitiveFns-B898KlXM.cjs");
|
|
10
10
|
exports.addHoles = require_primitiveFns.addHoles;
|
|
11
11
|
exports.adjacentFaces = require_healingFns.adjacentFaces;
|
|
12
12
|
exports.approximateCurve = require_curveFns.approximateCurve;
|
package/dist/topology.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { S as vertexPosition, _ as iterFaces, b as iterVertices, c as getFaces, f as getVertices, g as iterEdges, m as invalidateShapeCache, n as getBounds, p as getWires, s as getEdges, x as iterWires } from "./topologyQueryFns-
|
|
2
|
-
import { S as shapeType, _ as cast, a as faceOrientation, b as isCompSolid, c as innerWires, d as pointOnSurface, f as projectPointOnFace, g as asTopo, h as uvCoordinates, i as faceGeomType, l as normalAt, m as uvBounds, n as faceAxis, o as flipFaceOrientation, r as faceCenter, s as getSurfaceType, t as classifyPointOnFace, u as outerWire, v as downcast, x as iterTopo, y as fromBREP } from "./faceFns-
|
|
3
|
-
import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-
|
|
4
|
-
import { a as curveIsPeriodic, c as curvePointAt, d as flipOrientation, f as getCurveType, h as offsetWire2D, i as curveIsClosed, l as curveStartPoint, m as interpolateCurve, n as curveAxis, o as curveLength, p as getOrientation, r as curveEndPoint, s as curvePeriod, t as approximateCurve, u as curveTangentAt } from "./curveFns-
|
|
5
|
-
import { c as createMeshCache, n as exportSTEP, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-
|
|
6
|
-
import { h as fuseAll, p as cutAll } from "./solidBuilders-
|
|
7
|
-
import { A as edgesOfFace, C as shellWithEvolution, D as getNurbsCurveData, E as fuseAllBisect, F as chamferDistAngle, I as toBufferGeometryData, L as toGroupedBufferGeometryData, M as sharedEdges, N as verticesOfEdge, O as getNurbsSurfaceData, P as wiresOfFace, S as intersectWithEvolution, T as cutAllBisect, _ as positionOnCurve, a as healFace, b as filletWithEvolution, g as variableFillet, j as facesOfEdge, k as adjacentFaces, l as solidFromShell, n as fixSelfIntersection, o as healSolid, r as fixShape, s as healWire, t as autoHeal, v as chamferWithEvolution, w as checkBoolean, x as fuseWithEvolution, y as cutWithEvolution, z as toLineGeometryData } from "./healingFns-
|
|
8
|
-
import { C as threePointArc, D as wireLoop, E as wire, S as tangentArc, T as vertex, _ as polygon, a as circle, b as sphere, c as cylinder, d as ellipsoid, f as face, g as offsetFace, h as line, i as bsplineApprox, l as ellipse, m as helix, n as bezier, o as compound, p as filledFace, r as box, s as cone, t as addHoles, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-
|
|
1
|
+
import { S as vertexPosition, _ as iterFaces, b as iterVertices, c as getFaces, f as getVertices, g as iterEdges, m as invalidateShapeCache, n as getBounds, p as getWires, s as getEdges, x as iterWires } from "./topologyQueryFns-De27Nxmf.js";
|
|
2
|
+
import { S as shapeType, _ as cast, a as faceOrientation, b as isCompSolid, c as innerWires, d as pointOnSurface, f as projectPointOnFace, g as asTopo, h as uvCoordinates, i as faceGeomType, l as normalAt, m as uvBounds, n as faceAxis, o as flipFaceOrientation, r as faceCenter, s as getSurfaceType, t as classifyPointOnFace, u as outerWire, v as downcast, x as iterTopo, y as fromBREP } from "./faceFns-CFvc_qXI.js";
|
|
3
|
+
import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-D-4StVDd.js";
|
|
4
|
+
import { a as curveIsPeriodic, c as curvePointAt, d as flipOrientation, f as getCurveType, h as offsetWire2D, i as curveIsClosed, l as curveStartPoint, m as interpolateCurve, n as curveAxis, o as curveLength, p as getOrientation, r as curveEndPoint, s as curvePeriod, t as approximateCurve, u as curveTangentAt } from "./curveFns-CaEoZJFJ.js";
|
|
5
|
+
import { c as createMeshCache, n as exportSTEP, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-Bkcg1u5D.js";
|
|
6
|
+
import { h as fuseAll, p as cutAll } from "./solidBuilders-8H08aDto.js";
|
|
7
|
+
import { A as edgesOfFace, C as shellWithEvolution, D as getNurbsCurveData, E as fuseAllBisect, F as chamferDistAngle, I as toBufferGeometryData, L as toGroupedBufferGeometryData, M as sharedEdges, N as verticesOfEdge, O as getNurbsSurfaceData, P as wiresOfFace, S as intersectWithEvolution, T as cutAllBisect, _ as positionOnCurve, a as healFace, b as filletWithEvolution, g as variableFillet, j as facesOfEdge, k as adjacentFaces, l as solidFromShell, n as fixSelfIntersection, o as healSolid, r as fixShape, s as healWire, t as autoHeal, v as chamferWithEvolution, w as checkBoolean, x as fuseWithEvolution, y as cutWithEvolution, z as toLineGeometryData } from "./healingFns-BY6Q9gge.js";
|
|
8
|
+
import { C as threePointArc, D as wireLoop, E as wire, S as tangentArc, T as vertex, _ as polygon, a as circle, b as sphere, c as cylinder, d as ellipsoid, f as face, g as offsetFace, h as line, i as bsplineApprox, l as ellipse, m as helix, n as bezier, o as compound, p as filledFace, r as box, s as cone, t as addHoles, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-DS7-3evP.js";
|
|
9
9
|
export { addHoles, adjacentFaces, approximateCurve, asTopo, autoHeal, bezier, box, bsplineApprox, cast, chamferDistAngle as chamferDistAngleShape, chamferWithEvolution, checkBoolean, circle, classifyPointOnFace, clearMeshCache, compound, cone, createMeshCache, curveAxis, curveEndPoint, curveIsClosed, curveIsPeriodic, curveLength, curvePeriod, curvePointAt, curveStartPoint, curveTangentAt, cutAll, cutAllBisect, cutWithEvolution, cylinder, fromBREP as deserializeShape, downcast, edgesOfFace, ellipse, ellipseArc, ellipsoid, exportIGES, exportSTEP, exportSTL, face, faceAxis, faceCenter, faceGeomType, faceOrientation, facesOfEdge, filledFace, filletWithEvolution, fixSelfIntersection, fixShape, flipFaceOrientation, flipOrientation, fuseAll, fuseAllBisect, 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-DQfoZt_L.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
3
|
//#region src/core/kernelCall.ts
|
|
4
4
|
function buildError(kind, code, message, cause, suggestion) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as getOrQueryType, R as DisposalScope, Y as _usingCtx, Z as getKernel, r as castShapeWithKnownType, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { N as getOrQueryType, R as DisposalScope, Y as _usingCtx, Z as getKernel, r as castShapeWithKnownType, t as castShape } from "./shapeTypes-z5bfGPVI.js";
|
|
2
2
|
import { A as ok, b as err, f as getSuggestionForCode, p as translateKernelError } from "./errors-DNWJsfVU.js";
|
|
3
3
|
//#region src/core/kernelCall.ts
|
|
4
4
|
function buildError(kind, code, message, cause, suggestion) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brepjs",
|
|
3
|
-
"version": "18.100.
|
|
3
|
+
"version": "18.100.3",
|
|
4
4
|
"description": "Web CAD library with pluggable geometry kernel",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cad",
|
|
@@ -261,7 +261,7 @@
|
|
|
261
261
|
"@types/react": "19.2.17",
|
|
262
262
|
"@vitest/coverage-v8": "4.1.8",
|
|
263
263
|
"brepjs-opencascade": "*",
|
|
264
|
-
"brepkit-wasm": "2.
|
|
264
|
+
"brepkit-wasm": "2.115.8",
|
|
265
265
|
"eslint": "10.5.0",
|
|
266
266
|
"fast-check": "4.8.0",
|
|
267
267
|
"husky": "9.1.7",
|