brepjs 18.33.0 → 18.33.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/2d.cjs +6 -6
- package/dist/2d.js +6 -6
- package/dist/{blueprint-BSFmbDGk.cjs → blueprint-CDjFNsmN.cjs} +5 -5
- package/dist/{blueprint-CJh2IXNN.js → blueprint-CNczvCJD.js} +5 -5
- package/dist/{blueprintFns-Zeq5akLC.js → blueprintFns-DT6oP1MU.js} +2 -2
- package/dist/{blueprintFns-CP2cC0SH.cjs → blueprintFns-HxHdlOrY.cjs} +2 -2
- package/dist/{blueprintSketcher-Bk1Td7bF.js → blueprintSketcher-BvEwuvyJ.js} +3 -3
- package/dist/{blueprintSketcher-CW82NmX7.cjs → blueprintSketcher-C1zl__qM.cjs} +3 -3
- package/dist/{boolean2D-Cx4p6bzv.js → boolean2D-BczOZwlF.js} +4 -4
- package/dist/{boolean2D-DQESKrHM.cjs → boolean2D-DLV8HNif.cjs} +4 -4
- package/dist/{booleanFns-Desb54nK.cjs → booleanFns-CLCbionN.cjs} +4 -4
- package/dist/{booleanFns-CxAfvIV6.js → booleanFns-lDauFalY.js} +4 -4
- package/dist/brepjs.cjs +25 -25
- package/dist/brepjs.js +25 -25
- package/dist/{cameraFns-DVDMA2YA.js → cameraFns-Byav4AXt.js} +2 -2
- package/dist/{cameraFns-mhPem8JC.cjs → cameraFns-nPL5-xZH.cjs} +2 -2
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-C9sHooms.js → cornerFinder-CifMFbIN.js} +1 -1
- package/dist/{cornerFinder-nW2FYBmk.cjs → cornerFinder-DPlpHmJl.cjs} +1 -1
- package/dist/{curveFns-BXWe0tUP.cjs → curveFns-DbpQH6-9.cjs} +1 -1
- package/dist/{curveFns-CEADb8UI.js → curveFns-Dvtp5oZA.js} +1 -1
- package/dist/{drawFns-Bz47xb6u.js → drawFns-BFi1hoid.js} +12 -12
- package/dist/{drawFns-CyqV9IOf.cjs → drawFns-uS1tM6dz.cjs} +12 -12
- package/dist/{extrudeFns-Byjh14Mh.cjs → extrudeFns-Bab5Fw_k.cjs} +1 -1
- package/dist/{extrudeFns-OvEEZRiI.js → extrudeFns-CE8C7QRv.js} +1 -1
- package/dist/{faceFns-BEDI2Fht.cjs → faceFns-B5C-nw1v.cjs} +2 -2
- package/dist/{faceFns-Dc1Kz-42.js → faceFns-Cfgrt9P9.js} +2 -2
- package/dist/{helpers-NRiahAyk.cjs → helpers-C7wSoEZ6.cjs} +6 -6
- package/dist/{helpers-CybYLoG5.js → helpers-Cy-JYZot.js} +6 -6
- package/dist/{historyFns-CSHLpJK2.cjs → historyFns-BDy3Iq3O.cjs} +4 -4
- package/dist/{historyFns-s38GJ8vm.js → historyFns-qZaNV5QN.js} +4 -4
- package/dist/{importFns-BLptAND5.js → importFns-B7R0bXrT.js} +2 -2
- package/dist/{importFns-C7e3yWGT.cjs → importFns-CJggKtP3.cjs} +2 -2
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/brepkit/brepkitWasmTypes.d.ts +6 -6
- package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.d.ts +19 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
- package/dist/{measureFns-Ds3J7UUO.js → measureFns-CcednQHe.js} +3 -3
- package/dist/{measureFns-BPOctaKR.cjs → measureFns-_3tK7mBN.cjs} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-Ca8mKKuw.cjs → meshFns-6oVWvaGE.cjs} +2 -2
- package/dist/{meshFns-BEtVwyFx.js → meshFns-BIuX88EN.js} +2 -2
- package/dist/{occtWasmAdapter-Dtp7Wu27.js → occtWasmAdapter-COKB8ItA.js} +17 -2
- package/dist/{occtWasmAdapter-BaidTDJk.cjs → occtWasmAdapter-CdyaMnBW.cjs} +17 -2
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-DrEFUID3.cjs → primitiveFns-72G-cDZo.cjs} +7 -7
- package/dist/{primitiveFns-B7X8lTA2.js → primitiveFns-B0DKFED_.js} +7 -7
- package/dist/projection.cjs +1 -1
- package/dist/projection.js +1 -1
- package/dist/query.cjs +2 -2
- package/dist/query.js +2 -2
- package/dist/{shapeFns-DX8Wz5Rx.js → shapeFns-B1ThqSpi.js} +25 -9
- package/dist/{shapeFns-Kop1E0FF.cjs → shapeFns-D1LQT1YP.cjs} +25 -9
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeRefFns-D0nj1uv-.js → shapeRefFns-M9z1C2Te.js} +4 -4
- package/dist/{shapeRefFns-07fYc4Yf.cjs → shapeRefFns-_AmQNqEz.cjs} +4 -4
- package/dist/{shapeTypes-B4BMvuqz.cjs → shapeTypes-BXXHBHal.cjs} +1 -1
- package/dist/{shapeTypes-CO_7Vi7X.js → shapeTypes-DnYvZd61.js} +1 -1
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-uvsBuAfy.cjs → solidBuilders-BGzd3NKL.cjs} +2 -2
- package/dist/{solidBuilders-BvgLx1ih.js → solidBuilders-C4tUlAlA.js} +2 -2
- package/dist/{surfaceBuilders-CaZYe1HH.js → surfaceBuilders-Di8LHBU7.js} +2 -2
- package/dist/{surfaceBuilders-CqA8sgwW.cjs → surfaceBuilders-lVyiCPIU.cjs} +2 -2
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-DdjPsdpW.js → textBlueprints-BtPob4Le.js} +7 -7
- package/dist/{textBlueprints-CmsFcq_2.cjs → textBlueprints-hDFeOHnt.cjs} +7 -7
- package/dist/{textMetrics-Cp19LSq8.js → textMetrics-BAFPvbuw.js} +1 -1
- package/dist/{textMetrics-DX7bZOWD.cjs → textMetrics-_u9W8BcO.cjs} +1 -1
- package/dist/topology/metadata/originTrackingFns.d.ts +19 -3
- package/dist/topology.cjs +7 -7
- package/dist/topology.js +7 -7
- package/dist/{topologyQueryFns-AGfoGI2F.cjs → topologyQueryFns-DTVysRV-.cjs} +1 -1
- package/dist/{topologyQueryFns-BQefLP33.js → topologyQueryFns-mWrJgMdr.js} +1 -1
- package/package.json +3 -2
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-BvEwuvyJ.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-BFi1hoid.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-BtPob4Le.js";
|
|
4
4
|
//#region src/sketching.ts
|
|
5
5
|
/**
|
|
6
6
|
* brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BXXHBHal.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-B5C-nw1v.cjs");
|
|
4
4
|
//#region src/topology/shapeUtils.ts
|
|
5
5
|
/**
|
|
6
6
|
* Shape assembly utilities — welding and sewing operations.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Z as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-DnYvZd61.js";
|
|
2
2
|
import { A as ok, R as unwrap, b as err, l as typeCastError, v as andThen } from "./errors-BJSTLaDI.js";
|
|
3
|
-
import { _ as downcast, g as cast } from "./faceFns-
|
|
3
|
+
import { _ as downcast, g as cast } from "./faceFns-Cfgrt9P9.js";
|
|
4
4
|
//#region src/topology/shapeUtils.ts
|
|
5
5
|
/**
|
|
6
6
|
* Shape assembly utilities — welding and sewing operations.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Z as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-DnYvZd61.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, i as kernelError, v as andThen } from "./errors-BJSTLaDI.js";
|
|
3
|
-
import { g as cast, l as outerWire } from "./faceFns-
|
|
3
|
+
import { g as cast, l as outerWire } from "./faceFns-Cfgrt9P9.js";
|
|
4
4
|
//#region src/utils/range.ts
|
|
5
5
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
6
6
|
function range(len) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BXXHBHal.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-B5C-nw1v.cjs");
|
|
4
4
|
//#region src/utils/range.ts
|
|
5
5
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
6
6
|
function range(len) {
|
package/dist/text.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_textBlueprints = require("./textBlueprints-
|
|
3
|
-
const require_textMetrics = require("./textMetrics-
|
|
2
|
+
const require_textBlueprints = require("./textBlueprints-hDFeOHnt.cjs");
|
|
3
|
+
const require_textMetrics = require("./textMetrics-_u9W8BcO.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-BtPob4Le.js";
|
|
2
|
+
import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-BAFPvbuw.js";
|
|
3
3
|
export { fontMetrics, getFont, loadFont, sketchText, textBlueprints, textMetrics };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Z as getKernel, h as isShape3D, o as createFace, p as isFace, t as castShape, u as createWire } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, h as isShape3D, o as createFace, p as isFace, t as castShape, u as createWire } from "./shapeTypes-DnYvZd61.js";
|
|
2
2
|
import { A as ok, R as unwrap, T as isOk, b as err, d as validationError, h as bug, i as kernelError, l as typeCastError, r as ioError, t as BrepErrorCode } from "./errors-BJSTLaDI.js";
|
|
3
3
|
import { r as toVec3 } from "./types-D24Y27N0.js";
|
|
4
4
|
import { d as vecNormalize, h as vecScale, r as vecCross } from "./vecOps-SKPRvPH-.js";
|
|
5
5
|
import { n as createPlane } from "./planeOps-CblVcWbn.js";
|
|
6
|
-
import { _ as downcast, g as cast } from "./faceFns-
|
|
7
|
-
import { c as curveStartPoint, l as curveTangentAt } from "./curveFns-
|
|
6
|
+
import { _ as downcast, g as cast } from "./faceFns-Cfgrt9P9.js";
|
|
7
|
+
import { c as curveStartPoint, l as curveTangentAt } from "./curveFns-Dvtp5oZA.js";
|
|
8
8
|
import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
|
|
9
|
-
import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-
|
|
10
|
-
import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-
|
|
11
|
-
import { o as makeSolid, t as makeCompound } from "./solidBuilders-
|
|
12
|
-
import { c as sweep, i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-
|
|
9
|
+
import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-Di8LHBU7.js";
|
|
10
|
+
import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-BvEwuvyJ.js";
|
|
11
|
+
import { o as makeSolid, t as makeCompound } from "./solidBuilders-C4tUlAlA.js";
|
|
12
|
+
import { c as sweep, i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-CE8C7QRv.js";
|
|
13
13
|
import opentype from "opentype.js";
|
|
14
14
|
//#region src/operations/loftFns.ts
|
|
15
15
|
/**
|
|
@@ -29,18 +29,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
29
|
enumerable: true
|
|
30
30
|
}) : target, mod));
|
|
31
31
|
//#endregion
|
|
32
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
32
|
+
const require_shapeTypes = require("./shapeTypes-BXXHBHal.cjs");
|
|
33
33
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
34
34
|
const require_types = require("./types-KjA8tY4Y.cjs");
|
|
35
35
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
36
36
|
const require_planeOps = require("./planeOps-C6wxugvC.cjs");
|
|
37
|
-
const require_faceFns = require("./faceFns-
|
|
38
|
-
const require_curveFns = require("./curveFns-
|
|
37
|
+
const require_faceFns = require("./faceFns-B5C-nw1v.cjs");
|
|
38
|
+
const require_curveFns = require("./curveFns-DbpQH6-9.cjs");
|
|
39
39
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
40
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
41
|
-
const require_blueprintSketcher = require("./blueprintSketcher-
|
|
42
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
43
|
-
const require_extrudeFns = require("./extrudeFns-
|
|
40
|
+
const require_surfaceBuilders = require("./surfaceBuilders-lVyiCPIU.cjs");
|
|
41
|
+
const require_blueprintSketcher = require("./blueprintSketcher-C1zl__qM.cjs");
|
|
42
|
+
const require_solidBuilders = require("./solidBuilders-BGzd3NKL.cjs");
|
|
43
|
+
const require_extrudeFns = require("./extrudeFns-Bab5Fw_k.cjs");
|
|
44
44
|
let opentype_js = require("opentype.js");
|
|
45
45
|
opentype_js = __toESM(opentype_js, 1);
|
|
46
46
|
//#region src/operations/loftFns.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-BJSTLaDI.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-BtPob4Le.js";
|
|
3
3
|
//#region src/text/sketchText.ts
|
|
4
4
|
/**
|
|
5
5
|
* Render text as 3D sketch outlines on a plane.
|
|
@@ -15,8 +15,24 @@ export declare function getFaceOrigins(shape: AnyShape<Dimension>): Map<number,
|
|
|
15
15
|
*/
|
|
16
16
|
export declare function propagateOriginsFromEvolution(evolution: ShapeEvolution, inputs: readonly AnyShape<Dimension>[], result: AnyShape<Dimension>): void;
|
|
17
17
|
/**
|
|
18
|
-
* Fallback origin propagation when no kernel op object is available
|
|
19
|
-
*
|
|
20
|
-
*
|
|
18
|
+
* Fallback origin propagation when no kernel op object is available
|
|
19
|
+
* (native `fuseAll` / `cutAll`, which expose no ShapeEvolution record).
|
|
20
|
+
*
|
|
21
|
+
* Matches result faces to input faces by hash code first. Faces that pass
|
|
22
|
+
* through the boolean unchanged keep their hash and recover their origin
|
|
23
|
+
* directly. Faces the boolean *regenerates* (split, merged, or re-created at
|
|
24
|
+
* the intersection) get a fresh hash that matches no input — these fall back
|
|
25
|
+
* to geometric matching (normal + centroid) against the input face
|
|
26
|
+
* signatures.
|
|
27
|
+
*
|
|
28
|
+
* The geometric pass runs for every unmatched face, not only when the hash
|
|
29
|
+
* pass found nothing. A partial hash match is the common case for additive
|
|
30
|
+
* features (pass-through side walls match by hash; the surfaces where the
|
|
31
|
+
* tool meets the body — feature tops, flush walls — are regenerated and need
|
|
32
|
+
* the geometric pass). Gating the fallback on "zero hash matches" left those
|
|
33
|
+
* regenerated faces with no origin, so they fell back to 0 (body) at mesh
|
|
34
|
+
* time — the multi-color export bug where a scoop/label/lip top printed in
|
|
35
|
+
* the body color. Matching against the full signature set (body origin 0
|
|
36
|
+
* included) keeps body faces body and feature faces feature.
|
|
21
37
|
*/
|
|
22
38
|
export declare function propagateOriginsByHash(inputs: readonly AnyShape<Dimension>[], result: AnyShape<Dimension>): void;
|
package/dist/topology.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
4
|
-
const require_shapeFns = require("./shapeFns-
|
|
5
|
-
const require_curveFns = require("./curveFns-
|
|
6
|
-
const require_meshFns = require("./meshFns-
|
|
7
|
-
const require_booleanFns = require("./booleanFns-
|
|
8
|
-
const require_primitiveFns = require("./primitiveFns-
|
|
2
|
+
const require_topologyQueryFns = require("./topologyQueryFns-DTVysRV-.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-B5C-nw1v.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-D1LQT1YP.cjs");
|
|
5
|
+
const require_curveFns = require("./curveFns-DbpQH6-9.cjs");
|
|
6
|
+
const require_meshFns = require("./meshFns-6oVWvaGE.cjs");
|
|
7
|
+
const require_booleanFns = require("./booleanFns-CLCbionN.cjs");
|
|
8
|
+
const require_primitiveFns = require("./primitiveFns-72G-cDZo.cjs");
|
|
9
9
|
exports.addHoles = require_primitiveFns.addHoles;
|
|
10
10
|
exports.adjacentFaces = require_primitiveFns.adjacentFaces;
|
|
11
11
|
exports.approximateCurve = require_curveFns.approximateCurve;
|
package/dist/topology.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as invalidateShapeCache, f as iterEdges, g as vertexPosition, h as iterWires, l as getVertices, m as iterVertices, n as getBounds, o as getEdges, p as iterFaces, s as getFaces, u as getWires } from "./topologyQueryFns-
|
|
2
|
-
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-
|
|
3
|
-
import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-
|
|
4
|
-
import { a as curveLength, c as curveStartPoint, d as getCurveType, f as getOrientation, i as curveIsPeriodic, l as curveTangentAt, m as offsetWire2D, n as curveEndPoint, o as curvePeriod, p as interpolateCurve, r as curveIsClosed, s as curvePointAt, t as approximateCurve, u as flipOrientation } from "./curveFns-
|
|
5
|
-
import { c as createMeshCache, n as exportSTEP, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-
|
|
6
|
-
import { a as fuseAll, r as cutAll } from "./booleanFns-
|
|
7
|
-
import { $ as fuseAllBisect, A as fixShape, C as threePointArc, D as wireLoop, E as wire, G as chamferWithEvolution, I as solidFromShell, J as fuseWithEvolution, K as cutWithEvolution, M as healFace, N as healSolid, O as autoHeal, P as healWire, Q as cutAllBisect, S as tangentArc, T as vertex, U as variableFillet, W as positionOnCurve, X as shellWithEvolution, Y as intersectWithEvolution, Z as checkBoolean, _ as polygon, a as circle, at as sharedEdges, b as sphere, c as cylinder, ct as chamferDistAngle, d as ellipsoid, et as getNurbsCurveData, f as face, ft as toLineGeometryData, g as offsetFace, h as line, i as bsplineApprox, it as facesOfEdge, k as fixSelfIntersection, l as ellipse, lt as toBufferGeometryData, m as helix, n as bezier, nt as adjacentFaces, o as compound, ot as verticesOfEdge, p as filledFace, q as filletWithEvolution, r as box, rt as edgesOfFace, s as cone, st as wiresOfFace, t as addHoles, tt as getNurbsSurfaceData, u as ellipseArc, ut as toGroupedBufferGeometryData, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-
|
|
1
|
+
import { d as invalidateShapeCache, f as iterEdges, g as vertexPosition, h as iterWires, l as getVertices, m as iterVertices, n as getBounds, o as getEdges, p as iterFaces, s as getFaces, u as getWires } from "./topologyQueryFns-mWrJgMdr.js";
|
|
2
|
+
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-Cfgrt9P9.js";
|
|
3
|
+
import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-B1ThqSpi.js";
|
|
4
|
+
import { a as curveLength, c as curveStartPoint, d as getCurveType, f as getOrientation, i as curveIsPeriodic, l as curveTangentAt, m as offsetWire2D, n as curveEndPoint, o as curvePeriod, p as interpolateCurve, r as curveIsClosed, s as curvePointAt, t as approximateCurve, u as flipOrientation } from "./curveFns-Dvtp5oZA.js";
|
|
5
|
+
import { c as createMeshCache, n as exportSTEP, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-BIuX88EN.js";
|
|
6
|
+
import { a as fuseAll, r as cutAll } from "./booleanFns-lDauFalY.js";
|
|
7
|
+
import { $ as fuseAllBisect, A as fixShape, C as threePointArc, D as wireLoop, E as wire, G as chamferWithEvolution, I as solidFromShell, J as fuseWithEvolution, K as cutWithEvolution, M as healFace, N as healSolid, O as autoHeal, P as healWire, Q as cutAllBisect, S as tangentArc, T as vertex, U as variableFillet, W as positionOnCurve, X as shellWithEvolution, Y as intersectWithEvolution, Z as checkBoolean, _ as polygon, a as circle, at as sharedEdges, b as sphere, c as cylinder, ct as chamferDistAngle, d as ellipsoid, et as getNurbsCurveData, f as face, ft as toLineGeometryData, g as offsetFace, h as line, i as bsplineApprox, it as facesOfEdge, k as fixSelfIntersection, l as ellipse, lt as toBufferGeometryData, m as helix, n as bezier, nt as adjacentFaces, o as compound, ot as verticesOfEdge, p as filledFace, q as filletWithEvolution, r as box, rt as edgesOfFace, s as cone, st as wiresOfFace, t as addHoles, tt as getNurbsSurfaceData, u as ellipseArc, ut as toGroupedBufferGeometryData, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-B0DKFED_.js";
|
|
8
8
|
export { addHoles, adjacentFaces, approximateCurve, asTopo, autoHeal, bezier, box, bsplineApprox, cast, chamferDistAngle as chamferDistAngleShape, chamferWithEvolution, checkBoolean, circle, classifyPointOnFace, clearMeshCache, compound, cone, createMeshCache, curveEndPoint, curveIsClosed, curveIsPeriodic, curveLength, curvePeriod, curvePointAt, curveStartPoint, curveTangentAt, cutAll, cutAllBisect, cutWithEvolution, cylinder, fromBREP as deserializeShape, downcast, edgesOfFace, ellipse, ellipseArc, ellipsoid, exportIGES, exportSTEP, exportSTL, face, 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-BXXHBHal.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
3
|
//#region src/core/kernelCall.ts
|
|
4
4
|
function buildError(kind, code, message, cause, suggestion) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as getOrQueryType, R as DisposalScope, Y as _usingCtx, Z as getKernel, r as castShapeWithKnownType, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { N as getOrQueryType, R as DisposalScope, Y as _usingCtx, Z as getKernel, r as castShapeWithKnownType, t as castShape } from "./shapeTypes-DnYvZd61.js";
|
|
2
2
|
import { A as ok, b as err, f as getSuggestionForCode, p as translateKernelError } from "./errors-BJSTLaDI.js";
|
|
3
3
|
//#region src/core/kernelCall.ts
|
|
4
4
|
function buildError(kind, code, message, cause, suggestion) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brepjs",
|
|
3
|
-
"version": "18.33.
|
|
3
|
+
"version": "18.33.2",
|
|
4
4
|
"description": "Web CAD library with pluggable geometry kernel",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cad",
|
|
@@ -213,6 +213,7 @@
|
|
|
213
213
|
"format:check": "prettier --check 'src/**/*.ts' 'tests/**/*.ts'",
|
|
214
214
|
"test": "vitest run --project occt --changed",
|
|
215
215
|
"test:full": "vitest run --project occt --coverage",
|
|
216
|
+
"test:ci": "vitest run --project occt",
|
|
216
217
|
"test:watch": "vitest --project occt",
|
|
217
218
|
"test:brepkit": "vitest run --project brepkit",
|
|
218
219
|
"test:stress": "vitest run --config vitest.stress.config.ts",
|
|
@@ -248,7 +249,7 @@
|
|
|
248
249
|
"@types/opentype.js": "1.3.9",
|
|
249
250
|
"@vitest/coverage-v8": "4.1.6",
|
|
250
251
|
"brepjs-opencascade": "*",
|
|
251
|
-
"brepkit-wasm": "2.101.
|
|
252
|
+
"brepkit-wasm": "2.101.2",
|
|
252
253
|
"eslint": "10.4.0",
|
|
253
254
|
"fast-check": "4.8.0",
|
|
254
255
|
"husky": "9.1.7",
|