brepjs 12.2.12 → 12.4.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/blueprints/Blueprint.d.ts +1 -1
- package/dist/2d/blueprints/Blueprint.d.ts.map +1 -1
- package/dist/2d.cjs +2 -2
- package/dist/2d.js +3 -3
- package/dist/{Blueprint-CX2oh-NE.cjs → Blueprint-CoFJDAQd.cjs} +6 -6
- package/dist/{Blueprint-BWAzjtvF.js → Blueprint-CtuUvzex.js} +6 -6
- package/dist/{boolean2D-G9edb4Pw.cjs → boolean2D-Dk-vLBdl.cjs} +8 -8
- package/dist/{boolean2D-B17ZPZ63.js → boolean2D-x2irapGj.js} +8 -8
- package/dist/{booleanFns-DQj7i7qb.cjs → booleanFns-BJjYqwJ5.cjs} +3 -3
- package/dist/{booleanFns-EsNGs4Zu.js → booleanFns-DtOkwLHI.js} +3 -3
- package/dist/brepjs.cjs +343 -35
- package/dist/brepjs.js +383 -75
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-NbeO5KWC.cjs → cornerFinder-BESZIitp.cjs} +2 -2
- package/dist/{cornerFinder-57qxNypG.js → cornerFinder-FY38t0zq.js} +2 -2
- package/dist/{curveFns-BN9bWCIl.cjs → curveFns-Ch87sD5O.cjs} +1 -1
- package/dist/{curveFns-DRb_8jyd.js → curveFns-LRNGcHXh.js} +1 -1
- package/dist/{drawFns-Br57GZWI.cjs → drawFns-BEeoD1yO.cjs} +16 -16
- package/dist/{drawFns-DWTCgzlb.js → drawFns-D8QyY7cg.js} +16 -16
- package/dist/{faceFns-Dka8xvYk.js → faceFns-B6ebRh5I.js} +6 -2
- package/dist/{faceFns-Cfvj4nxx.cjs → faceFns-BLTEPBKq.cjs} +5 -1
- package/dist/{helpers-Cu_7Qo9J.cjs → helpers-DNzVfe-Z.cjs} +4 -4
- package/dist/{helpers-10HaneKK.js → helpers-DeFPsrcI.js} +4 -4
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/io.cjs +3 -3
- package/dist/io.js +3 -3
- package/dist/kernel/advancedOps.d.ts +2 -0
- package/dist/kernel/advancedOps.d.ts.map +1 -1
- package/dist/kernel/brepkitAdapter.d.ts +59 -0
- package/dist/kernel/brepkitAdapter.d.ts.map +1 -1
- package/dist/kernel/brepkitWasmTypes.d.ts +2 -2
- package/dist/kernel/brepkitWasmTypes.d.ts.map +1 -1
- package/dist/kernel/defaultAdapter.d.ts +35 -0
- package/dist/kernel/defaultAdapter.d.ts.map +1 -1
- package/dist/kernel/index.d.ts +2 -2
- package/dist/kernel/index.d.ts.map +1 -1
- package/dist/kernel/types.d.ts +85 -0
- package/dist/kernel/types.d.ts.map +1 -1
- package/dist/{loft-BDnb8toT.cjs → loft-DR1UN5uN.cjs} +4 -4
- package/dist/{loft-DTFP5fVL.js → loft-DsVv4yxU.js} +4 -4
- package/dist/{measurement-ypLLNq5y.cjs → measurement-DoYXRaKI.cjs} +2 -2
- package/dist/{measurement-9v764TRE.js → measurement-oWvhSVZG.js} +2 -2
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-xWim4bEU.cjs → meshFns-BU2l_yOm.cjs} +2 -2
- package/dist/{meshFns-B1FRGCo4.js → meshFns-HNwWuM4v.js} +2 -2
- package/dist/{operations-CLaaoj2N.cjs → operations-D-gTZNtM.cjs} +6 -6
- package/dist/{operations-C0597E2p.js → operations-D_3rrfrE.js} +6 -6
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/query.cjs +4 -4
- package/dist/query.js +5 -5
- package/dist/{shapeFns-Dim8UTHh.js → shapeFns-CbXxLvV_.js} +2 -2
- package/dist/{shapeFns-ZbzAD8yC.cjs → shapeFns-DHlLNHTn.cjs} +2 -2
- package/dist/{shapeTypes-BQGbhdgi.cjs → shapeTypes-7xEam9Ri.cjs} +124 -0
- package/dist/{shapeTypes-ByN4-0Hp.js → shapeTypes-CpSaBLDv.js} +124 -0
- package/dist/sketching.cjs +2 -2
- package/dist/sketching.js +2 -2
- package/dist/{solidBuilders-Bc6kgqJ9.js → solidBuilders-BXhh5hP2.js} +2 -2
- package/dist/{solidBuilders-CYEEZgiP.cjs → solidBuilders-BzfRBizW.cjs} +2 -2
- package/dist/{surfaceBuilders-CXarnCh8.cjs → surfaceBuilders-Be_ENWSA.cjs} +2 -2
- package/dist/{surfaceBuilders-Bdn7iqv5.js → surfaceBuilders-D7ZH2QNS.js} +2 -2
- package/dist/topology/adjacencyFns.d.ts.map +1 -1
- package/dist/topology/faceFns.d.ts +5 -0
- package/dist/topology/faceFns.d.ts.map +1 -1
- package/dist/{topology-CPYjaISY.cjs → topology-BHnY7Szr.cjs} +8 -8
- package/dist/{topology-Cq1j_bp1.js → topology-C1eZ86dI.js} +8 -8
- package/dist/topology.cjs +6 -6
- package/dist/topology.js +7 -7
- package/package.json +4 -4
package/dist/sketching.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C, D, a, S, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W } from "./drawFns-
|
|
2
|
-
import { B as B2, a as a2, F as F2, S as S2 } from "./boolean2D-
|
|
1
|
+
import { C, D, a, S, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W } from "./drawFns-D8QyY7cg.js";
|
|
2
|
+
import { B as B2, a as a2, F as F2, S as S2 } from "./boolean2D-x2irapGj.js";
|
|
3
3
|
export {
|
|
4
4
|
B2 as BaseSketcher2d,
|
|
5
5
|
a2 as BlueprintSketcher,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as getKernel, q as isShell, C as createCompound, E as createVertex, F as createSolid, p as isShape3D, r as isSolid } from "./shapeTypes-
|
|
1
|
+
import { B as getKernel, q as isShell, C as createCompound, E as createVertex, F as createSolid, p as isShape3D, r as isSolid } from "./shapeTypes-CpSaBLDv.js";
|
|
2
2
|
import { r as unwrap, e as err, p as typeCastError, o as ok, a as andThen } from "./errors-B7kgv0cd.js";
|
|
3
|
-
import { c as cast, d as downcast } from "./faceFns-
|
|
3
|
+
import { c as cast, d as downcast } from "./faceFns-B6ebRh5I.js";
|
|
4
4
|
function weldShapes(facesOrShells) {
|
|
5
5
|
const sewn = getKernel().sew(facesOrShells.map((s) => s.wrapped));
|
|
6
6
|
return unwrap(cast(unwrap(downcast(sewn))));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const shapeTypes = require("./shapeTypes-
|
|
2
|
+
const shapeTypes = require("./shapeTypes-7xEam9Ri.cjs");
|
|
3
3
|
const errors = require("./errors-9fDehDNc.cjs");
|
|
4
|
-
const faceFns = require("./faceFns-
|
|
4
|
+
const faceFns = require("./faceFns-BLTEPBKq.cjs");
|
|
5
5
|
function weldShapes(facesOrShells) {
|
|
6
6
|
const sewn = shapeTypes.getKernel().sew(facesOrShells.map((s) => s.wrapped));
|
|
7
7
|
return errors.unwrap(faceFns.cast(errors.unwrap(faceFns.downcast(sewn))));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const shapeTypes = require("./shapeTypes-
|
|
2
|
+
const shapeTypes = require("./shapeTypes-7xEam9Ri.cjs");
|
|
3
3
|
const errors = require("./errors-9fDehDNc.cjs");
|
|
4
|
-
const faceFns = require("./faceFns-
|
|
4
|
+
const faceFns = require("./faceFns-BLTEPBKq.cjs");
|
|
5
5
|
function range(len) {
|
|
6
6
|
return Array.from(Array(len).keys());
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { G as createWire, B as getKernel, H as createEdge, I as createFace, k as isFace } from "./shapeTypes-
|
|
1
|
+
import { G as createWire, B as getKernel, H as createEdge, I as createFace, k as isFace } from "./shapeTypes-CpSaBLDv.js";
|
|
2
2
|
import { o as ok, e as err, k as kernelError, y as validationError, a as andThen } from "./errors-B7kgv0cd.js";
|
|
3
|
-
import { o as outerWire, c as cast } from "./faceFns-
|
|
3
|
+
import { o as outerWire, c as cast } from "./faceFns-B6ebRh5I.js";
|
|
4
4
|
function range(len) {
|
|
5
5
|
return Array.from(Array(len).keys());
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adjacencyFns.d.ts","sourceRoot":"","sources":["../../src/topology/adjacencyFns.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"adjacencyFns.d.ts","sourceRoot":"","sources":["../../src/topology/adjacencyFns.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAmFjG;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,EAAE,CAG9F;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,EAAE,CAGzE;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE,CAG/E;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,CAG9E;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,EAAE,CAgDhG;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,EAAE,CA0B1F"}
|
|
@@ -63,6 +63,11 @@ export declare function faceCenter(face: Face): Vec3;
|
|
|
63
63
|
export declare function classifyPointOnFace(face: Face, point: PointInput, tolerance?: number): 'in' | 'on' | 'out';
|
|
64
64
|
/** Get the outer wire of a face. The outer boundary of a face is always closed. */
|
|
65
65
|
export declare function outerWire<D extends Dimension = '3D'>(face: Face<D>): ClosedWire<D>;
|
|
66
|
+
/**
|
|
67
|
+
* Remove all holes (inner wires) from a face, returning a new face with only the outer boundary.
|
|
68
|
+
* Useful for defeaturing workflows where holes need to be temporarily or permanently filled.
|
|
69
|
+
*/
|
|
70
|
+
export declare function removeHolesFromFace<D extends Dimension = '3D'>(face: Face<D>): Face<D>;
|
|
66
71
|
/** Get the inner wires (holes) of a face. Hole boundaries are always closed. */
|
|
67
72
|
export declare function innerWires<D extends Dimension = '3D'>(face: Face<D>): ClosedWire<D>[];
|
|
68
73
|
//# sourceMappingURL=faceFns.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"faceFns.d.ts","sourceRoot":"","sources":["../../src/topology/faceFns.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,MA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9B,2CAA2C;IAC3C,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC;IACrB,4DAA4D;IAC5D,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,GAAG,MAAM,CAAC,qBAAqB,CAAC,CA+B/F;AAED,8EAA8E;AAC9E,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,aAAa,CAAC,EAAE,UAAU,GAAG,IAAI,CAarE;AAED,wCAAwC;AACxC,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAE3C;AAMD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,UAAU,EACjB,SAAS,SAAO,GACf,IAAI,GAAG,IAAI,GAAG,KAAK,CAGrB;AAMD,mFAAmF;AACnF,wBAAgB,SAAS,CAAC,CAAC,SAAS,SAAS,GAAG,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAElF;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,SAAS,GAAG,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAEtF;AAED,gFAAgF;AAChF,wBAAgB,UAAU,CAAC,CAAC,SAAS,SAAS,GAAG,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE,CAOrF"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const shapeFns = require("./shapeFns-
|
|
2
|
+
const shapeFns = require("./shapeFns-DHlLNHTn.cjs");
|
|
3
3
|
const errors = require("./errors-9fDehDNc.cjs");
|
|
4
|
-
const shapeTypes = require("./shapeTypes-
|
|
4
|
+
const shapeTypes = require("./shapeTypes-7xEam9Ri.cjs");
|
|
5
5
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
6
|
-
const surfaceBuilders = require("./surfaceBuilders-
|
|
7
|
-
const solidBuilders = require("./solidBuilders-
|
|
8
|
-
require("./booleanFns-
|
|
9
|
-
const faceFns = require("./faceFns-
|
|
10
|
-
require("./curveFns-
|
|
11
|
-
require("./meshFns-
|
|
6
|
+
const surfaceBuilders = require("./surfaceBuilders-Be_ENWSA.cjs");
|
|
7
|
+
const solidBuilders = require("./solidBuilders-BzfRBizW.cjs");
|
|
8
|
+
require("./booleanFns-BJjYqwJ5.cjs");
|
|
9
|
+
const faceFns = require("./faceFns-BLTEPBKq.cjs");
|
|
10
|
+
require("./curveFns-Ch87sD5O.cjs");
|
|
11
|
+
require("./meshFns-BU2l_yOm.cjs");
|
|
12
12
|
function toBufferGeometryData(mesh) {
|
|
13
13
|
return {
|
|
14
14
|
position: mesh.vertices,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { c as getWires, a as getFaces, u as translate } from "./shapeFns-
|
|
1
|
+
import { c as getWires, a as getFaces, u as translate } from "./shapeFns-CbXxLvV_.js";
|
|
2
2
|
import { e as err, y as validationError, k as kernelError, d as isErr, p as typeCastError, o as ok, r as unwrap, g as isOk, B as BrepErrorCode, a as andThen } from "./errors-B7kgv0cd.js";
|
|
3
|
-
import { B as getKernel, c as castShape, p as isShape3D, r as isSolid, k as isFace, u as isWire, F as createSolid, f as isClosedWire } from "./shapeTypes-
|
|
3
|
+
import { B as getKernel, c as castShape, p as isShape3D, r as isSolid, k as isFace, u as isWire, F as createSolid, f as isClosedWire } from "./shapeTypes-CpSaBLDv.js";
|
|
4
4
|
import { H as HASH_CODE_MAX, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
|
|
5
|
-
import { h as addHolesInFace, g as makeBezierCurve, k as makeBSplineApproximation, i as makeCircle, j as makeEllipse, f as makeEllipseArc, m as makeFace, o as makeNonPlanarFace, c as makeHelix, a as makeLine, p as makePolygon, l as makeNewFaceWithinFace, e as makeTangentArc, d as makeThreePointArc, b as assembleWire } from "./surfaceBuilders-
|
|
6
|
-
import { a as makeCompound, d as makeCone, c as makeCylinder, e as makeEllipsoid, f as makeOffset, w as weldShellsAndFaces, b as makeSolid, g as makeSphere, h as makeTorus, m as makeVertex } from "./solidBuilders-
|
|
7
|
-
import "./booleanFns-
|
|
8
|
-
import { d as downcast } from "./faceFns-
|
|
9
|
-
import "./curveFns-
|
|
10
|
-
import "./meshFns-
|
|
5
|
+
import { h as addHolesInFace, g as makeBezierCurve, k as makeBSplineApproximation, i as makeCircle, j as makeEllipse, f as makeEllipseArc, m as makeFace, o as makeNonPlanarFace, c as makeHelix, a as makeLine, p as makePolygon, l as makeNewFaceWithinFace, e as makeTangentArc, d as makeThreePointArc, b as assembleWire } from "./surfaceBuilders-D7ZH2QNS.js";
|
|
6
|
+
import { a as makeCompound, d as makeCone, c as makeCylinder, e as makeEllipsoid, f as makeOffset, w as weldShellsAndFaces, b as makeSolid, g as makeSphere, h as makeTorus, m as makeVertex } from "./solidBuilders-BXhh5hP2.js";
|
|
7
|
+
import "./booleanFns-DtOkwLHI.js";
|
|
8
|
+
import { d as downcast } from "./faceFns-B6ebRh5I.js";
|
|
9
|
+
import "./curveFns-LRNGcHXh.js";
|
|
10
|
+
import "./meshFns-HNwWuM4v.js";
|
|
11
11
|
function toBufferGeometryData(mesh) {
|
|
12
12
|
return {
|
|
13
13
|
position: mesh.vertices,
|
package/dist/topology.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const shapeFns = require("./shapeFns-
|
|
4
|
-
const topology = require("./topology-
|
|
5
|
-
const booleanFns = require("./booleanFns-
|
|
6
|
-
const curveFns = require("./curveFns-
|
|
7
|
-
const faceFns = require("./faceFns-
|
|
8
|
-
const meshFns = require("./meshFns-
|
|
3
|
+
const shapeFns = require("./shapeFns-DHlLNHTn.cjs");
|
|
4
|
+
const topology = require("./topology-BHnY7Szr.cjs");
|
|
5
|
+
const booleanFns = require("./booleanFns-BJjYqwJ5.cjs");
|
|
6
|
+
const curveFns = require("./curveFns-Ch87sD5O.cjs");
|
|
7
|
+
const faceFns = require("./faceFns-BLTEPBKq.cjs");
|
|
8
|
+
const meshFns = require("./meshFns-BU2l_yOm.cjs");
|
|
9
9
|
exports.getBounds = shapeFns.getBounds;
|
|
10
10
|
exports.getEdges = shapeFns.getEdges;
|
|
11
11
|
exports.getFaces = shapeFns.getFaces;
|
package/dist/topology.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { h, d, a, f, e, c, x, i, y, z, A, B, v } from "./shapeFns-
|
|
2
|
-
import { a as a2, b, d as d2, e as e2, f as f2, g, c as c2, j, k, l, m, n, o, p, q, r, s, t, u, v as v2, w, x as x2, y as y2, z as z2, A as A2, B as B2, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q } from "./topology-
|
|
3
|
-
import { k as k2, j as j2 } from "./booleanFns-
|
|
4
|
-
import { j as j3, a as a3, e as e3, k as k3, i as i2, l as l2, h as h2, d as d3, c as c3, f as f3, b as b2, g as g2, m as m2, o as o2 } from "./curveFns-
|
|
5
|
-
import { l as l3, c as c4, m as m3, j as j4, d as d4, e as e4, f as f4, q as q2, r as r2, g as g3, k as k4, s as s2, i as i3, n as n2, o as o3, p as p2, t as t2,
|
|
6
|
-
import { c as c5, b as b3, e as e5, d as d5, f as f5 } from "./meshFns-
|
|
1
|
+
import { h, d, a, f, e, c, x, i, y, z, A, B, v } from "./shapeFns-CbXxLvV_.js";
|
|
2
|
+
import { a as a2, b, d as d2, e as e2, f as f2, g, c as c2, j, k, l, m, n, o, p, q, r, s, t, u, v as v2, w, x as x2, y as y2, z as z2, A as A2, B as B2, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q } from "./topology-C1eZ86dI.js";
|
|
3
|
+
import { k as k2, j as j2 } from "./booleanFns-DtOkwLHI.js";
|
|
4
|
+
import { j as j3, a as a3, e as e3, k as k3, i as i2, l as l2, h as h2, d as d3, c as c3, f as f3, b as b2, g as g2, m as m2, o as o2 } from "./curveFns-LRNGcHXh.js";
|
|
5
|
+
import { l as l3, c as c4, m as m3, j as j4, d as d4, e as e4, f as f4, q as q2, r as r2, g as g3, k as k4, s as s2, i as i3, n as n2, o as o3, p as p2, t as t2, w as w2, u as u2, h as h3 } from "./faceFns-B6ebRh5I.js";
|
|
6
|
+
import { c as c5, b as b3, e as e5, d as d5, f as f5 } from "./meshFns-HNwWuM4v.js";
|
|
7
7
|
export {
|
|
8
8
|
a2 as addHoles,
|
|
9
9
|
b as adjacentFaces,
|
|
@@ -81,7 +81,7 @@ export {
|
|
|
81
81
|
A2 as polygon,
|
|
82
82
|
t2 as projectPointOnFace,
|
|
83
83
|
B2 as sewShells,
|
|
84
|
-
|
|
84
|
+
w2 as shapeType,
|
|
85
85
|
C as sharedEdges,
|
|
86
86
|
D as solid,
|
|
87
87
|
E as sphere,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brepjs",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.4.0",
|
|
4
4
|
"description": "Web CAD library with pluggable geometry kernel",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cad",
|
|
@@ -199,16 +199,16 @@
|
|
|
199
199
|
"@types/opentype.js": "1.3.9",
|
|
200
200
|
"@vitest/coverage-v8": "4.0.18",
|
|
201
201
|
"brepjs-opencascade": "*",
|
|
202
|
-
"brepkit-wasm": "1.0.
|
|
202
|
+
"brepkit-wasm": "1.0.5",
|
|
203
203
|
"eslint": "10.0.3",
|
|
204
204
|
"husky": "9.1.7",
|
|
205
205
|
"knip": "5.86.0",
|
|
206
|
-
"lint-staged": "16.3.
|
|
206
|
+
"lint-staged": "16.3.3",
|
|
207
207
|
"prettier": "3.8.1",
|
|
208
208
|
"size-limit": "12.0.1",
|
|
209
209
|
"typedoc": "0.28.17",
|
|
210
210
|
"typescript": "5.9.3",
|
|
211
|
-
"typescript-eslint": "8.
|
|
211
|
+
"typescript-eslint": "8.57.0",
|
|
212
212
|
"vite": "7.3.1",
|
|
213
213
|
"vite-plugin-dts": "4.5.4",
|
|
214
214
|
"vitest": "4.0.18"
|