brepjs 14.1.2 → 14.2.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-D0XChcek.cjs → blueprint-C8nlHdUE.cjs} +5 -5
- package/dist/{blueprint-B3A5x7P9.js → blueprint-Dsp-f4De.js} +5 -5
- package/dist/{blueprintFns-COrEYX29.cjs → blueprintFns-CvtakKGf.cjs} +2 -2
- package/dist/{blueprintFns-BwAMXY3t.js → blueprintFns-D1QUp5y4.js} +2 -2
- package/dist/{boolean2D-D_Te-6N6.js → boolean2D-D1MYwspP.js} +49 -8
- package/dist/{boolean2D-BPsyKImE.cjs → boolean2D-DE2axG6W.cjs} +54 -7
- package/dist/{booleanFns-CgsaJFBf.js → booleanFns-2nes2SPo.js} +3 -3
- package/dist/{booleanFns-B6M6Lm0V.cjs → booleanFns-Bu-Lh--S.cjs} +3 -3
- package/dist/brepjs.cjs +23 -19
- package/dist/brepjs.js +20 -20
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-AEFnAxt4.js → cornerFinder-CyvfiiYv.js} +1 -1
- package/dist/{cornerFinder-DTt_SvtC.cjs → cornerFinder-Du1Q1hgu.cjs} +1 -1
- package/dist/{curveFns-DCEcwcpd.cjs → curveFns--4Nh1ZtB.cjs} +1 -1
- package/dist/{curveFns-CcInoOEA.js → curveFns-D9GbWpcl.js} +1 -1
- package/dist/{drawFns-n9qif7QN.js → drawFns-BDqEWrCy.js} +11 -11
- package/dist/{drawFns-BOwBIzPa.cjs → drawFns-DTqCnYeo.cjs} +11 -11
- package/dist/{extrudeFns-Rcut7h8S.cjs → extrudeFns-CIUq5ZQW.cjs} +44 -1
- package/dist/{extrudeFns-DrDr9-nU.js → extrudeFns-DxS_UOMr.js} +39 -2
- package/dist/{faceFns-cE2WxY6I.cjs → faceFns-D7i9yEts.cjs} +1 -1
- package/dist/{faceFns-TSH54pPQ.js → faceFns-lcEYbLOs.js} +1 -1
- package/dist/{helpers-DZje6XWE.cjs → helpers-BK3DVd3M.cjs} +5 -5
- package/dist/{helpers-XrXlKm8D.js → helpers-BwzOwHWl.js} +5 -5
- package/dist/{historyFns-2hCWrX_X.js → historyFns-BNU_OnGC.js} +4 -4
- package/dist/{historyFns-BiQ9dmzp.cjs → historyFns-CB4sFREk.cjs} +4 -4
- package/dist/{importFns-DGE5nCSW.cjs → importFns-Ca7DsY-k.cjs} +2 -2
- package/dist/{importFns-m0xyj0Zt.js → importFns-NY1stg0C.js} +2 -2
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/index.d.ts +2 -0
- package/dist/kernel/index.d.ts.map +1 -1
- package/dist/kernel/interfaces/modifierOps.d.ts +16 -0
- package/dist/kernel/interfaces/modifierOps.d.ts.map +1 -1
- package/dist/kernel/interfaces/sweepOps.d.ts +15 -0
- package/dist/kernel/interfaces/sweepOps.d.ts.map +1 -1
- package/dist/kernel/occt/booleanBatchOps.d.ts +13 -0
- package/dist/kernel/occt/booleanBatchOps.d.ts.map +1 -0
- package/dist/kernel/occt/booleanOps.d.ts.map +1 -1
- package/dist/kernel/occt/defaultAdapter.d.ts +6 -0
- package/dist/kernel/occt/defaultAdapter.d.ts.map +1 -1
- package/dist/kernel/occt/meshOps.d.ts.map +1 -1
- package/dist/kernel/occt/modifierOps.d.ts +19 -0
- package/dist/kernel/occt/modifierOps.d.ts.map +1 -1
- package/dist/kernel/occt/sweepOps.d.ts +17 -0
- package/dist/kernel/occt/sweepOps.d.ts.map +1 -1
- package/dist/kernel/occt/transformOps.d.ts.map +1 -1
- package/dist/kernel/perfStats.d.ts +27 -0
- package/dist/kernel/perfStats.d.ts.map +1 -0
- package/dist/{measureFns-DHByqdmn.js → measureFns-Dsan3QcB.js} +2 -2
- package/dist/{measureFns-D_QKZ5yg.cjs → measureFns-rVSankqO.cjs} +2 -2
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-DL4Djz3w.js → meshFns-CKs4H-CH.js} +2 -2
- package/dist/{meshFns-CVe3Kc77.cjs → meshFns-Z5n8gFAS.cjs} +2 -2
- package/dist/operations/extrudeFns.d.ts +16 -0
- package/dist/operations/extrudeFns.d.ts.map +1 -1
- package/dist/operations/loftFns.d.ts +22 -0
- package/dist/operations/loftFns.d.ts.map +1 -1
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-CRPGjIFg.cjs → primitiveFns-Dnw7S05M.cjs} +5 -5
- package/dist/{primitiveFns-CeKiYSSW.js → primitiveFns-cCMz_zEp.js} +5 -5
- package/dist/query.cjs +2 -2
- package/dist/query.js +2 -2
- package/dist/{shapeFns-aEeSHNqX.cjs → shapeFns-DZ2c5Nqo.cjs} +2 -2
- package/dist/{shapeFns-DCi9O27X.js → shapeFns-E3qTx3nN.js} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeRefFns-B1TODUMl.js → shapeRefFns-CEYgkZ1v.js} +3 -3
- package/dist/{shapeRefFns-CVdS6jWS.cjs → shapeRefFns-Dl7v17MC.cjs} +3 -3
- package/dist/{shapeTypes-BqWQlrYE.cjs → shapeTypes-B5Vx1Wsw.cjs} +548 -185
- package/dist/{shapeTypes-BO1aiDhi.js → shapeTypes-DUJg_N3P.js} +537 -186
- package/dist/sketching.cjs +2 -2
- package/dist/sketching.js +2 -2
- package/dist/{solidBuilders-jk7HfWs8.js → solidBuilders-0gTTuSxw.js} +2 -2
- package/dist/{solidBuilders-0iVdiZUw.cjs → solidBuilders-Bvq6br4f.cjs} +2 -2
- package/dist/{surfaceBuilders-C_8rs79F.cjs → surfaceBuilders-CYWopaht.cjs} +2 -2
- package/dist/{surfaceBuilders-DE5e6bp8.js → surfaceBuilders-DMI0n7Bf.js} +2 -2
- package/dist/topology.cjs +6 -6
- package/dist/topology.js +6 -6
- package/package.json +1 -1
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-DTqCnYeo.cjs");
|
|
3
|
+
const require_boolean2D = require("./boolean2D-DE2axG6W.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-D1MYwspP.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-BDqEWrCy.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
|
-
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-DUJg_N3P.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-lcEYbLOs.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-B5Vx1Wsw.cjs");
|
|
2
2
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-D7i9yEts.cjs");
|
|
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-B5Vx1Wsw.cjs");
|
|
2
2
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-D7i9yEts.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-DUJg_N3P.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-lcEYbLOs.js";
|
|
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/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-D7i9yEts.cjs");
|
|
3
|
+
const require_shapeFns = require("./shapeFns-DZ2c5Nqo.cjs");
|
|
4
|
+
const require_curveFns = require("./curveFns--4Nh1ZtB.cjs");
|
|
5
|
+
const require_meshFns = require("./meshFns-Z5n8gFAS.cjs");
|
|
6
|
+
const require_booleanFns = require("./booleanFns-Bu-Lh--S.cjs");
|
|
7
|
+
const require_primitiveFns = require("./primitiveFns-Dnw7S05M.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 { i as fuseAll, n as cutAll } from "./booleanFns-
|
|
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-lcEYbLOs.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-E3qTx3nN.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-D9GbWpcl.js";
|
|
4
|
+
import { n as exportSTEP, o as clearMeshCache, r as exportSTL, s as createMeshCache, t as exportIGES } from "./meshFns-CKs4H-CH.js";
|
|
5
|
+
import { i as fuseAll, n as cutAll } from "./booleanFns-2nes2SPo.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-cCMz_zEp.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 };
|