brepjs 18.82.4 → 18.82.6

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.
Files changed (84) hide show
  1. package/dist/2d.cjs +6 -6
  2. package/dist/2d.js +6 -6
  3. package/dist/{blueprint-BBUOweQy.cjs → blueprint-C2gkyxYc.cjs} +7 -7
  4. package/dist/{blueprint-DjzevNhB.js → blueprint-yJsyEFn_.js} +7 -7
  5. package/dist/{blueprintFns-CRES_5vP.cjs → blueprintFns-CL4VZzCL.cjs} +2 -2
  6. package/dist/{blueprintFns-CxSMnMfl.js → blueprintFns-DjpRmsbi.js} +2 -2
  7. package/dist/{blueprintSketcher-CFa32JZU.cjs → blueprintSketcher-BLXntEIS.cjs} +140 -86
  8. package/dist/{blueprintSketcher-CIydRzRr.js → blueprintSketcher-BbYPEPMa.js} +140 -86
  9. package/dist/{boolean2D-Z0KE98a4.cjs → boolean2D-BbvyYF-v.cjs} +4 -4
  10. package/dist/{boolean2D-BRWPIJhe.js → boolean2D-C3k4iO92.js} +4 -4
  11. package/dist/brepjs.cjs +50 -50
  12. package/dist/brepjs.js +25 -25
  13. package/dist/{cameraFns-B3Wb4Br9.js → cameraFns-BiQGAnPd.js} +2 -2
  14. package/dist/{cameraFns-Drgka78Q.cjs → cameraFns-BkSHm_Vo.cjs} +2 -2
  15. package/dist/core.cjs +1 -1
  16. package/dist/core.js +1 -1
  17. package/dist/{cornerFinder-BRYZAgdE.js → cornerFinder-C9zvdkpK.js} +1 -1
  18. package/dist/{cornerFinder-BuYpqGO8.cjs → cornerFinder-D3lGL_Td.cjs} +1 -1
  19. package/dist/{curveFns-XSz4F9j3.js → curveFns-B4_om-yp.js} +1 -1
  20. package/dist/{curveFns-BA5zsoce.cjs → curveFns-Dlbfncal.cjs} +1 -1
  21. package/dist/{drawFns-DrlxFhe4.js → drawFns-DaTn2p7M.js} +12 -12
  22. package/dist/{drawFns-CmSMHb12.cjs → drawFns-lls9IuPY.cjs} +12 -12
  23. package/dist/{faceFns-BO8IXhhf.js → faceFns-4JEna8n9.js} +2 -2
  24. package/dist/{faceFns-6AarivqH.cjs → faceFns-Obtamglc.cjs} +2 -2
  25. package/dist/{healingFns-MxlhdTIc.cjs → healingFns-gHxvhsbJ.cjs} +9 -9
  26. package/dist/{healingFns-Ct_-O3yk.js → healingFns-uXLI1vJ7.js} +5 -5
  27. package/dist/{helpers-CTc8ZbY8.js → helpers-CJV31xig.js} +6 -6
  28. package/dist/{helpers-DN6s-TLC.cjs → helpers-rAK5qEBu.cjs} +6 -6
  29. package/dist/{importFns-Cb-cmpGG.cjs → importFns-BJVEly-l.cjs} +2 -2
  30. package/dist/{importFns-D4Xet5aD.js → importFns-Dcc2KviL.js} +2 -2
  31. package/dist/io.cjs +2 -2
  32. package/dist/io.js +2 -2
  33. package/dist/kernel/brepkit/brepkitWasmTypes.d.ts +10 -6
  34. package/dist/kernel/occtWasm/kernel2dOps.d.ts +8 -1
  35. package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
  36. package/dist/kernel/occtWasm/occtWasmAdapter.d.ts +1 -1
  37. package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
  38. package/dist/{loftFns-DxhcdpAu.cjs → loftFns-BAM49XJy.cjs} +1 -1
  39. package/dist/{loftFns-BVbzy6gm.js → loftFns-DF3KNz9-.js} +1 -1
  40. package/dist/{measureFns-BNHvjShh.cjs → measureFns-Ym_I522s.cjs} +3 -3
  41. package/dist/{measureFns-7Nz5JklM.js → measureFns-xpevHRLG.js} +3 -3
  42. package/dist/measurement.cjs +1 -1
  43. package/dist/measurement.js +1 -1
  44. package/dist/{meshFns-YXFipjjx.cjs → meshFns-DDhKhVK0.cjs} +3 -3
  45. package/dist/{meshFns-CWwOpBlM.js → meshFns-soCHj3jp.js} +3 -3
  46. package/dist/{occtWasmAdapter-BMV179Ji.js → occtWasmAdapter-BK6h0nKd.js} +29 -5
  47. package/dist/{occtWasmAdapter-5hzzhkME.cjs → occtWasmAdapter-Bfz5Zfmk.cjs} +29 -5
  48. package/dist/operations.cjs +2 -2
  49. package/dist/operations.js +2 -2
  50. package/dist/primitiveFns-BmUIWDC7.js +300 -0
  51. package/dist/primitiveFns-SEyCwNra.cjs +461 -0
  52. package/dist/projection.cjs +1 -1
  53. package/dist/projection.js +1 -1
  54. package/dist/query.cjs +2 -2
  55. package/dist/query.js +2 -2
  56. package/dist/{shapeFns-B6UAiYAx.js → shapeFns-B8REDWBf.js} +2 -2
  57. package/dist/{shapeFns-sF0x5Zhj.cjs → shapeFns-CE6c_4D4.cjs} +2 -2
  58. package/dist/shapeRef.cjs +1 -1
  59. package/dist/shapeRef.js +1 -1
  60. package/dist/{shapeRefFns-Bb0aQZWz.cjs → shapeRefFns-C3tglb5A.cjs} +4 -4
  61. package/dist/{shapeRefFns-NdQvPa5J.js → shapeRefFns-O5h8bOr9.js} +4 -4
  62. package/dist/{shapeTypes-D4Evnmz_.js → shapeTypes-B8d_6R0X.js} +9 -6
  63. package/dist/{shapeTypes-D1eUDuzl.cjs → shapeTypes-nFeOa7gQ.cjs} +9 -6
  64. package/dist/sketching.cjs +3 -3
  65. package/dist/sketching.js +3 -3
  66. package/dist/{primitiveFns-CjL5bygY.js → solidBuilders-BSnsqitN.js} +100 -257
  67. package/dist/{primitiveFns-LWkd7M2f.cjs → solidBuilders-DfGIPlQ2.cjs} +124 -383
  68. package/dist/{surfaceBuilders-R4DKNFkI.cjs → surfaceBuilders-CDX6sDZz.cjs} +2 -2
  69. package/dist/{surfaceBuilders-CLMyFimy.js → surfaceBuilders-D5sQZ6ah.js} +2 -2
  70. package/dist/text.cjs +2 -2
  71. package/dist/text.js +2 -2
  72. package/dist/{textBlueprints-BjSwFtO2.cjs → textBlueprints-BwRqV98S.cjs} +31 -48
  73. package/dist/{textBlueprints-BJ22J1c2.js → textBlueprints-Cqu-mcRD.js} +32 -49
  74. package/dist/{textMetrics-BrSfzuY6.js → textMetrics-Cikow3vH.js} +1 -1
  75. package/dist/{textMetrics-5DyMA99n.cjs → textMetrics-DpCTYcE2.cjs} +1 -1
  76. package/dist/{threadFns-DqMbjyxZ.js → threadFns-BQHEnI7a.js} +6 -5
  77. package/dist/{threadFns-CX9l8sRv.cjs → threadFns-BzFhh87N.cjs} +8 -7
  78. package/dist/topology.cjs +10 -9
  79. package/dist/topology.js +8 -7
  80. package/dist/{topologyQueryFns-5EeBz6_7.js → topologyQueryFns-BcGLEMvc.js} +1 -1
  81. package/dist/{topologyQueryFns-Nnu56Ke2.cjs → topologyQueryFns-Bhey0q1G.cjs} +1 -1
  82. package/package.json +16 -16
  83. package/dist/solidBuilders-CgPOdC3Q.js +0 -140
  84. package/dist/solidBuilders-mxHbGDW6.cjs +0 -199
