brepjs 14.4.2 → 14.5.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 +5 -5
- package/dist/2d.js +5 -5
- package/dist/{blueprint-B8rEQQdf.js → blueprint-DFEgFJYq.js} +5 -5
- package/dist/{blueprint-C1RD1rAU.cjs → blueprint-Dy7ARPXJ.cjs} +5 -5
- package/dist/{blueprintFns-BPoxNVIv.js → blueprintFns-Dc000lbc.js} +2 -2
- package/dist/{blueprintFns-Bilzq76z.cjs → blueprintFns-H2WJG5n2.cjs} +2 -2
- package/dist/{boolean2D-BhbQR9n5.cjs → boolean2D-Bsdb31mM.cjs} +7 -7
- package/dist/{boolean2D-CM-RGkmM.js → boolean2D-Bw-6hKCf.js} +7 -7
- package/dist/{booleanFns-DrG85G2W.cjs → booleanFns-BLDTDLSF.cjs} +51 -3
- package/dist/{booleanFns-Kn0xAXHX.js → booleanFns-D-U1zAnb.js} +46 -4
- package/dist/brepjs.cjs +20 -19
- package/dist/brepjs.js +20 -20
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-Cgz_yVTl.js → cornerFinder-B6rKiYRI.js} +1 -1
- package/dist/{cornerFinder-DcTlpavc.cjs → cornerFinder-TYHShzGu.cjs} +1 -1
- package/dist/{curveFns-DxeAWfSe.js → curveFns-DLlD1hFL.js} +1 -1
- package/dist/{curveFns-Dp1LYNHp.cjs → curveFns-DZQqrcS8.cjs} +1 -1
- package/dist/{drawFns-BWSOeCPI.js → drawFns-CUqNgF0l.js} +11 -11
- package/dist/{drawFns-B-V2Okjj.cjs → drawFns-CvuNVDJc.cjs} +11 -11
- package/dist/{extrudeFns-C4_eTRoy.cjs → extrudeFns-C2dk_SwT.cjs} +1 -1
- package/dist/{extrudeFns-BlynH9YI.js → extrudeFns-D83bFc01.js} +1 -1
- package/dist/{faceFns-B68JCstG.cjs → faceFns-DVeZQZfD.cjs} +1 -1
- package/dist/{faceFns-C4DVYLxO.js → faceFns-iqaDWGL2.js} +1 -1
- package/dist/{helpers-DeLTd7PH.cjs → helpers-DcOHqOfT.cjs} +5 -5
- package/dist/{helpers-B_k7J_4D.js → helpers-HH_F9BEl.js} +5 -5
- package/dist/{historyFns-D-1_ncCz.cjs → historyFns-By2rvfdT.cjs} +4 -4
- package/dist/{historyFns-cW_Dcz2M.js → historyFns-C5LVTRMt.js} +4 -4
- package/dist/{importFns-BLbkoMr-.js → importFns-CAjnoUsl.js} +2 -2
- package/dist/{importFns-Be58G9Qg.cjs → importFns-Cg8ra1G0.cjs} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/interfaces/booleanOps.d.ts +8 -0
- package/dist/kernel/interfaces/booleanOps.d.ts.map +1 -1
- package/dist/kernel/occt/booleanPipelineOps.d.ts +17 -0
- package/dist/kernel/occt/booleanPipelineOps.d.ts.map +1 -0
- package/dist/kernel/occt/defaultAdapter.d.ts +7 -0
- package/dist/kernel/occt/defaultAdapter.d.ts.map +1 -1
- package/dist/{measureFns-zT6IVHAu.js → measureFns-C0ExdINB.js} +2 -2
- package/dist/{measureFns-CGnA2Hz1.cjs → measureFns-DSukVpI5.cjs} +2 -2
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-BDJ7GT7C.js → meshFns-B1hHBGHc.js} +2 -2
- package/dist/{meshFns-B6Q3ymfV.cjs → meshFns-GMWq80aT.cjs} +2 -2
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-CYpiAvj4.cjs → primitiveFns-DFzP5EBQ.cjs} +5 -5
- package/dist/{primitiveFns-DdGSiMcZ.js → primitiveFns-WminpA8h.js} +5 -5
- package/dist/query.cjs +2 -2
- package/dist/query.js +2 -2
- package/dist/{shapeFns-DUbyg6UB.js → shapeFns-BW0QajQq.js} +2 -2
- package/dist/{shapeFns-CCrR-7JE.cjs → shapeFns-DqOoRUkg.cjs} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeRefFns-DOdTZgmb.js → shapeRefFns-C3GwXcJ2.js} +3 -3
- package/dist/{shapeRefFns-CPPOk97a.cjs → shapeRefFns-DbAIYWMa.cjs} +3 -3
- package/dist/{shapeTypes-06dQA9ET.js → shapeTypes-CvGzaTYd.js} +30 -0
- package/dist/{shapeTypes-BnE1sBpb.cjs → shapeTypes-h0bo6yCZ.cjs} +30 -0
- package/dist/sketching.cjs +2 -2
- package/dist/sketching.js +2 -2
- package/dist/{solidBuilders-Z_qVHPZi.cjs → solidBuilders-Buy3oAve.cjs} +2 -2
- package/dist/{solidBuilders-B79DrN13.js → solidBuilders-Cf9BpIew.js} +2 -2
- package/dist/{surfaceBuilders-DPgf9Azk.cjs → surfaceBuilders-CSkzjM8v.cjs} +2 -2
- package/dist/{surfaceBuilders-bHZt62DR.js → surfaceBuilders-XPdFhdcS.js} +2 -2
- package/dist/topology/booleanFns.d.ts +18 -0
- package/dist/topology/booleanFns.d.ts.map +1 -1
- package/dist/topology.cjs +6 -6
- package/dist/topology.js +6 -6
- package/package.json +1 -1
|
@@ -918,6 +918,33 @@ function checkBoolean$1(_oc, shape, tool, _op, isValid) {
|
|
|
918
918
|
};
|
|
919
919
|
}
|
|
920
920
|
//#endregion
|
|
921
|
+
//#region src/kernel/occt/booleanPipelineOps.ts
|
|
922
|
+
var OP_CODES = {
|
|
923
|
+
fuse: 0,
|
|
924
|
+
cut: 1,
|
|
925
|
+
intersect: 2
|
|
926
|
+
};
|
|
927
|
+
/**
|
|
928
|
+
* Execute a chained boolean pipeline.
|
|
929
|
+
* Uses C++ BooleanPipeline when available (zero JS↔WASM bridge crossings
|
|
930
|
+
* between steps, auto-skips UnifySameDomain on intermediates).
|
|
931
|
+
* Returns undefined when C++ class is unavailable.
|
|
932
|
+
*/
|
|
933
|
+
function executeBooleanPipeline(oc, base, steps, options = {}) {
|
|
934
|
+
const { glueMode = 0, fuzzyValue = 0 } = options;
|
|
935
|
+
if (typeof oc.BooleanPipeline === "function") {
|
|
936
|
+
const pipeline = new oc.BooleanPipeline();
|
|
937
|
+
try {
|
|
938
|
+
for (const step of steps) pipeline.addStep(OP_CODES[step.op], step.tool);
|
|
939
|
+
const result = pipeline.execute(base, glueMode, fuzzyValue);
|
|
940
|
+
if (result.IsNull()) return null;
|
|
941
|
+
return result;
|
|
942
|
+
} finally {
|
|
943
|
+
pipeline.delete();
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
//#endregion
|
|
921
948
|
//#region src/kernel/occt/meshOps.ts
|
|
922
949
|
/** Slice a Float32Array from the WASM heap, or return empty if size is 0. */
|
|
923
950
|
function sliceF32(heap, ptr, size) {
|
|
@@ -5718,6 +5745,9 @@ var DefaultAdapter = class {
|
|
|
5718
5745
|
meshBoolean(_positionsA, _indicesA, _positionsB, _indicesB, _op, _tolerance) {
|
|
5719
5746
|
throw new Error("meshBoolean is only available with the brepkit kernel");
|
|
5720
5747
|
}
|
|
5748
|
+
booleanPipeline(base, steps, options) {
|
|
5749
|
+
return executeBooleanPipeline(this.oc, base, steps, options);
|
|
5750
|
+
}
|
|
5721
5751
|
edgeToFaceMap(_shape) {
|
|
5722
5752
|
throw new Error("edgeToFaceMap is only available with the brepkit kernel");
|
|
5723
5753
|
}
|
|
@@ -918,6 +918,33 @@ function checkBoolean$1(_oc, shape, tool, _op, isValid) {
|
|
|
918
918
|
};
|
|
919
919
|
}
|
|
920
920
|
//#endregion
|
|
921
|
+
//#region src/kernel/occt/booleanPipelineOps.ts
|
|
922
|
+
var OP_CODES = {
|
|
923
|
+
fuse: 0,
|
|
924
|
+
cut: 1,
|
|
925
|
+
intersect: 2
|
|
926
|
+
};
|
|
927
|
+
/**
|
|
928
|
+
* Execute a chained boolean pipeline.
|
|
929
|
+
* Uses C++ BooleanPipeline when available (zero JS↔WASM bridge crossings
|
|
930
|
+
* between steps, auto-skips UnifySameDomain on intermediates).
|
|
931
|
+
* Returns undefined when C++ class is unavailable.
|
|
932
|
+
*/
|
|
933
|
+
function executeBooleanPipeline(oc, base, steps, options = {}) {
|
|
934
|
+
const { glueMode = 0, fuzzyValue = 0 } = options;
|
|
935
|
+
if (typeof oc.BooleanPipeline === "function") {
|
|
936
|
+
const pipeline = new oc.BooleanPipeline();
|
|
937
|
+
try {
|
|
938
|
+
for (const step of steps) pipeline.addStep(OP_CODES[step.op], step.tool);
|
|
939
|
+
const result = pipeline.execute(base, glueMode, fuzzyValue);
|
|
940
|
+
if (result.IsNull()) return null;
|
|
941
|
+
return result;
|
|
942
|
+
} finally {
|
|
943
|
+
pipeline.delete();
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
//#endregion
|
|
921
948
|
//#region src/kernel/occt/meshOps.ts
|
|
922
949
|
/** Slice a Float32Array from the WASM heap, or return empty if size is 0. */
|
|
923
950
|
function sliceF32(heap, ptr, size) {
|
|
@@ -5718,6 +5745,9 @@ var DefaultAdapter = class {
|
|
|
5718
5745
|
meshBoolean(_positionsA, _indicesA, _positionsB, _indicesB, _op, _tolerance) {
|
|
5719
5746
|
throw new Error("meshBoolean is only available with the brepkit kernel");
|
|
5720
5747
|
}
|
|
5748
|
+
booleanPipeline(base, steps, options) {
|
|
5749
|
+
return executeBooleanPipeline(this.oc, base, steps, options);
|
|
5750
|
+
}
|
|
5721
5751
|
edgeToFaceMap(_shape) {
|
|
5722
5752
|
throw new Error("edgeToFaceMap is only available with the brepkit kernel");
|
|
5723
5753
|
}
|
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-CvuNVDJc.cjs");
|
|
3
|
+
const require_boolean2D = require("./boolean2D-Bsdb31mM.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-Bw-6hKCf.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-CUqNgF0l.js";
|
|
3
3
|
//#region src/sketching.ts
|
|
4
4
|
/**
|
|
5
5
|
* 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-h0bo6yCZ.cjs");
|
|
2
2
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-DVeZQZfD.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 { Y as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-
|
|
1
|
+
import { Y as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-CvGzaTYd.js";
|
|
2
2
|
import { A as ok, R as unwrap, b as err, l as typeCastError, v as andThen } from "./errors-C-cgQA3w.js";
|
|
3
|
-
import { _ as downcast, g as cast } from "./faceFns-
|
|
3
|
+
import { _ as downcast, g as cast } from "./faceFns-iqaDWGL2.js";
|
|
4
4
|
//#region src/topology/shapeUtils.ts
|
|
5
5
|
/**
|
|
6
6
|
* Shape assembly utilities — welding and sewing operations.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-h0bo6yCZ.cjs");
|
|
2
2
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-DVeZQZfD.cjs");
|
|
4
4
|
//#region src/utils/range.ts
|
|
5
5
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
6
6
|
function range(len) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Y as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-
|
|
1
|
+
import { Y as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-CvGzaTYd.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, i as kernelError, v as andThen } from "./errors-C-cgQA3w.js";
|
|
3
|
-
import { g as cast, l as outerWire } from "./faceFns-
|
|
3
|
+
import { g as cast, l as outerWire } from "./faceFns-iqaDWGL2.js";
|
|
4
4
|
//#region src/utils/range.ts
|
|
5
5
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
6
6
|
function range(len) {
|
|
@@ -121,4 +121,22 @@ export declare function slice(shape: AnyShape<Dimension>, planes: PlaneInput[],
|
|
|
121
121
|
approximation?: boolean;
|
|
122
122
|
planeSize?: number;
|
|
123
123
|
}): Result<AnyShape<Dimension>[]>;
|
|
124
|
+
export type PipelineOp = 'fuse' | 'cut' | 'intersect';
|
|
125
|
+
export interface BooleanPipelineStep {
|
|
126
|
+
readonly op: PipelineOp;
|
|
127
|
+
readonly tool: Shape3D;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Execute a chained boolean pipeline in a single WASM call.
|
|
131
|
+
*
|
|
132
|
+
* More efficient than sequential fuse/cut calls for long chains (e.g., 16-step
|
|
133
|
+
* spiral staircase). Skips UnifySameDomain on intermediate results — only
|
|
134
|
+
* simplifies the final shape.
|
|
135
|
+
*
|
|
136
|
+
* Falls back to sequential operations when the C++ pipeline class is not
|
|
137
|
+
* available in the WASM build.
|
|
138
|
+
*/
|
|
139
|
+
export declare function booleanPipeline(base: Shape3D, steps: readonly BooleanPipelineStep[], options?: {
|
|
140
|
+
readonly optimisation?: 'none' | 'commonFace' | 'sameFace' | undefined;
|
|
141
|
+
}): Result<Shape3D>;
|
|
124
142
|
//# sourceMappingURL=booleanFns.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"booleanFns.d.ts","sourceRoot":"","sources":["../../src/topology/booleanFns.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EACV,QAAQ,EAER,SAAS,EAET,YAAY,EAEZ,OAAO,EAGR,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,KAAK,MAAM,EAA0B,MAAM,kBAAkB,CAAC;AAGvE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AA+BvD,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,mBAAmB,CAAC;AAC5E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,YAAY,EAAE,cAAc,EAAE,CAAC;AA+C/B;;;;;;;;;;;;;GAaG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AACjG,wBAAgB,IAAI,CAClB,CAAC,EAAE,OAAO,EACV,CAAC,EAAE,OAAO,EACV,OAAO,EAAE,cAAc,GAAG;IAAE,MAAM,EAAE,IAAI,CAAA;CAAE,GACzC,MAAM,CAAC,OAAO,CAAC,CAAC;AA8DnB;;;;;;;;;;;;GAYG;AACH,wBAAgB,GAA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CAAC,EAC1B,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,GAC3B,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAmC7B;AAMD;;;GAGG;AACH,wBAAgB,KAAK,CACnB,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,EAC1B,MAAM,EAAE,UAAU,EAAE,EACpB,OAAO,GAAE;IAAE,aAAa,CAAC,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAO,GAC5D,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,CAQ/B;AAMD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,KAAK,GAAG,WAAW,CAAC;AAEtD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;CACxB;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,OAAO,EACb,KAAK,EAAE,SAAS,mBAAmB,EAAE,EACrC,OAAO,CAAC,EAAE;IACR,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,UAAU,GAAG,SAAS,CAAC;CACxE,GACA,MAAM,CAAC,OAAO,CAAC,CA8BjB"}
|
package/dist/topology.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
-
const require_shapeFns = require("./shapeFns-
|
|
4
|
-
const require_curveFns = require("./curveFns-
|
|
5
|
-
const require_meshFns = require("./meshFns-
|
|
6
|
-
const require_booleanFns = require("./booleanFns-
|
|
7
|
-
const require_primitiveFns = require("./primitiveFns-
|
|
2
|
+
const require_faceFns = require("./faceFns-DVeZQZfD.cjs");
|
|
3
|
+
const require_shapeFns = require("./shapeFns-DqOoRUkg.cjs");
|
|
4
|
+
const require_curveFns = require("./curveFns-DZQqrcS8.cjs");
|
|
5
|
+
const require_meshFns = require("./meshFns-GMWq80aT.cjs");
|
|
6
|
+
const require_booleanFns = require("./booleanFns-BLDTDLSF.cjs");
|
|
7
|
+
const require_primitiveFns = require("./primitiveFns-DFzP5EBQ.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
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as downcast, a as flipFaceOrientation, b as iterTopo, c as normalAt, d as projectPointOnFace, g as cast, h as asTopo, i as faceOrientation, l as outerWire, m as uvCoordinates, n as faceCenter, o as getSurfaceType, p as uvBounds, r as faceGeomType, s as innerWires, t as classifyPointOnFace, u as pointOnSurface, v as fromBREP, x as shapeType, y as isCompSolid } from "./faceFns-
|
|
2
|
-
import { B as iterVertices, F as getVertices, H as vertexPosition, I as getWires, L as invalidateShapeCache, M as getEdges, N as getFaces, R as iterEdges, V as iterWires, a as isSameShape, i as isEqualShape, j as getBounds, n as getHashCode, z as iterFaces } from "./shapeFns-
|
|
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-
|
|
4
|
-
import { n as exportSTEP, o as clearMeshCache, r as exportSTL, s as createMeshCache, t as exportIGES } from "./meshFns-
|
|
5
|
-
import {
|
|
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, lt as toLineGeometryData, 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, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-
|
|
1
|
+
import { _ as downcast, a as flipFaceOrientation, b as iterTopo, c as normalAt, d as projectPointOnFace, g as cast, h as asTopo, i as faceOrientation, l as outerWire, m as uvCoordinates, n as faceCenter, o as getSurfaceType, p as uvBounds, r as faceGeomType, s as innerWires, t as classifyPointOnFace, u as pointOnSurface, v as fromBREP, x as shapeType, y as isCompSolid } from "./faceFns-iqaDWGL2.js";
|
|
2
|
+
import { B as iterVertices, F as getVertices, H as vertexPosition, I as getWires, L as invalidateShapeCache, M as getEdges, N as getFaces, R as iterEdges, V as iterWires, a as isSameShape, i as isEqualShape, j as getBounds, n as getHashCode, z as iterFaces } from "./shapeFns-BW0QajQq.js";
|
|
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-DLlD1hFL.js";
|
|
4
|
+
import { n as exportSTEP, o as clearMeshCache, r as exportSTL, s as createMeshCache, t as exportIGES } from "./meshFns-B1hHBGHc.js";
|
|
5
|
+
import { a as fuseAll, r as cutAll } from "./booleanFns-D-U1zAnb.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, lt as toLineGeometryData, 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, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-WminpA8h.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 };
|