brepjs 18.5.3 → 18.6.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-DXNeal2M.js → blueprint-BCoJbaQN.js} +5 -5
- package/dist/{blueprint-BKo2Z5P_.cjs → blueprint-CscZ0-wr.cjs} +5 -5
- package/dist/{blueprintFns-DwKTTALX.js → blueprintFns-BZlx6BjG.js} +2 -2
- package/dist/{blueprintFns-DLmNAtH4.cjs → blueprintFns-DQP4KQHE.cjs} +2 -2
- package/dist/{boolean2D-C8DlibdA.js → boolean2D-JvgjbESt.js} +7 -7
- package/dist/{boolean2D-CvirfeVA.cjs → boolean2D-k1AJmCMp.cjs} +7 -7
- package/dist/{booleanFns-BvRK1Oi2.js → booleanFns-D13Pb-NO.js} +4 -4
- package/dist/{booleanFns-BTmOI2IT.cjs → booleanFns-DQW4lt7H.cjs} +4 -4
- package/dist/brepjs.cjs +19 -19
- package/dist/brepjs.js +19 -19
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-D3eGMa24.cjs → cornerFinder-5BYE2cbd.cjs} +1 -1
- package/dist/{cornerFinder-BwE0co98.js → cornerFinder-Zg7pf2s0.js} +1 -1
- package/dist/{curveFns-DOtvwQN1.js → curveFns-DhqUp0EI.js} +1 -1
- package/dist/{curveFns-CkhBj1Ot.cjs → curveFns-DrT54cm8.cjs} +1 -1
- package/dist/{drawFns-CFqr2BFZ.cjs → drawFns-DmP2o1oF.cjs} +10 -10
- package/dist/{drawFns-ChZrX59C.js → drawFns-lUXjhTYL.js} +10 -10
- package/dist/{extrudeFns-9m-r4epC.js → extrudeFns-B9bVCt3C.js} +1 -1
- package/dist/{extrudeFns-sFXnQ0GR.cjs → extrudeFns-BtblHdaJ.cjs} +1 -1
- package/dist/{faceFns-9yuvhlzD.cjs → faceFns-22idS-ht.cjs} +1 -1
- package/dist/{faceFns-CoVqCTcx.js → faceFns-NbWd8-iR.js} +1 -1
- package/dist/{helpers-BPqm4AyF.cjs → helpers-BpXNcxuJ.cjs} +5 -5
- package/dist/{helpers-thCB-5I7.js → helpers-S_Ht6gwX.js} +5 -5
- package/dist/{historyFns-DlyOFijD.js → historyFns-B01hrkcJ.js} +4 -4
- package/dist/{historyFns-C8RKuoZR.cjs → historyFns-RHO-QvEZ.cjs} +4 -4
- package/dist/{importFns-TsXZed73.js → importFns-C0tUyeiW.js} +2 -2
- package/dist/{importFns-C9KoV6Q2.cjs → importFns-CG49lyTm.cjs} +2 -2
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/brepkit/constructionOps.d.ts +3 -2
- package/dist/kernel/brepkit/constructionOps.d.ts.map +1 -1
- package/dist/{measureFns-CkhDfqzu.js → measureFns-B8C85hbT.js} +2 -2
- package/dist/{measureFns-DXLTUwTN.cjs → measureFns-C751QGI1.cjs} +2 -2
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-CAUI3r1d.js → meshFns-BgvsA-xA.js} +2 -2
- package/dist/{meshFns-DzGr_wxJ.cjs → meshFns-Cdhtbrhm.cjs} +2 -2
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-ClBrBsj6.cjs → primitiveFns-BLxaJ40A.cjs} +5 -5
- package/dist/{primitiveFns-DEIibX8G.js → primitiveFns-fR9sWOEb.js} +5 -5
- package/dist/query.cjs +2 -2
- package/dist/query.js +2 -2
- package/dist/{shapeFns-c2eak2sT.cjs → shapeFns-183zCtMc.cjs} +2 -2
- package/dist/{shapeFns-Cwt0CMNm.js → shapeFns-2X3VOi1a.js} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeRefFns-D-JLpn7D.cjs → shapeRefFns-CFyv5cdW.cjs} +3 -3
- package/dist/{shapeRefFns-Cx61pDhQ.js → shapeRefFns-CU1Jwq9C.js} +3 -3
- package/dist/{shapeTypes-Xnk670Cd.cjs → shapeTypes-C0MDggKf.cjs} +61 -49
- package/dist/{shapeTypes-uibK1QHY.js → shapeTypes-CN0GUoHr.js} +61 -49
- package/dist/sketching.cjs +2 -2
- package/dist/sketching.js +2 -2
- package/dist/{solidBuilders-BnTtq4g1.js → solidBuilders-BuS5ByIl.js} +2 -2
- package/dist/{solidBuilders-23LDxzEn.cjs → solidBuilders-DACzFqvX.cjs} +2 -2
- package/dist/{surfaceBuilders-DeNnAJb3.js → surfaceBuilders-BVH2SL-z.js} +2 -2
- package/dist/{surfaceBuilders-CUn-cmah.cjs → surfaceBuilders-CbH4FIW5.cjs} +2 -2
- package/dist/topology.cjs +6 -6
- package/dist/topology.js +6 -6
- package/dist/utils/vec3.d.ts +24 -0
- package/dist/utils/vec3.d.ts.map +1 -0
- 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-DmP2o1oF.cjs");
|
|
3
|
+
const require_boolean2D = require("./boolean2D-k1AJmCMp.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-JvgjbESt.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-lUXjhTYL.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 { X as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-
|
|
1
|
+
import { X as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-CN0GUoHr.js";
|
|
2
2
|
import { A as ok, R as unwrap, b as err, l as typeCastError, v as andThen } from "./errors-DboJwVCf.js";
|
|
3
|
-
import { M as cast, N as downcast } from "./faceFns-
|
|
3
|
+
import { M as cast, N as downcast } from "./faceFns-NbWd8-iR.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-C0MDggKf.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXRNVCec.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-22idS-ht.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 { X as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-
|
|
1
|
+
import { X as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-CN0GUoHr.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, i as kernelError, v as andThen } from "./errors-DboJwVCf.js";
|
|
3
|
-
import { M as cast, l as outerWire } from "./faceFns-
|
|
3
|
+
import { M as cast, l as outerWire } from "./faceFns-NbWd8-iR.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-C0MDggKf.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXRNVCec.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-22idS-ht.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/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-22idS-ht.cjs");
|
|
3
|
+
const require_shapeFns = require("./shapeFns-183zCtMc.cjs");
|
|
4
|
+
const require_curveFns = require("./curveFns-DrT54cm8.cjs");
|
|
5
|
+
const require_meshFns = require("./meshFns-Cdhtbrhm.cjs");
|
|
6
|
+
const require_booleanFns = require("./booleanFns-DQW4lt7H.cjs");
|
|
7
|
+
const require_primitiveFns = require("./primitiveFns-BLxaJ40A.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 { A as vertexPosition, C as getVertices, D as iterFaces, E as iterEdges, F as isCompSolid, I as iterTopo, L as shapeType, M as cast, N as downcast, O as iterVertices, P as fromBREP, T as invalidateShapeCache, a as flipFaceOrientation, b as getEdges, c as normalAt, d as projectPointOnFace, g as getBounds, i as faceOrientation, j as asTopo, k as iterWires, 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, w as getWires, x as getFaces } from "./faceFns-
|
|
2
|
-
import { a as isSameShape, i as isEqualShape, n as getHashCode } 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 { c as createMeshCache, n as exportSTEP, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-
|
|
5
|
-
import { a as fuseAll, r 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, 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, ut as toLineGeometryData, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-
|
|
1
|
+
import { A as vertexPosition, C as getVertices, D as iterFaces, E as iterEdges, F as isCompSolid, I as iterTopo, L as shapeType, M as cast, N as downcast, O as iterVertices, P as fromBREP, T as invalidateShapeCache, a as flipFaceOrientation, b as getEdges, c as normalAt, d as projectPointOnFace, g as getBounds, i as faceOrientation, j as asTopo, k as iterWires, 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, w as getWires, x as getFaces } from "./faceFns-NbWd8-iR.js";
|
|
2
|
+
import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-2X3VOi1a.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-DhqUp0EI.js";
|
|
4
|
+
import { c as createMeshCache, n as exportSTEP, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-BgvsA-xA.js";
|
|
5
|
+
import { a as fuseAll, r as cutAll } from "./booleanFns-D13Pb-NO.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, 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, ut as toLineGeometryData, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-fR9sWOEb.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 };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vec3 type alias and bounds-checked WASM index helper.
|
|
3
|
+
*
|
|
4
|
+
* Centralizes the `[number, number, number]` tuple type so kernel ops can
|
|
5
|
+
* declare local axis vectors with explicit tuple typing — `nz: [number, number, number]`
|
|
6
|
+
* instead of `nz: number[]` — and drop the `arr[i]!` non-null assertions that
|
|
7
|
+
* `noUncheckedIndexedAccess` otherwise demands.
|
|
8
|
+
*
|
|
9
|
+
* `wasmIndex` is the escape hatch for genuinely variadic WASM arrays (knot
|
|
10
|
+
* vectors, control-point flat arrays) where the index has been structurally
|
|
11
|
+
* guaranteed by the surrounding loop or the WASM ABI.
|
|
12
|
+
*
|
|
13
|
+
* Math helpers (cross/sub/normalize/etc.) are intentionally NOT included —
|
|
14
|
+
* the closure allocations they introduce regressed the gridfinity benchmark
|
|
15
|
+
* by 17% in early experiments. Hot-path code keeps inline math.
|
|
16
|
+
*/
|
|
17
|
+
export type Vec3 = readonly [number, number, number];
|
|
18
|
+
/**
|
|
19
|
+
* Index into a typed/regular array at a position the caller has structurally
|
|
20
|
+
* guaranteed (WASM ABI fixed-length arrays, post-bounds-check loops, etc.).
|
|
21
|
+
* Equivalent to `arr[i]!` but typed as `T` directly — no eslint-disable needed.
|
|
22
|
+
*/
|
|
23
|
+
export declare function wasmIndex<T>(arr: ArrayLike<T>, i: number): T;
|
|
24
|
+
//# sourceMappingURL=vec3.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vec3.d.ts","sourceRoot":"","sources":["../../src/utils/vec3.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,MAAM,IAAI,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAErD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,CAE5D"}
|