brepjs 18.118.15 → 18.118.16
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/brepjs.cjs +10 -4
- package/dist/brepjs.js +10 -4
- package/package.json +1 -1
package/dist/brepjs.cjs
CHANGED
|
@@ -3955,16 +3955,22 @@ function rectangularPattern(shape, options) {
|
|
|
3955
3955
|
const xNorm = require_vecOps.vecNormalize(xDir);
|
|
3956
3956
|
const yNorm = require_vecOps.vecNormalize(yDir);
|
|
3957
3957
|
const copies = [s];
|
|
3958
|
+
const owned = [];
|
|
3958
3959
|
for (let xi = 0; xi < xCount; xi++) for (let yi = 0; yi < yCount; yi++) {
|
|
3959
3960
|
if (xi === 0 && yi === 0) continue;
|
|
3960
|
-
const
|
|
3961
|
+
const c = require_shapeFns.translate(s, [
|
|
3961
3962
|
xNorm[0] * xSpacing * xi + yNorm[0] * ySpacing * yi,
|
|
3962
3963
|
xNorm[1] * xSpacing * xi + yNorm[1] * ySpacing * yi,
|
|
3963
3964
|
xNorm[2] * xSpacing * xi + yNorm[2] * ySpacing * yi
|
|
3964
|
-
];
|
|
3965
|
-
copies.push(
|
|
3965
|
+
]);
|
|
3966
|
+
copies.push(c);
|
|
3967
|
+
owned.push(c);
|
|
3968
|
+
}
|
|
3969
|
+
try {
|
|
3970
|
+
return require_solidBuilders.fuseAll(copies, { unsafe: true });
|
|
3971
|
+
} finally {
|
|
3972
|
+
for (const c of owned) c[Symbol.dispose]();
|
|
3966
3973
|
}
|
|
3967
|
-
return require_solidBuilders.fuseAll(copies, { unsafe: true });
|
|
3968
3974
|
}
|
|
3969
3975
|
//#endregion
|
|
3970
3976
|
//#region src/topology/wrapperFns.ts
|
package/dist/brepjs.js
CHANGED
|
@@ -3958,16 +3958,22 @@ function rectangularPattern(shape, options) {
|
|
|
3958
3958
|
const xNorm = vecNormalize(xDir);
|
|
3959
3959
|
const yNorm = vecNormalize(yDir);
|
|
3960
3960
|
const copies = [s];
|
|
3961
|
+
const owned = [];
|
|
3961
3962
|
for (let xi = 0; xi < xCount; xi++) for (let yi = 0; yi < yCount; yi++) {
|
|
3962
3963
|
if (xi === 0 && yi === 0) continue;
|
|
3963
|
-
const
|
|
3964
|
+
const c = translate$2(s, [
|
|
3964
3965
|
xNorm[0] * xSpacing * xi + yNorm[0] * ySpacing * yi,
|
|
3965
3966
|
xNorm[1] * xSpacing * xi + yNorm[1] * ySpacing * yi,
|
|
3966
3967
|
xNorm[2] * xSpacing * xi + yNorm[2] * ySpacing * yi
|
|
3967
|
-
];
|
|
3968
|
-
copies.push(
|
|
3968
|
+
]);
|
|
3969
|
+
copies.push(c);
|
|
3970
|
+
owned.push(c);
|
|
3971
|
+
}
|
|
3972
|
+
try {
|
|
3973
|
+
return fuseAll$2(copies, { unsafe: true });
|
|
3974
|
+
} finally {
|
|
3975
|
+
for (const c of owned) c[Symbol.dispose]();
|
|
3969
3976
|
}
|
|
3970
|
-
return fuseAll$2(copies, { unsafe: true });
|
|
3971
3977
|
}
|
|
3972
3978
|
//#endregion
|
|
3973
3979
|
//#region src/topology/wrapperFns.ts
|