brepjs 7.4.1 → 7.5.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/README.md +179 -17
- package/dist/2d.cjs +2 -2
- package/dist/2d.js +4 -4
- package/dist/{Blueprint-3Dyu0OL6.cjs → Blueprint-CVctc41Z.cjs} +4 -4
- package/dist/{Blueprint-DSHD89bZ.js → Blueprint-D3JfGJTz.js} +4 -4
- package/dist/{boolean2D-CtyE2hK5.js → boolean2D-Ba8TcVzC.js} +6 -6
- package/dist/{boolean2D-BwOpOv6L.cjs → boolean2D-BnuJdfDv.cjs} +6 -6
- package/dist/{booleanFns-5KSbtLBU.cjs → booleanFns-BBSVKhL2.cjs} +27 -31
- package/dist/{booleanFns-DcxqLQSG.js → booleanFns-CqehfzcK.js} +27 -31
- package/dist/brepjs.cjs +87 -79
- package/dist/brepjs.js +120 -112
- package/dist/{cast-D1s7Im9E.js → cast-DQaUibmm.js} +3 -3
- package/dist/{cast-DsxJk_F0.cjs → cast-DkB0GKmQ.cjs} +2 -2
- package/dist/{drawFns-CSbH7uoI.js → drawFns-D9qkvHgY.js} +8 -8
- package/dist/{drawFns-C6KQjmQj.cjs → drawFns-DWOskIp7.cjs} +8 -8
- package/dist/{faceFns-B9if-FPW.cjs → faceFns-BwK7FP7N.cjs} +1 -1
- package/dist/{faceFns-Bl6HHbqO.js → faceFns-DHu-2JpA.js} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/{loft-Cc5E5pAf.cjs → loft-BzWFokmC.cjs} +2 -2
- package/dist/{loft-BlNndTOR.js → loft-CtG5nMq5.js} +2 -2
- package/dist/{measurement-D75pyJi1.js → measurement-C5JGCuUP.js} +1 -1
- package/dist/{measurement-BVdZ9cG3.cjs → measurement-fxm_pW7x.cjs} +1 -1
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-p_kv--PW.js → meshFns-BY1fMF48.js} +7 -7
- package/dist/{meshFns-mVlogI3J.cjs → meshFns-Dbj_k5gq.cjs} +7 -7
- package/dist/operations/api.d.ts +2 -2
- package/dist/operations/api.d.ts.map +1 -1
- package/dist/operations/extrude.d.ts +2 -2
- package/dist/operations/extrudeFns.d.ts +3 -3
- package/dist/operations/extrudeFns.d.ts.map +1 -1
- package/dist/operations/loft.d.ts +1 -1
- package/dist/operations/loftFns.d.ts +2 -2
- package/dist/operations/loftFns.d.ts.map +1 -1
- package/dist/{operations-SRN-mfTx.cjs → operations-BP1wVDw0.cjs} +14 -20
- package/dist/{operations-CEV-gqkX.js → operations-C1rWoba2.js} +14 -20
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{query-D7XclvBZ.js → query-V6nV-VfL.js} +4 -4
- package/dist/{query-DkcMfh6j.cjs → query-hMSmOWJP.cjs} +4 -4
- package/dist/query.cjs +1 -1
- package/dist/query.js +1 -1
- package/dist/{shapeFns-BpCPVHFT.js → shapeFns-BrF97sKt.js} +19 -19
- package/dist/{shapeFns-DjsWo98C.cjs → shapeFns-BvOndshS.cjs} +19 -19
- package/dist/{shapeHelpers-BBSVHPGk.cjs → shapeHelpers-B2SXz1p4.cjs} +2 -2
- package/dist/{shapeHelpers-C4QIp7u5.js → shapeHelpers-BcoZf2N9.js} +2 -2
- package/dist/sketching.cjs +2 -2
- package/dist/sketching.js +2 -2
- package/dist/topology/api.d.ts +11 -11
- package/dist/topology/api.d.ts.map +1 -1
- package/dist/topology/booleanFns.d.ts +9 -9
- package/dist/topology/booleanFns.d.ts.map +1 -1
- package/dist/topology/cast.d.ts +2 -2
- package/dist/topology/cast.d.ts.map +1 -1
- package/dist/topology/chamferAngleFns.d.ts +1 -1
- package/dist/topology/chamferAngleFns.d.ts.map +1 -1
- package/dist/topology/healingFns.d.ts +2 -2
- package/dist/topology/healingFns.d.ts.map +1 -1
- package/dist/topology/index.d.ts +1 -1
- package/dist/topology/index.d.ts.map +1 -1
- package/dist/topology/meshFns.d.ts +2 -2
- package/dist/topology/meshFns.d.ts.map +1 -1
- package/dist/topology/modifierFns.d.ts +5 -5
- package/dist/topology/modifierFns.d.ts.map +1 -1
- package/dist/topology/primitiveFns.d.ts +5 -1
- package/dist/topology/primitiveFns.d.ts.map +1 -1
- package/dist/topology/shapeFns.d.ts +9 -9
- package/dist/topology/shapeFns.d.ts.map +1 -1
- package/dist/{topology-BEMrS4WZ.js → topology-CJKeDGUb.js} +18 -18
- package/dist/{topology-Bb1W3SyF.cjs → topology-DoNKAKMt.cjs} +18 -18
- package/dist/topology.cjs +8 -8
- package/dist/topology.d.ts +1 -1
- package/dist/topology.d.ts.map +1 -1
- package/dist/topology.js +8 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ export { createHandle, createOcHandle, DisposalScope, withScope } from './core/d
|
|
|
61
61
|
export type { Plane, PlaneName, PlaneInput } from './core/planeTypes.js';
|
|
62
62
|
export { createPlane, createNamedPlane, resolvePlane, translatePlane, pivotPlane, } from './core/planeOps.js';
|
|
63
63
|
export { getHashCode, isSameShape, isEqualShape, getEdges, getFaces, getWires, getVertices, iterEdges, iterFaces, iterWires, iterVertices, getBounds, vertexPosition, type Bounds3D, type ShapeDescription, } from './topology/shapeFns.js';
|
|
64
|
-
export { chamferDistAngleShape } from './topology/chamferAngleFns.js';
|
|
64
|
+
export { chamferDistAngle as chamferDistAngleShape } from './topology/chamferAngleFns.js';
|
|
65
65
|
export { facesOfEdge, edgesOfFace, wiresOfFace, verticesOfEdge, adjacentFaces, sharedEdges, } from './topology/adjacencyFns.js';
|
|
66
66
|
export { getCurveType, curveStartPoint, curveEndPoint, curvePointAt, curveTangentAt, curveLength, curveIsClosed, curveIsPeriodic, curvePeriod, getOrientation, flipOrientation, offsetWire2D, interpolateCurve, approximateCurve, type InterpolateCurveOptions, type ApproximateCurveOptions, } from './topology/curveFns.js';
|
|
67
67
|
export { getSurfaceType, faceGeomType, faceOrientation, flipFaceOrientation, uvBounds, pointOnSurface, uvCoordinates, normalAt, faceCenter, classifyPointOnFace, outerWire, innerWires, projectPointOnFace, type UVBounds, type PointProjectionResult, } from './topology/faceFns.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAI1D,OAAO,EACL,EAAE,EACF,GAAG,EACH,EAAE,EACF,IAAI,EACJ,KAAK,EACL,GAAG,EACH,MAAM,EACN,OAAO,EACP,OAAO,EACP,MAAM,EACN,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,KAAK,EACL,OAAO,EACP,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,KAAK,MAAM,EACX,KAAK,EAAE,EACP,KAAK,GAAG,EACR,KAAK,IAAI,EACT,KAAK,cAAc,GACpB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEjE,OAAO,EACL,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,aAAa,EACb,SAAS,EACT,eAAe,EACf,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,OAAO,EACP,UAAU,EACV,GAAG,EACH,YAAY,GACb,MAAM,kBAAkB,CAAC;AAI1B,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEtE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGtF,OAAO,EAAE,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAA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ACR,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,OAAO,EACP,OAAO,EAEP,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,YAAY,GAClB,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EACL,OAAO,EACP,OAAO,EACP,IAAI,EACJ,KAAK,cAAc,EACnB,KAAK,WAAW,IAAI,gBAAgB,EACpC,KAAK,UAAU,IAAI,eAAe,EAClC,KAAK,YAAY,IAAI,iBAAiB,EACtC,KAAK,WAAW,IAAI,gBAAgB,GACrC,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAInG,OAAO,EACL,KAAK,EACL,gBAAgB,EAChB,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,WAAW,GACjB,MAAM,0BAA0B,CAAC"}
|
package/dist/io.cjs
CHANGED
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const occtBoundary = require("./occtBoundary-du8_ex-p.cjs");
|
|
4
4
|
const shapeTypes = require("./shapeTypes-DKhwEnUM.cjs");
|
|
5
5
|
const errors = require("./errors-DK1VAdP4.cjs");
|
|
6
|
-
const meshFns = require("./meshFns-
|
|
7
|
-
const Blueprint = require("./Blueprint-
|
|
6
|
+
const meshFns = require("./meshFns-Dbj_k5gq.cjs");
|
|
7
|
+
const Blueprint = require("./Blueprint-CVctc41Z.cjs");
|
|
8
8
|
function vec3At(arr, i) {
|
|
9
9
|
const off = i * 3;
|
|
10
10
|
return [arr[off], arr[off + 1], arr[off + 2]];
|
package/dist/io.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { g as getKernel, n as uniqueId } from "./occtBoundary-CwegMzqc.js";
|
|
2
2
|
import { c as castShape, n as gcWithScope } from "./shapeTypes-BlSElW8z.js";
|
|
3
3
|
import { e as err, i as ioError, l as ok } from "./errors-wGhcJMpB.js";
|
|
4
|
-
import { e, d, f } from "./meshFns-
|
|
5
|
-
import { B as Blueprint, c as make2dSegmentCurve, f as make2dThreePointArc, l as make2dBezierCurve } from "./Blueprint-
|
|
4
|
+
import { e, d, f } from "./meshFns-BY1fMF48.js";
|
|
5
|
+
import { B as Blueprint, c as make2dSegmentCurve, f as make2dThreePointArc, l as make2dBezierCurve } from "./Blueprint-D3JfGJTz.js";
|
|
6
6
|
function vec3At(arr, i) {
|
|
7
7
|
const off = i * 3;
|
|
8
8
|
return [arr[off], arr[off + 1], arr[off + 2]];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const occtBoundary = require("./occtBoundary-du8_ex-p.cjs");
|
|
3
3
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
4
|
-
const cast = require("./cast-
|
|
4
|
+
const cast = require("./cast-DkB0GKmQ.cjs");
|
|
5
5
|
const errors = require("./errors-DK1VAdP4.cjs");
|
|
6
6
|
const shapeTypes = require("./shapeTypes-DKhwEnUM.cjs");
|
|
7
|
-
const shapeHelpers = require("./shapeHelpers-
|
|
7
|
+
const shapeHelpers = require("./shapeHelpers-B2SXz1p4.cjs");
|
|
8
8
|
function buildLawFromProfile(extrusionLength, { profile, endFactor = 1 }) {
|
|
9
9
|
const oc = occtBoundary.getKernel().oc;
|
|
10
10
|
const r = shapeTypes.gcWithScope();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { g as getKernel, a as toVec3, m as makeOcAx1 } from "./occtBoundary-CwegMzqc.js";
|
|
2
2
|
import { D as DEG2RAD, v as vecAdd, g as vecLength } from "./vecOps-ZDdZWbwT.js";
|
|
3
|
-
import { d as downcast, c as cast, a as isShape3D, b as isWire } from "./cast-
|
|
3
|
+
import { d as downcast, c as cast, a as isShape3D, b as isWire } from "./cast-DQaUibmm.js";
|
|
4
4
|
import { e as err, x as validationError, l as ok, u as unwrap, a as andThen, o as occtError, p as typeCastError } from "./errors-wGhcJMpB.js";
|
|
5
5
|
import { n as gcWithScope, o as localGC, p as createSolid } from "./shapeTypes-BlSElW8z.js";
|
|
6
|
-
import { m as makeLine, a as assembleWire, b as makeHelix, c as makeVertex } from "./shapeHelpers-
|
|
6
|
+
import { m as makeLine, a as assembleWire, b as makeHelix, c as makeVertex } from "./shapeHelpers-BcoZf2N9.js";
|
|
7
7
|
function buildLawFromProfile(extrusionLength, { profile, endFactor = 1 }) {
|
|
8
8
|
const oc = getKernel().oc;
|
|
9
9
|
const r = gcWithScope();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as getKernel, s as surfaceCurvature } from "./occtBoundary-CwegMzqc.js";
|
|
2
2
|
import { n as gcWithScope } from "./shapeTypes-BlSElW8z.js";
|
|
3
|
-
import { u as uvBounds } from "./faceFns-
|
|
3
|
+
import { u as uvBounds } from "./faceFns-DHu-2JpA.js";
|
|
4
4
|
function assertShapeNotNull(shape, fn) {
|
|
5
5
|
if (shape.wrapped.IsNull()) {
|
|
6
6
|
throw new Error(`${fn}: shape is a null shape`);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const occtBoundary = require("./occtBoundary-du8_ex-p.cjs");
|
|
3
3
|
const shapeTypes = require("./shapeTypes-DKhwEnUM.cjs");
|
|
4
|
-
const faceFns = require("./faceFns-
|
|
4
|
+
const faceFns = require("./faceFns-BwK7FP7N.cjs");
|
|
5
5
|
function assertShapeNotNull(shape, fn) {
|
|
6
6
|
if (shape.wrapped.IsNull()) {
|
|
7
7
|
throw new Error(`${fn}: shape is a null shape`);
|
package/dist/measurement.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const measurement = require("./measurement-
|
|
3
|
+
const measurement = require("./measurement-fxm_pW7x.cjs");
|
|
4
4
|
exports.createDistanceQuery = measurement.createDistanceQuery;
|
|
5
5
|
exports.measureArea = measurement.measureArea;
|
|
6
6
|
exports.measureDistance = measurement.measureDistance;
|
package/dist/measurement.js
CHANGED
|
@@ -70,7 +70,7 @@ function createMeshCache() {
|
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function mesh(shape, {
|
|
74
74
|
tolerance = 1e-3,
|
|
75
75
|
angularTolerance = 0.1,
|
|
76
76
|
skipNormals = false,
|
|
@@ -91,7 +91,7 @@ function meshShape(shape, {
|
|
|
91
91
|
includeUVs,
|
|
92
92
|
...signal ? { signal } : {}
|
|
93
93
|
});
|
|
94
|
-
const
|
|
94
|
+
const mesh2 = {
|
|
95
95
|
vertices: result.vertices,
|
|
96
96
|
normals: result.normals,
|
|
97
97
|
triangles: result.triangles,
|
|
@@ -103,11 +103,11 @@ function meshShape(shape, {
|
|
|
103
103
|
}))
|
|
104
104
|
};
|
|
105
105
|
if (cache) {
|
|
106
|
-
setMeshForShape(shape.wrapped, cacheKey,
|
|
106
|
+
setMeshForShape(shape.wrapped, cacheKey, mesh2);
|
|
107
107
|
}
|
|
108
|
-
return
|
|
108
|
+
return mesh2;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function meshEdges(shape, { tolerance = 1e-3, angularTolerance = 0.1, cache = true } = {}) {
|
|
111
111
|
const cacheKey = buildEdgeMeshCacheKey(0, tolerance, angularTolerance);
|
|
112
112
|
if (cache) {
|
|
113
113
|
const cached = getEdgeMeshForShape(shape.wrapped, cacheKey);
|
|
@@ -202,11 +202,11 @@ function exportIGES(shape) {
|
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
export {
|
|
205
|
-
|
|
205
|
+
meshEdges as a,
|
|
206
206
|
createMeshCache as b,
|
|
207
207
|
clearMeshCache as c,
|
|
208
208
|
exportSTEP as d,
|
|
209
209
|
exportIGES as e,
|
|
210
210
|
exportSTL as f,
|
|
211
|
-
|
|
211
|
+
mesh as m
|
|
212
212
|
};
|
|
@@ -71,7 +71,7 @@ function createMeshCache() {
|
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function mesh(shape, {
|
|
75
75
|
tolerance = 1e-3,
|
|
76
76
|
angularTolerance = 0.1,
|
|
77
77
|
skipNormals = false,
|
|
@@ -92,7 +92,7 @@ function meshShape(shape, {
|
|
|
92
92
|
includeUVs,
|
|
93
93
|
...signal ? { signal } : {}
|
|
94
94
|
});
|
|
95
|
-
const
|
|
95
|
+
const mesh2 = {
|
|
96
96
|
vertices: result.vertices,
|
|
97
97
|
normals: result.normals,
|
|
98
98
|
triangles: result.triangles,
|
|
@@ -104,11 +104,11 @@ function meshShape(shape, {
|
|
|
104
104
|
}))
|
|
105
105
|
};
|
|
106
106
|
if (cache) {
|
|
107
|
-
setMeshForShape(shape.wrapped, cacheKey,
|
|
107
|
+
setMeshForShape(shape.wrapped, cacheKey, mesh2);
|
|
108
108
|
}
|
|
109
|
-
return
|
|
109
|
+
return mesh2;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function meshEdges(shape, { tolerance = 1e-3, angularTolerance = 0.1, cache = true } = {}) {
|
|
112
112
|
const cacheKey = buildEdgeMeshCacheKey(0, tolerance, angularTolerance);
|
|
113
113
|
if (cache) {
|
|
114
114
|
const cached = getEdgeMeshForShape(shape.wrapped, cacheKey);
|
|
@@ -207,5 +207,5 @@ exports.createMeshCache = createMeshCache;
|
|
|
207
207
|
exports.exportIGES = exportIGES;
|
|
208
208
|
exports.exportSTEP = exportSTEP;
|
|
209
209
|
exports.exportSTL = exportSTL;
|
|
210
|
-
exports.
|
|
211
|
-
exports.
|
|
210
|
+
exports.mesh = mesh;
|
|
211
|
+
exports.meshEdges = meshEdges;
|
package/dist/operations/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Vec3 } from '../core/types.js';
|
|
|
2
2
|
import { Face, Wire, Shape3D, Solid } from '../core/shapeTypes.js';
|
|
3
3
|
import { Result } from '../core/result.js';
|
|
4
4
|
import { Shapeable } from '../topology/apiTypes.js';
|
|
5
|
-
import
|
|
5
|
+
import * as lofting from './loftFns.js';
|
|
6
6
|
export type { LoftOptions, LoftConfig } from './loftFns.js';
|
|
7
7
|
export type { SweepOptions, SweepConfig } from './extrudeFns.js';
|
|
8
8
|
/**
|
|
@@ -31,5 +31,5 @@ export declare function revolve(face: Shapeable<Face>, options?: RevolveOptions)
|
|
|
31
31
|
/**
|
|
32
32
|
* Loft through a set of wire profiles to create a 3D shape.
|
|
33
33
|
*/
|
|
34
|
-
export declare function loft(wires: Shapeable<Wire>[], options?: LoftOptions): Result<Shape3D>;
|
|
34
|
+
export declare function loft(wires: Shapeable<Wire>[], options?: lofting.LoftOptions): Result<Shape3D>;
|
|
35
35
|
//# sourceMappingURL=api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/operations/api.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGzD,OAAO,
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/operations/api.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGzD,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AAExC,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC5D,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAMjE;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,CAInF;AAMD,mCAAmC;AACnC,MAAM,WAAW,cAAc;IAC7B,6CAA6C;IAC7C,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,+DAA+D;IAC/D,MAAM,CAAC,EAAE,IAAI,CAAC;IACd,uCAAuC;IACvC,EAAE,CAAC,EAAE,IAAI,CAAC;IACV,iEAAiE;IACjE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,CAQxF;AAMD;;GAEG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,CAG7F"}
|
|
@@ -9,7 +9,7 @@ import { Face, Wire, Edge, Shape3D, Solid } from '../core/shapeTypes.js';
|
|
|
9
9
|
* @param extrusionVec - Direction and magnitude of the extrusion.
|
|
10
10
|
* @returns A new {@link Solid} created by the linear extrusion.
|
|
11
11
|
*
|
|
12
|
-
* @see {@link extrudeFns!
|
|
12
|
+
* @see {@link extrudeFns!extrude | extrude} for the functional API equivalent.
|
|
13
13
|
*/
|
|
14
14
|
export declare const basicFaceExtrusion: (face: Face, extrusionVec: PointInput) => Solid;
|
|
15
15
|
/**
|
|
@@ -21,7 +21,7 @@ export declare const basicFaceExtrusion: (face: Face, extrusionVec: PointInput)
|
|
|
21
21
|
* @param angle - Rotation angle in degrees (0-360). Defaults to a full revolution.
|
|
22
22
|
* @returns `Result` containing the revolved 3D shape, or an error if the result is not 3D.
|
|
23
23
|
*
|
|
24
|
-
* @see {@link extrudeFns!
|
|
24
|
+
* @see {@link extrudeFns!revolve | revolve} for the functional API equivalent.
|
|
25
25
|
*/
|
|
26
26
|
export declare const revolution: (face: Face, center?: PointInput, direction?: PointInput, angle?: number) => Result<Shape3D>;
|
|
27
27
|
/** Configuration for sweep operations in the OO API. */
|
|
@@ -17,13 +17,13 @@ export type { ExtrusionProfile, SweepOptions, SweepConfig } from './extrudeUtils
|
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* ```ts
|
|
20
|
-
* const result =
|
|
20
|
+
* const result = extrude(squareFace, [0, 0, 10]);
|
|
21
21
|
* if (isOk(result)) console.log('Extruded:', result.value);
|
|
22
22
|
* ```
|
|
23
23
|
*
|
|
24
24
|
* @see {@link extrude!basicFaceExtrusion | basicFaceExtrusion} for the OOP API equivalent.
|
|
25
25
|
*/
|
|
26
|
-
export declare function
|
|
26
|
+
export declare function extrude(face: Face, extrusionVec: Vec3): Result<Solid>;
|
|
27
27
|
/**
|
|
28
28
|
* Revolve a face around an axis to create a solid of revolution.
|
|
29
29
|
*
|
|
@@ -35,7 +35,7 @@ export declare function extrudeFace(face: Face, extrusionVec: Vec3): Result<Soli
|
|
|
35
35
|
*
|
|
36
36
|
* @see {@link extrude!revolution | revolution} for the OOP API equivalent.
|
|
37
37
|
*/
|
|
38
|
-
export declare function
|
|
38
|
+
export declare function revolve(face: Face, center?: Vec3, direction?: Vec3, angle?: number): Result<Shape3D>;
|
|
39
39
|
/**
|
|
40
40
|
* Sweep a wire profile along a spine wire to create a 3D shape.
|
|
41
41
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extrudeFns.d.ts","sourceRoot":"","sources":["../../src/operations/extrudeFns.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,KAAK,MAAM,GAAG,GAAG,CAAC;AAGlB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAI7C,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAIxE,OAAO,EAAE,KAAK,MAAM,EAA0B,MAAM,mBAAmB,CAAC;AAExE,OAAO,EAAuB,KAAK,gBAAgB,EAAE,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAElG,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAgErF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,
|
|
1
|
+
{"version":3,"file":"extrudeFns.d.ts","sourceRoot":"","sources":["../../src/operations/extrudeFns.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,KAAK,MAAM,GAAG,GAAG,CAAC;AAGlB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAI7C,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAIxE,OAAO,EAAE,KAAK,MAAM,EAA0B,MAAM,mBAAmB,CAAC;AAExE,OAAO,EAAuB,KAAK,gBAAgB,EAAE,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAElG,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAgErF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,CA+BrE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB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ftFns!
|
|
30
|
+
* @see {@link loftFns!loft | loft} for the functional API equivalent.
|
|
31
31
|
*/
|
|
32
32
|
export declare const loft: (wires: Wire[], { ruled, startPoint, endPoint }?: LoftOptions, returnShell?: boolean) => Result<Shape3D>;
|
|
33
33
|
//# sourceMappingURL=loft.d.ts.map
|
|
@@ -26,10 +26,10 @@ export type LoftConfig = LoftOptions;
|
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* ```ts
|
|
29
|
-
* const result =
|
|
29
|
+
* const result = loft([bottomWire, topWire], { ruled: false });
|
|
30
30
|
* ```
|
|
31
31
|
*
|
|
32
32
|
* @see {@link loft!loft | loft} for the OOP API equivalent.
|
|
33
33
|
*/
|
|
34
|
-
export declare function
|
|
34
|
+
export declare function loft(wires: Wire[], { ruled, startPoint, endPoint }?: LoftOptions, returnShell?: boolean): Result<Shape3D>;
|
|
35
35
|
//# sourceMappingURL=loftFns.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loftFns.d.ts","sourceRoot":"","sources":["../../src/operations/loftFns.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGnD,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,mBAAmB,CAAC;AAGzD,uDAAuD;AACvD,MAAM,WAAW,WAAW;IAC1B,+EAA+E;IAC/E,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,uDAAuD;IACvD,QAAQ,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,sEAAsE;AACtE,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC;AAErC;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,
|
|
1
|
+
{"version":3,"file":"loftFns.d.ts","sourceRoot":"","sources":["../../src/operations/loftFns.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGnD,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,mBAAmB,CAAC;AAGzD,uDAAuD;AACvD,MAAM,WAAW,WAAW;IAC1B,+EAA+E;IAC/E,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,uDAAuD;IACvD,QAAQ,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,sEAAsE;AACtE,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC;AAErC;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,IAAI,CAClB,KAAK,EAAE,IAAI,EAAE,EACb,EAAE,KAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAE,WAAgB,EACxD,WAAW,UAAQ,GAClB,MAAM,CAAC,OAAO,CAAC,CAoCjB"}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
const occtBoundary = require("./occtBoundary-du8_ex-p.cjs");
|
|
3
3
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
4
4
|
const shapeTypes = require("./shapeTypes-DKhwEnUM.cjs");
|
|
5
|
-
const cast = require("./cast-
|
|
5
|
+
const cast = require("./cast-DkB0GKmQ.cjs");
|
|
6
6
|
const errors = require("./errors-DK1VAdP4.cjs");
|
|
7
|
-
const loft = require("./loft-
|
|
8
|
-
const shapeFns = require("./shapeFns-
|
|
9
|
-
const booleanFns = require("./booleanFns-
|
|
7
|
+
const loft = require("./loft-BzWFokmC.cjs");
|
|
8
|
+
const shapeFns = require("./shapeFns-BvOndshS.cjs");
|
|
9
|
+
const booleanFns = require("./booleanFns-BBSVKhL2.cjs");
|
|
10
10
|
function uuidv() {
|
|
11
11
|
return (String([1e7]) + String(-1e3) + String(-4e3) + String(-8e3) + String(-1e11)).replace(
|
|
12
12
|
/[018]/g,
|
|
@@ -105,16 +105,12 @@ function makeHelixWire(pitch, height, radius, center, dir, lefthand = false) {
|
|
|
105
105
|
oc.BRepLib.BuildCurves3d_2(w);
|
|
106
106
|
return shapeTypes.castShape(w);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function extrude(face, extrusionVec) {
|
|
109
109
|
if (face.wrapped.IsNull()) {
|
|
110
|
-
return errors.err(
|
|
111
|
-
errors.validationError(errors.BrepErrorCode.NULL_SHAPE_INPUT, "extrudeFace: face is a null shape")
|
|
112
|
-
);
|
|
110
|
+
return errors.err(errors.validationError(errors.BrepErrorCode.NULL_SHAPE_INPUT, "extrude: face is a null shape"));
|
|
113
111
|
}
|
|
114
112
|
if (vecOps.vecLength(extrusionVec) === 0) {
|
|
115
|
-
return errors.err(
|
|
116
|
-
errors.validationError("EXTRUDE_ZERO_VECTOR", "extrudeFace: extrusion vector has zero length")
|
|
117
|
-
);
|
|
113
|
+
return errors.err(errors.validationError("EXTRUDE_ZERO_VECTOR", "extrude: extrusion vector has zero length"));
|
|
118
114
|
}
|
|
119
115
|
try {
|
|
120
116
|
const oc = occtBoundary.getKernel().oc;
|
|
@@ -131,17 +127,15 @@ function extrudeFace(face, extrusionVec) {
|
|
|
131
127
|
} catch (e) {
|
|
132
128
|
return errors.err(
|
|
133
129
|
errors.occtError("EXTRUDE_FAILED", "Extrusion operation failed", e, {
|
|
134
|
-
operation: "
|
|
130
|
+
operation: "extrude",
|
|
135
131
|
vectorLength: vecOps.vecLength(extrusionVec)
|
|
136
132
|
})
|
|
137
133
|
);
|
|
138
134
|
}
|
|
139
135
|
}
|
|
140
|
-
function
|
|
136
|
+
function revolve(face, center = [0, 0, 0], direction = [0, 0, 1], angle = 360) {
|
|
141
137
|
if (face.wrapped.IsNull()) {
|
|
142
|
-
return errors.err(
|
|
143
|
-
errors.validationError(errors.BrepErrorCode.NULL_SHAPE_INPUT, "revolveFace: face is a null shape")
|
|
144
|
-
);
|
|
138
|
+
return errors.err(errors.validationError(errors.BrepErrorCode.NULL_SHAPE_INPUT, "revolve: face is a null shape"));
|
|
145
139
|
}
|
|
146
140
|
const oc = occtBoundary.getKernel().oc;
|
|
147
141
|
const r = shapeTypes.gcWithScope();
|
|
@@ -296,7 +290,7 @@ function linearPattern(shape, direction, count, spacing, options) {
|
|
|
296
290
|
const copies = [shape];
|
|
297
291
|
for (let i = 1; i < count; i++) {
|
|
298
292
|
const offset = vecOps.vecScale(dir, spacing * i);
|
|
299
|
-
copies.push(shapeFns.
|
|
293
|
+
copies.push(shapeFns.translate(shape, offset));
|
|
300
294
|
}
|
|
301
295
|
return booleanFns.fuseAll(copies, options);
|
|
302
296
|
}
|
|
@@ -309,7 +303,7 @@ function circularPattern(shape, axis, count, fullAngle = 360, center = [0, 0, 0]
|
|
|
309
303
|
const angleStep = fullAngle / count;
|
|
310
304
|
const copies = [shape];
|
|
311
305
|
for (let i = 1; i < count; i++) {
|
|
312
|
-
copies.push(shapeFns.
|
|
306
|
+
copies.push(shapeFns.rotate(shape, angleStep * i, center, axis));
|
|
313
307
|
}
|
|
314
308
|
return booleanFns.fuseAll(copies, options);
|
|
315
309
|
}
|
|
@@ -552,7 +546,7 @@ exports.createAssemblyNode = createAssemblyNode;
|
|
|
552
546
|
exports.createHistory = createHistory;
|
|
553
547
|
exports.createRegistry = createRegistry;
|
|
554
548
|
exports.exportAssemblySTEP = exportAssemblySTEP;
|
|
555
|
-
exports.
|
|
549
|
+
exports.extrude = extrude;
|
|
556
550
|
exports.findNode = findNode;
|
|
557
551
|
exports.findStep = findStep;
|
|
558
552
|
exports.getShape = getShape;
|
|
@@ -563,7 +557,7 @@ exports.registerShape = registerShape;
|
|
|
563
557
|
exports.removeChild = removeChild;
|
|
564
558
|
exports.replayFrom = replayFrom;
|
|
565
559
|
exports.replayHistory = replayHistory;
|
|
566
|
-
exports.
|
|
560
|
+
exports.revolve = revolve;
|
|
567
561
|
exports.stepCount = stepCount;
|
|
568
562
|
exports.stepsFrom = stepsFrom;
|
|
569
563
|
exports.supportExtrude = supportExtrude;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { g as getKernel, b as toOcVec, d as toOcPnt, e as makeOcAx3, u as uniqueIOFilename } from "./occtBoundary-CwegMzqc.js";
|
|
2
2
|
import { g as vecLength, v as vecAdd, D as DEG2RAD, f as vecIsZero, j as vecNormalize, n as vecScale } from "./vecOps-ZDdZWbwT.js";
|
|
3
3
|
import { b as createOcHandle, c as castShape, h as isShape3D, m as isWire, n as gcWithScope, p as createSolid } from "./shapeTypes-BlSElW8z.js";
|
|
4
|
-
import { d as downcast } from "./cast-
|
|
4
|
+
import { d as downcast } from "./cast-DQaUibmm.js";
|
|
5
5
|
import { e as err, x as validationError, u as unwrap, p as typeCastError, l as ok, B as BrepErrorCode, d as isErr, o as occtError, i as ioError, b as computationError } from "./errors-wGhcJMpB.js";
|
|
6
|
-
import { a as buildLawFromProfile } from "./loft-
|
|
7
|
-
import { r as
|
|
8
|
-
import { g as fuseAll } from "./booleanFns-
|
|
6
|
+
import { a as buildLawFromProfile } from "./loft-CtG5nMq5.js";
|
|
7
|
+
import { r as rotate, t as translate } from "./shapeFns-BrF97sKt.js";
|
|
8
|
+
import { g as fuseAll } from "./booleanFns-CqehfzcK.js";
|
|
9
9
|
function uuidv() {
|
|
10
10
|
return (String([1e7]) + String(-1e3) + String(-4e3) + String(-8e3) + String(-1e11)).replace(
|
|
11
11
|
/[018]/g,
|
|
@@ -104,16 +104,12 @@ function makeHelixWire(pitch, height, radius, center, dir, lefthand = false) {
|
|
|
104
104
|
oc.BRepLib.BuildCurves3d_2(w);
|
|
105
105
|
return castShape(w);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function extrude(face, extrusionVec) {
|
|
108
108
|
if (face.wrapped.IsNull()) {
|
|
109
|
-
return err(
|
|
110
|
-
validationError(BrepErrorCode.NULL_SHAPE_INPUT, "extrudeFace: face is a null shape")
|
|
111
|
-
);
|
|
109
|
+
return err(validationError(BrepErrorCode.NULL_SHAPE_INPUT, "extrude: face is a null shape"));
|
|
112
110
|
}
|
|
113
111
|
if (vecLength(extrusionVec) === 0) {
|
|
114
|
-
return err(
|
|
115
|
-
validationError("EXTRUDE_ZERO_VECTOR", "extrudeFace: extrusion vector has zero length")
|
|
116
|
-
);
|
|
112
|
+
return err(validationError("EXTRUDE_ZERO_VECTOR", "extrude: extrusion vector has zero length"));
|
|
117
113
|
}
|
|
118
114
|
try {
|
|
119
115
|
const oc = getKernel().oc;
|
|
@@ -130,17 +126,15 @@ function extrudeFace(face, extrusionVec) {
|
|
|
130
126
|
} catch (e) {
|
|
131
127
|
return err(
|
|
132
128
|
occtError("EXTRUDE_FAILED", "Extrusion operation failed", e, {
|
|
133
|
-
operation: "
|
|
129
|
+
operation: "extrude",
|
|
134
130
|
vectorLength: vecLength(extrusionVec)
|
|
135
131
|
})
|
|
136
132
|
);
|
|
137
133
|
}
|
|
138
134
|
}
|
|
139
|
-
function
|
|
135
|
+
function revolve(face, center = [0, 0, 0], direction = [0, 0, 1], angle = 360) {
|
|
140
136
|
if (face.wrapped.IsNull()) {
|
|
141
|
-
return err(
|
|
142
|
-
validationError(BrepErrorCode.NULL_SHAPE_INPUT, "revolveFace: face is a null shape")
|
|
143
|
-
);
|
|
137
|
+
return err(validationError(BrepErrorCode.NULL_SHAPE_INPUT, "revolve: face is a null shape"));
|
|
144
138
|
}
|
|
145
139
|
const oc = getKernel().oc;
|
|
146
140
|
const r = gcWithScope();
|
|
@@ -295,7 +289,7 @@ function linearPattern(shape, direction, count, spacing, options) {
|
|
|
295
289
|
const copies = [shape];
|
|
296
290
|
for (let i = 1; i < count; i++) {
|
|
297
291
|
const offset = vecScale(dir, spacing * i);
|
|
298
|
-
copies.push(
|
|
292
|
+
copies.push(translate(shape, offset));
|
|
299
293
|
}
|
|
300
294
|
return fuseAll(copies, options);
|
|
301
295
|
}
|
|
@@ -308,7 +302,7 @@ function circularPattern(shape, axis, count, fullAngle = 360, center = [0, 0, 0]
|
|
|
308
302
|
const angleStep = fullAngle / count;
|
|
309
303
|
const copies = [shape];
|
|
310
304
|
for (let i = 1; i < count; i++) {
|
|
311
|
-
copies.push(
|
|
305
|
+
copies.push(rotate(shape, angleStep * i, center, axis));
|
|
312
306
|
}
|
|
313
307
|
return fuseAll(copies, options);
|
|
314
308
|
}
|
|
@@ -550,7 +544,7 @@ export {
|
|
|
550
544
|
addStep as b,
|
|
551
545
|
circularPattern as c,
|
|
552
546
|
collectShapes as d,
|
|
553
|
-
|
|
547
|
+
extrude as e,
|
|
554
548
|
complexExtrude as f,
|
|
555
549
|
countNodes as g,
|
|
556
550
|
createAssembly as h,
|
|
@@ -563,7 +557,7 @@ export {
|
|
|
563
557
|
findStep as o,
|
|
564
558
|
getShape as p,
|
|
565
559
|
modifyStep as q,
|
|
566
|
-
|
|
560
|
+
revolve as r,
|
|
567
561
|
sweep as s,
|
|
568
562
|
registerOperation as t,
|
|
569
563
|
registerShape as u,
|
package/dist/operations.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const operations = require("./operations-
|
|
4
|
-
const loft = require("./loft-
|
|
3
|
+
const operations = require("./operations-BP1wVDw0.cjs");
|
|
4
|
+
const loft = require("./loft-BzWFokmC.cjs");
|
|
5
5
|
exports.addChild = operations.addChild;
|
|
6
6
|
exports.addStep = operations.addStep;
|
|
7
7
|
exports.circularPattern = operations.circularPattern;
|
package/dist/operations.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a, b, c, d, f, g, h, i, j, k, m, n, o, p, l, q, t, u, v, w, x, y, z, A, s, B, C, D, E } from "./operations-
|
|
2
|
-
import { b as b2, g as g2, l as l2, r } from "./loft-
|
|
1
|
+
import { a, b, c, d, f, g, h, i, j, k, m, n, o, p, l, q, t, u, v, w, x, y, z, A, s, B, C, D, E } from "./operations-C1rWoba2.js";
|
|
2
|
+
import { b as b2, g as g2, l as l2, r } from "./loft-CtG5nMq5.js";
|
|
3
3
|
export {
|
|
4
4
|
a as addChild,
|
|
5
5
|
b as addStep,
|
|
@@ -2,10 +2,10 @@ import { g as getKernel, d as toOcPnt } from "./occtBoundary-CwegMzqc.js";
|
|
|
2
2
|
import { c as castShape, n as gcWithScope, e as isFace } from "./shapeTypes-BlSElW8z.js";
|
|
3
3
|
import { j as vecNormalize, c as vecDistance, d as vecDot, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
|
|
4
4
|
import { bug } from "./result.js";
|
|
5
|
-
import { i as iterTopo, d as downcast } from "./cast-
|
|
6
|
-
import { v as vertexPosition, k as getHashCode, n as isSameShape } from "./shapeFns-
|
|
7
|
-
import { g as getSurfaceType, n as normalAt } from "./faceFns-
|
|
8
|
-
import { m as measureArea } from "./measurement-
|
|
5
|
+
import { i as iterTopo, d as downcast } from "./cast-DQaUibmm.js";
|
|
6
|
+
import { v as vertexPosition, k as getHashCode, n as isSameShape } from "./shapeFns-BrF97sKt.js";
|
|
7
|
+
import { g as getSurfaceType, n as normalAt } from "./faceFns-DHu-2JpA.js";
|
|
8
|
+
import { m as measureArea } from "./measurement-C5JGCuUP.js";
|
|
9
9
|
import { l as getCurveType, f as curveLength, c as curveIsClosed } from "./curveFns-CdVE4da7.js";
|
|
10
10
|
import { e as err, q as queryError, l as ok, u as unwrap } from "./errors-wGhcJMpB.js";
|
|
11
11
|
const PRECISION_INTERSECTION = 1e-9;
|
|
@@ -3,10 +3,10 @@ const occtBoundary = require("./occtBoundary-du8_ex-p.cjs");
|
|
|
3
3
|
const shapeTypes = require("./shapeTypes-DKhwEnUM.cjs");
|
|
4
4
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
5
5
|
const result = require("./result.cjs");
|
|
6
|
-
const cast = require("./cast-
|
|
7
|
-
const shapeFns = require("./shapeFns-
|
|
8
|
-
const faceFns = require("./faceFns-
|
|
9
|
-
const measurement = require("./measurement-
|
|
6
|
+
const cast = require("./cast-DkB0GKmQ.cjs");
|
|
7
|
+
const shapeFns = require("./shapeFns-BvOndshS.cjs");
|
|
8
|
+
const faceFns = require("./faceFns-BwK7FP7N.cjs");
|
|
9
|
+
const measurement = require("./measurement-fxm_pW7x.cjs");
|
|
10
10
|
const curveFns = require("./curveFns-BilyYL_s.cjs");
|
|
11
11
|
const errors = require("./errors-DK1VAdP4.cjs");
|
|
12
12
|
const PRECISION_INTERSECTION = 1e-9;
|
package/dist/query.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const query = require("./query-
|
|
3
|
+
const query = require("./query-hMSmOWJP.cjs");
|
|
4
4
|
exports.cornerFinder = query.cornerFinder;
|
|
5
5
|
exports.edgeFinder = query.edgeFinder;
|
|
6
6
|
exports.faceFinder = query.faceFinder;
|
package/dist/query.js
CHANGED