brepjs 8.8.2 → 8.8.3
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/curves.d.ts.map +1 -1
- package/dist/2d/lib/Curve2D.d.ts.map +1 -1
- package/dist/2d/lib/approximations.d.ts.map +1 -1
- package/dist/2d/lib/makeCurves.d.ts.map +1 -1
- package/dist/2d/lib/ocWrapper.d.ts.map +1 -1
- package/dist/2d.cjs +2 -2
- package/dist/2d.js +3 -3
- package/dist/Blueprint-BmFJ4caY.cjs +1439 -0
- package/dist/Blueprint-DsoGiJNJ.js +1440 -0
- package/dist/{boolean2D-q5FOdOQW.cjs → boolean2D-BQk8LNmZ.cjs} +212 -127
- package/dist/{boolean2D-Dgnuy63w.js → boolean2D-D5O0F3J8.js} +212 -127
- package/dist/{booleanFns-CFit7JYt.cjs → booleanFns-CVM3dOTP.cjs} +210 -130
- package/dist/{booleanFns--Orezl-b.js → booleanFns-DOyKxL7q.js} +210 -130
- package/dist/brepjs.cjs +457 -304
- package/dist/brepjs.js +551 -398
- package/dist/core/disposal.d.ts +44 -3
- package/dist/core/disposal.d.ts.map +1 -1
- package/dist/core/geometryHelpers.d.ts.map +1 -1
- package/dist/core/kernelCall.d.ts +20 -0
- package/dist/core/kernelCall.d.ts.map +1 -1
- package/dist/core/memory.d.ts +1 -1
- package/dist/core/memory.d.ts.map +1 -1
- package/dist/core.cjs +4 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.d.ts.map +1 -1
- package/dist/core.js +11 -8
- package/dist/{cornerFinder-KNTFoGrm.js → cornerFinder-DH6EwYfL.js} +1 -1
- package/dist/{cornerFinder-v4un1Fr9.cjs → cornerFinder-XAV2ywVS.cjs} +1 -1
- package/dist/curveFns-BHRYwxBM.js +281 -0
- package/dist/{curveFns-6ovDM_sR.cjs → curveFns-BsAHC3Qv.cjs} +137 -36
- package/dist/{drawFns-WgXeXHH1.cjs → drawFns-CsmUF97U.cjs} +181 -101
- package/dist/{drawFns-XwroLxdb.js → drawFns-hD05g0ZQ.js} +181 -101
- package/dist/faceFns-DNQss51F.cjs +358 -0
- package/dist/faceFns-q5CR9pOW.js +359 -0
- package/dist/{helpers-CRfqaW0Y.cjs → helpers-aylLv0_I.cjs} +13 -10
- package/dist/{helpers-CtBCzEqs.js → helpers-tNdaX01G.js} +13 -10
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/io/importFns.d.ts.map +1 -1
- package/dist/io.cjs +131 -63
- package/dist/io.js +131 -63
- package/dist/loft-CjEEqz2P.cjs +530 -0
- package/dist/loft-DTRcYrq2.js +531 -0
- package/dist/measurement-B6_cxjpw.cjs +200 -0
- package/dist/measurement-BXqFvcGh.js +201 -0
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-CPNNlpbw.cjs → meshFns-CTc1CRkF.cjs} +1 -1
- package/dist/{meshFns-DAmWVyEp.js → meshFns-DDFl7gLN.js} +1 -1
- package/dist/operations/exporterFns.d.ts.map +1 -1
- package/dist/operations/exporterUtils.d.ts +3 -3
- package/dist/operations/exporterUtils.d.ts.map +1 -1
- package/dist/operations/exporters.d.ts.map +1 -1
- package/dist/operations/extrude.d.ts.map +1 -1
- package/dist/operations/extrudeFns.d.ts.map +1 -1
- package/dist/operations/loft.d.ts.map +1 -1
- package/dist/operations/multiSweepFns.d.ts.map +1 -1
- package/dist/{operations-vN0tcoaU.js → operations-jRE2QbPo.js} +261 -166
- package/dist/{operations-BQ25CPI8.cjs → operations-pxjbW4Er.cjs} +261 -166
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/query/shapeDistanceFilter.d.ts.map +1 -1
- package/dist/query.cjs +66 -14
- package/dist/query.js +67 -15
- package/dist/{shapeFns-C785aeVn.cjs → shapeFns-D4CRxxmF.cjs} +61 -7
- package/dist/{shapeFns-ClpALED4.js → shapeFns-DNnBK8fG.js} +61 -7
- package/dist/{shapeTypes-DnwCo942.js → shapeTypes-Bi_9RZa2.js} +50 -19
- package/dist/{shapeTypes-CIijJxCz.cjs → shapeTypes-CWuX602K.cjs} +32 -1
- package/dist/sketching/CompoundSketch.d.ts.map +1 -1
- package/dist/sketching/Sketch.d.ts.map +1 -1
- package/dist/sketching/Sketcher.d.ts.map +1 -1
- package/dist/sketching/Sketcher2d.d.ts.map +1 -1
- package/dist/sketching/cannedSketches.d.ts.map +1 -1
- package/dist/sketching/draw.d.ts.map +1 -1
- package/dist/sketching.cjs +2 -2
- package/dist/sketching.js +2 -2
- package/dist/surfaceBuilders-CLal3WlK.cjs +429 -0
- package/dist/surfaceBuilders-W9Y25CIb.js +430 -0
- package/dist/topology/curveBuilders.d.ts.map +1 -1
- package/dist/topology/shapeFns.d.ts.map +1 -1
- package/dist/topology/solidBuilders.d.ts.map +1 -1
- package/dist/topology/surfaceBuilders.d.ts.map +1 -1
- package/dist/{topology-CqyxpmEh.js → topology-CMM6vAzx.js} +6 -6
- package/dist/{topology-zG8maSDK.cjs → topology-CNw-wsmG.cjs} +6 -6
- package/dist/topology.cjs +6 -6
- package/dist/topology.js +6 -6
- package/package.json +4 -1
- package/dist/Blueprint-BmbNUnGI.cjs +0 -1185
- package/dist/Blueprint-C-JJkkwL.js +0 -1186
- package/dist/curveFns-BhQECv8e.js +0 -180
- package/dist/faceFns-3PDjBeW7.js +0 -272
- package/dist/faceFns-CxaLWOjc.cjs +0 -271
- package/dist/loft-CVb-IjEI.cjs +0 -372
- package/dist/loft-DMFjK6lk.js +0 -373
- package/dist/measurement-CecYIt3s.cjs +0 -134
- package/dist/measurement-DHDLAH7-.js +0 -135
- package/dist/surfaceBuilders-CC0ZQGix.cjs +0 -289
- package/dist/surfaceBuilders-CrJtFu2a.js +0 -290
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : /* @__PURE__ */ Symbol.for("Symbol." + name);
|
|
3
|
+
var __typeError = (msg) => {
|
|
4
|
+
throw TypeError(msg);
|
|
5
|
+
};
|
|
6
|
+
var __using = (stack, value, async) => {
|
|
7
|
+
if (value != null) {
|
|
8
|
+
if (typeof value !== "object" && typeof value !== "function") __typeError("Object expected");
|
|
9
|
+
var dispose, inner;
|
|
10
|
+
if (async) dispose = value[__knownSymbol("asyncDispose")];
|
|
11
|
+
if (dispose === void 0) {
|
|
12
|
+
dispose = value[__knownSymbol("dispose")];
|
|
13
|
+
if (async) inner = dispose;
|
|
14
|
+
}
|
|
15
|
+
if (typeof dispose !== "function") __typeError("Object not disposable");
|
|
16
|
+
if (inner) dispose = function() {
|
|
17
|
+
try {
|
|
18
|
+
inner.call(this);
|
|
19
|
+
} catch (e) {
|
|
20
|
+
return Promise.reject(e);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
stack.push([async, dispose, value]);
|
|
24
|
+
} else if (async) {
|
|
25
|
+
stack.push([async]);
|
|
26
|
+
}
|
|
27
|
+
return value;
|
|
28
|
+
};
|
|
29
|
+
var __callDispose = (stack, error, hasError) => {
|
|
30
|
+
var E = typeof SuppressedError === "function" ? SuppressedError : function(e, s, m, _) {
|
|
31
|
+
return _ = Error(m), _.name = "SuppressedError", _.error = e, _.suppressed = s, _;
|
|
32
|
+
};
|
|
33
|
+
var fail = (e) => error = hasError ? new E(e, error, "An error was suppressed during disposal") : (hasError = true, e);
|
|
34
|
+
var next = (it) => {
|
|
35
|
+
while (it = stack.pop()) {
|
|
36
|
+
try {
|
|
37
|
+
var result = it[1] && it[1].call(it[2]);
|
|
38
|
+
if (it[0]) return Promise.resolve(result).then(next, (e) => (fail(e), next()));
|
|
39
|
+
} catch (e) {
|
|
40
|
+
fail(e);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
if (hasError) throw error;
|
|
44
|
+
};
|
|
45
|
+
return next();
|
|
46
|
+
};
|
|
47
|
+
const occtBoundary = require("./occtBoundary-Cqfsau2c.cjs");
|
|
48
|
+
const shapeTypes = require("./shapeTypes-CWuX602K.cjs");
|
|
49
|
+
const faceFns = require("./faceFns-DNQss51F.cjs");
|
|
50
|
+
let cache = /* @__PURE__ */ new WeakMap();
|
|
51
|
+
function getCachedMeasurement(shape, key) {
|
|
52
|
+
return cache.get(shape)?.get(key);
|
|
53
|
+
}
|
|
54
|
+
function setCachedMeasurement(shape, key, value) {
|
|
55
|
+
let map = cache.get(shape);
|
|
56
|
+
if (!map) {
|
|
57
|
+
map = /* @__PURE__ */ new Map();
|
|
58
|
+
cache.set(shape, map);
|
|
59
|
+
}
|
|
60
|
+
map.set(key, value);
|
|
61
|
+
}
|
|
62
|
+
function assertShapeNotNull(shape, fn) {
|
|
63
|
+
if (shape.wrapped.IsNull()) {
|
|
64
|
+
throw new Error(`${fn}: shape is a null shape`);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function measureVolumeProps(shape) {
|
|
68
|
+
var _stack = [];
|
|
69
|
+
try {
|
|
70
|
+
assertShapeNotNull(shape, "measureVolumeProps");
|
|
71
|
+
const cached = getCachedMeasurement(shape.wrapped, "volume");
|
|
72
|
+
if (cached) return cached;
|
|
73
|
+
const oc = occtBoundary.getKernel().oc;
|
|
74
|
+
const scope = __using(_stack, new shapeTypes.DisposalScope());
|
|
75
|
+
const props = scope.register(new oc.GProp_GProps_1());
|
|
76
|
+
oc.BRepGProp.VolumeProperties_1(shape.wrapped, props, false, false, false);
|
|
77
|
+
const pnt = scope.register(props.CentreOfMass());
|
|
78
|
+
const m = props.Mass();
|
|
79
|
+
const result = {
|
|
80
|
+
mass: m,
|
|
81
|
+
volume: m,
|
|
82
|
+
centerOfMass: [pnt.X(), pnt.Y(), pnt.Z()]
|
|
83
|
+
};
|
|
84
|
+
setCachedMeasurement(shape.wrapped, "volume", result);
|
|
85
|
+
return result;
|
|
86
|
+
} catch (_) {
|
|
87
|
+
var _error = _, _hasError = true;
|
|
88
|
+
} finally {
|
|
89
|
+
__callDispose(_stack, _error, _hasError);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
function measureSurfaceProps(shape) {
|
|
93
|
+
var _stack = [];
|
|
94
|
+
try {
|
|
95
|
+
assertShapeNotNull(shape, "measureSurfaceProps");
|
|
96
|
+
const cached = getCachedMeasurement(shape.wrapped, "surface");
|
|
97
|
+
if (cached) return cached;
|
|
98
|
+
const oc = occtBoundary.getKernel().oc;
|
|
99
|
+
const scope = __using(_stack, new shapeTypes.DisposalScope());
|
|
100
|
+
const props = scope.register(new oc.GProp_GProps_1());
|
|
101
|
+
oc.BRepGProp.SurfaceProperties_1(shape.wrapped, props, false, false);
|
|
102
|
+
const pnt = scope.register(props.CentreOfMass());
|
|
103
|
+
const m = props.Mass();
|
|
104
|
+
const result = {
|
|
105
|
+
mass: m,
|
|
106
|
+
area: m,
|
|
107
|
+
centerOfMass: [pnt.X(), pnt.Y(), pnt.Z()]
|
|
108
|
+
};
|
|
109
|
+
setCachedMeasurement(shape.wrapped, "surface", result);
|
|
110
|
+
return result;
|
|
111
|
+
} catch (_) {
|
|
112
|
+
var _error = _, _hasError = true;
|
|
113
|
+
} finally {
|
|
114
|
+
__callDispose(_stack, _error, _hasError);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
function measureLinearProps(shape) {
|
|
118
|
+
var _stack = [];
|
|
119
|
+
try {
|
|
120
|
+
assertShapeNotNull(shape, "measureLinearProps");
|
|
121
|
+
const cached = getCachedMeasurement(shape.wrapped, "linear");
|
|
122
|
+
if (cached) return cached;
|
|
123
|
+
const oc = occtBoundary.getKernel().oc;
|
|
124
|
+
const scope = __using(_stack, new shapeTypes.DisposalScope());
|
|
125
|
+
const props = scope.register(new oc.GProp_GProps_1());
|
|
126
|
+
oc.BRepGProp.LinearProperties(shape.wrapped, props, false, false);
|
|
127
|
+
const pnt = scope.register(props.CentreOfMass());
|
|
128
|
+
const m = props.Mass();
|
|
129
|
+
const result = {
|
|
130
|
+
mass: m,
|
|
131
|
+
length: m,
|
|
132
|
+
centerOfMass: [pnt.X(), pnt.Y(), pnt.Z()]
|
|
133
|
+
};
|
|
134
|
+
setCachedMeasurement(shape.wrapped, "linear", result);
|
|
135
|
+
return result;
|
|
136
|
+
} catch (_) {
|
|
137
|
+
var _error = _, _hasError = true;
|
|
138
|
+
} finally {
|
|
139
|
+
__callDispose(_stack, _error, _hasError);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
function measureVolume(shape) {
|
|
143
|
+
return measureVolumeProps(shape).mass;
|
|
144
|
+
}
|
|
145
|
+
function measureArea(shape) {
|
|
146
|
+
return measureSurfaceProps(shape).mass;
|
|
147
|
+
}
|
|
148
|
+
function measureLength(shape) {
|
|
149
|
+
return measureLinearProps(shape).mass;
|
|
150
|
+
}
|
|
151
|
+
function measureDistance(shape1, shape2) {
|
|
152
|
+
assertShapeNotNull(shape1, "measureDistance");
|
|
153
|
+
assertShapeNotNull(shape2, "measureDistance");
|
|
154
|
+
return occtBoundary.getKernel().distance(shape1.wrapped, shape2.wrapped).value;
|
|
155
|
+
}
|
|
156
|
+
function createDistanceQuery(referenceShape) {
|
|
157
|
+
assertShapeNotNull(referenceShape, "createDistanceQuery");
|
|
158
|
+
const oc = occtBoundary.getKernel().oc;
|
|
159
|
+
const distTool = new oc.BRepExtrema_DistShapeShape_1();
|
|
160
|
+
distTool.LoadS1(referenceShape.wrapped);
|
|
161
|
+
return {
|
|
162
|
+
distanceTo(other) {
|
|
163
|
+
assertShapeNotNull(other, "createDistanceQuery.distanceTo");
|
|
164
|
+
distTool.LoadS2(other.wrapped);
|
|
165
|
+
const progress = new oc.Message_ProgressRange_1();
|
|
166
|
+
try {
|
|
167
|
+
distTool.Perform(progress);
|
|
168
|
+
return distTool.Value();
|
|
169
|
+
} finally {
|
|
170
|
+
progress.delete();
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
dispose() {
|
|
174
|
+
distTool.delete();
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
function measureCurvatureAt(face, u, v) {
|
|
179
|
+
assertShapeNotNull(face, "measureCurvatureAt");
|
|
180
|
+
const oc = occtBoundary.getKernel().oc;
|
|
181
|
+
return occtBoundary.surfaceCurvature(oc, face.wrapped, u, v);
|
|
182
|
+
}
|
|
183
|
+
function measureCurvatureAtMid(face) {
|
|
184
|
+
assertShapeNotNull(face, "measureCurvatureAtMid");
|
|
185
|
+
const oc = occtBoundary.getKernel().oc;
|
|
186
|
+
const bounds = faceFns.uvBounds(face);
|
|
187
|
+
const uMid = (bounds.uMin + bounds.uMax) / 2;
|
|
188
|
+
const vMid = (bounds.vMin + bounds.vMax) / 2;
|
|
189
|
+
return occtBoundary.surfaceCurvature(oc, face.wrapped, uMid, vMid);
|
|
190
|
+
}
|
|
191
|
+
exports.createDistanceQuery = createDistanceQuery;
|
|
192
|
+
exports.measureArea = measureArea;
|
|
193
|
+
exports.measureCurvatureAt = measureCurvatureAt;
|
|
194
|
+
exports.measureCurvatureAtMid = measureCurvatureAtMid;
|
|
195
|
+
exports.measureDistance = measureDistance;
|
|
196
|
+
exports.measureLength = measureLength;
|
|
197
|
+
exports.measureLinearProps = measureLinearProps;
|
|
198
|
+
exports.measureSurfaceProps = measureSurfaceProps;
|
|
199
|
+
exports.measureVolume = measureVolume;
|
|
200
|
+
exports.measureVolumeProps = measureVolumeProps;
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : /* @__PURE__ */ Symbol.for("Symbol." + name);
|
|
2
|
+
var __typeError = (msg) => {
|
|
3
|
+
throw TypeError(msg);
|
|
4
|
+
};
|
|
5
|
+
var __using = (stack, value, async) => {
|
|
6
|
+
if (value != null) {
|
|
7
|
+
if (typeof value !== "object" && typeof value !== "function") __typeError("Object expected");
|
|
8
|
+
var dispose, inner;
|
|
9
|
+
if (async) dispose = value[__knownSymbol("asyncDispose")];
|
|
10
|
+
if (dispose === void 0) {
|
|
11
|
+
dispose = value[__knownSymbol("dispose")];
|
|
12
|
+
if (async) inner = dispose;
|
|
13
|
+
}
|
|
14
|
+
if (typeof dispose !== "function") __typeError("Object not disposable");
|
|
15
|
+
if (inner) dispose = function() {
|
|
16
|
+
try {
|
|
17
|
+
inner.call(this);
|
|
18
|
+
} catch (e) {
|
|
19
|
+
return Promise.reject(e);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
stack.push([async, dispose, value]);
|
|
23
|
+
} else if (async) {
|
|
24
|
+
stack.push([async]);
|
|
25
|
+
}
|
|
26
|
+
return value;
|
|
27
|
+
};
|
|
28
|
+
var __callDispose = (stack, error, hasError) => {
|
|
29
|
+
var E = typeof SuppressedError === "function" ? SuppressedError : function(e, s, m, _) {
|
|
30
|
+
return _ = Error(m), _.name = "SuppressedError", _.error = e, _.suppressed = s, _;
|
|
31
|
+
};
|
|
32
|
+
var fail = (e) => error = hasError ? new E(e, error, "An error was suppressed during disposal") : (hasError = true, e);
|
|
33
|
+
var next = (it) => {
|
|
34
|
+
while (it = stack.pop()) {
|
|
35
|
+
try {
|
|
36
|
+
var result = it[1] && it[1].call(it[2]);
|
|
37
|
+
if (it[0]) return Promise.resolve(result).then(next, (e) => (fail(e), next()));
|
|
38
|
+
} catch (e) {
|
|
39
|
+
fail(e);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
if (hasError) throw error;
|
|
43
|
+
};
|
|
44
|
+
return next();
|
|
45
|
+
};
|
|
46
|
+
import { g as getKernel, s as surfaceCurvature } from "./occtBoundary-DvBywHyU.js";
|
|
47
|
+
import { D as DisposalScope } from "./shapeTypes-Bi_9RZa2.js";
|
|
48
|
+
import { u as uvBounds } from "./faceFns-q5CR9pOW.js";
|
|
49
|
+
let cache = /* @__PURE__ */ new WeakMap();
|
|
50
|
+
function getCachedMeasurement(shape, key) {
|
|
51
|
+
return cache.get(shape)?.get(key);
|
|
52
|
+
}
|
|
53
|
+
function setCachedMeasurement(shape, key, value) {
|
|
54
|
+
let map = cache.get(shape);
|
|
55
|
+
if (!map) {
|
|
56
|
+
map = /* @__PURE__ */ new Map();
|
|
57
|
+
cache.set(shape, map);
|
|
58
|
+
}
|
|
59
|
+
map.set(key, value);
|
|
60
|
+
}
|
|
61
|
+
function assertShapeNotNull(shape, fn) {
|
|
62
|
+
if (shape.wrapped.IsNull()) {
|
|
63
|
+
throw new Error(`${fn}: shape is a null shape`);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function measureVolumeProps(shape) {
|
|
67
|
+
var _stack = [];
|
|
68
|
+
try {
|
|
69
|
+
assertShapeNotNull(shape, "measureVolumeProps");
|
|
70
|
+
const cached = getCachedMeasurement(shape.wrapped, "volume");
|
|
71
|
+
if (cached) return cached;
|
|
72
|
+
const oc = getKernel().oc;
|
|
73
|
+
const scope = __using(_stack, new DisposalScope());
|
|
74
|
+
const props = scope.register(new oc.GProp_GProps_1());
|
|
75
|
+
oc.BRepGProp.VolumeProperties_1(shape.wrapped, props, false, false, false);
|
|
76
|
+
const pnt = scope.register(props.CentreOfMass());
|
|
77
|
+
const m = props.Mass();
|
|
78
|
+
const result = {
|
|
79
|
+
mass: m,
|
|
80
|
+
volume: m,
|
|
81
|
+
centerOfMass: [pnt.X(), pnt.Y(), pnt.Z()]
|
|
82
|
+
};
|
|
83
|
+
setCachedMeasurement(shape.wrapped, "volume", result);
|
|
84
|
+
return result;
|
|
85
|
+
} catch (_) {
|
|
86
|
+
var _error = _, _hasError = true;
|
|
87
|
+
} finally {
|
|
88
|
+
__callDispose(_stack, _error, _hasError);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
function measureSurfaceProps(shape) {
|
|
92
|
+
var _stack = [];
|
|
93
|
+
try {
|
|
94
|
+
assertShapeNotNull(shape, "measureSurfaceProps");
|
|
95
|
+
const cached = getCachedMeasurement(shape.wrapped, "surface");
|
|
96
|
+
if (cached) return cached;
|
|
97
|
+
const oc = getKernel().oc;
|
|
98
|
+
const scope = __using(_stack, new DisposalScope());
|
|
99
|
+
const props = scope.register(new oc.GProp_GProps_1());
|
|
100
|
+
oc.BRepGProp.SurfaceProperties_1(shape.wrapped, props, false, false);
|
|
101
|
+
const pnt = scope.register(props.CentreOfMass());
|
|
102
|
+
const m = props.Mass();
|
|
103
|
+
const result = {
|
|
104
|
+
mass: m,
|
|
105
|
+
area: m,
|
|
106
|
+
centerOfMass: [pnt.X(), pnt.Y(), pnt.Z()]
|
|
107
|
+
};
|
|
108
|
+
setCachedMeasurement(shape.wrapped, "surface", result);
|
|
109
|
+
return result;
|
|
110
|
+
} catch (_) {
|
|
111
|
+
var _error = _, _hasError = true;
|
|
112
|
+
} finally {
|
|
113
|
+
__callDispose(_stack, _error, _hasError);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
function measureLinearProps(shape) {
|
|
117
|
+
var _stack = [];
|
|
118
|
+
try {
|
|
119
|
+
assertShapeNotNull(shape, "measureLinearProps");
|
|
120
|
+
const cached = getCachedMeasurement(shape.wrapped, "linear");
|
|
121
|
+
if (cached) return cached;
|
|
122
|
+
const oc = getKernel().oc;
|
|
123
|
+
const scope = __using(_stack, new DisposalScope());
|
|
124
|
+
const props = scope.register(new oc.GProp_GProps_1());
|
|
125
|
+
oc.BRepGProp.LinearProperties(shape.wrapped, props, false, false);
|
|
126
|
+
const pnt = scope.register(props.CentreOfMass());
|
|
127
|
+
const m = props.Mass();
|
|
128
|
+
const result = {
|
|
129
|
+
mass: m,
|
|
130
|
+
length: m,
|
|
131
|
+
centerOfMass: [pnt.X(), pnt.Y(), pnt.Z()]
|
|
132
|
+
};
|
|
133
|
+
setCachedMeasurement(shape.wrapped, "linear", result);
|
|
134
|
+
return result;
|
|
135
|
+
} catch (_) {
|
|
136
|
+
var _error = _, _hasError = true;
|
|
137
|
+
} finally {
|
|
138
|
+
__callDispose(_stack, _error, _hasError);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
function measureVolume(shape) {
|
|
142
|
+
return measureVolumeProps(shape).mass;
|
|
143
|
+
}
|
|
144
|
+
function measureArea(shape) {
|
|
145
|
+
return measureSurfaceProps(shape).mass;
|
|
146
|
+
}
|
|
147
|
+
function measureLength(shape) {
|
|
148
|
+
return measureLinearProps(shape).mass;
|
|
149
|
+
}
|
|
150
|
+
function measureDistance(shape1, shape2) {
|
|
151
|
+
assertShapeNotNull(shape1, "measureDistance");
|
|
152
|
+
assertShapeNotNull(shape2, "measureDistance");
|
|
153
|
+
return getKernel().distance(shape1.wrapped, shape2.wrapped).value;
|
|
154
|
+
}
|
|
155
|
+
function createDistanceQuery(referenceShape) {
|
|
156
|
+
assertShapeNotNull(referenceShape, "createDistanceQuery");
|
|
157
|
+
const oc = getKernel().oc;
|
|
158
|
+
const distTool = new oc.BRepExtrema_DistShapeShape_1();
|
|
159
|
+
distTool.LoadS1(referenceShape.wrapped);
|
|
160
|
+
return {
|
|
161
|
+
distanceTo(other) {
|
|
162
|
+
assertShapeNotNull(other, "createDistanceQuery.distanceTo");
|
|
163
|
+
distTool.LoadS2(other.wrapped);
|
|
164
|
+
const progress = new oc.Message_ProgressRange_1();
|
|
165
|
+
try {
|
|
166
|
+
distTool.Perform(progress);
|
|
167
|
+
return distTool.Value();
|
|
168
|
+
} finally {
|
|
169
|
+
progress.delete();
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
dispose() {
|
|
173
|
+
distTool.delete();
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
function measureCurvatureAt(face, u, v) {
|
|
178
|
+
assertShapeNotNull(face, "measureCurvatureAt");
|
|
179
|
+
const oc = getKernel().oc;
|
|
180
|
+
return surfaceCurvature(oc, face.wrapped, u, v);
|
|
181
|
+
}
|
|
182
|
+
function measureCurvatureAtMid(face) {
|
|
183
|
+
assertShapeNotNull(face, "measureCurvatureAtMid");
|
|
184
|
+
const oc = getKernel().oc;
|
|
185
|
+
const bounds = uvBounds(face);
|
|
186
|
+
const uMid = (bounds.uMin + bounds.uMax) / 2;
|
|
187
|
+
const vMid = (bounds.vMin + bounds.vMax) / 2;
|
|
188
|
+
return surfaceCurvature(oc, face.wrapped, uMid, vMid);
|
|
189
|
+
}
|
|
190
|
+
export {
|
|
191
|
+
measureSurfaceProps as a,
|
|
192
|
+
measureVolumeProps as b,
|
|
193
|
+
measureVolume as c,
|
|
194
|
+
createDistanceQuery as d,
|
|
195
|
+
measureCurvatureAt as e,
|
|
196
|
+
measureCurvatureAtMid as f,
|
|
197
|
+
measureDistance as g,
|
|
198
|
+
measureLength as h,
|
|
199
|
+
measureLinearProps as i,
|
|
200
|
+
measureArea as m
|
|
201
|
+
};
|
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-B6_cxjpw.cjs");
|
|
4
4
|
exports.createDistanceQuery = measurement.createDistanceQuery;
|
|
5
5
|
exports.measureArea = measurement.measureArea;
|
|
6
6
|
exports.measureDistance = measurement.measureDistance;
|
package/dist/measurement.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const occtBoundary = require("./occtBoundary-Cqfsau2c.cjs");
|
|
3
3
|
const errors = require("./errors-NNmTtM5u.cjs");
|
|
4
|
-
const shapeFns = require("./shapeFns-
|
|
4
|
+
const shapeFns = require("./shapeFns-D4CRxxmF.cjs");
|
|
5
5
|
function buildMeshCacheKey(tolerance, angularTolerance, skipNormals) {
|
|
6
6
|
return `${tolerance}:${angularTolerance}:${skipNormals}`;
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as getKernel, u as uniqueIOFilename } from "./occtBoundary-DvBywHyU.js";
|
|
2
2
|
import { l as ok, e as err, i as ioError } from "./errors-DJ92ermb.js";
|
|
3
|
-
import { g as getFaceOrigins } from "./shapeFns-
|
|
3
|
+
import { g as getFaceOrigins } from "./shapeFns-DNnBK8fG.js";
|
|
4
4
|
function buildMeshCacheKey(tolerance, angularTolerance, skipNormals) {
|
|
5
5
|
return `${tolerance}:${angularTolerance}:${skipNormals}`;
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exporterFns.d.ts","sourceRoot":"","sources":["../../src/operations/exporterFns.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGtD,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,mBAAmB,CAAC;AAGzD,OAAO,EAKL,KAAK,aAAa,EACnB,MAAM,oBAAoB,CAAC;AAM5B,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,4EAA4E;AAC5E,MAAM,WAAW,YAAY;IAC3B,oDAAoD;IACpD,KAAK,EAAE,QAAQ,CAAC;IAChB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iEAAiE;IACjE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,GAAE,YAAY,EAAO,EAC3B,EAAE,IAAI,EAAE,SAAS,EAAE,GAAE;IAAE,IAAI,CAAC,EAAE,aAAa,CAAC;IAAC,SAAS,CAAC,EAAE,aAAa,CAAA;CAAO,GAC5E,MAAM,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"exporterFns.d.ts","sourceRoot":"","sources":["../../src/operations/exporterFns.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGtD,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,mBAAmB,CAAC;AAGzD,OAAO,EAKL,KAAK,aAAa,EACnB,MAAM,oBAAoB,CAAC;AAM5B,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,4EAA4E;AAC5E,MAAM,WAAW,YAAY;IAC3B,oDAAoD;IACpD,KAAK,EAAE,QAAQ,CAAC;IAChB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iEAAiE;IACjE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,GAAE,YAAY,EAAO,EAC3B,EAAE,IAAI,EAAE,SAAS,EAAE,GAAE;IAAE,IAAI,CAAC,EAAE,aAAa,CAAC;IAAC,SAAS,CAAC,EAAE,aAAa,CAAA;CAAO,GAC5E,MAAM,CAAC,IAAI,CAAC,CA0Dd"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DisposalScope } from '../core/disposal.js';
|
|
2
2
|
/**
|
|
3
3
|
* Shared utilities for STEP/STL exporters.
|
|
4
4
|
* Used by both class-based (exporters.ts) and functional (exporterFns.ts) APIs.
|
|
@@ -29,9 +29,9 @@ export type SupportedUnit = 'M' | 'CM' | 'MM' | 'INCH' | 'FT' | 'm' | 'mm' | 'cm
|
|
|
29
29
|
*
|
|
30
30
|
* @param unit - Write unit (e.g. `'MM'`). Falls back to `modelUnit`.
|
|
31
31
|
* @param modelUnit - Model unit. Falls back to `unit`.
|
|
32
|
-
* @param
|
|
32
|
+
* @param scope - Disposal scope for the temporary writer instance.
|
|
33
33
|
*/
|
|
34
|
-
export declare function configureStepUnits(unit: SupportedUnit | undefined, modelUnit: SupportedUnit | undefined,
|
|
34
|
+
export declare function configureStepUnits(unit: SupportedUnit | undefined, modelUnit: SupportedUnit | undefined, scope: DisposalScope): void;
|
|
35
35
|
/**
|
|
36
36
|
* Configure STEP writer standard settings for color, layer, name, and schema.
|
|
37
37
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exporterUtils.d.ts","sourceRoot":"","sources":["../../src/operations/exporterUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,KAAK,MAAM,GAAG,GAAG,CAAC;AAGlB,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"exporterUtils.d.ts","sourceRoot":"","sources":["../../src/operations/exporterUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,KAAK,MAAM,GAAG,GAAG,CAAC;AAGlB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAMzD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAG9C;AAwBD;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,SAAI,GAAG,MAAM,CAIxD;AAMD,8CAA8C;AAC9C,MAAM,MAAM,aAAa,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;AAMlG;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,aAAa,GAAG,SAAS,EAC/B,SAAS,EAAE,aAAa,GAAG,SAAS,EACpC,KAAK,EAAE,aAAa,GACnB,IAAI,CAON;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CASxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exporters.d.ts","sourceRoot":"","sources":["../../src/operations/exporters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAGjD,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,qBAAqB,CAAC;AAEpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM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,EAAE,UAAU,GAAG,SAAS,CAAC;IACpC,uDAAuD;IACvD,QAAQ,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;CACnC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,IAAI,GACf,OAAO,IAAI,EAAE,EACb,kCAAwC,WAAgB,EACxD,qBAAmB,KAClB,MAAM,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"loft.d.ts","sourceRoot":"","sources":["../../src/operations/loft.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGnD,OAAO,EAAE,KAAK,MAAM,EAAoB,MAAM,mBAAmB,CAAC;AAElE,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAG3D,gDAAgD;AAChD,MAAM,WAAW,WAAW;IAC1B,+EAA+E;IAC/E,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,2DAA2D;IAC3D,UAAU,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IACpC,uDAAuD;IACvD,QAAQ,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;CACnC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,IAAI,GACf,OAAO,IAAI,EAAE,EACb,kCAAwC,WAAgB,EACxD,qBAAmB,KAClB,MAAM,CAAC,OAAO,CAgChB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multiSweepFns.d.ts","sourceRoot":"","sources":["../../src/operations/multiSweepFns.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAGhE,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,mBAAmB,CAAC;AAGzD,mFAAmF;AACnF,MAAM,WAAW,kBAAkB;IACjC,yCAAyC;IACzC,IAAI,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