@@ -0,0 +1,461 @@
1
+ const require_shapeTypes = require("./shapeTypes-nFeOa7gQ.cjs");
2
+ const require_errors = require("./errors-CXJtc4I7.cjs");
3
+ const require_constants = require("./constants-BOVyEYGH.cjs");
4
+ const require_shapeFns = require("./shapeFns-CE6c_4D4.cjs");
5
+ const require_surfaceBuilders = require("./surfaceBuilders-CDX6sDZz.cjs");
6
+ const require_solidBuilders = require("./solidBuilders-DfGIPlQ2.cjs");
7
+ //#region src/topology/primitiveFns.ts
8
+ /**
9
+ * Create a box with the given dimensions.
10
+ *
11
+ * @param width - Size along X.
12
+ * @param depth - Size along Y.
13
+ * @param height - Size along Z.
14
+ */
15
+ function box(width, depth, height, options) {
16
+ const solid = require_shapeTypes.createSolid(require_shapeTypes.getKernel().makeBox(width, depth, height));
17
+ const center = options?.at ?? (options?.centered ? [
18
+ 0,
19
+ 0,
20
+ 0
21
+ ] : void 0);
22
+ if (center) return require_shapeFns.translate(solid, [
23
+ center[0] - width / 2,
24
+ center[1] - depth / 2,
25
+ center[2] - height / 2
26
+ ]);
27
+ return solid;
28
+ }
29
+ /**
30
+ * Create a cylinder with the given radius and height.
31
+ */
32
+ function cylinder(radius, height, options) {
33
+ const at = options?.at ?? [
34
+ 0,
35
+ 0,
36
+ 0
37
+ ];
38
+ const axis = options?.axis ?? [
39
+ 0,
40
+ 0,
41
+ 1
42
+ ];
43
+ let solid = require_solidBuilders.makeCylinder(radius, height, at, axis);
44
+ if (options?.centered) {
45
+ const halfShift = [
46
+ -axis[0] * height * .5,
47
+ -axis[1] * height * .5,
48
+ -axis[2] * height * .5
49
+ ];
50
+ solid = require_shapeFns.translate(solid, halfShift);
51
+ }
52
+ return solid;
53
+ }
54
+ /**
55
+ * Create a sphere with the given radius.
56
+ */
57
+ function sphere(radius, options) {
58
+ let solid = require_solidBuilders.makeSphere(radius);
59
+ if (options?.at) solid = require_shapeFns.translate(solid, options.at);
60
+ return solid;
61
+ }
62
+ /**
63
+ * Create a cone (or frustum) with the given radii and height.
64
+ *
65
+ * @param bottomRadius - Radius at the base.
66
+ * @param topRadius - Radius at the top (0 for a full cone).
67
+ * @param height - Height of the cone.
68
+ */
69
+ function cone(bottomRadius, topRadius, height, options) {
70
+ const at = options?.at ?? [
71
+ 0,
72
+ 0,
73
+ 0
74
+ ];
75
+ const axis = options?.axis ?? [
76
+ 0,
77
+ 0,
78
+ 1
79
+ ];
80
+ let solid = require_solidBuilders.makeCone(bottomRadius, topRadius, height, at, axis);
81
+ if (options?.centered) {
82
+ const halfShift = [
83
+ -axis[0] * height * .5,
84
+ -axis[1] * height * .5,
85
+ -axis[2] * height * .5
86
+ ];
87
+ solid = require_shapeFns.translate(solid, halfShift);
88
+ }
89
+ return solid;
90
+ }
91
+ /**
92
+ * Create a torus with the given major and minor radii.
93
+ */
94
+ function torus(majorRadius, minorRadius, options) {
95
+ return require_solidBuilders.makeTorus(majorRadius, minorRadius, options?.at ?? [
96
+ 0,
97
+ 0,
98
+ 0
99
+ ], options?.axis ?? [
100
+ 0,
101
+ 0,
102
+ 1
103
+ ]);
104
+ }
105
+ /**
106
+ * Create an ellipsoid with the given axis half-lengths.
107
+ *
108
+ * @param rx - Half-length along X.
109
+ * @param ry - Half-length along Y.
110
+ * @param rz - Half-length along Z.
111
+ */
112
+ function ellipsoid(rx, ry, rz, options) {
113
+ let solid = require_solidBuilders.makeEllipsoid(rx, ry, rz);
114
+ if (options?.at) solid = require_shapeFns.translate(solid, options.at);
115
+ return solid;
116
+ }
117
+ /** Create a straight edge between two 3D points. */
118
+ function line(from, to) {
119
+ return require_surfaceBuilders.makeLine(from, to);
120
+ }
121
+ /** Create a circular edge with the given radius. */
122
+ function circle(radius, options) {
123
+ const axisDir = options?.axis ?? [
124
+ 0,
125
+ 0,
126
+ 1
127
+ ];
128
+ return require_surfaceBuilders.makeCircle(radius, options?.at ?? [
129
+ 0,
130
+ 0,
131
+ 0
132
+ ], axisDir);
133
+ }
134
+ /**
135
+ * Create an elliptical edge.
136
+ *
137
+ * @returns An error if `minorRadius` exceeds `majorRadius`.
138
+ */
139
+ function ellipse(majorRadius, minorRadius, options) {
140
+ const axisDir = options?.axis ?? [
141
+ 0,
142
+ 0,
143
+ 1
144
+ ];
145
+ return require_surfaceBuilders.makeEllipse(majorRadius, minorRadius, options?.at ?? [
146
+ 0,
147
+ 0,
148
+ 0
149
+ ], axisDir, options?.xDir);
150
+ }
151
+ /**
152
+ * Create a helical wire.
153
+ *
154
+ * @param pitch - Vertical distance per full turn.
155
+ * @param height - Total height.
156
+ * @param radius - Helix radius.
157
+ */
158
+ function helix(pitch, height, radius, options) {
159
+ return require_surfaceBuilders.makeHelix(pitch, height, radius, options?.at ?? [
160
+ 0,
161
+ 0,
162
+ 0
163
+ ], options?.axis ?? [
164
+ 0,
165
+ 0,
166
+ 1
167
+ ], options?.lefthand ?? false);
168
+ }
169
+ /** Create a circular arc edge passing through three points. */
170
+ function threePointArc(p1, p2, p3) {
171
+ return require_surfaceBuilders.makeThreePointArc(p1, p2, p3);
172
+ }
173
+ /**
174
+ * Create an elliptical arc edge between two angles.
175
+ *
176
+ * All angles are in **degrees** (unlike the legacy `makeEllipseArc` which used radians).
177
+ *
178
+ * @param startAngle - Start angle in degrees.
179
+ * @param endAngle - End angle in degrees.
180
+ */
181
+ function ellipseArc(majorRadius, minorRadius, startAngle, endAngle, options) {
182
+ const axisDir = options?.axis ?? [
183
+ 0,
184
+ 0,
185
+ 1
186
+ ];
187
+ return require_surfaceBuilders.makeEllipseArc(majorRadius, minorRadius, startAngle * require_constants.DEG2RAD, endAngle * require_constants.DEG2RAD, options?.at ?? [
188
+ 0,
189
+ 0,
190
+ 0
191
+ ], axisDir, options?.xDir);
192
+ }
193
+ /**
194
+ * Create a B-spline edge that approximates a set of 3D points.
195
+ *
196
+ * @returns An error if the approximation algorithm fails.
197
+ */
198
+ function bsplineApprox(points, config) {
199
+ return require_surfaceBuilders.makeBSplineApproximation(points, config);
200
+ }
201
+ /**
202
+ * Create a Bezier curve edge from control points.
203
+ *
204
+ * @param points - Two or more control points.
205
+ */
206
+ function bezier(points) {
207
+ return require_surfaceBuilders.makeBezierCurve(points);
208
+ }
209
+ /**
210
+ * Create a circular arc edge tangent to a direction at the start point.
211
+ */
212
+ function tangentArc(startPoint, startTgt, endPoint) {
213
+ return require_surfaceBuilders.makeTangentArc(startPoint, startTgt, endPoint);
214
+ }
215
+ /**
216
+ * Assemble edges and/or wires into a single connected wire.
217
+ */
218
+ function wire(listOfEdges) {
219
+ return require_surfaceBuilders.assembleWire(listOfEdges);
220
+ }
221
+ /**
222
+ * Assemble edges into a wire and verify it forms a closed loop.
223
+ *
224
+ * Combines {@link wire} + the `closedWire` smart constructor in a single step.
225
+ * Returns an error if the edges cannot be assembled or the wire is not closed.
226
+ *
227
+ * @example
228
+ * ```ts
229
+ * const cw = unwrap(wireLoop([e1, e2, e3, e4]));
230
+ * const f = unwrap(face(cw)); // ClosedWire accepted directly
231
+ * ```
232
+ */
233
+ function wireLoop(listOfEdges) {
234
+ return require_errors.andThen(require_surfaceBuilders.assembleWire(listOfEdges), (w) => {
235
+ if (require_shapeTypes.isClosedWire(w)) return require_errors.ok(w);
236
+ return require_errors.err(require_errors.validationError("WIRE_NOT_CLOSED", "Assembled wire is not closed: start and end points do not coincide"));
237
+ });
238
+ }
239
+ /**
240
+ * Create a planar face from a closed wire, optionally with holes.
241
+ * The resulting face is always oriented (consistent normal direction).
242
+ */
243
+ function face(w, holes) {
244
+ return require_surfaceBuilders.makeFace(w, holes);
245
+ }
246
+ /**
247
+ * Create a non-planar face from a wire using surface filling.
248
+ * The resulting face is always oriented.
249
+ */
250
+ function filledFace(w) {
251
+ return require_surfaceBuilders.makeNonPlanarFace(w);
252
+ }
253
+ /**
254
+ * Create a face bounded by a wire on an existing face's surface.
255
+ * The resulting face inherits orientation from the origin face.
256
+ */
257
+ function subFace(originFace, w) {
258
+ return require_surfaceBuilders.makeNewFaceWithinFace(originFace, w);
259
+ }
260
+ /**
261
+ * Create a polygonal face from three or more coplanar points.
262
+ * The resulting face is always oriented.
263
+ */
264
+ function polygon(points) {
265
+ return require_surfaceBuilders.makePolygon(points);
266
+ }
267
+ /** Create a vertex at a 3D point. */
268
+ function vertex(point) {
269
+ return require_solidBuilders.makeVertex(point);
270
+ }
271
+ /**
272
+ * Build a compound from multiple shapes.
273
+ */
274
+ function compound(shapeArray) {
275
+ return require_solidBuilders.makeCompound(shapeArray);
276
+ }
277
+ /**
278
+ * Weld faces and shells into a single solid.
279
+ * The resulting solid is always validated.
280
+ */
281
+ function solid(facesOrShells) {
282
+ return require_solidBuilders.makeSolid(facesOrShells);
283
+ }
284
+ /**
285
+ * Create an offset shape from a face.
286
+ */
287
+ function offsetFace(f, distance, tolerance) {
288
+ return require_solidBuilders.makeOffset(f, distance, tolerance);
289
+ }
290
+ /**
291
+ * Weld faces and shells into a single shell.
292
+ */
293
+ function sewShells(facesOrShells, ignoreType) {
294
+ return require_solidBuilders.weldShellsAndFaces(facesOrShells, ignoreType);
295
+ }
296
+ function addHoles(f, holes) {
297
+ return require_surfaceBuilders.addHolesInFace(f, holes);
298
+ }
299
+ //#endregion
300
+ Object.defineProperty(exports, "addHoles", {
301
+ enumerable: true,
302
+ get: function() {
303
+ return addHoles;
304
+ }
305
+ });
306
+ Object.defineProperty(exports, "bezier", {
307
+ enumerable: true,
308
+ get: function() {
309
+ return bezier;
310
+ }
311
+ });
312
+ Object.defineProperty(exports, "box", {
313
+ enumerable: true,
314
+ get: function() {
315
+ return box;
316
+ }
317
+ });
318
+ Object.defineProperty(exports, "bsplineApprox", {
319
+ enumerable: true,
320
+ get: function() {
321
+ return bsplineApprox;
322
+ }
323
+ });
324
+ Object.defineProperty(exports, "circle", {
325
+ enumerable: true,
326
+ get: function() {
327
+ return circle;
328
+ }
329
+ });
330
+ Object.defineProperty(exports, "compound", {
331
+ enumerable: true,
332
+ get: function() {
333
+ return compound;
334
+ }
335
+ });
336
+ Object.defineProperty(exports, "cone", {
337
+ enumerable: true,
338
+ get: function() {
339
+ return cone;
340
+ }
341
+ });
342
+ Object.defineProperty(exports, "cylinder", {
343
+ enumerable: true,
344
+ get: function() {
345
+ return cylinder;
346
+ }
347
+ });
348
+ Object.defineProperty(exports, "ellipse", {
349
+ enumerable: true,
350
+ get: function() {
351
+ return ellipse;
352
+ }
353
+ });
354
+ Object.defineProperty(exports, "ellipseArc", {
355
+ enumerable: true,
356
+ get: function() {
357
+ return ellipseArc;
358
+ }
359
+ });
360
+ Object.defineProperty(exports, "ellipsoid", {
361
+ enumerable: true,
362
+ get: function() {
363
+ return ellipsoid;
364
+ }
365
+ });
366
+ Object.defineProperty(exports, "face", {
367
+ enumerable: true,
368
+ get: function() {
369
+ return face;
370
+ }
371
+ });
372
+ Object.defineProperty(exports, "filledFace", {
373
+ enumerable: true,
374
+ get: function() {
375
+ return filledFace;
376
+ }
377
+ });
378
+ Object.defineProperty(exports, "helix", {
379
+ enumerable: true,
380
+ get: function() {
381
+ return helix;
382
+ }
383
+ });
384
+ Object.defineProperty(exports, "line", {
385
+ enumerable: true,
386
+ get: function() {
387
+ return line;
388
+ }
389
+ });
390
+ Object.defineProperty(exports, "offsetFace", {
391
+ enumerable: true,
392
+ get: function() {
393
+ return offsetFace;
394
+ }
395
+ });
396
+ Object.defineProperty(exports, "polygon", {
397
+ enumerable: true,
398
+ get: function() {
399
+ return polygon;
400
+ }
401
+ });
402
+ Object.defineProperty(exports, "sewShells", {
403
+ enumerable: true,
404
+ get: function() {
405
+ return sewShells;
406
+ }
407
+ });
408
+ Object.defineProperty(exports, "solid", {
409
+ enumerable: true,
410
+ get: function() {
411
+ return solid;
412
+ }
413
+ });
414
+ Object.defineProperty(exports, "sphere", {
415
+ enumerable: true,
416
+ get: function() {
417
+ return sphere;
418
+ }
419
+ });
420
+ Object.defineProperty(exports, "subFace", {
421
+ enumerable: true,
422
+ get: function() {
423
+ return subFace;
424
+ }
425
+ });
426
+ Object.defineProperty(exports, "tangentArc", {
427
+ enumerable: true,
428
+ get: function() {
429
+ return tangentArc;
430
+ }
431
+ });
432
+ Object.defineProperty(exports, "threePointArc", {
433
+ enumerable: true,
434
+ get: function() {
435
+ return threePointArc;
436
+ }
437
+ });
438
+ Object.defineProperty(exports, "torus", {
439
+ enumerable: true,
440
+ get: function() {
441
+ return torus;
442
+ }
443
+ });
444
+ Object.defineProperty(exports, "vertex", {
445
+ enumerable: true,
446
+ get: function() {
447
+ return vertex;
448
+ }
449
+ });
450
+ Object.defineProperty(exports, "wire", {
451
+ enumerable: true,
452
+ get: function() {
453
+ return wire;
454
+ }
455
+ });
456
+ Object.defineProperty(exports, "wireLoop", {
457
+ enumerable: true,
458
+ get: function() {
459
+ return wireLoop;
460
+ }
461
+ });
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_cameraFns = require("./cameraFns-Drgka78Q.cjs");
2
+ const require_cameraFns = require("./cameraFns-BkSHm_Vo.cjs");
3
3
  exports.PROJECTION_PLANES = require_cameraFns.PROJECTION_PLANES;
