brepjs 18.74.0 → 18.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/2d.cjs +6 -6
- package/dist/2d.js +6 -6
- package/dist/{blueprint-jlSsZ0sZ.cjs → blueprint-DiaBfB57.cjs} +5 -5
- package/dist/{blueprint-qVw9ZkE4.js → blueprint-OgMkiq7a.js} +5 -5
- package/dist/{blueprintFns-zLwbytjs.js → blueprintFns-C3EQ12Ix.js} +2 -2
- package/dist/{blueprintFns-DsuY7gCu.cjs → blueprintFns-uYr43qo4.cjs} +2 -2
- package/dist/{blueprintSketcher-BRKbVgE2.js → blueprintSketcher-Bp3oMzVW.js} +3 -3
- package/dist/{blueprintSketcher-dZZ8e5ey.cjs → blueprintSketcher-CZqT7_gf.cjs} +3 -3
- package/dist/{boolean2D-4E1kbwQx.cjs → boolean2D-4fXjKx5f.cjs} +4 -4
- package/dist/{boolean2D-CANP43pN.js → boolean2D-DXti_c7k.js} +4 -4
- package/dist/{booleanFns-DYSaupiG.js → booleanFns-Cu-J1THp.js} +4 -4
- package/dist/{booleanFns-Bp_wYEwG.cjs → booleanFns-DxnTjP19.cjs} +4 -4
- package/dist/brepjs.cjs +25 -25
- package/dist/brepjs.js +25 -25
- package/dist/{cameraFns-BFRGMXSn.js → cameraFns-Ctxe8ev-.js} +2 -2
- package/dist/{cameraFns-dRK1CnFi.cjs → cameraFns-G2lc5c9M.cjs} +2 -2
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-CQPXY8Aw.cjs → cornerFinder-CAoT1uIs.cjs} +1 -1
- package/dist/{cornerFinder-DcHCKoUh.js → cornerFinder-CmXx269_.js} +1 -1
- package/dist/{curveFns-CXhOkKR4.js → curveFns-C7t4yHtQ.js} +1 -1
- package/dist/{curveFns-uPVW6eo-.cjs → curveFns-DQlllRhs.cjs} +1 -1
- package/dist/{drawFns-ZqWpAG8b.js → drawFns-B7l3h4FX.js} +12 -12
- package/dist/{drawFns-eMU4H__w.cjs → drawFns-SddAG_uY.cjs} +12 -12
- package/dist/{extrudeFns-CzQans6p.cjs → extrudeFns-b7JHaMsv.cjs} +1 -1
- package/dist/{extrudeFns-CSy2C7WW.js → extrudeFns-msxcCUm2.js} +1 -1
- package/dist/{faceFns-BBcrvY7r.js → faceFns-BJ0mbRh5.js} +2 -2
- package/dist/{faceFns-CcLFCtg4.cjs → faceFns-CZvemlPW.cjs} +2 -2
- package/dist/{helpers-BmY5kO0w.cjs → helpers-CRBTGZO7.cjs} +6 -6
- package/dist/{helpers-CxT3j8jG.js → helpers-CYSAsvRe.js} +6 -6
- package/dist/{historyFns-ClLT60_V.js → historyFns-BV5sQxft.js} +4 -4
- package/dist/{historyFns-BEB2Yjld.cjs → historyFns-xUNAdUYV.cjs} +4 -4
- package/dist/{importFns-DA0Klh7_.cjs → importFns-BY0rgGAN.cjs} +2 -2
- package/dist/{importFns-BNDWuBuq.js → importFns-eHSyuIJF.js} +2 -2
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/brepkit/geometryOps.d.ts +8 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.d.ts +1 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
- package/dist/kernel/occtWasm/surfaceOps.d.ts +6 -11
- package/dist/{measureFns-zGABZl6o.cjs → measureFns-CRS3U8gj.cjs} +3 -3
- package/dist/{measureFns-DAP8LjBB.js → measureFns-DYeTPyHr.js} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-D-nLiHvU.js → meshFns-CLQL2D95.js} +3 -3
- package/dist/{meshFns-CEGnFm33.cjs → meshFns-CvmTzMPL.cjs} +3 -3
- package/dist/{occtWasmAdapter-Crs07qIe.cjs → occtWasmAdapter-DdghAlnN.cjs} +49 -27
- package/dist/{occtWasmAdapter-D0MtWZYO.js → occtWasmAdapter-m4Nua92H.js} +49 -27
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-CDbe5gjc.js → primitiveFns-B6Q6lx9-.js} +7 -7
- package/dist/{primitiveFns-CpkG8ZkI.cjs → primitiveFns-FudrSXrp.cjs} +7 -7
- package/dist/projection.cjs +1 -1
- package/dist/projection.js +1 -1
- package/dist/query.cjs +2 -2
- package/dist/query.js +2 -2
- package/dist/{shapeFns-DVUNOG2I.js → shapeFns-CQRGTifg.js} +2 -2
- package/dist/{shapeFns-CDHya-nt.cjs → shapeFns-CQmd2W5F.cjs} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeRefFns-B1Tygk9V.cjs → shapeRefFns-DoPplxoN.cjs} +4 -4
- package/dist/{shapeRefFns-CAJUDLTi.js → shapeRefFns-DvIvS0do.js} +4 -4
- package/dist/{shapeTypes-DRxArFIc.cjs → shapeTypes-C4cMKLoj.cjs} +24 -4
- package/dist/{shapeTypes-2cKwu2z4.js → shapeTypes-VCBsDI43.js} +24 -4
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-ibLq_9EK.cjs → solidBuilders-B0Hzin8a.cjs} +2 -2
- package/dist/{solidBuilders-Bx3UdW91.js → solidBuilders-DBsHetmI.js} +2 -2
- package/dist/{surfaceBuilders-BtNrSolT.js → surfaceBuilders-DllH3kXs.js} +2 -2
- package/dist/{surfaceBuilders-D2PBBoja.cjs → surfaceBuilders-QK_Cnn_u.cjs} +2 -2
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-COG8m1aE.cjs → textBlueprints-BxbCj29U.cjs} +7 -7
- package/dist/{textBlueprints-HfRD4iNF.js → textBlueprints-C9ne8G24.js} +7 -7
- package/dist/{textMetrics-CTSpUXtk.cjs → textMetrics-DRfvY1yT.cjs} +1 -1
- package/dist/{textMetrics-Zp8rzokO.js → textMetrics-Ddpxhy0z.js} +1 -1
- package/dist/topology.cjs +7 -7
- package/dist/topology.js +7 -7
- package/dist/{topologyQueryFns-024l64sD.cjs → topologyQueryFns-Bj5wpC75.cjs} +1 -1
- package/dist/{topologyQueryFns-c2RQIcfW.js → topologyQueryFns-BtfhAVY2.js} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_occtWasmAdapter = require("./occtWasmAdapter-
|
|
1
|
+
const require_occtWasmAdapter = require("./occtWasmAdapter-DdghAlnN.cjs");
|
|
2
2
|
const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
|
|
3
3
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
4
4
|
//#region src/kernel/quality.ts
|
|
@@ -2887,7 +2887,7 @@ function getSurfaceCylinderData$1(oc, surface) {
|
|
|
2887
2887
|
return result;
|
|
2888
2888
|
}
|
|
2889
2889
|
/** Get a cylindrical face's axis (point on axis + unit direction). Null otherwise. */
|
|
2890
|
-
function getSurfaceAxis(oc, face) {
|
|
2890
|
+
function getSurfaceAxis$1(oc, face) {
|
|
2891
2891
|
const adaptor = new oc.BRepAdaptor_Surface_2(face, false);
|
|
2892
2892
|
try {
|
|
2893
2893
|
const typeVal = adaptor.GetType();
|
|
@@ -2951,7 +2951,7 @@ function makeGeometryQueryOps(oc) {
|
|
|
2951
2951
|
curvePeriod: (shape) => curvePeriod$1(oc, shape),
|
|
2952
2952
|
curveType: (shape) => curveType$1(oc, shape),
|
|
2953
2953
|
getSurfaceCylinderData: (surface) => getSurfaceCylinderData$1(oc, surface),
|
|
2954
|
-
getSurfaceAxis: (face) => getSurfaceAxis(oc, face),
|
|
2954
|
+
getSurfaceAxis: (face) => getSurfaceAxis$1(oc, face),
|
|
2955
2955
|
reverseSurfaceU: (surface) => reverseSurfaceU$1(oc, surface)
|
|
2956
2956
|
};
|
|
2957
2957
|
}
|
|
@@ -6020,6 +6020,26 @@ function getSurfaceCylinderData(bk, surface) {
|
|
|
6020
6020
|
}
|
|
6021
6021
|
return null;
|
|
6022
6022
|
}
|
|
6023
|
+
function getSurfaceAxis(bk, face) {
|
|
6024
|
+
const params = JSON.parse(bk.getAnalyticSurfaceParams(unwrap$1(face, "face")));
|
|
6025
|
+
if (params.type !== "cylinder") return null;
|
|
6026
|
+
const [ox, oy, oz] = params.origin;
|
|
6027
|
+
const [ax, ay, az] = params.axis;
|
|
6028
|
+
const len = Math.hypot(ax, ay, az);
|
|
6029
|
+
if (len < 1e-12) return null;
|
|
6030
|
+
return {
|
|
6031
|
+
origin: [
|
|
6032
|
+
ox,
|
|
6033
|
+
oy,
|
|
6034
|
+
oz
|
|
6035
|
+
],
|
|
6036
|
+
direction: [
|
|
6037
|
+
ax / len,
|
|
6038
|
+
ay / len,
|
|
6039
|
+
az / len
|
|
6040
|
+
]
|
|
6041
|
+
};
|
|
6042
|
+
}
|
|
6023
6043
|
function reverseSurfaceU(_bk, surface) {
|
|
6024
6044
|
return surface;
|
|
6025
6045
|
}
|
|
@@ -6123,7 +6143,7 @@ function makeGeometryOps$1(bk) {
|
|
|
6123
6143
|
createCurveAdaptor: (shape) => createCurveAdaptor(bk, shape),
|
|
6124
6144
|
getBezierPenultimatePole: (edge) => getBezierPenultimatePole(bk, edge),
|
|
6125
6145
|
getSurfaceCylinderData: (surface) => getSurfaceCylinderData(bk, surface),
|
|
6126
|
-
getSurfaceAxis: () =>
|
|
6146
|
+
getSurfaceAxis: (face) => getSurfaceAxis(bk, face),
|
|
6127
6147
|
reverseSurfaceU: (surface) => reverseSurfaceU(bk, surface),
|
|
6128
6148
|
classifyPointOnFace: (face, u, v, tolerance) => classifyPointOnFace(bk, face, u, v, tolerance),
|
|
6129
6149
|
classifyPointRobust: (shape, point, tolerance) => classifyPointRobust(bk, shape, point, tolerance),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as translateCurve2d$2, E as EXACT_BREP_CAPABILITIES, S as tangentCurve2d, _ as mirrorAcrossAxis, a as buildBinarySTL, b as scaleCurve2d$2, c as curveBounds, d as evaluateCurve2d$2, f as intersectCurves2dFn, g as makeLine2d$2, h as makeEllipse2d$2, i as buildAsciiSTL, l as curveTypeName, m as makeCircle2d$2, n as DEFAULT_STL_ANGULAR_TOLERANCE, o as addCurveToBBox, p as makeBezier2d$2, r as DEFAULT_STL_TOLERANCE, s as createBBox2d, t as OcctWasmAdapter, u as deserializeCurve2d$2, v as mirrorAtPoint, w as quickHull, x as serializeCurve2d$2, y as rotateCurve2d$2 } from "./occtWasmAdapter-
|
|
1
|
+
import { C as translateCurve2d$2, E as EXACT_BREP_CAPABILITIES, S as tangentCurve2d, _ as mirrorAcrossAxis, a as buildBinarySTL, b as scaleCurve2d$2, c as curveBounds, d as evaluateCurve2d$2, f as intersectCurves2dFn, g as makeLine2d$2, h as makeEllipse2d$2, i as buildAsciiSTL, l as curveTypeName, m as makeCircle2d$2, n as DEFAULT_STL_ANGULAR_TOLERANCE, o as addCurveToBBox, p as makeBezier2d$2, r as DEFAULT_STL_TOLERANCE, s as createBBox2d, t as OcctWasmAdapter, u as deserializeCurve2d$2, v as mirrorAtPoint, w as quickHull, x as serializeCurve2d$2, y as rotateCurve2d$2 } from "./occtWasmAdapter-m4Nua92H.js";
|
|
2
2
|
import { n as wasmIndex, t as vec3At } from "./vec3-Dpha8d5k.js";
|
|
3
3
|
import { A as ok, b as err } from "./errors-DNWJsfVU.js";
|
|
4
4
|
//#region src/kernel/quality.ts
|
|
@@ -2887,7 +2887,7 @@ function getSurfaceCylinderData$1(oc, surface) {
|
|
|
2887
2887
|
return result;
|
|
2888
2888
|
}
|
|
2889
2889
|
/** Get a cylindrical face's axis (point on axis + unit direction). Null otherwise. */
|
|
2890
|
-
function getSurfaceAxis(oc, face) {
|
|
2890
|
+
function getSurfaceAxis$1(oc, face) {
|
|
2891
2891
|
const adaptor = new oc.BRepAdaptor_Surface_2(face, false);
|
|
2892
2892
|
try {
|
|
2893
2893
|
const typeVal = adaptor.GetType();
|
|
@@ -2951,7 +2951,7 @@ function makeGeometryQueryOps(oc) {
|
|
|
2951
2951
|
curvePeriod: (shape) => curvePeriod$1(oc, shape),
|
|
2952
2952
|
curveType: (shape) => curveType$1(oc, shape),
|
|
2953
2953
|
getSurfaceCylinderData: (surface) => getSurfaceCylinderData$1(oc, surface),
|
|
2954
|
-
getSurfaceAxis: (face) => getSurfaceAxis(oc, face),
|
|
2954
|
+
getSurfaceAxis: (face) => getSurfaceAxis$1(oc, face),
|
|
2955
2955
|
reverseSurfaceU: (surface) => reverseSurfaceU$1(oc, surface)
|
|
2956
2956
|
};
|
|
2957
2957
|
}
|
|
@@ -6016,6 +6016,26 @@ function getSurfaceCylinderData(bk, surface) {
|
|
|
6016
6016
|
}
|
|
6017
6017
|
return null;
|
|
6018
6018
|
}
|
|
6019
|
+
function getSurfaceAxis(bk, face) {
|
|
6020
|
+
const params = JSON.parse(bk.getAnalyticSurfaceParams(unwrap$1(face, "face")));
|
|
6021
|
+
if (params.type !== "cylinder") return null;
|
|
6022
|
+
const [ox, oy, oz] = params.origin;
|
|
6023
|
+
const [ax, ay, az] = params.axis;
|
|
6024
|
+
const len = Math.hypot(ax, ay, az);
|
|
6025
|
+
if (len < 1e-12) return null;
|
|
6026
|
+
return {
|
|
6027
|
+
origin: [
|
|
6028
|
+
ox,
|
|
6029
|
+
oy,
|
|
6030
|
+
oz
|
|
6031
|
+
],
|
|
6032
|
+
direction: [
|
|
6033
|
+
ax / len,
|
|
6034
|
+
ay / len,
|
|
6035
|
+
az / len
|
|
6036
|
+
]
|
|
6037
|
+
};
|
|
6038
|
+
}
|
|
6019
6039
|
function reverseSurfaceU(_bk, surface) {
|
|
6020
6040
|
return surface;
|
|
6021
6041
|
}
|
|
@@ -6119,7 +6139,7 @@ function makeGeometryOps$1(bk) {
|
|
|
6119
6139
|
createCurveAdaptor: (shape) => createCurveAdaptor(bk, shape),
|
|
6120
6140
|
getBezierPenultimatePole: (edge) => getBezierPenultimatePole(bk, edge),
|
|
6121
6141
|
getSurfaceCylinderData: (surface) => getSurfaceCylinderData(bk, surface),
|
|
6122
|
-
getSurfaceAxis: () =>
|
|
6142
|
+
getSurfaceAxis: (face) => getSurfaceAxis(bk, face),
|
|
6123
6143
|
reverseSurfaceU: (surface) => reverseSurfaceU(bk, surface),
|
|
6124
6144
|
classifyPointOnFace: (face, u, v, tolerance) => classifyPointOnFace(bk, face, u, v, tolerance),
|
|
6125
6145
|
classifyPointRobust: (shape, point, tolerance) => classifyPointRobust(bk, shape, point, tolerance),
|
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-BxbCj29U.cjs");
|
|
3
|
+
const require_blueprintSketcher = require("./blueprintSketcher-CZqT7_gf.cjs");
|
|
4
|
+
const require_drawFns = require("./drawFns-SddAG_uY.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-Bp3oMzVW.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-B7l3h4FX.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-C9ne8G24.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-C4cMKLoj.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-CZvemlPW.cjs");
|
|
4
4
|
//#region src/topology/shapeUtils.ts
|
|
5
5
|
/**
|
|
6
6
|
* Shape assembly utilities — welding and sewing operations.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Z as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-VCBsDI43.js";
|
|
2
2
|
import { A as ok, R as unwrap, b as err, l as typeCastError, v as andThen } from "./errors-DNWJsfVU.js";
|
|
3
|
-
import { _ as cast, v as downcast } from "./faceFns-
|
|
3
|
+
import { _ as cast, v as downcast } from "./faceFns-BJ0mbRh5.js";
|
|
4
4
|
//#region src/topology/shapeUtils.ts
|
|
5
5
|
/**
|
|
6
6
|
* Shape assembly utilities — welding and sewing operations.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Z as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-VCBsDI43.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-BJ0mbRh5.js";
|
|
4
4
|
//#region src/utils/range.ts
|
|
5
5
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
6
6
|
function range(len) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-C4cMKLoj.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-CZvemlPW.cjs");
|
|
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-BxbCj29U.cjs");
|
|
3
|
+
const require_textMetrics = require("./textMetrics-DRfvY1yT.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-C9ne8G24.js";
|
|
2
|
+
import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-Ddpxhy0z.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-C4cMKLoj.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-CZvemlPW.cjs");
|
|
38
|
+
const require_curveFns = require("./curveFns-DQlllRhs.cjs");
|
|
39
39
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.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-QK_Cnn_u.cjs");
|
|
41
|
+
const require_blueprintSketcher = require("./blueprintSketcher-CZqT7_gf.cjs");
|
|
42
|
+
const require_solidBuilders = require("./solidBuilders-B0Hzin8a.cjs");
|
|
43
|
+
const require_extrudeFns = require("./extrudeFns-b7JHaMsv.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 { Z as getKernel, h as isShape3D, o as createFace, p as isFace, t as castShape, u as createWire } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, h as isShape3D, o as createFace, p as isFace, t as castShape, u as createWire } from "./shapeTypes-VCBsDI43.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-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 { _ as cast, v as downcast } from "./faceFns-
|
|
7
|
-
import { c as curveStartPoint, l as curveTangentAt } from "./curveFns-
|
|
6
|
+
import { _ as cast, v as downcast } from "./faceFns-BJ0mbRh5.js";
|
|
7
|
+
import { c as curveStartPoint, l as curveTangentAt } from "./curveFns-C7t4yHtQ.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 { 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-DllH3kXs.js";
|
|
10
|
+
import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-Bp3oMzVW.js";
|
|
11
|
+
import { o as makeSolid, t as makeCompound } from "./solidBuilders-DBsHetmI.js";
|
|
12
|
+
import { c as sweep, i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-msxcCUm2.js";
|
|
13
13
|
import opentype from "opentype.js";
|
|
14
14
|
//#region src/operations/loftFns.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-C9ne8G24.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-Bj5wpC75.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-CZvemlPW.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-CQmd2W5F.cjs");
|
|
5
|
+
const require_curveFns = require("./curveFns-DQlllRhs.cjs");
|
|
6
|
+
const require_meshFns = require("./meshFns-CvmTzMPL.cjs");
|
|
7
|
+
const require_booleanFns = require("./booleanFns-DxnTjP19.cjs");
|
|
8
|
+
const require_primitiveFns = require("./primitiveFns-FudrSXrp.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 { 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 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 fuseAllBisect, 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 cutAllBisect, 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 sharedEdges, b as sphere, c as cylinder, ct as chamferDistAngle, d as ellipsoid, et as getNurbsCurveData, f as face, ft as toLineGeometryData, g as offsetFace, h as line, i as bsplineApprox, it as facesOfEdge, k as fixSelfIntersection, l as ellipse, lt as toBufferGeometryData, m as helix, n as bezier, nt as adjacentFaces, o as compound, ot as verticesOfEdge, p as filledFace, q as filletWithEvolution, r as box, rt as edgesOfFace, s as cone, st as wiresOfFace, t as addHoles, tt as getNurbsSurfaceData, u as ellipseArc, ut as toGroupedBufferGeometryData, 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-BtfhAVY2.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-BJ0mbRh5.js";
|
|
3
|
+
import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-CQRGTifg.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-C7t4yHtQ.js";
|
|
5
|
+
import { c as createMeshCache, n as exportSTEP, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-CLQL2D95.js";
|
|
6
|
+
import { a as fuseAll, r as cutAll } from "./booleanFns-Cu-J1THp.js";
|
|
7
|
+
import { $ as fuseAllBisect, 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 cutAllBisect, 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 sharedEdges, b as sphere, c as cylinder, ct as chamferDistAngle, d as ellipsoid, et as getNurbsCurveData, f as face, ft as toLineGeometryData, g as offsetFace, h as line, i as bsplineApprox, it as facesOfEdge, k as fixSelfIntersection, l as ellipse, lt as toBufferGeometryData, m as helix, n as bezier, nt as adjacentFaces, o as compound, ot as verticesOfEdge, p as filledFace, q as filletWithEvolution, r as box, rt as edgesOfFace, s as cone, st as wiresOfFace, t as addHoles, tt as getNurbsSurfaceData, u as ellipseArc, ut as toGroupedBufferGeometryData, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-B6Q6lx9-.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, 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-C4cMKLoj.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-VCBsDI43.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) {
|