brepjs 19.0.4 → 19.0.5
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-C2efnl3n.js → adjacencyFns-BFgzaWom.js} +40 -6
- package/dist/{adjacencyFns-i3S_SXzH.cjs → adjacencyFns-CZ8tOKo6.cjs} +40 -6
- package/dist/{blueprint-CB1yyyaF.js → blueprint-CuE8oS8o.js} +5 -5
- package/dist/{blueprint-A0vNnPtH.cjs → blueprint-Pd5C9eyi.cjs} +5 -5
- package/dist/{blueprintFns-BT8lhB0j.js → blueprintFns-DeK5m2Dd.js} +2 -2
- package/dist/{blueprintFns-T8kTGpnS.cjs → blueprintFns-Jt8aabnr.cjs} +2 -2
- package/dist/{blueprintSketcher-BW61wFHj.cjs → blueprintSketcher-BbbIIw68.cjs} +3 -3
- package/dist/{blueprintSketcher-DBF-HfZS.js → blueprintSketcher-s1mCyP4C.js} +3 -3
- package/dist/{boolean2D-DXc-Z54o.cjs → boolean2D-B5-s6yey.cjs} +4 -4
- package/dist/{boolean2D-CSrfsgdP.js → boolean2D-XkF5a9UO.js} +4 -4
- package/dist/brepjs.cjs +30 -28
- package/dist/brepjs.js +30 -29
- package/dist/{cameraFns-DouxkTGQ.js → cameraFns-C42m8_GN.js} +3 -3
- package/dist/{cameraFns-DkpgYZ_J.cjs → cameraFns-C_aXHOXb.cjs} +3 -3
- package/dist/core/cleanupError.d.ts +9 -0
- package/dist/core/shapeTypes.d.ts +2 -0
- package/dist/core.cjs +3 -2
- package/dist/core.d.ts +1 -0
- package/dist/core.js +3 -3
- package/dist/{cornerFinder-B-BXL0FS.js → cornerFinder-B5uO-_nX.js} +1 -1
- package/dist/{cornerFinder-DtTV5f1F.cjs → cornerFinder-BSHr_G27.cjs} +1 -1
- package/dist/{curveFns-CckFqzDq.cjs → curveFns-BRhVbssu.cjs} +1 -1
- package/dist/{curveFns-CszFf328.js → curveFns-xQNPUc23.js} +1 -1
- package/dist/{drawFns-iLMiNmSn.cjs → drawFns-ByfPdMin.cjs} +12 -12
- package/dist/{drawFns-AaWLrHms.js → drawFns-S-UBDz0z.js} +12 -12
- package/dist/{faceFns-CC8_YZfa.cjs → faceFns-BbkcUym2.cjs} +2 -2
- package/dist/{faceFns-Cm0gES7K.js → faceFns-WhbyFezr.js} +2 -2
- package/dist/{healingFns-VeDJ6XMB.cjs → healingFns-CxWU6nqI.cjs} +4 -4
- package/dist/{healingFns-VpVN8_fL.js → healingFns-sTD9eRIy.js} +4 -4
- package/dist/{helpers-Bh0KwQP6.cjs → helpers-HXscoErf.cjs} +6 -6
- package/dist/{helpers-CLY1vBEh.js → helpers-m7uW_dyL.js} +6 -6
- package/dist/{importFns-S_yBN4DM.cjs → importFns-BUiDmbn7.cjs} +2 -2
- package/dist/{importFns-DGjvV5v7.js → importFns-C9yuTs04.js} +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/{loftFns-X1K8k-xO.cjs → loftFns-BUtmwfSU.cjs} +1 -1
- package/dist/{loftFns-DSRNDtrb.js → loftFns-oiR_wtVd.js} +1 -1
- package/dist/{measureFns-Cxk1viqa.js → measureFns-B2-vw7XG.js} +3 -3
- package/dist/{measureFns-BLvBkVN2.cjs → measureFns-BX7yvMB_.cjs} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-CLWjW34q.js → meshFns-13CekW14.js} +3 -3
- package/dist/{meshFns-DzECvE28.cjs → meshFns-DFhnm9DB.cjs} +3 -3
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{originTrackingFns-DkY6JVbS.cjs → originTrackingFns-B1dazHMg.cjs} +2 -2
- package/dist/{originTrackingFns-OE1K7fAE.js → originTrackingFns-DYB8oZOX.js} +2 -2
- package/dist/{primitiveFns-qgE7aAa1.cjs → primitiveFns-BdM2vG17.cjs} +38 -10
- package/dist/{primitiveFns-Btxzqm_m.js → primitiveFns-DjKUrsMr.js} +38 -10
- 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-CXx-LKJ9.js → refResolveFns-BhN6_Z7B.js} +6 -6
- package/dist/{refResolveFns-2rKlaLIA.cjs → refResolveFns-IdHk_1vT.cjs} +6 -6
- package/dist/{shapeFns-CE6uMpX9.js → shapeFns-B2Xg4Xom.js} +2 -2
- package/dist/{shapeFns-Chkm9zFw.cjs → shapeFns-D6EjojPG.cjs} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeTypes-Ddq-_v9z.js → shapeTypes-2oI77VpW.js} +45 -7
- package/dist/{shapeTypes-Bu34h0OX.cjs → shapeTypes-GoRBg9oo.cjs} +50 -6
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-C5Cofqf_.cjs → solidBuilders-BDwUKmVl.cjs} +51 -26
- package/dist/{solidBuilders-BWe6BF_m.js → solidBuilders-Buze6qct.js} +50 -25
- package/dist/{surfaceBuilders-cqrEzSj_.js → surfaceBuilders-DcD6eAJW.js} +3 -3
- package/dist/{surfaceBuilders-CpXc9NE-.cjs → surfaceBuilders-rWRvkB_K.cjs} +3 -3
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-DaFEVk6r.cjs → textBlueprints-DoePacWO.cjs} +7 -7
- package/dist/{textBlueprints-ByEk7W5S.js → textBlueprints-lFyk_adY.js} +7 -7
- package/dist/{textMetrics-n7sDRYpp.js → textMetrics-CmAlcFpe.js} +1 -1
- package/dist/{textMetrics-C-etH5pm.cjs → textMetrics-DemtrM-e.cjs} +1 -1
- package/dist/{threadFns-D7tjbPtF.js → threadFns-C1EWB5h6.js} +7 -7
- package/dist/{threadFns-Bb4UvCME.cjs → threadFns-DzoOHczW.cjs} +7 -7
- package/dist/topology/api.d.ts +2 -1
- package/dist/topology/transformFns.d.ts +2 -1
- package/dist/topology.cjs +9 -9
- package/dist/topology.js +9 -9
- package/dist/{topologyQueryFns-BDscEB9g.js → topologyQueryFns-C2tBjzT8.js} +1 -1
- package/dist/{topologyQueryFns-_cv7WYAy.cjs → topologyQueryFns-CZAfuhOE.cjs} +1 -1
- package/dist/{validityTypes-CAEV5aTC.js → validityTypes-BAwJuMQB.js} +1 -1
- package/dist/{validityTypes-B8dSLAyM.cjs → validityTypes-rPudJ_eg.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-GoRBg9oo.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-BbkcUym2.cjs");
|
|
5
|
+
const require_solidBuilders = require("./solidBuilders-BDwUKmVl.cjs");
|
|
6
|
+
const require_primitiveFns = require("./primitiveFns-BdM2vG17.cjs");
|
|
7
|
+
const require_shapeFns = require("./shapeFns-D6EjojPG.cjs");
|
|
8
|
+
const require_loftFns = require("./loftFns-BUtmwfSU.cjs");
|
|
9
|
+
const require_refResolveFns = require("./refResolveFns-IdHk_1vT.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/api.d.ts
CHANGED
|
@@ -57,8 +57,9 @@ export declare function transformCopy<T extends AnyShape<Dimension>>(shape: Shap
|
|
|
57
57
|
* re-tag — O(1) on occt-wasm ≥3.6.0, falling back to a copy elsewhere. Same
|
|
58
58
|
* face-metadata guarantee as `translate`, at location-swap cost. Ideal for
|
|
59
59
|
* placing one cached cell at N positions without paying for N deep copies.
|
|
60
|
+
* A supplied pre-composed transform remains caller-owned and must be cleaned up.
|
|
60
61
|
*/
|
|
61
|
-
export declare function locate<T extends AnyShape<Dimension>>(shape: Shapeable<T>, placement: transforms.TransformOp | readonly transforms.TransformOp[]): T;
|
|
62
|
+
export declare function locate<T extends AnyShape<Dimension>>(shape: Shapeable<T>, placement: transforms.TransformOp | readonly transforms.TransformOp[] | transforms.ComposedTransform): T;
|
|
62
63
|
/** Fuse two 3D shapes (boolean union). */
|
|
63
64
|
export declare function fuse<T extends Shape3D>(a: Shapeable<T>, b: Shapeable<Shape3D>, options?: booleans.BooleanOptions): Result<T>;
|
|
64
65
|
/** Cut a tool from a base shape (boolean subtraction). */
|
|
@@ -55,8 +55,9 @@ export declare function composeTransforms(ops: readonly TransformOp[]): Composed
|
|
|
55
55
|
* Accepts a single op or an ordered list (applied first-to-last, e.g. rotate
|
|
56
56
|
* then translate). Non-rigid ops (`scale`) aren't a placement and don't belong
|
|
57
57
|
* here — use `applyMatrix` for those.
|
|
58
|
+
* A pre-composed transform remains caller-owned; this function never cleans it up.
|
|
58
59
|
*/
|
|
59
|
-
export declare function locate<T extends AnyShape<Dimension>>(shape: T, placement: TransformOp | readonly TransformOp[]): T;
|
|
60
|
+
export declare function locate<T extends AnyShape<Dimension>>(shape: T, placement: TransformOp | readonly TransformOp[] | ComposedTransform): T;
|
|
60
61
|
/**
|
|
61
62
|
* Clone a shape and apply a pre-composed transform in a single kernel operation.
|
|
62
63
|
* Much faster than separate clone() + translate() + rotate() calls.
|
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-CZAfuhOE.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-BbkcUym2.cjs");
|
|
4
|
+
const require_solidBuilders = require("./solidBuilders-BDwUKmVl.cjs");
|
|
5
|
+
const require_primitiveFns = require("./primitiveFns-BdM2vG17.cjs");
|
|
6
|
+
const require_shapeFns = require("./shapeFns-D6EjojPG.cjs");
|
|
7
|
+
const require_curveFns = require("./curveFns-BRhVbssu.cjs");
|
|
8
|
+
const require_meshFns = require("./meshFns-DFhnm9DB.cjs");
|
|
9
|
+
const require_healingFns = require("./healingFns-CxWU6nqI.cjs");
|
|
10
|
+
const require_adjacencyFns = require("./adjacencyFns-CZ8tOKo6.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-C2tBjzT8.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-WhbyFezr.js";
|
|
3
|
+
import { h as fuseAll, p as cutAll } from "./solidBuilders-Buze6qct.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-DjKUrsMr.js";
|
|
5
|
+
import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-B2Xg4Xom.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-xQNPUc23.js";
|
|
7
|
+
import { d as clearMeshCache, f as createMeshCache, n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-13CekW14.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-sTD9eRIy.js";
|
|
9
|
+
import { i as facesOfEdge, l as wiresOfFace, n as adjacentFaces, o as sharedEdges, r as edgesOfFace, s as verticesOfEdge } from "./adjacencyFns-BFgzaWom.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
|
-
import {
|
|
1
|
+
import { G as _usingCtx, N as DisposalScope, O as getOrQueryType, n as castResultShape, q as getKernel, r as castResultShapeWithKnownType } from "./shapeTypes-2oI77VpW.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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-GoRBg9oo.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
|