4
4
  exports.cameraFromPlane = require_cameraFns.cameraFromPlane;
5
5
  exports.cameraLookAt = require_cameraFns.cameraLookAt;
@@ -1,2 +1,2 @@
1
- import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, o as PROJECTION_PLANES, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-B3Wb4Br9.js";
1
+ import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, o as PROJECTION_PLANES, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-BiQGAnPd.js";
2
2
  export { PROJECTION_PLANES, cameraFromPlane, cameraLookAt, createCamera, isProjectionPlane, makeProjectedEdges, projectEdges };
package/dist/query.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_helpers = require("./helpers-DN6s-TLC.cjs");
3
- const require_cornerFinder = require("./cornerFinder-BuYpqGO8.cjs");
2
+ const require_helpers = require("./helpers-rAK5qEBu.cjs");
3
+ const require_cornerFinder = require("./cornerFinder-D3lGL_Td.cjs");
4
4
  exports.cornerFinder = require_cornerFinder.cornerFinder;
5
5
  exports.edgeFinder = require_helpers.edgeFinder;
6
6
  exports.faceFinder = require_helpers.faceFinder;
package/dist/query.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-CTc8ZbY8.js";
2
- import { t as cornerFinder } from "./cornerFinder-BRYZAgdE.js";
1
+ import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-CJV31xig.js";
2
+ import { t as cornerFinder } from "./cornerFinder-C9zvdkpK.js";
3
3
  export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
