brepjs 15.2.7 → 15.2.9
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 +3 -3
- package/dist/2d.js +3 -3
- package/dist/{blueprint-Q1M0Jh2U.js → blueprint-CM1OOluq.js} +1 -1
- package/dist/{blueprint-DP00ES4B.cjs → blueprint-CbD0PYLr.cjs} +1 -1
- package/dist/{blueprintFns-Cqrn_8gM.js → blueprintFns-BngkSCmA.js} +2 -2
- package/dist/{blueprintFns-DXiQQPuu.cjs → blueprintFns-_JcjAvPP.cjs} +2 -2
- package/dist/{boolean2D-BqsJWNnY.js → boolean2D-B-l_kvhp.js} +5 -5
- package/dist/{boolean2D-CHUdJ0L5.cjs → boolean2D-THA5506z.cjs} +5 -5
- package/dist/brepjs.cjs +12 -12
- package/dist/brepjs.js +12 -12
- package/dist/{cornerFinder-t0r0NiIf.cjs → cornerFinder-4PxIzwrl.cjs} +1 -1
- package/dist/{cornerFinder-CNpqIRvK.js → cornerFinder-Ty3F7kPm.js} +1 -1
- package/dist/{drawFns-BIMGpjZ5.cjs → drawFns-C1XeyF0v.cjs} +5 -5
- package/dist/{drawFns-UQfKI89-.js → drawFns-TaKrwQ13.js} +5 -5
- package/dist/{extrudeFns-BQ9mhxB3.cjs → extrudeFns-BjfEBgIw.cjs} +20 -4
- package/dist/{extrudeFns-yCZ6ZNQy.js → extrudeFns-ClsoGp5V.js} +21 -5
- package/dist/{helpers-Csx69_Wn.cjs → helpers-BFyEt7Fv.cjs} +4 -1
- package/dist/{helpers-CQgRNpa-.js → helpers-XTeLX4mm.js} +5 -2
- package/dist/{importFns-CcTs485L.js → importFns-C_PgMCn_.js} +1 -1
- package/dist/{importFns-m2IJXUsB.cjs → importFns-DRNXwoUG.cjs} +1 -1
- package/dist/io.cjs +1 -1
- package/dist/io.js +1 -1
- package/dist/operations/extrudeUtils.d.ts.map +1 -1
- package/dist/operations/roofFns.d.ts.map +1 -1
- package/dist/operations/sweepFns.d.ts.map +1 -1
- package/dist/operations.cjs +1 -1
- package/dist/operations.js +1 -1
- package/dist/{primitiveFns-DZBVfdNl.js → primitiveFns-BAifgHMW.js} +3 -1
- package/dist/{primitiveFns-CVcoZURM.cjs → primitiveFns-CL6lNda-.cjs} +3 -1
- package/dist/query/shapeFinders.d.ts.map +1 -1
- package/dist/query.cjs +2 -2
- package/dist/query.js +2 -2
- package/dist/sketching.cjs +2 -2
- package/dist/sketching.js +2 -2
- package/dist/topology/modifierFns.d.ts.map +1 -1
- package/dist/topology.cjs +1 -1
- package/dist/topology.js +1 -1
- package/package.json +1 -1
package/dist/2d.cjs
CHANGED
|
@@ -2,9 +2,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_shapeTypes = require("./shapeTypes-Bfw136X-.cjs");
|
|
3
3
|
const require_errors = require("./errors-CXRNVCec.cjs");
|
|
4
4
|
const require_faceFns = require("./faceFns-CKL9Us23.cjs");
|
|
5
|
-
const require_boolean2D = require("./boolean2D-
|
|
6
|
-
const require_blueprint = require("./blueprint-
|
|
7
|
-
const require_blueprintFns = require("./blueprintFns-
|
|
5
|
+
const require_boolean2D = require("./boolean2D-THA5506z.cjs");
|
|
6
|
+
const require_blueprint = require("./blueprint-CbD0PYLr.cjs");
|
|
7
|
+
const require_blueprintFns = require("./blueprintFns-_JcjAvPP.cjs");
|
|
8
8
|
//#region src/core/curve2dHandle.ts
|
|
9
9
|
/**
|
|
10
10
|
* Wrap a raw kernel 2D curve handle with brand + disposal tracking.
|
package/dist/2d.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { B as createKernelHandle, Z as getKernel2D, a as createEdge } from "./shapeTypes-Ct7W6h2X.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DboJwVCf.js";
|
|
3
3
|
import { z as kernelCallRaw } from "./faceFns-DMFG-piP.js";
|
|
4
|
-
import { _ as Blueprints, a as fuseBlueprints, c as roundedRectangleBlueprint, g as CompoundBlueprint, h as organiseBlueprints, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-
|
|
5
|
-
import { _ as Curve2D, t as Blueprint, y as BoundingBox2d } from "./blueprint-
|
|
6
|
-
import { S as reverseCurve, _ as curve2dIsOnCurve, a as isInside2D, b as curve2dSplitAt, c as scale2D, d as stretch2D, f as toSVGPathD, g as curve2dFirstPoint, h as curve2dDistanceFrom, i as getOrientation2D, l as sketchOnFace2D, m as curve2dBoundingBox, o as mirror2D, p as translate2D, r as getBounds2D, s as rotate2D, t as createBlueprint, u as sketchOnPlane2D, v as curve2dLastPoint, x as curve2dTangentAt, y as curve2dParameter } from "./blueprintFns-
|
|
4
|
+
import { _ as Blueprints, a as fuseBlueprints, c as roundedRectangleBlueprint, g as CompoundBlueprint, h as organiseBlueprints, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-B-l_kvhp.js";
|
|
5
|
+
import { _ as Curve2D, t as Blueprint, y as BoundingBox2d } from "./blueprint-CM1OOluq.js";
|
|
6
|
+
import { S as reverseCurve, _ as curve2dIsOnCurve, a as isInside2D, b as curve2dSplitAt, c as scale2D, d as stretch2D, f as toSVGPathD, g as curve2dFirstPoint, h as curve2dDistanceFrom, i as getOrientation2D, l as sketchOnFace2D, m as curve2dBoundingBox, o as mirror2D, p as translate2D, r as getBounds2D, s as rotate2D, t as createBlueprint, u as sketchOnPlane2D, v as curve2dLastPoint, x as curve2dTangentAt, y as curve2dParameter } from "./blueprintFns-BngkSCmA.js";
|
|
7
7
|
//#region src/core/curve2dHandle.ts
|
|
8
8
|
/**
|
|
9
9
|
* Wrap a raw kernel 2D curve handle with brand + disposal tracking.
|
|
@@ -7,7 +7,7 @@ import { r as makePlane } from "./planeOps-sTrM3dcQ.js";
|
|
|
7
7
|
import { f as getOrientation } from "./curveFns-Dn4gbNzG.js";
|
|
8
8
|
import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-tCIbjLs5.js";
|
|
9
9
|
import { r as makeFace } from "./surfaceBuilders-Im6Xef27.js";
|
|
10
|
-
import { _ as samePoint, b as subtract2d, l as add2d, o as normalize2d, p as distance2d, t as getSingleFace, v as scalarMultiply2d } from "./helpers-
|
|
10
|
+
import { _ as samePoint, b as subtract2d, l as add2d, o as normalize2d, p as distance2d, t as getSingleFace, v as scalarMultiply2d } from "./helpers-XTeLX4mm.js";
|
|
11
11
|
//#region src/2d/lib/definitions.ts
|
|
12
12
|
/** Type guard that checks whether a value is a `Point2D`. */
|
|
13
13
|
function isPoint2D(point) {
|
|
@@ -7,7 +7,7 @@ const require_planeOps = require("./planeOps-BJOIbn4K.cjs");
|
|
|
7
7
|
const require_curveFns = require("./curveFns-Bukd9jhv.cjs");
|
|
8
8
|
const require_arrayAccess = require("./arrayAccess-DsnQpdSD.cjs");
|
|
9
9
|
const require_surfaceBuilders = require("./surfaceBuilders-DzTJA3fK.cjs");
|
|
10
|
-
const require_helpers = require("./helpers-
|
|
10
|
+
const require_helpers = require("./helpers-BFyEt7Fv.cjs");
|
|
11
11
|
//#region src/2d/lib/definitions.ts
|
|
12
12
|
/** Type guard that checks whether a value is a `Point2D`. */
|
|
13
13
|
function isPoint2D(point) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DboJwVCf.js";
|
|
2
|
-
import { g as CompoundBlueprint } from "./boolean2D-
|
|
3
|
-
import { t as Blueprint } from "./blueprint-
|
|
2
|
+
import { g as CompoundBlueprint } from "./boolean2D-B-l_kvhp.js";
|
|
3
|
+
import { t as Blueprint } from "./blueprint-CM1OOluq.js";
|
|
4
4
|
//#region src/2d/lib/curve2dFns.ts
|
|
5
5
|
/**
|
|
6
6
|
* Return a reversed copy of the curve (non-mutating).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_errors = require("./errors-CXRNVCec.cjs");
|
|
2
|
-
const require_boolean2D = require("./boolean2D-
|
|
3
|
-
const require_blueprint = require("./blueprint-
|
|
2
|
+
const require_boolean2D = require("./boolean2D-THA5506z.cjs");
|
|
3
|
+
const require_blueprint = require("./blueprint-CbD0PYLr.cjs");
|
|
4
4
|
//#region src/2d/lib/curve2dFns.ts
|
|
5
5
|
/**
|
|
6
6
|
* Return a reversed copy of the curve (non-mutating).
|
|
@@ -8,9 +8,9 @@ import { n as createPlane } from "./planeOps-sTrM3dcQ.js";
|
|
|
8
8
|
import { c as curveStartPoint, l as curveTangentAt, r as curveIsClosed } from "./curveFns-Dn4gbNzG.js";
|
|
9
9
|
import { r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-tCIbjLs5.js";
|
|
10
10
|
import { _ as zip, i as makeNewFaceWithinFace, r as makeFace, s as assembleWire } from "./surfaceBuilders-Im6Xef27.js";
|
|
11
|
-
import { _ as samePoint$1, b as subtract2d, d as cartesianToPolar, f as crossProduct2d, g as rotate2d, h as polarToCartesian, l as add2d, m as polarAngle2d, o as normalize2d, p as distance2d, s as PRECISION_INTERSECTION, v as scalarMultiply2d } from "./helpers-
|
|
12
|
-
import { _ as Curve2D, b as removeDuplicatePoints, c as make2dCircle, f as make2dSegmentCurve, h as approximateAsBSpline, m as make2dThreePointArc, n as asSVG, o as make2dArcFromCenter, p as make2dTangentArc, r as viewbox, s as make2dBezierCurve, t as Blueprint, u as make2dEllipseArc, x as isPoint2D, y as BoundingBox2d } from "./blueprint-
|
|
13
|
-
import { c as sweep, i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-
|
|
11
|
+
import { _ as samePoint$1, b as subtract2d, d as cartesianToPolar, f as crossProduct2d, g as rotate2d, h as polarToCartesian, l as add2d, m as polarAngle2d, o as normalize2d, p as distance2d, s as PRECISION_INTERSECTION, v as scalarMultiply2d } from "./helpers-XTeLX4mm.js";
|
|
12
|
+
import { _ as Curve2D, b as removeDuplicatePoints, c as make2dCircle, f as make2dSegmentCurve, h as approximateAsBSpline, m as make2dThreePointArc, n as asSVG, o as make2dArcFromCenter, p as make2dTangentArc, r as viewbox, s as make2dBezierCurve, t as Blueprint, u as make2dEllipseArc, x as isPoint2D, y as BoundingBox2d } from "./blueprint-CM1OOluq.js";
|
|
13
|
+
import { c as sweep, i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-ClsoGp5V.js";
|
|
14
14
|
//#region node_modules/flatqueue/index.js
|
|
15
15
|
/** @template T */
|
|
16
16
|
var FlatQueue = class {
|
|
@@ -1032,8 +1032,8 @@ function loft(wires, { ruled = true, startPoint, endPoint, tolerance = 1e-6 } =
|
|
|
1032
1032
|
}));
|
|
1033
1033
|
if (!isShape3D(result)) return err(typeCastError("LOFT_NOT_3D", "Loft did not produce a 3D shape"));
|
|
1034
1034
|
return ok(result);
|
|
1035
|
-
} catch {
|
|
1036
|
-
return err(kernelError("LOFT_FAILED", "Loft operation failed",
|
|
1035
|
+
} catch (e) {
|
|
1036
|
+
return err(kernelError("LOFT_FAILED", "Loft operation failed", e, void 0, "Common causes: wire profiles with different edge counts, self-intersecting result, or profiles too far apart. Ensure profiles are compatible and ordered."));
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
1039
|
/**
|
|
@@ -8,9 +8,9 @@ const require_planeOps = require("./planeOps-BJOIbn4K.cjs");
|
|
|
8
8
|
const require_curveFns = require("./curveFns-Bukd9jhv.cjs");
|
|
9
9
|
const require_arrayAccess = require("./arrayAccess-DsnQpdSD.cjs");
|
|
10
10
|
const require_surfaceBuilders = require("./surfaceBuilders-DzTJA3fK.cjs");
|
|
11
|
-
const require_helpers = require("./helpers-
|
|
12
|
-
const require_blueprint = require("./blueprint-
|
|
13
|
-
const require_extrudeFns = require("./extrudeFns-
|
|
11
|
+
const require_helpers = require("./helpers-BFyEt7Fv.cjs");
|
|
12
|
+
const require_blueprint = require("./blueprint-CbD0PYLr.cjs");
|
|
13
|
+
const require_extrudeFns = require("./extrudeFns-BjfEBgIw.cjs");
|
|
14
14
|
//#region node_modules/flatqueue/index.js
|
|
15
15
|
/** @template T */
|
|
16
16
|
var FlatQueue = class {
|
|
@@ -1032,8 +1032,8 @@ function loft(wires, { ruled = true, startPoint, endPoint, tolerance = 1e-6 } =
|
|
|
1032
1032
|
}));
|
|
1033
1033
|
if (!require_shapeTypes.isShape3D(result)) return require_errors.err(require_errors.typeCastError("LOFT_NOT_3D", "Loft did not produce a 3D shape"));
|
|
1034
1034
|
return require_errors.ok(result);
|
|
1035
|
-
} catch {
|
|
1036
|
-
return require_errors.err(require_errors.kernelError("LOFT_FAILED", "Loft operation failed",
|
|
1035
|
+
} catch (e) {
|
|
1036
|
+
return require_errors.err(require_errors.kernelError("LOFT_FAILED", "Loft operation failed", e, void 0, "Common causes: wire profiles with different edge counts, self-intersecting result, or profiles too far apart. Ensure profiles are compatible and ordered."));
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
1039
|
/**
|
package/dist/brepjs.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_drawFns = require("./drawFns-
|
|
2
|
+
const require_drawFns = require("./drawFns-C1XeyF0v.cjs");
|
|
3
3
|
const require_shapeTypes = require("./shapeTypes-Bfw136X-.cjs");
|
|
4
4
|
const require_occtWasmAdapter = require("./occtWasmAdapter-CPINzXxh.cjs");
|
|
5
5
|
const require_errors = require("./errors-CXRNVCec.cjs");
|
|
@@ -14,16 +14,16 @@ const require_meshFns = require("./meshFns-CO9qVJ24.cjs");
|
|
|
14
14
|
const require_arrayAccess = require("./arrayAccess-DsnQpdSD.cjs");
|
|
15
15
|
const require_surfaceBuilders = require("./surfaceBuilders-DzTJA3fK.cjs");
|
|
16
16
|
const require_booleanFns = require("./booleanFns-CQNV8MMq.cjs");
|
|
17
|
-
const require_primitiveFns = require("./primitiveFns-
|
|
17
|
+
const require_primitiveFns = require("./primitiveFns-CL6lNda-.cjs");
|
|
18
18
|
const require_historyFns = require("./historyFns-DBSgZGtF.cjs");
|
|
19
|
-
const require_boolean2D = require("./boolean2D-
|
|
20
|
-
const require_helpers = require("./helpers-
|
|
19
|
+
const require_boolean2D = require("./boolean2D-THA5506z.cjs");
|
|
20
|
+
const require_helpers = require("./helpers-BFyEt7Fv.cjs");
|
|
21
21
|
const require_solidBuilders = require("./solidBuilders-DI9d6ZIx.cjs");
|
|
22
22
|
const require_measureFns = require("./measureFns-C2SnZLhD.cjs");
|
|
23
|
-
const require_cornerFinder = require("./cornerFinder-
|
|
24
|
-
const require_extrudeFns = require("./extrudeFns-
|
|
25
|
-
const require_blueprintFns = require("./blueprintFns-
|
|
26
|
-
const require_importFns = require("./importFns-
|
|
23
|
+
const require_cornerFinder = require("./cornerFinder-4PxIzwrl.cjs");
|
|
24
|
+
const require_extrudeFns = require("./extrudeFns-BjfEBgIw.cjs");
|
|
25
|
+
const require_blueprintFns = require("./blueprintFns-_JcjAvPP.cjs");
|
|
26
|
+
const require_importFns = require("./importFns-DRNXwoUG.cjs");
|
|
27
27
|
const require_shapeRefFns = require("./shapeRefFns-t-5-Aqku.cjs");
|
|
28
28
|
const require_workerHandler = require("./workerHandler-C-3cFcsQ.cjs");
|
|
29
29
|
//#region src/topology/shapeBooleans.ts
|
|
@@ -1120,13 +1120,13 @@ function roof(w, options) {
|
|
|
1120
1120
|
try {
|
|
1121
1121
|
const solid = kernel.sewAndSolidify(triFaces, 1e-6);
|
|
1122
1122
|
return require_errors.ok(require_shapeTypes.createSolid(kernel.fixShape(solid)));
|
|
1123
|
-
} catch {
|
|
1123
|
+
} catch (solidifyErr) {
|
|
1124
1124
|
try {
|
|
1125
1125
|
const sewn = require_shapeTypes.createSolid(kernel.sew(triFaces, 1e-6));
|
|
1126
1126
|
if (require_shapeTypes.isValidSolid(sewn)) return require_errors.ok(sewn);
|
|
1127
|
-
return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.ROOF_FAILED, "Sew fallback produced invalid solid"));
|
|
1128
|
-
} catch {
|
|
1129
|
-
return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.ROOF_FAILED, "Failed to sew roof faces"));
|
|
1127
|
+
return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.ROOF_FAILED, "Sew fallback produced invalid solid", solidifyErr));
|
|
1128
|
+
} catch (sewErr) {
|
|
1129
|
+
return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.ROOF_FAILED, "Failed to sew roof faces", sewErr));
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
|
1132
1132
|
} catch (e) {
|
package/dist/brepjs.js
CHANGED
|
@@ -12,17 +12,17 @@ import { a as meshEdges$1, c as createMeshCache, i as mesh$1, n as exportSTEP, o
|
|
|
12
12
|
import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-tCIbjLs5.js";
|
|
13
13
|
import { n as fill, r as makeFace } from "./surfaceBuilders-Im6Xef27.js";
|
|
14
14
|
import { a as fuseAll, c as sectionToFace$1, i as fuse$1, l as slice$1, n as cut$1, o as intersect$1, r as cutAll, s as section$1, t as booleanPipeline, u as split$1 } from "./booleanFns-D_DVbfzR.js";
|
|
15
|
-
import { $ as getNurbsSurfaceData, A as fixShape, B as offset$1, C as threePointArc, D as wireLoop, E as wire, F as isValid$1, G as chamferWithEvolution, H as thicken$1, I as solidFromShell, J as fuseWithEvolution, K as cutWithEvolution, L as chamfer$1, M as healFace, N as healSolid, O as autoHeal, P as healWire, Q as getNurbsCurveData, R as draft$1, S as tangentArc, T as vertex, U as variableFillet, V as shell$1, W as positionOnCurve, X as shellWithEvolution, Y as intersectWithEvolution, Z as checkBoolean, _ as polygon, a as circle, at as wiresOfFace, b as sphere, c as cylinder, ct as toGroupedBufferGeometryData, d as ellipsoid, et as adjacentFaces, f as face, g as offsetFace, h as line, i as bsplineApprox, it as verticesOfEdge, j as heal$1, k as fixSelfIntersection, l as ellipse, lt as toLODGeometryData, m as helix, n as bezier, nt as facesOfEdge, o as compound, ot as chamferDistAngle, p as filledFace, q as filletWithEvolution, r as box, rt as sharedEdges, s as cone, st as toBufferGeometryData, t as addHoles, tt as edgesOfFace, u as ellipseArc, ut as toLineGeometryData, v as sewShells, w as torus, x as subFace, y as solid, z as fillet$1 } from "./primitiveFns-
|
|
15
|
+
import { $ as getNurbsSurfaceData, A as fixShape, B as offset$1, C as threePointArc, D as wireLoop, E as wire, F as isValid$1, G as chamferWithEvolution, H as thicken$1, I as solidFromShell, J as fuseWithEvolution, K as cutWithEvolution, L as chamfer$1, M as healFace, N as healSolid, O as autoHeal, P as healWire, Q as getNurbsCurveData, R as draft$1, S as tangentArc, T as vertex, U as variableFillet, V as shell$1, W as positionOnCurve, X as shellWithEvolution, Y as intersectWithEvolution, Z as checkBoolean, _ as polygon, a as circle, at as wiresOfFace, b as sphere, c as cylinder, ct as toGroupedBufferGeometryData, d as ellipsoid, et as adjacentFaces, f as face, g as offsetFace, h as line, i as bsplineApprox, it as verticesOfEdge, j as heal$1, k as fixSelfIntersection, l as ellipse, lt as toLODGeometryData, m as helix, n as bezier, nt as facesOfEdge, o as compound, ot as chamferDistAngle, p as filledFace, q as filletWithEvolution, r as box, rt as sharedEdges, s as cone, st as toBufferGeometryData, t as addHoles, tt as edgesOfFace, u as ellipseArc, ut as toLineGeometryData, v as sewShells, w as torus, x as subFace, y as solid, z as fillet$1 } from "./primitiveFns-BAifgHMW.js";
|
|
16
16
|
import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, f as serializeHistory, g as addChild, h as undoLast, i as deserializeHistory, 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-DltXL-vp.js";
|
|
17
|
-
import { a as fuseBlueprints, c as roundedRectangleBlueprint, f as Sketch, h as organiseBlueprints, i as cutBlueprints, m as loftAll, n as fuse2D, o as intersectBlueprints, p as loft$1, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-
|
|
18
|
-
import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-
|
|
19
|
-
import { $ as sketchFaceOffset, B as drawSingleCircle, C as cameraFromPlane, D as makeProjectedEdges, E as projectEdges, F as drawParametricFunction, G as loadFont, H as drawText, I as drawPointsInterpolation, J as textMetrics, K as sketchText, L as drawPolysides, M as draw, N as drawCircle, O as isProjectionPlane, P as drawEllipse, Q as sketchEllipse, R as drawRectangle, S as drawProjection, T as createCamera, U as fontMetrics, V as drawSingleEllipse, W as getFont, X as polysideInnerRadius, Y as makeBaseBox, Z as sketchCircle, _ as sketchLoft, a as drawingIntersect, b as sketchWires, c as rotateDrawing, d as compoundSketchExtrude, et as sketchHelix, f as compoundSketchFace, g as sketchFace, h as sketchExtrude, i as drawingFuse, it as sketchRoundedRectangle, j as deserializeDrawing, l as scaleDrawing, m as compoundSketchRevolve, n as drawingCut, nt as sketchPolysides, o as drawingToSketchOnPlane, ot as Sketches, p as compoundSketchLoft, q as textBlueprints, r as drawingFillet, rt as sketchRectangle, s as mirrorDrawing, st as CompoundSketch, t as drawingChamfer, tt as sketchParametricFunction, u as translateDrawing, v as sketchRevolve, w as cameraLookAt, x as drawFaceOutline, y as sketchSweep, z as drawRoundedRectangle } from "./drawFns-
|
|
17
|
+
import { a as fuseBlueprints, c as roundedRectangleBlueprint, f as Sketch, h as organiseBlueprints, i as cutBlueprints, m as loftAll, n as fuse2D, o as intersectBlueprints, p as loft$1, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-B-l_kvhp.js";
|
|
18
|
+
import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-XTeLX4mm.js";
|
|
19
|
+
import { $ as sketchFaceOffset, B as drawSingleCircle, C as cameraFromPlane, D as makeProjectedEdges, E as projectEdges, F as drawParametricFunction, G as loadFont, H as drawText, I as drawPointsInterpolation, J as textMetrics, K as sketchText, L as drawPolysides, M as draw, N as drawCircle, O as isProjectionPlane, P as drawEllipse, Q as sketchEllipse, R as drawRectangle, S as drawProjection, T as createCamera, U as fontMetrics, V as drawSingleEllipse, W as getFont, X as polysideInnerRadius, Y as makeBaseBox, Z as sketchCircle, _ as sketchLoft, a as drawingIntersect, b as sketchWires, c as rotateDrawing, d as compoundSketchExtrude, et as sketchHelix, f as compoundSketchFace, g as sketchFace, h as sketchExtrude, i as drawingFuse, it as sketchRoundedRectangle, j as deserializeDrawing, l as scaleDrawing, m as compoundSketchRevolve, n as drawingCut, nt as sketchPolysides, o as drawingToSketchOnPlane, ot as Sketches, p as compoundSketchLoft, q as textBlueprints, r as drawingFillet, rt as sketchRectangle, s as mirrorDrawing, st as CompoundSketch, t as drawingChamfer, tt as sketchParametricFunction, u as translateDrawing, v as sketchRevolve, w as cameraLookAt, x as drawFaceOutline, y as sketchSweep, z as drawRoundedRectangle } from "./drawFns-TaKrwQ13.js";
|
|
20
20
|
import { r as makeCylinder } from "./solidBuilders-CQipZFOw.js";
|
|
21
21
|
import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, i as measureCurvatureAtMid, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, r as measureCurvatureAt, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-Zc5RWsI4.js";
|
|
22
|
-
import { t as cornerFinder } from "./cornerFinder-
|
|
23
|
-
import { a as guidedSweep, c as sweep, i as complexExtrude, l as twistExtrude, n as extrudeAll, o as multiSectionSweep, r as revolve$1, s as supportExtrude, t as extrude$1 } from "./extrudeFns-
|
|
24
|
-
import { S as reverseCurve, _ as curve2dIsOnCurve, a as isInside2D, b as curve2dSplitAt, c as scale2D, d as stretch2D, f as toSVGPathD, g as curve2dFirstPoint, h as curve2dDistanceFrom, i as getOrientation2D, l as sketchOnFace2D, m as curve2dBoundingBox, n as createCompoundBlueprint, o as mirror2D, p as translate2D, r as getBounds2D, s as rotate2D, t as createBlueprint, u as sketchOnPlane2D, v as curve2dLastPoint, x as curve2dTangentAt, y as curve2dParameter } from "./blueprintFns-
|
|
25
|
-
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-
|
|
22
|
+
import { t as cornerFinder } from "./cornerFinder-Ty3F7kPm.js";
|
|
23
|
+
import { a as guidedSweep, c as sweep, i as complexExtrude, l as twistExtrude, n as extrudeAll, o as multiSectionSweep, r as revolve$1, s as supportExtrude, t as extrude$1 } from "./extrudeFns-ClsoGp5V.js";
|
|
24
|
+
import { S as reverseCurve, _ as curve2dIsOnCurve, a as isInside2D, b as curve2dSplitAt, c as scale2D, d as stretch2D, f as toSVGPathD, g as curve2dFirstPoint, h as curve2dDistanceFrom, i as getOrientation2D, l as sketchOnFace2D, m as curve2dBoundingBox, n as createCompoundBlueprint, o as mirror2D, p as translate2D, r as getBounds2D, s as rotate2D, t as createBlueprint, u as sketchOnPlane2D, v as curve2dLastPoint, x as curve2dTangentAt, y as curve2dParameter } from "./blueprintFns-BngkSCmA.js";
|
|
25
|
+
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-C_PgMCn_.js";
|
|
26
26
|
import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-Gv4-NGJD.js";
|
|
27
27
|
import { a as createTaskQueue, c as isEmpty$1, d as isDisposeRequest, f as isErrorResponse, h as isSuccessResponse, i as createWorkerClient, l as pendingCount, m as isOperationRequest, n as createWorkerHandler, o as dequeueTask, p as isInitRequest, r as registerHandler, s as enqueueTask, t as createOperationRegistry, u as rejectAll } from "./workerHandler-Dm0_0F8Z.js";
|
|
28
28
|
//#region \0rolldown/runtime.js
|
|
@@ -1131,13 +1131,13 @@ function roof(w, options) {
|
|
|
1131
1131
|
try {
|
|
1132
1132
|
const solid = kernel.sewAndSolidify(triFaces, 1e-6);
|
|
1133
1133
|
return ok(createSolid(kernel.fixShape(solid)));
|
|
1134
|
-
} catch {
|
|
1134
|
+
} catch (solidifyErr) {
|
|
1135
1135
|
try {
|
|
1136
1136
|
const sewn = createSolid(kernel.sew(triFaces, 1e-6));
|
|
1137
1137
|
if (isValidSolid(sewn)) return ok(sewn);
|
|
1138
|
-
return err(kernelError(BrepErrorCode.ROOF_FAILED, "Sew fallback produced invalid solid"));
|
|
1139
|
-
} catch {
|
|
1140
|
-
return err(kernelError(BrepErrorCode.ROOF_FAILED, "Failed to sew roof faces"));
|
|
1138
|
+
return err(kernelError(BrepErrorCode.ROOF_FAILED, "Sew fallback produced invalid solid", solidifyErr));
|
|
1139
|
+
} catch (sewErr) {
|
|
1140
|
+
return err(kernelError(BrepErrorCode.ROOF_FAILED, "Failed to sew roof faces", sewErr));
|
|
1141
1141
|
}
|
|
1142
1142
|
}
|
|
1143
1143
|
} catch (e) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_constants = require("./constants-BNP_xnBN.cjs");
|
|
2
2
|
const require_arrayAccess = require("./arrayAccess-DsnQpdSD.cjs");
|
|
3
|
-
const require_helpers = require("./helpers-
|
|
3
|
+
const require_helpers = require("./helpers-BFyEt7Fv.cjs");
|
|
4
4
|
//#region src/query/cornerFinder.ts
|
|
5
5
|
var PI_2 = 2 * Math.PI;
|
|
6
6
|
function positiveHalfAngle(angle) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as DEG2RAD } from "./constants-csSEYddm.js";
|
|
2
2
|
import { n as getAtOrThrow } from "./arrayAccess-tCIbjLs5.js";
|
|
3
|
-
import { _ as samePoint, p as distance2d, u as angle2d } from "./helpers-
|
|
3
|
+
import { _ as samePoint, p as distance2d, u as angle2d } from "./helpers-XTeLX4mm.js";
|
|
4
4
|
//#region src/query/cornerFinder.ts
|
|
5
5
|
var PI_2 = 2 * Math.PI;
|
|
6
6
|
function positiveHalfAngle(angle) {
|
|
@@ -39,12 +39,12 @@ const require_planeOps = require("./planeOps-BJOIbn4K.cjs");
|
|
|
39
39
|
const require_curveFns = require("./curveFns-Bukd9jhv.cjs");
|
|
40
40
|
const require_arrayAccess = require("./arrayAccess-DsnQpdSD.cjs");
|
|
41
41
|
const require_surfaceBuilders = require("./surfaceBuilders-DzTJA3fK.cjs");
|
|
42
|
-
const require_boolean2D = require("./boolean2D-
|
|
43
|
-
const require_helpers = require("./helpers-
|
|
44
|
-
const require_blueprint = require("./blueprint-
|
|
42
|
+
const require_boolean2D = require("./boolean2D-THA5506z.cjs");
|
|
43
|
+
const require_helpers = require("./helpers-BFyEt7Fv.cjs");
|
|
44
|
+
const require_blueprint = require("./blueprint-CbD0PYLr.cjs");
|
|
45
45
|
const require_solidBuilders = require("./solidBuilders-DI9d6ZIx.cjs");
|
|
46
|
-
const require_cornerFinder = require("./cornerFinder-
|
|
47
|
-
const require_extrudeFns = require("./extrudeFns-
|
|
46
|
+
const require_cornerFinder = require("./cornerFinder-4PxIzwrl.cjs");
|
|
47
|
+
const require_extrudeFns = require("./extrudeFns-BjfEBgIw.cjs");
|
|
48
48
|
let opentype_js = require("opentype.js");
|
|
49
49
|
opentype_js = __toESM(opentype_js);
|
|
50
50
|
//#region src/2d/lib/stitching.ts
|
|
@@ -8,12 +8,12 @@ import { a as planeToWorld, o as resolvePlane } from "./planeOps-sTrM3dcQ.js";
|
|
|
8
8
|
import { m as offsetWire2D } from "./curveFns-Dn4gbNzG.js";
|
|
9
9
|
import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-tCIbjLs5.js";
|
|
10
10
|
import { c as makeBSplineApproximation, d as makeEllipse, p as makeHelix, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeCircle } from "./surfaceBuilders-Im6Xef27.js";
|
|
11
|
-
import { S as Flatbush, _ as Blueprints, b as make2dOffset, c as roundedRectangleBlueprint, f as Sketch, g as CompoundBlueprint, h as organiseBlueprints, l as BaseSketcher2d, n as fuse2D, r as intersect2D, s as polysidesBlueprint, t as cut2D, u as BlueprintSketcher, v as chamferCurves, x as intersectCurves, y as filletCurves } from "./boolean2D-
|
|
12
|
-
import { _ as samePoint$1, b as subtract2d, c as PRECISION_OFFSET, l as add2d, y as squareDistance2d } from "./helpers-
|
|
13
|
-
import { _ as Curve2D, a as edgeToCurve, c as make2dCircle, d as make2dInerpolatedBSplineCurve, f as make2dSegmentCurve, g as approximateAsSvgCompatibleCurve, i as curvesAsEdgesOnPlane, l as make2dEllipse, o as make2dArcFromCenter, t as Blueprint, v as deserializeCurve2D, y as BoundingBox2d } from "./blueprint-
|
|
11
|
+
import { S as Flatbush, _ as Blueprints, b as make2dOffset, c as roundedRectangleBlueprint, f as Sketch, g as CompoundBlueprint, h as organiseBlueprints, l as BaseSketcher2d, n as fuse2D, r as intersect2D, s as polysidesBlueprint, t as cut2D, u as BlueprintSketcher, v as chamferCurves, x as intersectCurves, y as filletCurves } from "./boolean2D-B-l_kvhp.js";
|
|
12
|
+
import { _ as samePoint$1, b as subtract2d, c as PRECISION_OFFSET, l as add2d, y as squareDistance2d } from "./helpers-XTeLX4mm.js";
|
|
13
|
+
import { _ as Curve2D, a as edgeToCurve, c as make2dCircle, d as make2dInerpolatedBSplineCurve, f as make2dSegmentCurve, g as approximateAsSvgCompatibleCurve, i as curvesAsEdgesOnPlane, l as make2dEllipse, o as make2dArcFromCenter, t as Blueprint, v as deserializeCurve2D, y as BoundingBox2d } from "./blueprint-CM1OOluq.js";
|
|
14
14
|
import { o as makeSolid, t as makeCompound } from "./solidBuilders-CQipZFOw.js";
|
|
15
|
-
import { t as cornerFinder } from "./cornerFinder-
|
|
16
|
-
import { i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-
|
|
15
|
+
import { t as cornerFinder } from "./cornerFinder-Ty3F7kPm.js";
|
|
16
|
+
import { i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-ClsoGp5V.js";
|
|
17
17
|
import opentype from "opentype.js";
|
|
18
18
|
//#region src/2d/lib/stitching.ts
|
|
19
19
|
/**
|
|
@@ -15,6 +15,7 @@ const require_vecOps = require("./vecOps-CODplJp3.cjs");
|
|
|
15
15
|
* if the profile type is unsupported.
|
|
16
16
|
*/
|
|
17
17
|
function buildLawFromProfile(extrusionLength, { profile, endFactor = 1 }) {
|
|
18
|
+
if (extrusionLength < 1e-10) return require_errors.err(require_errors.validationError("INVALID_EXTRUSION_LENGTH", "Extrusion length too small (< 1e-10)"));
|
|
18
19
|
if (profile !== "s-curve" && profile !== "linear") return require_errors.err(require_errors.validationError("UNSUPPORTED_PROFILE", `Unsupported extrusion profile: ${String(profile)}`));
|
|
19
20
|
return require_errors.ok(require_shapeTypes.getKernel().buildExtrusionLaw(profile, extrusionLength, endFactor).Trim(0, extrusionLength, 1e-6));
|
|
20
21
|
}
|
|
@@ -115,7 +116,14 @@ function supportExtrude(wire, center, normal, support) {
|
|
|
115
116
|
function complexExtrude(wire, center, normal, profileShape, shellMode = false) {
|
|
116
117
|
const extrusionLength = require_vecOps.vecLength(normal);
|
|
117
118
|
if (extrusionLength < 1e-10) return require_errors.err(require_errors.validationError("ZERO_LENGTH_EXTRUSION", "Extrusion vector cannot have zero length"));
|
|
118
|
-
|
|
119
|
+
const spine = makeSpineWire(center, require_vecOps.vecAdd(center, normal));
|
|
120
|
+
let law = null;
|
|
121
|
+
if (profileShape) {
|
|
122
|
+
const lawResult = buildLawFromProfile(extrusionLength, profileShape);
|
|
123
|
+
if (require_errors.isErr(lawResult)) return lawResult;
|
|
124
|
+
law = lawResult.value;
|
|
125
|
+
}
|
|
126
|
+
return sweep(wire, spine, { law }, shellMode);
|
|
119
127
|
}
|
|
120
128
|
/**
|
|
121
129
|
* Extrude a wire along a normal with helical twist and optional profile scaling.
|
|
@@ -136,9 +144,17 @@ function twistExtrude(wire, angleDegrees, center, normal, profileShape, shellMod
|
|
|
136
144
|
if (Math.abs(angleDegrees) < 1e-10) return require_errors.err(require_errors.validationError("ZERO_TWIST_ANGLE", "Twist angle cannot be zero"));
|
|
137
145
|
const extrusionLength = require_vecOps.vecLength(normal);
|
|
138
146
|
if (extrusionLength < 1e-10) return require_errors.err(require_errors.validationError("ZERO_LENGTH_EXTRUSION", "Extrusion vector cannot have zero length"));
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
147
|
+
const spine = makeSpineWire(center, require_vecOps.vecAdd(center, normal));
|
|
148
|
+
const auxiliarySpine = makeHelixWire(360 / angleDegrees * extrusionLength, extrusionLength, 1, center, normal);
|
|
149
|
+
let law = null;
|
|
150
|
+
if (profileShape) {
|
|
151
|
+
const lawResult = buildLawFromProfile(extrusionLength, profileShape);
|
|
152
|
+
if (require_errors.isErr(lawResult)) return lawResult;
|
|
153
|
+
law = lawResult.value;
|
|
154
|
+
}
|
|
155
|
+
return sweep(wire, spine, {
|
|
156
|
+
auxiliarySpine,
|
|
157
|
+
law
|
|
142
158
|
}, shellMode);
|
|
143
159
|
}
|
|
144
160
|
/** Validate that explicit section locations are in [0,1] and strictly increasing. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { X as getKernel, c as createSolid, h as isShape3D, t as castShape, y as isWire } from "./shapeTypes-Ct7W6h2X.js";
|
|
2
|
-
import { A as ok,
|
|
2
|
+
import { A as ok, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, w as isErr } from "./errors-DboJwVCf.js";
|
|
3
3
|
import { c as vecLength, d as vecNormalize, t as vecAdd } from "./vecOps-B-PCHgyB.js";
|
|
4
4
|
//#region src/operations/extrudeUtils.ts
|
|
5
5
|
/**
|
|
@@ -15,6 +15,7 @@ import { c as vecLength, d as vecNormalize, t as vecAdd } from "./vecOps-B-PCHgy
|
|
|
15
15
|
* if the profile type is unsupported.
|
|
16
16
|
*/
|
|
17
17
|
function buildLawFromProfile(extrusionLength, { profile, endFactor = 1 }) {
|
|
18
|
+
if (extrusionLength < 1e-10) return err(validationError("INVALID_EXTRUSION_LENGTH", "Extrusion length too small (< 1e-10)"));
|
|
18
19
|
if (profile !== "s-curve" && profile !== "linear") return err(validationError("UNSUPPORTED_PROFILE", `Unsupported extrusion profile: ${String(profile)}`));
|
|
19
20
|
return ok(getKernel().buildExtrusionLaw(profile, extrusionLength, endFactor).Trim(0, extrusionLength, 1e-6));
|
|
20
21
|
}
|
|
@@ -115,7 +116,14 @@ function supportExtrude(wire, center, normal, support) {
|
|
|
115
116
|
function complexExtrude(wire, center, normal, profileShape, shellMode = false) {
|
|
116
117
|
const extrusionLength = vecLength(normal);
|
|
117
118
|
if (extrusionLength < 1e-10) return err(validationError("ZERO_LENGTH_EXTRUSION", "Extrusion vector cannot have zero length"));
|
|
118
|
-
|
|
119
|
+
const spine = makeSpineWire(center, vecAdd(center, normal));
|
|
120
|
+
let law = null;
|
|
121
|
+
if (profileShape) {
|
|
122
|
+
const lawResult = buildLawFromProfile(extrusionLength, profileShape);
|
|
123
|
+
if (isErr(lawResult)) return lawResult;
|
|
124
|
+
law = lawResult.value;
|
|
125
|
+
}
|
|
126
|
+
return sweep(wire, spine, { law }, shellMode);
|
|
119
127
|
}
|
|
120
128
|
/**
|
|
121
129
|
* Extrude a wire along a normal with helical twist and optional profile scaling.
|
|
@@ -136,9 +144,17 @@ function twistExtrude(wire, angleDegrees, center, normal, profileShape, shellMod
|
|
|
136
144
|
if (Math.abs(angleDegrees) < 1e-10) return err(validationError("ZERO_TWIST_ANGLE", "Twist angle cannot be zero"));
|
|
137
145
|
const extrusionLength = vecLength(normal);
|
|
138
146
|
if (extrusionLength < 1e-10) return err(validationError("ZERO_LENGTH_EXTRUSION", "Extrusion vector cannot have zero length"));
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
147
|
+
const spine = makeSpineWire(center, vecAdd(center, normal));
|
|
148
|
+
const auxiliarySpine = makeHelixWire(360 / angleDegrees * extrusionLength, extrusionLength, 1, center, normal);
|
|
149
|
+
let law = null;
|
|
150
|
+
if (profileShape) {
|
|
151
|
+
const lawResult = buildLawFromProfile(extrusionLength, profileShape);
|
|
152
|
+
if (isErr(lawResult)) return lawResult;
|
|
153
|
+
law = lawResult.value;
|
|
154
|
+
}
|
|
155
|
+
return sweep(wire, spine, {
|
|
156
|
+
auxiliarySpine,
|
|
157
|
+
law
|
|
142
158
|
}, shellMode);
|
|
143
159
|
}
|
|
144
160
|
/** Validate that explicit section locations are in [0,1] and strictly increasing. */
|
|
@@ -283,7 +283,10 @@ function buildFaceFinder(filters) {
|
|
|
283
283
|
return createTypedFinder("face", filters, buildFaceFinder, (_base, withFilter) => ({
|
|
284
284
|
inDirection: (dir = "Z", angle = 0) => withFilter(faceDirectionFilter(dir, angle)),
|
|
285
285
|
parallelTo: (dir = "Z") => buildFaceFinder(filters).inDirection(dir, 0),
|
|
286
|
-
ofSurfaceType: (surfaceType) => withFilter((face) =>
|
|
286
|
+
ofSurfaceType: (surfaceType) => withFilter((face) => {
|
|
287
|
+
const r = require_faceFns.getSurfaceType(face);
|
|
288
|
+
return require_errors.isOk(r) && r.value === surfaceType;
|
|
289
|
+
}),
|
|
287
290
|
ofArea: (area, tolerance = .001) => withFilter((face) => {
|
|
288
291
|
const r = require_measureFns.measureArea(face);
|
|
289
292
|
return require_errors.isOk(r) && Math.abs(r.value - area) < tolerance;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { X as getKernel, p as isFace } from "./shapeTypes-Ct7W6h2X.js";
|
|
2
|
-
import { A as ok,
|
|
2
|
+
import { A as ok, T as isOk, b as err, h as bug, o as queryError } from "./errors-DboJwVCf.js";
|
|
3
3
|
import { C as getVertices, b as getEdges, c as normalAt, o as getSurfaceType, w as getWires, x as getFaces } from "./faceFns-DMFG-piP.js";
|
|
4
4
|
import { t as DEG2RAD } from "./constants-csSEYddm.js";
|
|
5
5
|
import { a as vecDot, d as vecNormalize } from "./vecOps-B-PCHgyB.js";
|
|
@@ -283,7 +283,10 @@ function buildFaceFinder(filters) {
|
|
|
283
283
|
return createTypedFinder("face", filters, buildFaceFinder, (_base, withFilter) => ({
|
|
284
284
|
inDirection: (dir = "Z", angle = 0) => withFilter(faceDirectionFilter(dir, angle)),
|
|
285
285
|
parallelTo: (dir = "Z") => buildFaceFinder(filters).inDirection(dir, 0),
|
|
286
|
-
ofSurfaceType: (surfaceType) => withFilter((face) =>
|
|
286
|
+
ofSurfaceType: (surfaceType) => withFilter((face) => {
|
|
287
|
+
const r = getSurfaceType(face);
|
|
288
|
+
return isOk(r) && r.value === surfaceType;
|
|
289
|
+
}),
|
|
287
290
|
ofArea: (area, tolerance = .001) => withFilter((face) => {
|
|
288
291
|
const r = measureArea(face);
|
|
289
292
|
return isOk(r) && Math.abs(r.value - area) < tolerance;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { X as getKernel, t as castShape } from "./shapeTypes-Ct7W6h2X.js";
|
|
2
2
|
import { A as ok, b as err, r as ioError, t as BrepErrorCode } from "./errors-DboJwVCf.js";
|
|
3
3
|
import { n as getAtOrThrow } from "./arrayAccess-tCIbjLs5.js";
|
|
4
|
-
import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-
|
|
4
|
+
import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-CM1OOluq.js";
|
|
5
5
|
//#region src/io/objExportFns.ts
|
|
6
6
|
/** Read a vec3 from a typed array at the given vertex index. */
|
|
7
7
|
function vec3At(arr, i) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_shapeTypes = require("./shapeTypes-Bfw136X-.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXRNVCec.cjs");
|
|
3
3
|
const require_arrayAccess = require("./arrayAccess-DsnQpdSD.cjs");
|
|
4
|
-
const require_blueprint = require("./blueprint-
|
|
4
|
+
const require_blueprint = require("./blueprint-CbD0PYLr.cjs");
|
|
5
5
|
//#region src/io/objExportFns.ts
|
|
6
6
|
/** Read a vec3 from a typed array at the given vertex index. */
|
|
7
7
|
function vec3At(arr, i) {
|
package/dist/io.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_meshFns = require("./meshFns-CO9qVJ24.cjs");
|
|
3
|
-
const require_importFns = require("./importFns-
|
|
3
|
+
const require_importFns = require("./importFns-DRNXwoUG.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
1
|
import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-gTPomZkK.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-
|
|
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-C_PgMCn_.js";
|
|
3
3
|
export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extrudeUtils.d.ts","sourceRoot":"","sources":["../../src/operations/extrudeUtils.ts"],"names":[],"mappings":"AA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a,EAAE,EAAE,gBAAgB,GAC3C,MAAM,CAAC,UAAU,CAAC,CAYpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roofFns.d.ts","sourceRoot":"","sources":["../../src/operations/roofFns.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAQ,MAAM,sBAAsB,CAAC;AAGxE,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,kBAAkB,CAAC;AAWxD,MAAM,WAAW,WAAW;IAC1B,iDAAiD;IACjD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAgLD;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAClB,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,GAAG,UAAU,CAAC,SAAS,CAAC,EAChD,OAAO,CAAC,EAAE,WAAW,GACpB,MAAM,CAAC,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"roofFns.d.ts","sourceRoot":"","sources":["../../src/operations/roofFns.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAQ,MAAM,sBAAsB,CAAC;AAGxE,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,kBAAkB,CAAC;AAWxD,MAAM,WAAW,WAAW;IAC1B,iDAAiD;IACjD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAgLD;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAClB,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,GAAG,UAAU,CAAC,SAAS,CAAC,EAChD,OAAO,CAAC,EAAE,WAAW,GACpB,MAAM,CAAC,UAAU,CAAC,CAqEpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sweepFns.d.ts","sourceRoot":"","sources":["../../src/operations/sweepFns.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,KAAK,UAAU,GAAG,GAAG,CAAC;AAItB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/F,OAAO,EAAE,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"sweepFns.d.ts","sourceRoot":"","sources":["../../src/operations/sweepFns.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,KAAK,UAAU,GAAG,GAAG,CAAC;AAItB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/F,OAAO,EAAE,KAAK,MAAM,EAAkB,MAAM,kBAAkB,CAAC;AAQ/D,OAAO,EAAuB,KAAK,gBAAgB,EAAE,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGlG,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAExE,mFAAmF;AACnF,MAAM,WAAW,kBAAkB;IACjC,yCAAyC;IACzC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;IACtB,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,qDAAqD;AACrD,MAAM,WAAW,iBAAiB;IAChC,iEAAiE;IACjE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,8EAA8E;IAC9E,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,wDAAwD;IACxD,SAAS,CAAC,EAA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AAO,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAwBzC;AAoDD;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,aAAa,CAAC,kBAAkB,CAAC,EAC3C,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,EACtB,OAAO,CAAC,EAAE,iBAAiB,GAC1B,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,CAoDvB;AAMD;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,EACxB,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,EACtB,MAAM,EAAE,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EACtC,OAAO,GAAE,kBAAuB,GAC/B,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,CAmCvB"}
|
package/dist/operations.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_historyFns = require("./historyFns-DBSgZGtF.cjs");
|
|
3
|
-
const require_extrudeFns = require("./extrudeFns-
|
|
3
|
+
const require_extrudeFns = require("./extrudeFns-BjfEBgIw.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
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-DltXL-vp.js";
|
|
2
|
-
import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-
|
|
2
|
+
import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-ClsoGp5V.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 };
|
|
@@ -659,7 +659,9 @@ function resolveEdgeCallback(selectedEdges, callbackFn) {
|
|
|
659
659
|
}
|
|
660
660
|
if (filteredEdges.length === 0) return null;
|
|
661
661
|
const kernelParam = (ocEdge) => {
|
|
662
|
-
|
|
662
|
+
const v = hashToValue.get(getKernel().hashCode(ocEdge, HASH_CODE_MAX));
|
|
663
|
+
if (v === void 0) throw new Error("fillet/chamfer: edge hash not found — possible hash collision");
|
|
664
|
+
return v;
|
|
663
665
|
};
|
|
664
666
|
return {
|
|
665
667
|
edges: filteredEdges,
|
|
@@ -659,7 +659,9 @@ function resolveEdgeCallback(selectedEdges, callbackFn) {
|
|
|
659
659
|
}
|
|
660
660
|
if (filteredEdges.length === 0) return null;
|
|
661
661
|
const kernelParam = (ocEdge) => {
|
|
662
|
-
|
|
662
|
+
const v = hashToValue.get(require_shapeTypes.getKernel().hashCode(ocEdge, require_constants.HASH_CODE_MAX));
|
|
663
|
+
if (v === void 0) throw new Error("fillet/chamfer: edge hash not found — possible hash collision");
|
|
664
|
+
return v;
|
|
663
665
|
};
|
|
664
666
|
return {
|
|
665
667
|
edges: filteredEdges,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shapeFinders.d.ts","sourceRoot":"","sources":["../../src/query/shapeFinders.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,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ACvE;AAqCD,uCAAuC;AACvC,wBAAgB,UAAU,IAAI,YAAY,CAEzC;AAMD,MAAM,WAAW,YAAa,SAAQ,WAAW,CAAC,IAAI,CAAC;IACrD,QAAQ,CAAC,WAAW,EAAE,CAAC,GAAG,CAAC,EAAE,cAAc,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC;IAC7E,QAAQ,CAAC,UAAU,EAAE,CAAC,GAAG,CAAC,EAAE,cAAc,KAAK,YAAY,CAAC;IAC5D,QAAQ,CAAC,aAAa,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,YAAY,CAAC;IACnE,QAAQ,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC;IACpE,QAAQ,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,IAAI,KAAK,YAAY,CAAC;CACvE;AAwCD,uCAAuC;AACvC,wBAAgB,UAAU,IAAI,YAAY,CAEzC;AAMD,MAAM,WAAW,YAAa,SAAQ,WAAW,CAAC,IAAI,CAAC;IACrD,QAAQ,CAAC,QAAQ,EAAE,MAAM,YAAY,CAAC;IACtC,QAAQ,CAAC,MAAM,EAAE,MAAM,YAAY,CAAC;IACpC,QAAQ,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,YAAY,CAAC;CACvD;AAiBD,uCAAuC;AACvC,wBAAgB,UAAU,IAAI,YAAY,CAEzC"}
|
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-BFyEt7Fv.cjs");
|
|
3
|
+
const require_cornerFinder = require("./cornerFinder-4PxIzwrl.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-XTeLX4mm.js";
|
|
2
|
+
import { t as cornerFinder } from "./cornerFinder-Ty3F7kPm.js";
|
|
3
3
|
export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
|
package/dist/sketching.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_drawFns = require("./drawFns-
|
|
3
|
-
const require_boolean2D = require("./boolean2D-
|
|
2
|
+
const require_drawFns = require("./drawFns-C1XeyF0v.cjs");
|
|
3
|
+
const require_boolean2D = require("./boolean2D-THA5506z.cjs");
|
|
4
4
|
//#region src/sketching.ts
|
|
5
5
|
/**
|
|
6
6
|
* brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
|
package/dist/sketching.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as FaceSketcher, f as Sketch, l as BaseSketcher2d, u as BlueprintSketcher } from "./boolean2D-
|
|
2
|
-
import { $ as sketchFaceOffset, A as DrawingPen, B as drawSingleCircle, F as drawParametricFunction, H as drawText, I as drawPointsInterpolation, L as drawPolysides, M as draw, N as drawCircle, P as drawEllipse, Q as sketchEllipse, R as drawRectangle, S as drawProjection, V as drawSingleEllipse, X as polysideInnerRadius, Y as makeBaseBox, Z as sketchCircle, _ as sketchLoft, a as drawingIntersect, at as Sketcher, b as sketchWires, c as rotateDrawing, d as compoundSketchExtrude, et as sketchHelix, f as compoundSketchFace, g as sketchFace, h as sketchExtrude, i as drawingFuse, it as sketchRoundedRectangle, j as deserializeDrawing, k as Drawing, l as scaleDrawing, m as compoundSketchRevolve, n as drawingCut, nt as sketchPolysides, o as drawingToSketchOnPlane, ot as Sketches, p as compoundSketchLoft, r as drawingFillet, rt as sketchRectangle, s as mirrorDrawing, st as CompoundSketch, t as drawingChamfer, tt as sketchParametricFunction, u as translateDrawing, v as sketchRevolve, x as drawFaceOutline, y as sketchSweep, z as drawRoundedRectangle } from "./drawFns-
|
|
1
|
+
import { d as FaceSketcher, f as Sketch, l as BaseSketcher2d, u as BlueprintSketcher } from "./boolean2D-B-l_kvhp.js";
|
|
2
|
+
import { $ as sketchFaceOffset, A as DrawingPen, B as drawSingleCircle, F as drawParametricFunction, H as drawText, I as drawPointsInterpolation, L as drawPolysides, M as draw, N as drawCircle, P as drawEllipse, Q as sketchEllipse, R as drawRectangle, S as drawProjection, V as drawSingleEllipse, X as polysideInnerRadius, Y as makeBaseBox, Z as sketchCircle, _ as sketchLoft, a as drawingIntersect, at as Sketcher, b as sketchWires, c as rotateDrawing, d as compoundSketchExtrude, et as sketchHelix, f as compoundSketchFace, g as sketchFace, h as sketchExtrude, i as drawingFuse, it as sketchRoundedRectangle, j as deserializeDrawing, k as Drawing, l as scaleDrawing, m as compoundSketchRevolve, n as drawingCut, nt as sketchPolysides, o as drawingToSketchOnPlane, ot as Sketches, p as compoundSketchLoft, r as drawingFillet, rt as sketchRectangle, s as mirrorDrawing, st as CompoundSketch, t as drawingChamfer, tt as sketchParametricFunction, u as translateDrawing, v as sketchRevolve, x as drawFaceOutline, y as sketchSweep, z as drawRoundedRectangle } from "./drawFns-TaKrwQ13.js";
|
|
3
3
|
//#region src/sketching.ts
|
|
4
4
|
/**
|
|
5
5
|
* brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modifierFns.d.ts","sourceRoot":"","sources":["../../src/topology/modifierFns.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,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,KAAK,EAAE,aAAa,CAAC,oBAAoB,CAAC,GACzC,MAAM,CAAC,UAAU,CAAC,CAiDpB"}
|
package/dist/topology.cjs
CHANGED
|
@@ -4,7 +4,7 @@ const require_shapeFns = require("./shapeFns-DkFzoJav.cjs");
|
|
|
4
4
|
const require_curveFns = require("./curveFns-Bukd9jhv.cjs");
|
|
5
5
|
const require_meshFns = require("./meshFns-CO9qVJ24.cjs");
|
|
6
6
|
const require_booleanFns = require("./booleanFns-CQNV8MMq.cjs");
|
|
7
|
-
const require_primitiveFns = require("./primitiveFns-
|
|
7
|
+
const require_primitiveFns = require("./primitiveFns-CL6lNda-.cjs");
|
|
8
8
|
exports.addHoles = require_primitiveFns.addHoles;
|
|
9
9
|
exports.adjacentFaces = require_primitiveFns.adjacentFaces;
|
|
10
10
|
exports.approximateCurve = require_curveFns.approximateCurve;
|
package/dist/topology.js
CHANGED
|
@@ -3,5 +3,5 @@ import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFn
|
|
|
3
3
|
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-Dn4gbNzG.js";
|
|
4
4
|
import { c as createMeshCache, n as exportSTEP, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-gTPomZkK.js";
|
|
5
5
|
import { a as fuseAll, r as cutAll } from "./booleanFns-D_DVbfzR.js";
|
|
6
|
-
import { $ as getNurbsSurfaceData, A as fixShape, C as threePointArc, D as wireLoop, E as wire, G as chamferWithEvolution, I as solidFromShell, J as fuseWithEvolution, K as cutWithEvolution, M as healFace, N as healSolid, O as autoHeal, P as healWire, Q as getNurbsCurveData, S as tangentArc, T as vertex, U as variableFillet, W as positionOnCurve, X as shellWithEvolution, Y as intersectWithEvolution, Z as checkBoolean, _ as polygon, a as circle, at as wiresOfFace, b as sphere, c as cylinder, ct as toGroupedBufferGeometryData, d as ellipsoid, et as adjacentFaces, f as face, g as offsetFace, h as line, i as bsplineApprox, it as verticesOfEdge, k as fixSelfIntersection, l as ellipse, m as helix, n as bezier, nt as facesOfEdge, o as compound, ot as chamferDistAngle, p as filledFace, q as filletWithEvolution, r as box, rt as sharedEdges, s as cone, st as toBufferGeometryData, t as addHoles, tt as edgesOfFace, u as ellipseArc, ut as toLineGeometryData, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-
|
|
6
|
+
import { $ as getNurbsSurfaceData, A as fixShape, C as threePointArc, D as wireLoop, E as wire, G as chamferWithEvolution, I as solidFromShell, J as fuseWithEvolution, K as cutWithEvolution, M as healFace, N as healSolid, O as autoHeal, P as healWire, Q as getNurbsCurveData, S as tangentArc, T as vertex, U as variableFillet, W as positionOnCurve, X as shellWithEvolution, Y as intersectWithEvolution, Z as checkBoolean, _ as polygon, a as circle, at as wiresOfFace, b as sphere, c as cylinder, ct as toGroupedBufferGeometryData, d as ellipsoid, et as adjacentFaces, f as face, g as offsetFace, h as line, i as bsplineApprox, it as verticesOfEdge, k as fixSelfIntersection, l as ellipse, m as helix, n as bezier, nt as facesOfEdge, o as compound, ot as chamferDistAngle, p as filledFace, q as filletWithEvolution, r as box, rt as sharedEdges, s as cone, st as toBufferGeometryData, t as addHoles, tt as edgesOfFace, u as ellipseArc, ut as toLineGeometryData, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-BAifgHMW.js";
|
|
7
7
|
export { addHoles, adjacentFaces, approximateCurve, asTopo, autoHeal, bezier, box, bsplineApprox, cast, chamferDistAngle as chamferDistAngleShape, chamferWithEvolution, checkBoolean, circle, classifyPointOnFace, clearMeshCache, compound, cone, createMeshCache, curveEndPoint, curveIsClosed, curveIsPeriodic, curveLength, curvePeriod, curvePointAt, curveStartPoint, curveTangentAt, cutAll, cutWithEvolution, cylinder, fromBREP as deserializeShape, downcast, edgesOfFace, ellipse, ellipseArc, ellipsoid, exportIGES, exportSTEP, exportSTL, face, faceCenter, faceGeomType, faceOrientation, facesOfEdge, filledFace, filletWithEvolution, fixSelfIntersection, fixShape, flipFaceOrientation, flipOrientation, fuseAll, fuseWithEvolution, getBounds, getCurveType, getEdges, getFaces, getHashCode, getNurbsCurveData, getNurbsSurfaceData, getOrientation, getSurfaceType, getVertices, getWires, healFace, healSolid, healWire, helix, innerWires, interpolateCurve, intersectWithEvolution, invalidateShapeCache, isCompSolid, isEqualShape, isSameShape, iterEdges, iterFaces, iterTopo, iterVertices, iterWires, line, normalAt, offsetFace, offsetWire2D, outerWire, pointOnSurface, polygon, positionOnCurve, projectPointOnFace, sewShells, shapeType, sharedEdges, shellWithEvolution, solid, solidFromShell, sphere, subFace, tangentArc, threePointArc, toBufferGeometryData, toGroupedBufferGeometryData, toLineGeometryData, torus, uvBounds, uvCoordinates, variableFillet, vertex, vertexPosition, verticesOfEdge, wire, wireLoop, wiresOfFace };
|