brepjs 15.2.9 → 15.2.11
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-CbD0PYLr.cjs → blueprint-BkKnM_9w.cjs} +5 -5
- package/dist/{blueprint-CM1OOluq.js → blueprint-BqdFeOSN.js} +5 -5
- package/dist/{blueprintFns-_JcjAvPP.cjs → blueprintFns-DMk0Pxr4.cjs} +2 -2
- package/dist/{blueprintFns-BngkSCmA.js → blueprintFns-Ds8qYSpU.js} +2 -2
- package/dist/{boolean2D-THA5506z.cjs → boolean2D--RWVJEAM.cjs} +14 -8
- package/dist/{boolean2D-B-l_kvhp.js → boolean2D-DEiO0Uct.js} +14 -8
- package/dist/{booleanFns-D_DVbfzR.js → booleanFns-Cstp5Ep1.js} +4 -4
- package/dist/{booleanFns-CQNV8MMq.cjs → booleanFns-CwHfuxWc.cjs} +4 -4
- package/dist/brepjs.cjs +24 -23
- package/dist/brepjs.js +24 -23
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-4PxIzwrl.cjs → cornerFinder-DLxiZcyg.cjs} +1 -1
- package/dist/{cornerFinder-Ty3F7kPm.js → cornerFinder-K7cjTnkP.js} +1 -1
- package/dist/{curveFns-Bukd9jhv.cjs → curveFns-CQIv_biC.cjs} +1 -1
- package/dist/{curveFns-Dn4gbNzG.js → curveFns-D-0yqVb9.js} +1 -1
- package/dist/{drawFns-TaKrwQ13.js → drawFns-BU7zRJy2.js} +10 -10
- package/dist/{drawFns-C1XeyF0v.cjs → drawFns-CZZsnlAR.cjs} +10 -10
- package/dist/{extrudeFns-ClsoGp5V.js → extrudeFns-B3qZ8gzq.js} +49 -22
- package/dist/{extrudeFns-BjfEBgIw.cjs → extrudeFns-WHKS4Oef.cjs} +49 -22
- package/dist/{faceFns-DMFG-piP.js → faceFns-BQ7czFFV.js} +1 -1
- package/dist/{faceFns-CKL9Us23.cjs → faceFns-uX_AVFqu.cjs} +1 -1
- package/dist/{helpers-XTeLX4mm.js → helpers-C4r8ovx9.js} +5 -5
- package/dist/{helpers-BFyEt7Fv.cjs → helpers-CM63Nn7A.cjs} +5 -5
- package/dist/{historyFns-DltXL-vp.js → historyFns-BFuHqN_0.js} +4 -4
- package/dist/{historyFns-DBSgZGtF.cjs → historyFns-DkDJpwef.cjs} +4 -4
- package/dist/{importFns-C_PgMCn_.js → importFns--VkKJoDs.js} +2 -2
- package/dist/{importFns-DRNXwoUG.cjs → importFns--rg42dnv.cjs} +2 -2
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/occt/advancedOps.d.ts +6 -0
- package/dist/kernel/occt/advancedOps.d.ts.map +1 -1
- package/dist/kernel/occt/sweepOps.d.ts.map +1 -1
- package/dist/{measureFns-C2SnZLhD.cjs → measureFns-BxAZf4Mf.cjs} +2 -2
- package/dist/{measureFns-Zc5RWsI4.js → measureFns-D5DbMnQY.js} +2 -2
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-CO9qVJ24.cjs → meshFns-BdEOTCwK.cjs} +2 -2
- package/dist/{meshFns-gTPomZkK.js → meshFns-C9DtKU7q.js} +2 -2
- package/dist/operations/compoundOpsFns.d.ts.map +1 -1
- package/dist/operations/extrudeFns.d.ts.map +1 -1
- package/dist/operations/loftFns.d.ts.map +1 -1
- package/dist/operations/sweepFns.d.ts.map +1 -1
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-BAifgHMW.js → primitiveFns-Bpq2yFqw.js} +5 -5
- package/dist/{primitiveFns-CL6lNda-.cjs → primitiveFns-D3FvKWK-.cjs} +5 -5
- package/dist/query.cjs +2 -2
- package/dist/query.js +2 -2
- package/dist/{shapeFns-DkFzoJav.cjs → shapeFns-Dz2GNg2y.cjs} +2 -2
- package/dist/{shapeFns-QGgHStIU.js → shapeFns-LgyEtLGl.js} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeRefFns-Gv4-NGJD.js → shapeRefFns-CgnpumqW.js} +3 -3
- package/dist/{shapeRefFns-t-5-Aqku.cjs → shapeRefFns-N0wl6XSn.cjs} +3 -3
- package/dist/{shapeTypes-Ct7W6h2X.js → shapeTypes-B9a2ed1X.js} +48 -27
- package/dist/{shapeTypes-Bfw136X-.cjs → shapeTypes-hQK4eaEw.cjs} +48 -27
- package/dist/sketching.cjs +2 -2
- package/dist/sketching.js +2 -2
- package/dist/{solidBuilders-CQipZFOw.js → solidBuilders-C_-imolZ.js} +2 -2
- package/dist/{solidBuilders-DI9d6ZIx.cjs → solidBuilders-DUl2f7gY.cjs} +2 -2
- package/dist/{surfaceBuilders-Im6Xef27.js → surfaceBuilders-BY117AaY.js} +2 -2
- package/dist/{surfaceBuilders-DzTJA3fK.cjs → surfaceBuilders-D_w11wLr.cjs} +2 -2
- package/dist/topology.cjs +6 -6
- package/dist/topology.js +6 -6
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { X as getKernel, c as createSolid, h as isShape3D, t as castShape, y as isWire } from "./shapeTypes-
|
|
1
|
+
import { X as getKernel, c as createSolid, h as isShape3D, t as castShape, y as isWire } from "./shapeTypes-B9a2ed1X.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, w as isErr } from "./errors-DboJwVCf.js";
|
|
3
3
|
import { c as vecLength, d as vecNormalize, t as vecAdd } from "./vecOps-B-PCHgyB.js";
|
|
4
4
|
//#region src/operations/extrudeUtils.ts
|
|
@@ -28,8 +28,8 @@ function makeSpineWire(start, end) {
|
|
|
28
28
|
return castShape(kernel.makeWire([edge]));
|
|
29
29
|
}
|
|
30
30
|
/** Build a helix wire for twist extrusion. */
|
|
31
|
-
function makeHelixWire(pitch, height, radius, center, dir,
|
|
32
|
-
return castShape(getKernel().makeHelixWire(pitch, height, radius, [...center], [...dir]));
|
|
31
|
+
function makeHelixWire(pitch, height, radius, center, dir, leftHanded = false) {
|
|
32
|
+
return castShape(getKernel().makeHelixWire(pitch, height, radius, [...center], [...dir], leftHanded));
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Sweep a wire profile along a spine wire to create a 3D shape.
|
|
@@ -145,7 +145,8 @@ function twistExtrude(wire, angleDegrees, center, normal, profileShape, shellMod
|
|
|
145
145
|
const extrusionLength = vecLength(normal);
|
|
146
146
|
if (extrusionLength < 1e-10) return err(validationError("ZERO_LENGTH_EXTRUSION", "Extrusion vector cannot have zero length"));
|
|
147
147
|
const spine = makeSpineWire(center, vecAdd(center, normal));
|
|
148
|
-
const
|
|
148
|
+
const leftHanded = angleDegrees < 0;
|
|
149
|
+
const auxiliarySpine = makeHelixWire(360 / Math.abs(angleDegrees) * extrusionLength, extrusionLength, 1, center, normal, leftHanded);
|
|
149
150
|
let law = null;
|
|
150
151
|
if (profileShape) {
|
|
151
152
|
const lawResult = buildLawFromProfile(extrusionLength, profileShape);
|
|
@@ -171,10 +172,27 @@ function validateSectionLocations(sections) {
|
|
|
171
172
|
function computeSectionParams(sections, spine, kernel) {
|
|
172
173
|
const [uFirst, uLast] = kernel.curveParameters(spine.wrapped);
|
|
173
174
|
const uRange = uLast - uFirst;
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
175
|
+
const params = new Array(sections.length);
|
|
176
|
+
for (let i = 0; i < sections.length; i++) {
|
|
177
|
+
const loc = sections[i]?.location;
|
|
178
|
+
params[i] = loc !== void 0 ? uFirst + loc * uRange : NaN;
|
|
179
|
+
}
|
|
180
|
+
let prevIdx = -1;
|
|
181
|
+
let prevVal = uFirst;
|
|
182
|
+
for (let i = 0; i <= sections.length; i++) {
|
|
183
|
+
const isEnd = i === sections.length;
|
|
184
|
+
if (!isEnd && !Number.isNaN(params[i] ?? NaN) || isEnd) {
|
|
185
|
+
const nextVal = isEnd ? uLast : params[i] ?? uLast;
|
|
186
|
+
const gapCount = i - prevIdx - 1;
|
|
187
|
+
for (let g = 1; g <= gapCount; g++) params[prevIdx + g] = prevVal + g / (gapCount + 1) * (nextVal - prevVal);
|
|
188
|
+
if (!isEnd) {
|
|
189
|
+
prevIdx = i;
|
|
190
|
+
prevVal = params[i] ?? uFirst;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
for (let i = 1; i < params.length; i++) if ((params[i] ?? 0) <= (params[i - 1] ?? 0)) return err(validationError(BrepErrorCode.MULTI_SWEEP_FAILED, `Computed section parameters are not strictly increasing at index ${i} (${params[i - 1]?.toFixed(4)} >= ${params[i]?.toFixed(4)})`));
|
|
195
|
+
return ok(params);
|
|
178
196
|
}
|
|
179
197
|
/**
|
|
180
198
|
* Sweep multiple profile sections along a spine wire.
|
|
@@ -195,7 +213,9 @@ function multiSectionSweep(sections, spine, options) {
|
|
|
195
213
|
if (locationErr) return err(locationErr);
|
|
196
214
|
try {
|
|
197
215
|
const kernel = getKernel();
|
|
198
|
-
const
|
|
216
|
+
const paramsResult = computeSectionParams(sections, spine, kernel);
|
|
217
|
+
if (isErr(paramsResult)) return paramsResult;
|
|
218
|
+
const params = paramsResult.value;
|
|
199
219
|
const positionedWires = [];
|
|
200
220
|
for (let i = 0; i < sections.length; i++) {
|
|
201
221
|
const param = params[i];
|
|
@@ -268,7 +288,7 @@ function guidedSweep(profile, spine, guides, options = {}) {
|
|
|
268
288
|
*/
|
|
269
289
|
function extrude(face, extrusionVec) {
|
|
270
290
|
if (getKernel().isNull(face.wrapped)) return err(validationError(BrepErrorCode.NULL_SHAPE_INPUT, "extrude: face is a null shape"));
|
|
271
|
-
if (vecLength(extrusionVec)
|
|
291
|
+
if (vecLength(extrusionVec) < 1e-10) return err(validationError("EXTRUDE_ZERO_VECTOR", "extrude: extrusion vector has zero length"));
|
|
272
292
|
try {
|
|
273
293
|
const kernel = getKernel();
|
|
274
294
|
const len = vecLength(extrusionVec);
|
|
@@ -301,9 +321,16 @@ function revolve(face, center = [
|
|
|
301
321
|
1
|
|
302
322
|
], angle = 360) {
|
|
303
323
|
if (getKernel().isNull(face.wrapped)) return err(validationError(BrepErrorCode.NULL_SHAPE_INPUT, "revolve: face is a null shape"));
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
324
|
+
try {
|
|
325
|
+
const result = castShape(getKernel().revolveVec(face.wrapped, [...center], [...direction], angle));
|
|
326
|
+
if (!isShape3D(result)) return err(typeCastError("REVOLUTION_NOT_3D", "Revolution did not produce a 3D shape"));
|
|
327
|
+
return ok(result);
|
|
328
|
+
} catch (e) {
|
|
329
|
+
return err(kernelError("REVOLVE_FAILED", "Revolution operation failed", e, {
|
|
330
|
+
operation: "revolve",
|
|
331
|
+
angle
|
|
332
|
+
}));
|
|
333
|
+
}
|
|
307
334
|
}
|
|
308
335
|
/**
|
|
309
336
|
* Batch extrude: build N independent extrusions in a single kernel call.
|
|
@@ -316,24 +343,24 @@ function revolve(face, center = [
|
|
|
316
343
|
function extrudeAll(entries) {
|
|
317
344
|
if (entries.length === 0) return ok([]);
|
|
318
345
|
const kernel = getKernel();
|
|
319
|
-
const kernelEntries =
|
|
346
|
+
const kernelEntries = [];
|
|
347
|
+
for (let i = 0; i < entries.length; i++) {
|
|
348
|
+
const e = entries[i];
|
|
349
|
+
if (!e) continue;
|
|
320
350
|
const vec = typeof e.height === "number" ? [
|
|
321
351
|
0,
|
|
322
352
|
0,
|
|
323
353
|
e.height
|
|
324
354
|
] : e.height;
|
|
325
355
|
const len = vecLength(vec);
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
1
|
|
330
|
-
];
|
|
331
|
-
return {
|
|
356
|
+
if (len < 1e-10) return err(validationError("EXTRUDE_ALL_ZERO_VECTOR", `extrudeAll: entry ${i} has zero-length extrusion vector`));
|
|
357
|
+
const direction = [...vecNormalize(vec)];
|
|
358
|
+
kernelEntries.push({
|
|
332
359
|
face: e.face.wrapped,
|
|
333
360
|
direction,
|
|
334
361
|
length: len
|
|
335
|
-
};
|
|
336
|
-
}
|
|
362
|
+
});
|
|
363
|
+
}
|
|
337
364
|
try {
|
|
338
365
|
return ok((kernel.extrudeBatch?.(kernelEntries) ?? kernelEntries.map((e) => kernel.extrude(e.face, e.direction, e.length))).map((shape) => {
|
|
339
366
|
return createSolid(kernel.downcast(shape, "solid"));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-hQK4eaEw.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXRNVCec.cjs");
|
|
3
3
|
const require_vecOps = require("./vecOps-CODplJp3.cjs");
|
|
4
4
|
//#region src/operations/extrudeUtils.ts
|
|
@@ -28,8 +28,8 @@ function makeSpineWire(start, end) {
|
|
|
28
28
|
return require_shapeTypes.castShape(kernel.makeWire([edge]));
|
|
29
29
|
}
|
|
30
30
|
/** Build a helix wire for twist extrusion. */
|
|
31
|
-
function makeHelixWire(pitch, height, radius, center, dir,
|
|
32
|
-
return require_shapeTypes.castShape(require_shapeTypes.getKernel().makeHelixWire(pitch, height, radius, [...center], [...dir]));
|
|
31
|
+
function makeHelixWire(pitch, height, radius, center, dir, leftHanded = false) {
|
|
32
|
+
return require_shapeTypes.castShape(require_shapeTypes.getKernel().makeHelixWire(pitch, height, radius, [...center], [...dir], leftHanded));
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Sweep a wire profile along a spine wire to create a 3D shape.
|
|
@@ -145,7 +145,8 @@ function twistExtrude(wire, angleDegrees, center, normal, profileShape, shellMod
|
|
|
145
145
|
const extrusionLength = require_vecOps.vecLength(normal);
|
|
146
146
|
if (extrusionLength < 1e-10) return require_errors.err(require_errors.validationError("ZERO_LENGTH_EXTRUSION", "Extrusion vector cannot have zero length"));
|
|
147
147
|
const spine = makeSpineWire(center, require_vecOps.vecAdd(center, normal));
|
|
148
|
-
const
|
|
148
|
+
const leftHanded = angleDegrees < 0;
|
|
149
|
+
const auxiliarySpine = makeHelixWire(360 / Math.abs(angleDegrees) * extrusionLength, extrusionLength, 1, center, normal, leftHanded);
|
|
149
150
|
let law = null;
|
|
150
151
|
if (profileShape) {
|
|
151
152
|
const lawResult = buildLawFromProfile(extrusionLength, profileShape);
|
|
@@ -171,10 +172,27 @@ function validateSectionLocations(sections) {
|
|
|
171
172
|
function computeSectionParams(sections, spine, kernel) {
|
|
172
173
|
const [uFirst, uLast] = kernel.curveParameters(spine.wrapped);
|
|
173
174
|
const uRange = uLast - uFirst;
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
175
|
+
const params = new Array(sections.length);
|
|
176
|
+
for (let i = 0; i < sections.length; i++) {
|
|
177
|
+
const loc = sections[i]?.location;
|
|
178
|
+
params[i] = loc !== void 0 ? uFirst + loc * uRange : NaN;
|
|
179
|
+
}
|
|
180
|
+
let prevIdx = -1;
|
|
181
|
+
let prevVal = uFirst;
|
|
182
|
+
for (let i = 0; i <= sections.length; i++) {
|
|
183
|
+
const isEnd = i === sections.length;
|
|
184
|
+
if (!isEnd && !Number.isNaN(params[i] ?? NaN) || isEnd) {
|
|
185
|
+
const nextVal = isEnd ? uLast : params[i] ?? uLast;
|
|
186
|
+
const gapCount = i - prevIdx - 1;
|
|
187
|
+
for (let g = 1; g <= gapCount; g++) params[prevIdx + g] = prevVal + g / (gapCount + 1) * (nextVal - prevVal);
|
|
188
|
+
if (!isEnd) {
|
|
189
|
+
prevIdx = i;
|
|
190
|
+
prevVal = params[i] ?? uFirst;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
for (let i = 1; i < params.length; i++) if ((params[i] ?? 0) <= (params[i - 1] ?? 0)) return require_errors.err(require_errors.validationError(require_errors.BrepErrorCode.MULTI_SWEEP_FAILED, `Computed section parameters are not strictly increasing at index ${i} (${params[i - 1]?.toFixed(4)} >= ${params[i]?.toFixed(4)})`));
|
|
195
|
+
return require_errors.ok(params);
|
|
178
196
|
}
|
|
179
197
|
/**
|
|
180
198
|
* Sweep multiple profile sections along a spine wire.
|
|
@@ -195,7 +213,9 @@ function multiSectionSweep(sections, spine, options) {
|
|
|
195
213
|
if (locationErr) return require_errors.err(locationErr);
|
|
196
214
|
try {
|
|
197
215
|
const kernel = require_shapeTypes.getKernel();
|
|
198
|
-
const
|
|
216
|
+
const paramsResult = computeSectionParams(sections, spine, kernel);
|
|
217
|
+
if (require_errors.isErr(paramsResult)) return paramsResult;
|
|
218
|
+
const params = paramsResult.value;
|
|
199
219
|
const positionedWires = [];
|
|
200
220
|
for (let i = 0; i < sections.length; i++) {
|
|
201
221
|
const param = params[i];
|
|
@@ -268,7 +288,7 @@ function guidedSweep(profile, spine, guides, options = {}) {
|
|
|
268
288
|
*/
|
|
269
289
|
function extrude(face, extrusionVec) {
|
|
270
290
|
if (require_shapeTypes.getKernel().isNull(face.wrapped)) return require_errors.err(require_errors.validationError(require_errors.BrepErrorCode.NULL_SHAPE_INPUT, "extrude: face is a null shape"));
|
|
271
|
-
if (require_vecOps.vecLength(extrusionVec)
|
|
291
|
+
if (require_vecOps.vecLength(extrusionVec) < 1e-10) return require_errors.err(require_errors.validationError("EXTRUDE_ZERO_VECTOR", "extrude: extrusion vector has zero length"));
|
|
272
292
|
try {
|
|
273
293
|
const kernel = require_shapeTypes.getKernel();
|
|
274
294
|
const len = require_vecOps.vecLength(extrusionVec);
|
|
@@ -301,9 +321,16 @@ function revolve(face, center = [
|
|
|
301
321
|
1
|
|
302
322
|
], angle = 360) {
|
|
303
323
|
if (require_shapeTypes.getKernel().isNull(face.wrapped)) return require_errors.err(require_errors.validationError(require_errors.BrepErrorCode.NULL_SHAPE_INPUT, "revolve: face is a null shape"));
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
324
|
+
try {
|
|
325
|
+
const result = require_shapeTypes.castShape(require_shapeTypes.getKernel().revolveVec(face.wrapped, [...center], [...direction], angle));
|
|
326
|
+
if (!require_shapeTypes.isShape3D(result)) return require_errors.err(require_errors.typeCastError("REVOLUTION_NOT_3D", "Revolution did not produce a 3D shape"));
|
|
327
|
+
return require_errors.ok(result);
|
|
328
|
+
} catch (e) {
|
|
329
|
+
return require_errors.err(require_errors.kernelError("REVOLVE_FAILED", "Revolution operation failed", e, {
|
|
330
|
+
operation: "revolve",
|
|
331
|
+
angle
|
|
332
|
+
}));
|
|
333
|
+
}
|
|
307
334
|
}
|
|
308
335
|
/**
|
|
309
336
|
* Batch extrude: build N independent extrusions in a single kernel call.
|
|
@@ -316,24 +343,24 @@ function revolve(face, center = [
|
|
|
316
343
|
function extrudeAll(entries) {
|
|
317
344
|
if (entries.length === 0) return require_errors.ok([]);
|
|
318
345
|
const kernel = require_shapeTypes.getKernel();
|
|
319
|
-
const kernelEntries =
|
|
346
|
+
const kernelEntries = [];
|
|
347
|
+
for (let i = 0; i < entries.length; i++) {
|
|
348
|
+
const e = entries[i];
|
|
349
|
+
if (!e) continue;
|
|
320
350
|
const vec = typeof e.height === "number" ? [
|
|
321
351
|
0,
|
|
322
352
|
0,
|
|
323
353
|
e.height
|
|
324
354
|
] : e.height;
|
|
325
355
|
const len = require_vecOps.vecLength(vec);
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
1
|
|
330
|
-
];
|
|
331
|
-
return {
|
|
356
|
+
if (len < 1e-10) return require_errors.err(require_errors.validationError("EXTRUDE_ALL_ZERO_VECTOR", `extrudeAll: entry ${i} has zero-length extrusion vector`));
|
|
357
|
+
const direction = [...require_vecOps.vecNormalize(vec)];
|
|
358
|
+
kernelEntries.push({
|
|
332
359
|
face: e.face.wrapped,
|
|
333
360
|
direction,
|
|
334
361
|
length: len
|
|
335
|
-
};
|
|
336
|
-
}
|
|
362
|
+
});
|
|
363
|
+
}
|
|
337
364
|
try {
|
|
338
365
|
return require_errors.ok((kernel.extrudeBatch?.(kernelEntries) ?? kernelEntries.map((e) => kernel.extrude(e.face, e.direction, e.length))).map((shape) => {
|
|
339
366
|
return require_shapeTypes.createSolid(kernel.downcast(shape, "solid"));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as getOrQueryType, R as DisposalScope, X as getKernel, Y as _usingCtx, r as castShapeWithKnownType, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { N as getOrQueryType, R as DisposalScope, X as getKernel, Y as _usingCtx, r as castShapeWithKnownType, t as castShape } from "./shapeTypes-B9a2ed1X.js";
|
|
2
2
|
import { A as ok, R as unwrap, b as err, f as getSuggestionForCode, l as typeCastError, p as translateKernelError } from "./errors-DboJwVCf.js";
|
|
3
3
|
import { r as toVec3 } from "./types--GD-LVc6.js";
|
|
4
4
|
//#region src/core/kernelCall.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-hQK4eaEw.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXRNVCec.cjs");
|
|
3
3
|
const require_types = require("./types-gLi9wL0N.cjs");
|
|
4
4
|
//#region src/core/kernelCall.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { X as getKernel, p as isFace } from "./shapeTypes-
|
|
1
|
+
import { X as getKernel, p as isFace } from "./shapeTypes-B9a2ed1X.js";
|
|
2
2
|
import { A as ok, T as isOk, b as err, h as bug, o as queryError } from "./errors-DboJwVCf.js";
|
|
3
|
-
import { C as getVertices, b as getEdges, c as normalAt, o as getSurfaceType, w as getWires, x as getFaces } from "./faceFns-
|
|
3
|
+
import { C as getVertices, b as getEdges, c as normalAt, o as getSurfaceType, w as getWires, x as getFaces } from "./faceFns-BQ7czFFV.js";
|
|
4
4
|
import { t as DEG2RAD } from "./constants-csSEYddm.js";
|
|
5
5
|
import { a as vecDot, d as vecNormalize } from "./vecOps-B-PCHgyB.js";
|
|
6
|
-
import { a as isSameShape, n as getHashCode } from "./shapeFns-
|
|
7
|
-
import { a as curveLength, d as getCurveType, r as curveIsClosed } from "./curveFns-
|
|
8
|
-
import { n as measureArea } from "./measureFns-
|
|
6
|
+
import { a as isSameShape, n as getHashCode } from "./shapeFns-LgyEtLGl.js";
|
|
7
|
+
import { a as curveLength, d as getCurveType, r as curveIsClosed } from "./curveFns-D-0yqVb9.js";
|
|
8
|
+
import { n as measureArea } from "./measureFns-D5DbMnQY.js";
|
|
9
9
|
//#region src/utils/vec2d.ts
|
|
10
10
|
/** Precision for curve intersection and parameter operations. */
|
|
11
11
|
var PRECISION_INTERSECTION = 1e-9;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-hQK4eaEw.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXRNVCec.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-uX_AVFqu.cjs");
|
|
4
4
|
const require_constants = require("./constants-BNP_xnBN.cjs");
|
|
5
5
|
const require_vecOps = require("./vecOps-CODplJp3.cjs");
|
|
6
|
-
const require_shapeFns = require("./shapeFns-
|
|
7
|
-
const require_curveFns = require("./curveFns-
|
|
8
|
-
const require_measureFns = require("./measureFns-
|
|
6
|
+
const require_shapeFns = require("./shapeFns-Dz2GNg2y.cjs");
|
|
7
|
+
const require_curveFns = require("./curveFns-CQIv_biC.cjs");
|
|
8
|
+
const require_measureFns = require("./measureFns-BxAZf4Mf.cjs");
|
|
9
9
|
//#region src/utils/vec2d.ts
|
|
10
10
|
/** Precision for curve intersection and parameter operations. */
|
|
11
11
|
var PRECISION_INTERSECTION = 1e-9;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { B as createKernelHandle, X as getKernel, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { B as createKernelHandle, X as getKernel, t as castShape } from "./shapeTypes-B9a2ed1X.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, n as computationError, r as ioError } from "./errors-DboJwVCf.js";
|
|
3
|
-
import { P as fromBREP } from "./faceFns-
|
|
3
|
+
import { P as fromBREP } from "./faceFns-BQ7czFFV.js";
|
|
4
4
|
import { d as vecNormalize, s as vecIsZero } from "./vecOps-B-PCHgyB.js";
|
|
5
|
-
import { s as toBREP } from "./shapeFns-
|
|
6
|
-
import { a as fuseAll } from "./booleanFns-
|
|
5
|
+
import { s as toBREP } from "./shapeFns-LgyEtLGl.js";
|
|
6
|
+
import { a as fuseAll } from "./booleanFns-Cstp5Ep1.js";
|
|
7
7
|
//#region src/utils/uuid.ts
|
|
8
8
|
/** Generate a v4-style UUID string using `crypto.getRandomValues`. */
|
|
9
9
|
function uuidv() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-hQK4eaEw.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXRNVCec.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-uX_AVFqu.cjs");
|
|
4
4
|
const require_vecOps = require("./vecOps-CODplJp3.cjs");
|
|
5
|
-
const require_shapeFns = require("./shapeFns-
|
|
6
|
-
const require_booleanFns = require("./booleanFns-
|
|
5
|
+
const require_shapeFns = require("./shapeFns-Dz2GNg2y.cjs");
|
|
6
|
+
const require_booleanFns = require("./booleanFns-CwHfuxWc.cjs");
|
|
7
7
|
//#region src/utils/uuid.ts
|
|
8
8
|
/** Generate a v4-style UUID string using `crypto.getRandomValues`. */
|
|
9
9
|
function uuidv() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { X as getKernel, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { X as getKernel, t as castShape } from "./shapeTypes-B9a2ed1X.js";
|
|
2
2
|
import { A as ok, b as err, r as ioError, t as BrepErrorCode } from "./errors-DboJwVCf.js";
|
|
3
3
|
import { n as getAtOrThrow } from "./arrayAccess-tCIbjLs5.js";
|
|
4
|
-
import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-
|
|
4
|
+
import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-BqdFeOSN.js";
|
|
5
5
|
//#region src/io/objExportFns.ts
|
|
6
6
|
/** Read a vec3 from a typed array at the given vertex index. */
|
|
7
7
|
function vec3At(arr, i) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-hQK4eaEw.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXRNVCec.cjs");
|
|
3
3
|
const require_arrayAccess = require("./arrayAccess-DsnQpdSD.cjs");
|
|
4
|
-
const require_blueprint = require("./blueprint-
|
|
4
|
+
const require_blueprint = require("./blueprint-BkKnM_9w.cjs");
|
|
5
5
|
//#region src/io/objExportFns.ts
|
|
6
6
|
/** Read a vec3 from a typed array at the given vertex index. */
|
|
7
7
|
function vec3At(arr, i) {
|
package/dist/io.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_meshFns = require("./meshFns-
|
|
3
|
-
const require_importFns = require("./importFns
|
|
2
|
+
const require_meshFns = require("./meshFns-BdEOTCwK.cjs");
|
|
3
|
+
const require_importFns = require("./importFns--rg42dnv.cjs");
|
|
4
4
|
exports.blueprintToDXF = require_importFns.blueprintToDXF;
|
|
5
5
|
exports.exportDXF = require_importFns.exportDXF;
|
|
6
6
|
exports.exportGlb = require_importFns.exportGlb;
|
package/dist/io.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-
|
|
2
|
-
import { a as importSVG, c as blueprintToDXF, d as exportGltf, f as exportOBJ, i as exportSTEPConfigured, l as exportDXF, n as importSTEP, o as importSVGPathD, r as importSTL, s as exportThreeMF, t as importIGES, u as exportGlb } from "./importFns
|
|
1
|
+
import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-C9DtKU7q.js";
|
|
2
|
+
import { a as importSVG, c as blueprintToDXF, d as exportGltf, f as exportOBJ, i as exportSTEPConfigured, l as exportDXF, n as importSTEP, o as importSVGPathD, r as importSTL, s as exportThreeMF, t as importIGES, u as exportGlb } from "./importFns--VkKJoDs.js";
|
|
3
3
|
export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
|
|
@@ -63,6 +63,12 @@ export declare function circularPattern(oc: KernelInstance, shape: KernelShape,
|
|
|
63
63
|
*
|
|
64
64
|
* Computes the Frenet frame (point + tangent) at the given parameter on the spine,
|
|
65
65
|
* then transforms the shape from standard coordinates (origin, Z-up) to that frame.
|
|
66
|
+
*
|
|
67
|
+
* Note: gp_Ax3 with only a main direction auto-generates X/Y axes. This is
|
|
68
|
+
* deterministic for a given tangent direction but can produce discontinuous
|
|
69
|
+
* profile orientations when the tangent crosses axis-aligned thresholds on
|
|
70
|
+
* curved spines. For multi-section sweep this is acceptable because each
|
|
71
|
+
* section is independently positioned and then lofted.
|
|
66
72
|
*/
|
|
67
73
|
export declare function positionOnCurve(oc: KernelInstance, shape: KernelShape, spine: KernelShape, param: number): KernelShape;
|
|
68
74
|
/** Build a non-planar face by filling a wire boundary. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advancedOps.d.ts","sourceRoot":"","sources":["../../../src/kernel/occt/advancedOps.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAQlG;;;;GAIG;AAEH,wBAAgB,6BAA6B,CAC3C,EAAE,EAAE,cAAc,EAClB,K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CAAC,CAAA;CAAE,CAAC,EAC9F,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAO,GACnE,MAAM,CA2FR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sweepOps.d.ts","sourceRoot":"","sources":["../../../src/kernel/occt/sweepOps.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGjF;;GAEG;AACH,wBAAgB,OAAO,CACrB,EAAE,EAAE,cAAc,EAClB,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EACnC,MAAM,EAAE,MAAM,GACb,WAAW,CAgBb;AAED;;GAEG;AACH,wBAAgB,OAAO,CACrB,EAAE,EAAE,cAAc,EAClB,KAAK,EAAE,WAAW,EAClB,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,MAAM,GACZ,WAAW,CAKb;AAED;;GAEG;AACH,wBAAgB,IAAI,CAClB,EAAE,EAAE,cAAc,EAClB,KAAK,EAAE,WAAW,EAAE,EACpB,KAAK,UAAQ,EACb,UAAU,CAAC,EAAE,WAAW,EACxB,QAAQ,CAAC,EAAE,WAAW,GACrB,WAAW,CAkBb;AAED;;GAEG;AACH,wBAAgB,KAAK,CACnB,EAAE,EAAE,cAAc,EAClB,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,WAAW,EAClB,OAAO,GAAE;IAAE,cAAc,CAAC,EAAE,MAAM,CAAA;CAAO,GACxC,WAAW,
|
|
1
|
+
{"version":3,"file":"sweepOps.d.ts","sourceRoot":"","sources":["../../../src/kernel/occt/sweepOps.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,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,WAAW,GAAG,SAAS,CAAC;CACrC;AAED,wBAAgB,SAAS,CAAC,EAAE,EAAE,cAAc,EAAE,OAAO,EAAE,SAAS,cAAc,EAAE,GAAG,WAAW,EAAE,CAwC/F;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,WAAW,CAAC;IAClB,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,YAAY,CAC1B,EAAE,EAAE,cAAc,EAClB,OAAO,EAAE,SAAS,iBAAiB,EAAE,GACpC,WAAW,EAAE,CAiCf"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-hQK4eaEw.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXRNVCec.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-uX_AVFqu.cjs");
|
|
4
4
|
//#region src/measurement/measureCache.ts
|
|
5
5
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
6
6
|
function getCachedMeasurement(shape, key) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { X as getKernel } from "./shapeTypes-
|
|
1
|
+
import { X as getKernel } from "./shapeTypes-B9a2ed1X.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DboJwVCf.js";
|
|
3
|
-
import { p as uvBounds, z as kernelCallRaw } from "./faceFns-
|
|
3
|
+
import { p as uvBounds, z as kernelCallRaw } from "./faceFns-BQ7czFFV.js";
|
|
4
4
|
//#region src/measurement/measureCache.ts
|
|
5
5
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
6
6
|
function getCachedMeasurement(shape, key) {
|
package/dist/measurement.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_measureFns = require("./measureFns-
|
|
2
|
+
const require_measureFns = require("./measureFns-BxAZf4Mf.cjs");
|
|
3
3
|
exports.createDistanceQuery = require_measureFns.createDistanceQuery;
|
|
4
4
|
exports.measureArea = require_measureFns.measureArea;
|
|
5
5
|
exports.measureDistance = require_measureFns.measureDistance;
|
package/dist/measurement.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-
|
|
1
|
+
import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-D5DbMnQY.js";
|
|
2
2
|
export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-hQK4eaEw.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXRNVCec.cjs");
|
|
3
|
-
const require_shapeFns = require("./shapeFns-
|
|
3
|
+
const require_shapeFns = require("./shapeFns-Dz2GNg2y.cjs");
|
|
4
4
|
//#region src/topology/meshCache.ts
|
|
5
5
|
/**
|
|
6
6
|
* Build a parameter key for the inner cache map (excludes shape identity).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { X as getKernel } from "./shapeTypes-
|
|
1
|
+
import { X as getKernel } from "./shapeTypes-B9a2ed1X.js";
|
|
2
2
|
import { A as ok, b as err, r as ioError } from "./errors-DboJwVCf.js";
|
|
3
|
-
import { O as getFaceOrigins } from "./shapeFns-
|
|
3
|
+
import { O as getFaceOrigins } from "./shapeFns-LgyEtLGl.js";
|
|
4
4
|
//#region src/topology/meshCache.ts
|
|
5
5
|
/**
|
|
6
6
|
* Build a parameter key for the inner cache map (excludes shape identity).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compoundOpsFns.d.ts","sourceRoot":"","sources":["../../src/operations/compoundOpsFns.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,KAAK,EAAgC,OAAO,EAAQ,MAAM,sBAAsB,CAAC;AAGxF,OAAO,KAAK,EACV,SAAS,EAGT,YAAY,EACZ,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,yBAAyB,EAC1B,MAAM,wBAAwB,CAAC;AAsEhC;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,OAAO,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,YAAY,GAAG,MAAM,CAAC,CAAC,CAAC,CAsD9F;AAMD;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,OAAO,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,aAAa,GAAG,MAAM,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"compoundOpsFns.d.ts","sourceRoot":"","sources":["../../src/operations/compoundOpsFns.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,KAAK,EAAgC,OAAO,EAAQ,MAAM,sBAAsB,CAAC;AAGxF,OAAO,KAAK,EACV,SAAS,EAGT,YAAY,EACZ,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,yBAAyB,EAC1B,MAAM,wBAAwB,CAAC;AAsEhC;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,OAAO,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,OAA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AAE,IAAI,CAAC,SAAS,CAAC,EACtB,OAAO,CAAC,EAAE,iBAAiB,GAC1B,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,CAsDvB;AAMD;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,EACxB,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,EACtB,MAAM,EAAE,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EACtC,OAAO,GAAE,kBAAuB,GAC/B,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,CAmCvB"}
|
package/dist/operations.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_historyFns = require("./historyFns-
|
|
3
|
-
const require_extrudeFns = require("./extrudeFns-
|
|
2
|
+
const require_historyFns = require("./historyFns-DkDJpwef.cjs");
|
|
3
|
+
const require_extrudeFns = require("./extrudeFns-WHKS4Oef.cjs");
|
|
4
4
|
exports.addChild = require_historyFns.addChild;
|
|
5
5
|
exports.addStep = require_historyFns.addStep;
|
|
6
6
|
exports.circularPattern = require_historyFns.circularPattern;
|
package/dist/operations.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, T as gridPattern, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, g as addChild, h as undoLast, l as registerShape, m as stepsFrom, n as createHistory, o as getShape, p as stepCount, r as createRegistry, s as modifyStep, t as addStep, u as replayFrom, v as countNodes, w as circularPattern, x as removeChild, y as createAssemblyNode } from "./historyFns-
|
|
2
|
-
import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-
|
|
1
|
+
import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, T as gridPattern, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, g as addChild, h as undoLast, l as registerShape, m as stepsFrom, n as createHistory, o as getShape, p as stepCount, r as createRegistry, s as modifyStep, t as addStep, u as replayFrom, v as countNodes, w as circularPattern, x as removeChild, y as createAssemblyNode } from "./historyFns-BFuHqN_0.js";
|
|
2
|
+
import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-B3qZ8gzq.js";
|
|
3
3
|
export { addChild, addStep, circularPattern, collectShapes, complexExtrude, countNodes, createAssembly, createAssemblyNode, createHistory, createRegistry, exportAssemblySTEP, findNode, findStep, getShape as getHistoryShape, gridPattern, linearPattern, modifyStep, registerOperation, registerShape, removeChild, replayFrom, replayHistory, stepCount, stepsFrom, supportExtrude, sweep, twistExtrude, undoLast, updateNode, walkAssembly };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { X as getKernel, _ as isSolid, c as createSolid, h as isShape3D, p as isFace, r as castShapeWithKnownType, t as castShape, x as isClosedWire, y as isWire } from "./shapeTypes-
|
|
1
|
+
import { X as getKernel, _ as isSolid, c as createSolid, h as isShape3D, p as isFace, r as castShapeWithKnownType, t as castShape, x as isClosedWire, y as isWire } from "./shapeTypes-B9a2ed1X.js";
|
|
2
2
|
import { A as ok, T as isOk, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, v as andThen, w as isErr } from "./errors-DboJwVCf.js";
|
|
3
|
-
import { N as downcast, S as getOrCreateCache, T as invalidateShapeCache, b as getEdges, v as getCachedIsValid, w as getWires, x as getFaces } from "./faceFns-
|
|
3
|
+
import { N as downcast, S as getOrCreateCache, T as invalidateShapeCache, b as getEdges, v as getCachedIsValid, w as getWires, x as getFaces } from "./faceFns-BQ7czFFV.js";
|
|
4
4
|
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-csSEYddm.js";
|
|
5
|
-
import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-
|
|
6
|
-
import { a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeEllipse, f as makeEllipseArc, g as makeThreePointArc, h as makeTangentArc, i as makeNewFaceWithinFace, l as makeBezierCurve, m as makeLine, o as makePolygon, p as makeHelix, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeCircle } from "./surfaceBuilders-
|
|
7
|
-
import { a as makeOffset, c as makeTorus, i as makeEllipsoid, l as makeVertex, n as makeCone, o as makeSolid, r as makeCylinder, s as makeSphere, t as makeCompound, u as weldShellsAndFaces } from "./solidBuilders-
|
|
5
|
+
import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-LgyEtLGl.js";
|
|
6
|
+
import { a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeEllipse, f as makeEllipseArc, g as makeThreePointArc, h as makeTangentArc, i as makeNewFaceWithinFace, l as makeBezierCurve, m as makeLine, o as makePolygon, p as makeHelix, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeCircle } from "./surfaceBuilders-BY117AaY.js";
|
|
7
|
+
import { a as makeOffset, c as makeTorus, i as makeEllipsoid, l as makeVertex, n as makeCone, o as makeSolid, r as makeCylinder, s as makeSphere, t as makeCompound, u as weldShellsAndFaces } from "./solidBuilders-C_-imolZ.js";
|
|
8
8
|
//#region src/topology/threeHelpers.ts
|
|
9
9
|
/**
|
|
10
10
|
* Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-hQK4eaEw.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXRNVCec.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-uX_AVFqu.cjs");
|
|
4
4
|
const require_constants = require("./constants-BNP_xnBN.cjs");
|
|
5
|
-
const require_shapeFns = require("./shapeFns-
|
|
6
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
7
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
5
|
+
const require_shapeFns = require("./shapeFns-Dz2GNg2y.cjs");
|
|
6
|
+
const require_surfaceBuilders = require("./surfaceBuilders-D_w11wLr.cjs");
|
|
7
|
+
const require_solidBuilders = require("./solidBuilders-DUl2f7gY.cjs");
|
|
8
8
|
//#region src/topology/threeHelpers.ts
|
|
9
9
|
/**
|
|
10
10
|
* Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
|
package/dist/query.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_helpers = require("./helpers-
|
|
3
|
-
const require_cornerFinder = require("./cornerFinder-
|
|
2
|
+
const require_helpers = require("./helpers-CM63Nn7A.cjs");
|
|
3
|
+
const require_cornerFinder = require("./cornerFinder-DLxiZcyg.cjs");
|
|
4
4
|
exports.cornerFinder = require_cornerFinder.cornerFinder;
|
|
5
5
|
exports.edgeFinder = require_helpers.edgeFinder;
|
|
6
6
|
exports.faceFinder = require_helpers.faceFinder;
|