@@ -1,6 +1,6 @@
1
- import { Z as getKernel, t as castShape } from "./shapeTypes-D4Evnmz_.js";
1
+ import { Z as getKernel, t as castShape } from "./shapeTypes-B8d_6R0X.js";
2
2
  import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
3
- import { C as kernelCall, c as getFaces, l as getOrCreateCache, r as getCacheEntry, w as kernelCallRaw } from "./topologyQueryFns-5EeBz6_7.js";
3
+ import { C as kernelCall, c as getFaces, l as getOrCreateCache, r as getCacheEntry, w as kernelCallRaw } from "./topologyQueryFns-BcGLEMvc.js";
4
4
  import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
5
5
  //#region src/topology/metadata/originTrackingFns.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-D1eUDuzl.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-nFeOa7gQ.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-Nnu56Ke2.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-Bhey0q1G.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  //#region src/topology/metadata/originTrackingFns.ts
6
6
  /**
package/dist/shapeRef.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_shapeRefFns = require("./shapeRefFns-Bb0aQZWz.cjs");
2
+ const require_shapeRefFns = require("./shapeRefFns-C3tglb5A.cjs");
3
3
  exports.assignRoles = require_shapeRefFns.assignRoles;
4
4
  exports.captureHint = require_shapeRefFns.captureHint;
5
5
  exports.createRef = require_shapeRefFns.createRef;
package/dist/shapeRef.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-NdQvPa5J.js";
1
+ import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-O5h8bOr9.js";
2
2
  export { assignRoles, captureHint, createRef, defaultScorer, resolveRef, updateRoles };
@@ -1,8 +1,8 @@
1
1
  const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
2
- const require_topologyQueryFns = require("./topologyQueryFns-Nnu56Ke2.cjs");
3
- const require_faceFns = require("./faceFns-6AarivqH.cjs");
4
- const require_shapeFns = require("./shapeFns-sF0x5Zhj.cjs");
5
- const require_measureFns = require("./measureFns-BNHvjShh.cjs");
2
+ const require_topologyQueryFns = require("./topologyQueryFns-Bhey0q1G.cjs");
3
+ const require_faceFns = require("./faceFns-Obtamglc.cjs");
4
+ const require_shapeFns = require("./shapeFns-CE6c_4D4.cjs");
5
+ const require_measureFns = require("./measureFns-Ym_I522s.cjs");
6
6
  //#region src/topology/shapeRef/scoring.ts
7
7
  /**
8
8
  * Default face scorer combining surface type, normal alignment, centroid proximity,
@@ -1,8 +1,8 @@
1
1
  import { n as wasmIndex } from "./vec3-Dpha8d5k.js";
2
- import { c as getFaces } from "./topologyQueryFns-5EeBz6_7.js";
3
- import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-BO8IXhhf.js";
4
- import { n as getHashCode } from "./shapeFns-B6UAiYAx.js";
5
- import { n as measureArea } from "./measureFns-7Nz5JklM.js";
2
+ import { c as getFaces } from "./topologyQueryFns-BcGLEMvc.js";
3
+ import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-4JEna8n9.js";
4
+ import { n as getHashCode } from "./shapeFns-B8REDWBf.js";
5
+ import { n as measureArea } from "./measureFns-xpevHRLG.js";
6
6
  //#region src/topology/shapeRef/scoring.ts
7
7
  /**
8
8
  * Default face scorer combining surface type, normal alignment, centroid proximity,
@@ -1,4 +1,4 @@
1
- import { C as translateCurve2d$2, E as EXACT_BREP_CAPABILITIES, S as tangentCurve2d, _ as mirrorAcrossAxis, a as buildBinarySTL, b as scaleCurve2d$2, c as curveBounds, d as evaluateCurve2d$2, f as intersectCurves2dFn, g as makeLine2d$2, h as makeEllipse2d$2, i as buildAsciiSTL, l as curveTypeName, m as makeCircle2d$2, n as DEFAULT_STL_ANGULAR_TOLERANCE, o as addCurveToBBox, p as makeBezier2d$2, r as DEFAULT_STL_TOLERANCE, s as createBBox2d, t as OcctWasmAdapter, u as deserializeCurve2d$2, v as mirrorAtPoint, w as quickHull, x as serializeCurve2d$2, y as rotateCurve2d$2 } from "./occtWasmAdapter-BMV179Ji.js";
1
+ import { C as translateCurve2d$2, E as EXACT_BREP_CAPABILITIES, S as tangentCurve2d, _ as mirrorAcrossAxis, a as buildBinarySTL, b as scaleCurve2d$2, c as curveBounds, d as evaluateCurve2d$2, f as intersectCurves2dFn, g as makeLine2d$2, h as makeEllipse2d$2, i as buildAsciiSTL, l as curveTypeName, m as makeCircle2d$2, n as DEFAULT_STL_ANGULAR_TOLERANCE, o as addCurveToBBox, p as makeBezier2d$2, r as DEFAULT_STL_TOLERANCE, s as createBBox2d, t as OcctWasmAdapter, u as deserializeCurve2d$2, v as mirrorAtPoint, w as quickHull, x as serializeCurve2d$2, y as rotateCurve2d$2 } from "./occtWasmAdapter-BK6h0nKd.js";
2
2
  import { n as wasmIndex, t as vec3At } from "./vec3-Dpha8d5k.js";
3
3
  import { A as ok, b as err } from "./errors-DNWJsfVU.js";
4
4
  //#region src/kernel/quality.ts
@@ -5692,8 +5692,10 @@ function iterCompound(bk, h, type) {
5692
5692
  if (type === "face" || type === "edge" || type === "vertex" || type === "wire") return toArray(bk.getCompoundSolids(h)).map(solidHandle).flatMap((s) => iterShapes$1(bk, s, type));
5693
5693
  return [];
5694
5694
  }
5695
- function iterSolid(bk, h, type) {
5695
+ function iterSolid(bk, shape, h, type) {
5696
5696
  switch (type) {
5697
+ case "solid": return [shape];
5698
+ case "shell": return toArray(bk.getSolidShells(h)).map(shellHandle);
5697
5699
  case "face": return toArray(bk.getSolidFaces(h)).map(faceHandle);
5698
5700
  case "edge": return toArray(bk.getSolidEdges(h)).map(edgeHandle);
5699
5701
  case "vertex": return toArray(bk.getSolidVertices(h)).map(vertexHandle);
@@ -5713,7 +5715,8 @@ function iterShellChildren(bk, h, type) {
5713
5715
  }
5714
5716
  return results;
5715
5717
  }
5716
- function iterShell(bk, h, type) {
5718
+ function iterShell(bk, shape, h, type) {
5719
+ if (type === "shell") return [shape];
5717
5720
  if (type === "face") return toArray(bk.getShellFaces(h)).map(faceHandle);
5718
5721
  if (type === "edge" || type === "vertex") return iterShellChildren(bk, h, type);
5719
5722
  return [];
@@ -5769,8 +5772,8 @@ function iterShapes$1(bk, shape, type) {
5769
5772
  const h = unwrap$1(shape);
5770
5773
  switch (shape.type) {
5771
5774
  case "compound": return iterCompound(bk, h, type);
5772
- case "solid": return iterSolid(bk, h, type);
5773
- case "shell": return iterShell(bk, h, type);
5775
+ case "solid": return iterSolid(bk, shape, h, type);
5776
+ case "shell": return iterShell(bk, shape, h, type);
5774
5777
  case "face": return iterFace(bk, shape, h, type);
5775
5778
  case "wire": return iterWire(bk, shape, h, type);
5776
5779
  case "edge": return iterEdge(bk, shape, h, type);
@@ -15348,7 +15351,7 @@ async function init() {
15348
15351
  throw new Error("brepjs: no kernel package found. Install one of:\n npm install occt-wasm (recommended, default)\n npm install brepjs-opencascade\n npm install brepkit-wasm");
15349
15352
  }
15350
15353
  //#endregion
15351
- //#region \0@oxc-project+runtime@0.132.0/helpers/usingCtx.js
15354
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/usingCtx.js
15352
15355
  function _usingCtx() {
15353
15356
  var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
15354
15357
  var n = Error();
@@ -1,4 +1,4 @@
1
- const require_occtWasmAdapter = require("./occtWasmAdapter-5hzzhkME.cjs");
1
+ const require_occtWasmAdapter = require("./occtWasmAdapter-Bfz5Zfmk.cjs");
2
2
  const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
3
3
  const require_errors = require("./errors-CXJtc4I7.cjs");
4
4
  //#region src/kernel/quality.ts
@@ -5696,8 +5696,10 @@ function iterCompound(bk, h, type) {
5696
5696
  if (type === "face" || type === "edge" || type === "vertex" || type === "wire") return toArray(bk.getCompoundSolids(h)).map(solidHandle).flatMap((s) => iterShapes$1(bk, s, type));
5697
5697
  return [];
5698
5698
  }
5699
- function iterSolid(bk, h, type) {
5699
+ function iterSolid(bk, shape, h, type) {
5700
5700
  switch (type) {
5701
+ case "solid": return [shape];
5702
+ case "shell": return toArray(bk.getSolidShells(h)).map(shellHandle);
5701
5703
  case "face": return toArray(bk.getSolidFaces(h)).map(faceHandle);
5702
5704
  case "edge": return toArray(bk.getSolidEdges(h)).map(edgeHandle);
5703
5705
  case "vertex": return toArray(bk.getSolidVertices(h)).map(vertexHandle);
@@ -5717,7 +5719,8 @@ function iterShellChildren(bk, h, type) {
5717
5719
  }
5718
5720
  return results;
5719
5721
  }
5720
- function iterShell(bk, h, type) {
5722
+ function iterShell(bk, shape, h, type) {
5723
+ if (type === "shell") return [shape];
5721
5724
  if (type === "face") return toArray(bk.getShellFaces(h)).map(faceHandle);
5722
5725
  if (type === "edge" || type === "vertex") return iterShellChildren(bk, h, type);
5723
5726
  return [];
@@ -5773,8 +5776,8 @@ function iterShapes$1(bk, shape, type) {
5773
5776
  const h = unwrap$1(shape);
5774
5777
  switch (shape.type) {
5775
5778
  case "compound": return iterCompound(bk, h, type);
5776
- case "solid": return iterSolid(bk, h, type);
5777
- case "shell": return iterShell(bk, h, type);
5779
+ case "solid": return iterSolid(bk, shape, h, type);
5780
+ case "shell": return iterShell(bk, shape, h, type);
5778
5781
  case "face": return iterFace(bk, shape, h, type);
5779
5782
  case "wire": return iterWire(bk, shape, h, type);
5780
5783
  case "edge": return iterEdge(bk, shape, h, type);
@@ -15356,7 +15359,7 @@ async function init() {
15356
15359
  throw new Error("brepjs: no kernel package found. Install one of:\n npm install occt-wasm (recommended, default)\n npm install brepjs-opencascade\n npm install brepkit-wasm");
15357
15360
  }
15358
15361
  //#endregion
15359
- //#region \0@oxc-project+runtime@0.132.0/helpers/usingCtx.js
15362
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/usingCtx.js
15360
15363
  function _usingCtx() {
15361
15364
  var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
15362
15365
  var n = Error();
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_textBlueprints = require("./textBlueprints-BjSwFtO2.cjs");
3
- const require_blueprintSketcher = require("./blueprintSketcher-CFa32JZU.cjs");
4
- const require_drawFns = require("./drawFns-CmSMHb12.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-BwRqV98S.cjs");
3
+ const require_blueprintSketcher = require("./blueprintSketcher-BLXntEIS.cjs");
4
+ const require_drawFns = require("./drawFns-lls9IuPY.cjs");
5
5
  //#region src/sketching.ts
6
6
  /**
7
7
  * brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
package/dist/sketching.js CHANGED
@@ -1,6 +1,6 @@
1
- import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-CIydRzRr.js";
2
- import { A as sketchEllipse, C as DrawingPen, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, T as Drawing, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-DrlxFhe4.js";
3
- import { a as Sketch, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, o as compoundSketchExtrude, p as sketchRevolve, s as compoundSketchFace, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-BJ22J1c2.js";
1
+ import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-BbYPEPMa.js";
2
+ import { A as sketchEllipse, C as DrawingPen, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, T as Drawing, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-DaTn2p7M.js";
3
+ import { a as Sketch, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, o as compoundSketchExtrude, p as sketchRevolve, s as compoundSketchFace, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-Cqu-mcRD.js";
4
4
  //#region src/sketching.ts
5
5
  /**
6
6
  * brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.