brepjs 20.0.0 → 20.0.1
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/{adjacencyFns-DkWknlaR.js → adjacencyFns-BOBaGnQ-.js} +2 -2
- package/dist/{adjacencyFns-Cdat1ofi.cjs → adjacencyFns-lCrjQUQr.cjs} +2 -2
- package/dist/{blueprint-DOwwe5gw.cjs → blueprint-C8-OnlmZ.cjs} +5 -5
- package/dist/{blueprint-22kW0ICa.js → blueprint-DlFhP2Qh.js} +5 -5
- package/dist/{blueprintFns-Bwi75Szr.js → blueprintFns-BniwPQ5Y.js} +2 -2
- package/dist/{blueprintFns-DRTfqZsZ.cjs → blueprintFns-CnbCEsbH.cjs} +2 -2
- package/dist/{blueprintSketcher-CxxS52ZI.cjs → blueprintSketcher-DooDamYd.cjs} +3 -3
- package/dist/{blueprintSketcher-DW3WMfm2.js → blueprintSketcher-kSDNNuEJ.js} +3 -3
- package/dist/{boolean2D-DLe9jy53.js → boolean2D-B7qLwMXL.js} +4 -4
- package/dist/{boolean2D-BYHxSbDH.cjs → boolean2D-DWWRN2RX.cjs} +4 -4
- package/dist/brepjs.cjs +28 -28
- package/dist/brepjs.js +28 -28
- package/dist/{cameraFns-DCUsH23g.cjs → cameraFns-DHCT80lC.cjs} +3 -3
- package/dist/{cameraFns-DtaivMYa.js → cameraFns-npky8h1N.js} +3 -3
- package/dist/core.cjs +2 -2
- package/dist/core.js +2 -2
- package/dist/{cornerFinder-B6L3zTOA.js → cornerFinder-CEarkgO9.js} +1 -1
- package/dist/{cornerFinder-DIewkspO.cjs → cornerFinder-Dy1lzQTB.cjs} +1 -1
- package/dist/{curveFns-C0zENjCi.js → curveFns-n7htUStC.js} +1 -1
- package/dist/{curveFns-1e6j5nXW.cjs → curveFns-qVcljEvc.cjs} +1 -1
- package/dist/{drawFns-BUB7YeKu.js → drawFns-CBSjbn4X.js} +12 -12
- package/dist/{drawFns-Cu61XWtX.cjs → drawFns-VAreKNtB.cjs} +12 -12
- package/dist/{faceFns-Qo7nIMc6.js → faceFns-CQyNJard.js} +2 -2
- package/dist/{faceFns-BinRdCKC.cjs → faceFns-s7QRCW8A.cjs} +2 -2
- package/dist/{healingFns--idy5knW.js → healingFns-C1Vwru9B.js} +4 -4
- package/dist/{healingFns-K2mKlcGA.cjs → healingFns-CDmIZyqk.cjs} +4 -4
- package/dist/{helpers-CavGK8r0.cjs → helpers-BSo7hpSE.cjs} +6 -6
- package/dist/{helpers-CT29THg0.js → helpers-DVdxPyq2.js} +6 -6
- package/dist/{importFns-rCT3bzrO.js → importFns-BU_WjaNS.js} +2 -2
- package/dist/{importFns-B3-31QaN.cjs → importFns-BjV9G5z6.cjs} +2 -2
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/occt/booleanOps.d.ts +9 -1
- package/dist/{loftFns-ByrWfSBX.js → loftFns-DDdoMjxj.js} +1 -1
- package/dist/{loftFns-BigHFXTf.cjs → loftFns-suyWruNr.cjs} +1 -1
- package/dist/{measureFns-CLsw9fTy.cjs → measureFns-DLTeuGwQ.cjs} +3 -3
- package/dist/{measureFns-BfkCmmb-.js → measureFns-DMr_rq2J.js} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-1SLb656s.cjs → meshFns-Crgr_uib.cjs} +3 -3
- package/dist/{meshFns-CkvvMsIk.js → meshFns-qV2fL7DY.js} +3 -3
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{originTrackingFns-CLSjfAXP.js → originTrackingFns-BbRMIrPd.js} +2 -2
- package/dist/{originTrackingFns-q7xmSJHd.cjs → originTrackingFns-CIXgTLuX.cjs} +2 -2
- package/dist/{primitiveFns-CQy3iiv_.js → primitiveFns-CM-WtrDU.js} +4 -4
- package/dist/{primitiveFns-DwuH8FF1.cjs → primitiveFns-DHTDymOR.cjs} +4 -4
- package/dist/projection.cjs +1 -1
- package/dist/projection.js +1 -1
- package/dist/query.cjs +2 -2
- package/dist/query.js +2 -2
- package/dist/{refResolveFns-DjmIp8gz.js → refResolveFns-Caq9pEFX.js} +6 -6
- package/dist/{refResolveFns-C16KmO4z.cjs → refResolveFns-W0eI7vrV.cjs} +6 -6
- package/dist/{shapeFns-KcSNOAAv.cjs → shapeFns-DnTR5fGL.cjs} +2 -2
- package/dist/{shapeFns-C3EC8Fqp.js → shapeFns-abxGUiRi.js} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeTypes-DweqaALJ.cjs → shapeTypes-D6N6FPC9.cjs} +67 -75
- package/dist/{shapeTypes-BTaEiG1y.js → shapeTypes-DgcXaWoK.js} +67 -75
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-2Ho4kcPL.js → solidBuilders-DCVpjCr4.js} +5 -5
- package/dist/{solidBuilders-BeumT5UD.cjs → solidBuilders-DnUQIIh-.cjs} +5 -5
- package/dist/{surfaceBuilders-DjhGZZvn.cjs → surfaceBuilders-DZ4qaEMP.cjs} +3 -3
- package/dist/{surfaceBuilders-COaytSqx.js → surfaceBuilders-wEh6hNcZ.js} +3 -3
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-Twdvzb1E.js → textBlueprints-CJyJx8VV.js} +7 -7
- package/dist/{textBlueprints-I09VlWfS.cjs → textBlueprints-Cx7nEADC.cjs} +7 -7
- package/dist/{textMetrics-B8De13Tj.cjs → textMetrics-C7yaPJuS.cjs} +1 -1
- package/dist/{textMetrics-H5m5OzGy.js → textMetrics-ZDLgofee.js} +1 -1
- package/dist/{threadFns-Wqbi-SRj.js → threadFns-Dnr7QEbq.js} +7 -7
- package/dist/{threadFns-CMhXBzUL.cjs → threadFns-xQF8IS-h.cjs} +7 -7
- package/dist/topology.cjs +9 -9
- package/dist/topology.js +9 -9
- package/dist/{topologyQueryFns-Cqb0bLW1.cjs → topologyQueryFns-DhWju_Rg.cjs} +1 -1
- package/dist/{topologyQueryFns-Dsdk7qnz.js → topologyQueryFns-gVaVV1Nt.js} +1 -1
- package/dist/{validityTypes-9nuI6V2T.cjs → validityTypes-Bh3tqEzS.cjs} +1 -1
- package/dist/{validityTypes-DzFB9IQW.js → validityTypes-swMGQ5f2.js} +1 -1
- package/package.json +13 -13
|
@@ -529,6 +529,33 @@ function makeTopologyOps$2(oc) {
|
|
|
529
529
|
/** Tolerance passed to OCCT SimplifyResult (ShapeUpgrade_UnifySameDomain). */
|
|
530
530
|
var SIMPLIFY_TOLERANCE = .001;
|
|
531
531
|
/**
|
|
532
|
+
* Construct a two-operand boolean with its operands set but not yet built.
|
|
533
|
+
*
|
|
534
|
+
* The `BRepAlgoAPI_*_3(shape, tool, progress)` constructors run the boolean
|
|
535
|
+
* immediately, and `Build()` clears and recomputes it, so building one of those
|
|
536
|
+
* again computed every boolean twice. Apply glue/OBB/fuzzy, then build once.
|
|
537
|
+
*/
|
|
538
|
+
function newTwoOperandBoolean(oc, kind, shape, tool) {
|
|
539
|
+
const op = kind === "Fuse" ? new oc.BRepAlgoAPI_Fuse_1() : kind === "Cut" ? new oc.BRepAlgoAPI_Cut_1() : new oc.BRepAlgoAPI_Common_1();
|
|
540
|
+
let args;
|
|
541
|
+
let tools;
|
|
542
|
+
try {
|
|
543
|
+
args = new oc.TopTools_ListOfShape_1();
|
|
544
|
+
tools = new oc.TopTools_ListOfShape_1();
|
|
545
|
+
args.Append_1(shape);
|
|
546
|
+
tools.Append_1(tool);
|
|
547
|
+
op.SetArguments(args);
|
|
548
|
+
op.SetTools(tools);
|
|
549
|
+
} catch (e) {
|
|
550
|
+
op.delete();
|
|
551
|
+
throw e;
|
|
552
|
+
} finally {
|
|
553
|
+
args?.delete();
|
|
554
|
+
tools?.delete();
|
|
555
|
+
}
|
|
556
|
+
return op;
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
532
559
|
* Applies glue optimization to a boolean operation builder.
|
|
533
560
|
*/
|
|
534
561
|
function applyGlue(oc, op, optimisation) {
|
|
@@ -588,67 +615,44 @@ function buildCompound(oc, shapes) {
|
|
|
588
615
|
return compound;
|
|
589
616
|
}
|
|
590
617
|
/**
|
|
591
|
-
*
|
|
618
|
+
* Runs a two-operand boolean with the given options, releasing the op and its
|
|
619
|
+
* progress range on every path.
|
|
592
620
|
*/
|
|
593
|
-
function
|
|
621
|
+
function runTwoOperandBoolean(oc, kind, shape, tool, options) {
|
|
594
622
|
const end = perfTimer("boolean");
|
|
623
|
+
const { optimisation, simplify = false, fuzzyValue } = options;
|
|
624
|
+
const progress = new oc.Message_ProgressRange_1();
|
|
625
|
+
let op;
|
|
595
626
|
try {
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
if (simplify) fuseOp.SimplifyResult(true, true, SIMPLIFY_TOLERANCE);
|
|
603
|
-
const result = fuseOp.Shape();
|
|
604
|
-
fuseOp.delete();
|
|
605
|
-
progress.delete();
|
|
606
|
-
return result;
|
|
627
|
+
op = newTwoOperandBoolean(oc, kind, shape, tool);
|
|
628
|
+
applyGlue(oc, op, optimisation);
|
|
629
|
+
applyBooleanDefaults(op, fuzzyValue);
|
|
630
|
+
op.Build(progress);
|
|
631
|
+
if (simplify) op.SimplifyResult(true, true, SIMPLIFY_TOLERANCE);
|
|
632
|
+
return op.Shape();
|
|
607
633
|
} finally {
|
|
634
|
+
op?.delete();
|
|
635
|
+
progress.delete();
|
|
608
636
|
end();
|
|
609
637
|
}
|
|
610
638
|
}
|
|
611
639
|
/**
|
|
640
|
+
* Fuses two shapes together.
|
|
641
|
+
*/
|
|
642
|
+
function fuse$1(oc, shape, tool, options = {}) {
|
|
643
|
+
return runTwoOperandBoolean(oc, "Fuse", shape, tool, options);
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
612
646
|
* Cuts a tool shape from a base shape.
|
|
613
647
|
*/
|
|
614
648
|
function cut$1(oc, shape, tool, options = {}) {
|
|
615
|
-
|
|
616
|
-
try {
|
|
617
|
-
const { optimisation, simplify = false, fuzzyValue } = options;
|
|
618
|
-
const progress = new oc.Message_ProgressRange_1();
|
|
619
|
-
const cutOp = new oc.BRepAlgoAPI_Cut_3(shape, tool, progress);
|
|
620
|
-
applyGlue(oc, cutOp, optimisation);
|
|
621
|
-
applyBooleanDefaults(cutOp, fuzzyValue);
|
|
622
|
-
cutOp.Build(progress);
|
|
623
|
-
if (simplify) cutOp.SimplifyResult(true, true, SIMPLIFY_TOLERANCE);
|
|
624
|
-
const result = cutOp.Shape();
|
|
625
|
-
cutOp.delete();
|
|
626
|
-
progress.delete();
|
|
627
|
-
return result;
|
|
628
|
-
} finally {
|
|
629
|
-
end();
|
|
630
|
-
}
|
|
649
|
+
return runTwoOperandBoolean(oc, "Cut", shape, tool, options);
|
|
631
650
|
}
|
|
632
651
|
/**
|
|
633
652
|
* Intersects two shapes.
|
|
634
653
|
*/
|
|
635
654
|
function intersect$1(oc, shape, tool, options = {}) {
|
|
636
|
-
|
|
637
|
-
try {
|
|
638
|
-
const { optimisation, simplify = false, fuzzyValue } = options;
|
|
639
|
-
const progress = new oc.Message_ProgressRange_1();
|
|
640
|
-
const commonOp = new oc.BRepAlgoAPI_Common_3(shape, tool, progress);
|
|
641
|
-
applyGlue(oc, commonOp, optimisation);
|
|
642
|
-
applyBooleanDefaults(commonOp, fuzzyValue);
|
|
643
|
-
commonOp.Build(progress);
|
|
644
|
-
if (simplify) commonOp.SimplifyResult(true, true, SIMPLIFY_TOLERANCE);
|
|
645
|
-
const result = commonOp.Shape();
|
|
646
|
-
commonOp.delete();
|
|
647
|
-
progress.delete();
|
|
648
|
-
return result;
|
|
649
|
-
} finally {
|
|
650
|
-
end();
|
|
651
|
-
}
|
|
655
|
+
return runTwoOperandBoolean(oc, "Common", shape, tool, options);
|
|
652
656
|
}
|
|
653
657
|
/**
|
|
654
658
|
* Sections a shape with another shape (typically a planar face), returning
|
|
@@ -3507,41 +3511,29 @@ function extractDiagnostics(op) {
|
|
|
3507
3511
|
messages: []
|
|
3508
3512
|
};
|
|
3509
3513
|
}
|
|
3510
|
-
function
|
|
3514
|
+
function twoOperandBooleanWithHistory(oc, kind, shape, tool, inputFaceHashes, hashUpperBound, options) {
|
|
3511
3515
|
const progress = new oc.Message_ProgressRange_1();
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3516
|
+
let op;
|
|
3517
|
+
try {
|
|
3518
|
+
op = newTwoOperandBoolean(oc, kind, shape, tool);
|
|
3519
|
+
applyGlue(oc, op, options.optimisation);
|
|
3520
|
+
applyBooleanDefaults(op, options.fuzzyValue);
|
|
3521
|
+
op.Build(progress);
|
|
3522
|
+
const diagnostics = extractDiagnostics(op);
|
|
3523
|
+
return booleanWithEvolution(oc, op, [shape, tool], inputFaceHashes, hashUpperBound, options.simplify ?? false, diagnostics);
|
|
3524
|
+
} finally {
|
|
3525
|
+
op?.delete();
|
|
3526
|
+
progress.delete();
|
|
3527
|
+
}
|
|
3528
|
+
}
|
|
3529
|
+
function fuseWithHistory$1(oc, shape, tool, inputFaceHashes, hashUpperBound, options = {}) {
|
|
3530
|
+
return twoOperandBooleanWithHistory(oc, "Fuse", shape, tool, inputFaceHashes, hashUpperBound, options);
|
|
3521
3531
|
}
|
|
3522
3532
|
function cutWithHistory$1(oc, shape, tool, inputFaceHashes, hashUpperBound, options = {}) {
|
|
3523
|
-
|
|
3524
|
-
const cutOp = new oc.BRepAlgoAPI_Cut_3(shape, tool, progress);
|
|
3525
|
-
applyGlue(oc, cutOp, options.optimisation);
|
|
3526
|
-
applyBooleanDefaults(cutOp, options.fuzzyValue);
|
|
3527
|
-
cutOp.Build(progress);
|
|
3528
|
-
const diagnostics = extractDiagnostics(cutOp);
|
|
3529
|
-
const result = booleanWithEvolution(oc, cutOp, [shape, tool], inputFaceHashes, hashUpperBound, options.simplify ?? false, diagnostics);
|
|
3530
|
-
cutOp.delete();
|
|
3531
|
-
progress.delete();
|
|
3532
|
-
return result;
|
|
3533
|
+
return twoOperandBooleanWithHistory(oc, "Cut", shape, tool, inputFaceHashes, hashUpperBound, options);
|
|
3533
3534
|
}
|
|
3534
3535
|
function intersectWithHistory$1(oc, shape, tool, inputFaceHashes, hashUpperBound, options = {}) {
|
|
3535
|
-
|
|
3536
|
-
const intOp = new oc.BRepAlgoAPI_Common_3(shape, tool, progress);
|
|
3537
|
-
applyGlue(oc, intOp, options.optimisation);
|
|
3538
|
-
applyBooleanDefaults(intOp, options.fuzzyValue);
|
|
3539
|
-
intOp.Build(progress);
|
|
3540
|
-
const diagnostics = extractDiagnostics(intOp);
|
|
3541
|
-
const result = booleanWithEvolution(oc, intOp, [shape, tool], inputFaceHashes, hashUpperBound, options.simplify ?? false, diagnostics);
|
|
3542
|
-
intOp.delete();
|
|
3543
|
-
progress.delete();
|
|
3544
|
-
return result;
|
|
3536
|
+
return twoOperandBooleanWithHistory(oc, "Common", shape, tool, inputFaceHashes, hashUpperBound, options);
|
|
3545
3537
|
}
|
|
3546
3538
|
function filletWithHistory$1(oc, shape, edges, radius, inputFaceHashes, hashUpperBound) {
|
|
3547
3539
|
const builder = new oc.BRepFilletAPI_MakeFillet(shape, oc.ChFi3d_FilletShape.ChFi3d_Rational);
|
package/dist/sketching.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_blueprintSketcher = require("./blueprintSketcher-
|
|
3
|
-
const require_drawFns = require("./drawFns-
|
|
4
|
-
const require_textBlueprints = require("./textBlueprints-
|
|
2
|
+
const require_blueprintSketcher = require("./blueprintSketcher-DooDamYd.cjs");
|
|
3
|
+
const require_drawFns = require("./drawFns-VAreKNtB.cjs");
|
|
4
|
+
const require_textBlueprints = require("./textBlueprints-Cx7nEADC.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-kSDNNuEJ.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-CBSjbn4X.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-CJyJx8VV.js";
|
|
4
4
|
//#region src/sketching.ts
|
|
5
5
|
/**
|
|
6
6
|
* brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { C as isSolid, D as getShapeKind, E as GeometryCleanupError, G as _usingCtx, S as isShell, d as createSolid, f as createVertex, h as disposeResultShape, n as castResultShape, q as getKernel, s as createCompound, x as isShape3D } from "./shapeTypes-
|
|
1
|
+
import { C as isSolid, D as getShapeKind, E as GeometryCleanupError, G as _usingCtx, S as isShell, d as createSolid, f as createVertex, h as disposeResultShape, n as castResultShape, q as getKernel, s as createCompound, x as isShape3D } from "./shapeTypes-DgcXaWoK.js";
|
|
2
2
|
import { E as ok, P as unwrap, b as isErr, d as validationError, g as err, i as kernelError, l as typeCastError, m as andThen, t as BrepErrorCode } from "./errors-CTn8i3lY.js";
|
|
3
|
-
import { S as subShapeHashes, c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-
|
|
3
|
+
import { S as subShapeHashes, c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-gVaVV1Nt.js";
|
|
4
4
|
import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
|
|
5
5
|
import { a as vecDot, g as vecSub, h as vecScale, t as vecAdd } from "./vecOps-SKPRvPH-.js";
|
|
6
6
|
import { o as resolvePlane } from "./planeOps-CkpMeheg.js";
|
|
7
|
-
import { _ as cast, y as downcast } from "./faceFns-
|
|
8
|
-
import { n as propagateOriginsByHash, r as propagateOriginsFromEvolution, t as getFaceOrigins } from "./originTrackingFns-
|
|
7
|
+
import { _ as cast, y as downcast } from "./faceFns-CQyNJard.js";
|
|
8
|
+
import { n as propagateOriginsByHash, r as propagateOriginsFromEvolution, t as getFaceOrigins } from "./originTrackingFns-BbRMIrPd.js";
|
|
9
9
|
import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
|
|
10
|
-
import { r as makeFace } from "./surfaceBuilders-
|
|
10
|
+
import { r as makeFace } from "./surfaceBuilders-wEh6hNcZ.js";
|
|
11
11
|
//#region src/topology/metadata/faceTagFns.ts
|
|
12
12
|
var shapeTagStore = /* @__PURE__ */ new WeakMap();
|
|
13
13
|
var tagMetadataStore = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-D6N6FPC9.cjs");
|
|
2
2
|
const require_errors = require("./errors-DWezb9DI.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-DhWju_Rg.cjs");
|
|
4
4
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
5
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
6
6
|
const require_planeOps = require("./planeOps-CpupTCRM.cjs");
|
|
7
|
-
const require_faceFns = require("./faceFns-
|
|
8
|
-
const require_originTrackingFns = require("./originTrackingFns-
|
|
7
|
+
const require_faceFns = require("./faceFns-s7QRCW8A.cjs");
|
|
8
|
+
const require_originTrackingFns = require("./originTrackingFns-CIXgTLuX.cjs");
|
|
9
9
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
10
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
10
|
+
const require_surfaceBuilders = require("./surfaceBuilders-DZ4qaEMP.cjs");
|
|
11
11
|
//#region src/topology/metadata/faceTagFns.ts
|
|
12
12
|
var shapeTagStore = /* @__PURE__ */ new WeakMap();
|
|
13
13
|
var tagMetadataStore = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-D6N6FPC9.cjs");
|
|
2
2
|
const require_errors = require("./errors-DWezb9DI.cjs");
|
|
3
|
-
const require_validityTypes = require("./validityTypes-
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_validityTypes = require("./validityTypes-Bh3tqEzS.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-s7QRCW8A.cjs");
|
|
5
5
|
//#region src/utils/range.ts
|
|
6
6
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
7
7
|
function range(len) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { G as _usingCtx, N as DisposalScope, c as createEdge, l as createFace, p as createWire, q as getKernel, y as isFace } from "./shapeTypes-
|
|
1
|
+
import { G as _usingCtx, N as DisposalScope, c as createEdge, l as createFace, p as createWire, q as getKernel, y as isFace } from "./shapeTypes-DgcXaWoK.js";
|
|
2
2
|
import { E as ok, d as validationError, g as err, i as kernelError, m as andThen } from "./errors-CTn8i3lY.js";
|
|
3
|
-
import { a as isPlanarFace } from "./validityTypes-
|
|
4
|
-
import { _ as cast, u as outerWire } from "./faceFns-
|
|
3
|
+
import { a as isPlanarFace } from "./validityTypes-swMGQ5f2.js";
|
|
4
|
+
import { _ as cast, u as outerWire } from "./faceFns-CQyNJard.js";
|
|
5
5
|
//#region src/utils/range.ts
|
|
6
6
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
7
7
|
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-Cx7nEADC.cjs");
|
|
3
|
+
const require_textMetrics = require("./textMetrics-C7yaPJuS.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-CJyJx8VV.js";
|
|
2
|
+
import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-ZDLgofee.js";
|
|
3
3
|
export { fontMetrics, getFont, loadFont, sketchText, textBlueprints, textMetrics };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { d as createSolid, h as disposeResultShape, l as createFace, m as disposeDowncastSource, n as castResultShape, p as createWire, q as getKernel, x as isShape3D } from "./shapeTypes-
|
|
1
|
+
import { d as createSolid, h as disposeResultShape, l as createFace, m as disposeDowncastSource, n as castResultShape, p as createWire, q as getKernel, x as isShape3D } from "./shapeTypes-DgcXaWoK.js";
|
|
2
2
|
import { n as bug } from "./bug-BdOHwn_e.js";
|
|
3
3
|
import { E as ok, P as unwrap, d as validationError, g as err, i as kernelError, l as typeCastError, r as ioError, t as BrepErrorCode } from "./errors-CTn8i3lY.js";
|
|
4
4
|
import { r as toVec3 } from "./types-D24Y27N0.js";
|
|
5
5
|
import { c as vecLength, d as vecNormalize, h as vecScale, r as vecCross } from "./vecOps-SKPRvPH-.js";
|
|
6
6
|
import { n as createPlane } from "./planeOps-CkpMeheg.js";
|
|
7
|
-
import { v as copyShape } from "./faceFns-
|
|
8
|
-
import { o as makeSolid, p as cutAll, t as makeCompound } from "./solidBuilders-
|
|
9
|
-
import { l as curveStartPoint, u as curveTangentAt } from "./curveFns-
|
|
7
|
+
import { v as copyShape } from "./faceFns-CQyNJard.js";
|
|
8
|
+
import { o as makeSolid, p as cutAll, t as makeCompound } from "./solidBuilders-DCVpjCr4.js";
|
|
9
|
+
import { l as curveStartPoint, u as curveTangentAt } from "./curveFns-n7htUStC.js";
|
|
10
10
|
import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
|
|
11
|
-
import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-
|
|
12
|
-
import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-
|
|
13
|
-
import { c as twistExtrude, r as complexExtrude, s as sweep, t as loft } from "./loftFns-
|
|
11
|
+
import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-wEh6hNcZ.js";
|
|
12
|
+
import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-kSDNNuEJ.js";
|
|
13
|
+
import { c as twistExtrude, r as complexExtrude, s as sweep, t as loft } from "./loftFns-DDdoMjxj.js";
|
|
14
14
|
import opentype from "opentype.js";
|
|
15
15
|
//#region src/operations/extrudeFns.ts
|
|
16
16
|
/**
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
|
|
2
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
+
const require_shapeTypes = require("./shapeTypes-D6N6FPC9.cjs");
|
|
3
3
|
const require_bug = require("./bug-O02CsAmt.cjs");
|
|
4
4
|
const require_errors = require("./errors-DWezb9DI.cjs");
|
|
5
5
|
const require_types = require("./types-KjA8tY4Y.cjs");
|
|
6
6
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
7
7
|
const require_planeOps = require("./planeOps-CpupTCRM.cjs");
|
|
8
|
-
const require_faceFns = require("./faceFns-
|
|
9
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
10
|
-
const require_curveFns = require("./curveFns-
|
|
8
|
+
const require_faceFns = require("./faceFns-s7QRCW8A.cjs");
|
|
9
|
+
const require_solidBuilders = require("./solidBuilders-DnUQIIh-.cjs");
|
|
10
|
+
const require_curveFns = require("./curveFns-qVcljEvc.cjs");
|
|
11
11
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
12
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
13
|
-
const require_blueprintSketcher = require("./blueprintSketcher-
|
|
14
|
-
const require_loftFns = require("./loftFns-
|
|
12
|
+
const require_surfaceBuilders = require("./surfaceBuilders-DZ4qaEMP.cjs");
|
|
13
|
+
const require_blueprintSketcher = require("./blueprintSketcher-DooDamYd.cjs");
|
|
14
|
+
const require_loftFns = require("./loftFns-suyWruNr.cjs");
|
|
15
15
|
let opentype_js = require("opentype.js");
|
|
16
16
|
opentype_js = require_rolldown_runtime.__toESM(opentype_js, 1);
|
|
17
17
|
//#region src/operations/extrudeFns.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_errors = require("./errors-DWezb9DI.cjs");
|
|
2
|
-
const require_textBlueprints = require("./textBlueprints-
|
|
2
|
+
const require_textBlueprints = require("./textBlueprints-Cx7nEADC.cjs");
|
|
3
3
|
//#region src/text/sketchText.ts
|
|
4
4
|
/**
|
|
5
5
|
* Render text as 3D sketch outlines on a plane.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { E as ok, d as validationError, g as err, t as BrepErrorCode } from "./errors-CTn8i3lY.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-CJyJx8VV.js";
|
|
3
3
|
//#region src/text/sketchText.ts
|
|
4
4
|
/**
|
|
5
5
|
* Render text as 3D sketch outlines on a plane.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { F as createKernelHandle, G as _usingCtx, N as DisposalScope, n as castResultShape, q as getKernel, x as isShape3D } from "./shapeTypes-
|
|
1
|
+
import { F as createKernelHandle, G as _usingCtx, N as DisposalScope, n as castResultShape, q as getKernel, x as isShape3D } from "./shapeTypes-DgcXaWoK.js";
|
|
2
2
|
import { E as ok, d as validationError, g as err, n as computationError, r as ioError, t as BrepErrorCode, x as isOk } from "./errors-CTn8i3lY.js";
|
|
3
3
|
import { d as vecNormalize, s as vecIsZero } from "./vecOps-SKPRvPH-.js";
|
|
4
|
-
import { b as fromBREP } from "./faceFns-
|
|
5
|
-
import { h as fuseAll } from "./solidBuilders-
|
|
6
|
-
import { E as wire, h as line } from "./primitiveFns-
|
|
7
|
-
import { s as toBREP } from "./shapeFns-
|
|
8
|
-
import { t as loft } from "./loftFns-
|
|
9
|
-
import { c as resolveRefParams } from "./refResolveFns-
|
|
4
|
+
import { b as fromBREP } from "./faceFns-CQyNJard.js";
|
|
5
|
+
import { h as fuseAll } from "./solidBuilders-DCVpjCr4.js";
|
|
6
|
+
import { E as wire, h as line } from "./primitiveFns-CM-WtrDU.js";
|
|
7
|
+
import { s as toBREP } from "./shapeFns-abxGUiRi.js";
|
|
8
|
+
import { t as loft } from "./loftFns-DDdoMjxj.js";
|
|
9
|
+
import { c as resolveRefParams } from "./refResolveFns-Caq9pEFX.js";
|
|
10
10
|
//#region src/utils/uuid.ts
|
|
11
11
|
/** Generate a v4-style UUID string using `crypto.getRandomValues`. */
|
|
12
12
|
function uuidv() {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-D6N6FPC9.cjs");
|
|
2
2
|
const require_errors = require("./errors-DWezb9DI.cjs");
|
|
3
3
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
5
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
6
|
-
const require_primitiveFns = require("./primitiveFns-
|
|
7
|
-
const require_shapeFns = require("./shapeFns-
|
|
8
|
-
const require_loftFns = require("./loftFns-
|
|
9
|
-
const require_refResolveFns = require("./refResolveFns-
|
|
4
|
+
const require_faceFns = require("./faceFns-s7QRCW8A.cjs");
|
|
5
|
+
const require_solidBuilders = require("./solidBuilders-DnUQIIh-.cjs");
|
|
6
|
+
const require_primitiveFns = require("./primitiveFns-DHTDymOR.cjs");
|
|
7
|
+
const require_shapeFns = require("./shapeFns-DnTR5fGL.cjs");
|
|
8
|
+
const require_loftFns = require("./loftFns-suyWruNr.cjs");
|
|
9
|
+
const require_refResolveFns = require("./refResolveFns-W0eI7vrV.cjs");
|
|
10
10
|
//#region src/utils/uuid.ts
|
|
11
11
|
/** Generate a v4-style UUID string using `crypto.getRandomValues`. */
|
|
12
12
|
function uuidv() {
|
package/dist/topology.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
4
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
5
|
-
const require_primitiveFns = require("./primitiveFns-
|
|
6
|
-
const require_shapeFns = require("./shapeFns-
|
|
7
|
-
const require_curveFns = require("./curveFns-
|
|
8
|
-
const require_meshFns = require("./meshFns-
|
|
9
|
-
const require_healingFns = require("./healingFns-
|
|
10
|
-
const require_adjacencyFns = require("./adjacencyFns-
|
|
2
|
+
const require_topologyQueryFns = require("./topologyQueryFns-DhWju_Rg.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-s7QRCW8A.cjs");
|
|
4
|
+
const require_solidBuilders = require("./solidBuilders-DnUQIIh-.cjs");
|
|
5
|
+
const require_primitiveFns = require("./primitiveFns-DHTDymOR.cjs");
|
|
6
|
+
const require_shapeFns = require("./shapeFns-DnTR5fGL.cjs");
|
|
7
|
+
const require_curveFns = require("./curveFns-qVcljEvc.cjs");
|
|
8
|
+
const require_meshFns = require("./meshFns-Crgr_uib.cjs");
|
|
9
|
+
const require_healingFns = require("./healingFns-CDmIZyqk.cjs");
|
|
10
|
+
const require_adjacencyFns = require("./adjacencyFns-lCrjQUQr.cjs");
|
|
11
11
|
exports.addHoles = require_primitiveFns.addHoles;
|
|
12
12
|
exports.adjacentFaces = require_adjacencyFns.adjacentFaces;
|
|
13
13
|
exports.approximateCurve = require_curveFns.approximateCurve;
|
package/dist/topology.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { C 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 { C as shapeType, S as iterTopo, _ as cast, a as faceOrientation, b as fromBREP, 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, x as isCompSolid, y as downcast } from "./faceFns-
|
|
3
|
-
import { h as fuseAll, p as cutAll } from "./solidBuilders-
|
|
4
|
-
import { C as threePointArc, D as wireLoop, E as wire, S as tangentArc, T as vertex, _ as polygon, a as circle, b as sphere, c as cylinder, d as ellipsoid, f as face, g as offsetFace, h as line, i as bsplineApprox, l as ellipse, m as helix, n as bezier, o as compound, p as filledFace, r as box, s as cone, t as addHoles, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-
|
|
5
|
-
import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-
|
|
6
|
-
import { a as curveIsPeriodic, c as curvePointAt, d as flipOrientation, f as getCurveType, h as offsetWire2D, i as curveIsClosed, l as curveStartPoint, m as interpolateCurve, n as curveAxis, o as curveLength, p as getOrientation, r as curveEndPoint, s as curvePeriod, t as approximateCurve, u as curveTangentAt } from "./curveFns-
|
|
7
|
-
import { d as clearMeshCache, f as createMeshCache, n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-
|
|
8
|
-
import { A as toBufferGeometryData, P as toLineGeometryData, S as chamferDistAngle, _ as checkBoolean, a as healFace, b as getNurbsCurveData, d as chamferWithEvolution, f as cutWithEvolution, g as shellWithEvolution, h as intersectWithEvolution, j as toGroupedBufferGeometryData, k as variableFillet, l as solidFromShell, m as fuseWithEvolution, n as fixSelfIntersection, o as healSolid, p as filletWithEvolution, r as fixShape, s as healWire, t as autoHeal, u as positionOnCurve, v as cutAllBisect, x as getNurbsSurfaceData, y as fuseAllBisect } from "./healingFns
|
|
9
|
-
import { i as facesOfEdge, l as wiresOfFace, n as adjacentFaces, o as sharedEdges, r as edgesOfFace, s as verticesOfEdge } from "./adjacencyFns-
|
|
1
|
+
import { C 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-gVaVV1Nt.js";
|
|
2
|
+
import { C as shapeType, S as iterTopo, _ as cast, a as faceOrientation, b as fromBREP, 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, x as isCompSolid, y as downcast } from "./faceFns-CQyNJard.js";
|
|
3
|
+
import { h as fuseAll, p as cutAll } from "./solidBuilders-DCVpjCr4.js";
|
|
4
|
+
import { C as threePointArc, D as wireLoop, E as wire, S as tangentArc, T as vertex, _ as polygon, a as circle, b as sphere, c as cylinder, d as ellipsoid, f as face, g as offsetFace, h as line, i as bsplineApprox, l as ellipse, m as helix, n as bezier, o as compound, p as filledFace, r as box, s as cone, t as addHoles, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-CM-WtrDU.js";
|
|
5
|
+
import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-abxGUiRi.js";
|
|
6
|
+
import { a as curveIsPeriodic, c as curvePointAt, d as flipOrientation, f as getCurveType, h as offsetWire2D, i as curveIsClosed, l as curveStartPoint, m as interpolateCurve, n as curveAxis, o as curveLength, p as getOrientation, r as curveEndPoint, s as curvePeriod, t as approximateCurve, u as curveTangentAt } from "./curveFns-n7htUStC.js";
|
|
7
|
+
import { d as clearMeshCache, f as createMeshCache, n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-qV2fL7DY.js";
|
|
8
|
+
import { A as toBufferGeometryData, P as toLineGeometryData, S as chamferDistAngle, _ as checkBoolean, a as healFace, b as getNurbsCurveData, d as chamferWithEvolution, f as cutWithEvolution, g as shellWithEvolution, h as intersectWithEvolution, j as toGroupedBufferGeometryData, k as variableFillet, l as solidFromShell, m as fuseWithEvolution, n as fixSelfIntersection, o as healSolid, p as filletWithEvolution, r as fixShape, s as healWire, t as autoHeal, u as positionOnCurve, v as cutAllBisect, x as getNurbsSurfaceData, y as fuseAllBisect } from "./healingFns-C1Vwru9B.js";
|
|
9
|
+
import { i as facesOfEdge, l as wiresOfFace, n as adjacentFaces, o as sharedEdges, r as edgesOfFace, s as verticesOfEdge } from "./adjacencyFns-BOBaGnQ-.js";
|
|
10
10
|
export { addHoles, adjacentFaces, approximateCurve, asTopo, autoHeal, bezier, box, bsplineApprox, cast, chamferDistAngle as chamferDistAngleShape, chamferWithEvolution, checkBoolean, circle, classifyPointOnFace, clearMeshCache, compound, cone, createMeshCache, curveAxis, curveEndPoint, curveIsClosed, curveIsPeriodic, curveLength, curvePeriod, curvePointAt, curveStartPoint, curveTangentAt, cutAll, cutAllBisect, cutWithEvolution, cylinder, fromBREP as deserializeShape, downcast, edgesOfFace, ellipse, ellipseArc, ellipsoid, exportIGES, exportSTEP, exportSTL, face, faceAxis, faceCenter, faceGeomType, faceOrientation, facesOfEdge, filledFace, filletWithEvolution, fixSelfIntersection, fixShape, flipFaceOrientation, flipOrientation, fuseAll, fuseAllBisect, fuseWithEvolution, getBounds, getCurveType, getEdges, getFaces, getHashCode, getNurbsCurveData, getNurbsSurfaceData, getOrientation, getSurfaceType, getVertices, getWires, healFace, healSolid, healWire, helix, innerWires, interpolateCurve, intersectWithEvolution, invalidateShapeCache, isCompSolid, isEqualShape, isSameShape, iterEdges, iterFaces, iterTopo, iterVertices, iterWires, line, normalAt, offsetFace, offsetWire2D, outerWire, pointOnSurface, polygon, positionOnCurve, projectPointOnFace, sewShells, shapeType, sharedEdges, shellWithEvolution, solid, solidFromShell, sphere, subFace, tangentArc, threePointArc, toBufferGeometryData, toGroupedBufferGeometryData, toLineGeometryData, torus, uvBounds, uvCoordinates, variableFillet, vertex, vertexPosition, verticesOfEdge, wire, wireLoop, wiresOfFace };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-D6N6FPC9.cjs");
|
|
2
2
|
const require_errors = require("./errors-DWezb9DI.cjs");
|
|
3
3
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
4
4
|
//#region src/core/kernelErrorTranslation.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as _usingCtx, N as DisposalScope, O as getOrQueryType, n as castResultShape, q as getKernel, r as castResultShapeWithKnownType } from "./shapeTypes-
|
|
1
|
+
import { G as _usingCtx, N as DisposalScope, O as getOrQueryType, n as castResultShape, q as getKernel, r as castResultShapeWithKnownType } from "./shapeTypes-DgcXaWoK.js";
|
|
2
2
|
import { E as ok, g as err } from "./errors-CTn8i3lY.js";
|
|
3
3
|
import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
|
|
4
4
|
//#region src/core/kernelErrorTranslation.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brepjs",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.1",
|
|
4
4
|
"description": "Web CAD library with pluggable geometry kernel",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cad",
|
|
@@ -260,8 +260,8 @@
|
|
|
260
260
|
"prepare": "husky && bash scripts/ensure-wasm.sh"
|
|
261
261
|
},
|
|
262
262
|
"devDependencies": {
|
|
263
|
-
"@commitlint/cli": "21.2.
|
|
264
|
-
"@commitlint/config-conventional": "21.2.
|
|
263
|
+
"@commitlint/cli": "21.2.3",
|
|
264
|
+
"@commitlint/config-conventional": "21.2.3",
|
|
265
265
|
"@emnapi/core": "1.11.3",
|
|
266
266
|
"@emnapi/runtime": "1.11.3",
|
|
267
267
|
"@eslint/js": "10.0.1",
|
|
@@ -269,27 +269,27 @@
|
|
|
269
269
|
"@types/opentype.js": "1.3.9",
|
|
270
270
|
"@types/react": "19.3.0",
|
|
271
271
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
272
|
-
"@vitest/coverage-v8": "5.0.
|
|
272
|
+
"@vitest/coverage-v8": "5.0.1",
|
|
273
273
|
"brepjs-opencascade": "*",
|
|
274
|
-
"brepkit-wasm": "3.4.
|
|
275
|
-
"eslint": "10.
|
|
276
|
-
"fast-check": "4.10.
|
|
274
|
+
"brepkit-wasm": "3.4.18",
|
|
275
|
+
"eslint": "10.11.0",
|
|
276
|
+
"fast-check": "4.10.2",
|
|
277
277
|
"husky": "9.1.7",
|
|
278
278
|
"knip": "6.27.0",
|
|
279
279
|
"lint-staged": "17.5.1",
|
|
280
280
|
"lz-string": "1.5.0",
|
|
281
|
-
"occt-wasm": "5.
|
|
282
|
-
"prettier": "3.9.
|
|
283
|
-
"puppeteer": "25.
|
|
281
|
+
"occt-wasm": "5.3.2",
|
|
282
|
+
"prettier": "3.9.8",
|
|
283
|
+
"puppeteer": "25.11.0",
|
|
284
284
|
"size-limit": "13.1.1",
|
|
285
285
|
"sucrase": "3.35.1",
|
|
286
|
-
"tsx": "4.23.
|
|
286
|
+
"tsx": "4.23.15",
|
|
287
287
|
"typedoc": "0.28.20",
|
|
288
288
|
"typescript": "6.0.3",
|
|
289
289
|
"typescript-eslint": "8.70.0",
|
|
290
290
|
"vite": "8.3.0",
|
|
291
|
-
"vite-plugin-dts": "5.1.
|
|
292
|
-
"vitest": "5.0.
|
|
291
|
+
"vite-plugin-dts": "5.1.1",
|
|
292
|
+
"vitest": "5.0.1"
|
|
293
293
|
},
|
|
294
294
|
"peerDependencies": {
|
|
295
295
|
"brepjs-manifold": "^0.1.0",
|