brepjs 18.41.0 → 18.41.1

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 (79) hide show
  1. package/dist/2d.cjs +6 -6
  2. package/dist/2d.js +6 -6
  3. package/dist/{blueprint-B0_xM93f.cjs → blueprint-BA5Bfdwz.cjs} +5 -5
  4. package/dist/{blueprint-DGPC8bjk.js → blueprint-CPjjsgrR.js} +5 -5
  5. package/dist/{blueprintFns-D8-3CcI7.cjs → blueprintFns-B8vAsHVO.cjs} +2 -2
  6. package/dist/{blueprintFns-DDU4nEC4.js → blueprintFns-CWilXQm6.js} +2 -2
  7. package/dist/{blueprintSketcher-CMcZhA20.js → blueprintSketcher-C8vZPCQt.js} +3 -3
  8. package/dist/{blueprintSketcher-Dg22-24R.cjs → blueprintSketcher-hwftYMwR.cjs} +3 -3
  9. package/dist/{boolean2D-BrhrzzT5.js → boolean2D-CmDZHSeZ.js} +4 -4
  10. package/dist/{boolean2D-BtLSFZ3U.cjs → boolean2D-EA3hhJKM.cjs} +4 -4
  11. package/dist/{booleanFns-D_XT8nXq.cjs → booleanFns-DnzEDMX6.cjs} +4 -4
  12. package/dist/{booleanFns-DthZnyWl.js → booleanFns-leH_QfYn.js} +4 -4
  13. package/dist/brepjs.cjs +25 -25
  14. package/dist/brepjs.js +25 -25
  15. package/dist/{cameraFns-N7btylSp.cjs → cameraFns-3on_JnkF.cjs} +2 -2
  16. package/dist/{cameraFns-BBC_mCJX.js → cameraFns-rx6kB6-O.js} +2 -2
  17. package/dist/core.cjs +1 -1
  18. package/dist/core.js +1 -1
  19. package/dist/{cornerFinder-BrRfeGOx.cjs → cornerFinder-CKXVZtKb.cjs} +1 -1
  20. package/dist/{cornerFinder-BxFYMbKt.js → cornerFinder-CamWi9tL.js} +1 -1
  21. package/dist/{curveFns-CWpRYhZ8.js → curveFns-D7GtayS2.js} +1 -1
  22. package/dist/{curveFns-Cka3gEep.cjs → curveFns-DzHot_xI.cjs} +1 -1
  23. package/dist/{drawFns-Wck6Yw-Z.js → drawFns-BHxjaznK.js} +12 -12
  24. package/dist/{drawFns-BBXf1AmG.cjs → drawFns-BJQqMKaJ.cjs} +12 -12
  25. package/dist/{extrudeFns-BESH_tno.cjs → extrudeFns-C1GR7C0X.cjs} +1 -1
  26. package/dist/{extrudeFns-Dx6KA3po.js → extrudeFns-ksXYM5j_.js} +1 -1
  27. package/dist/{faceFns-ZhwskGuW.cjs → faceFns-Bk3zpto6.cjs} +2 -2
  28. package/dist/{faceFns-BuDNpvDH.js → faceFns-BkSM4Oeu.js} +2 -2
  29. package/dist/{helpers-Ceyjiq3b.js → helpers-Bjw3hpKP.js} +6 -6
  30. package/dist/{helpers-QPPvHzFe.cjs → helpers-DspOVTTu.cjs} +6 -6
  31. package/dist/{historyFns-QbZ_1wDe.cjs → historyFns-D-1AQYNQ.cjs} +4 -4
  32. package/dist/{historyFns-vMIhK4q_.js → historyFns-DsGymyxt.js} +4 -4
  33. package/dist/{importFns-DWphNxxR.js → importFns-BC7mp-Tz.js} +2 -2
  34. package/dist/{importFns-pGOL3CD4.cjs → importFns-vl1e1mW_.cjs} +2 -2
  35. package/dist/io.cjs +2 -2
  36. package/dist/io.js +2 -2
  37. package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
  38. package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
  39. package/dist/{measureFns-DD5O45zv.cjs → measureFns-DH64vdR2.cjs} +3 -3
  40. package/dist/{measureFns-BTcMyzXv.js → measureFns-D_UQTGi5.js} +3 -3
  41. package/dist/measurement.cjs +1 -1
  42. package/dist/measurement.js +1 -1
  43. package/dist/{meshFns-Qkk4e--0.js → meshFns-B_kQjXw5.js} +3 -3
  44. package/dist/{meshFns-CckSsqhi.cjs → meshFns-CRvJBgJz.cjs} +3 -3
  45. package/dist/{occtWasmAdapter-8XGnYsEi.js → occtWasmAdapter-B0PIezOZ.js} +26 -9
  46. package/dist/{occtWasmAdapter-ddZvP8Ns.cjs → occtWasmAdapter-BuIYbIwy.cjs} +26 -9
  47. package/dist/operations.cjs +2 -2
  48. package/dist/operations.js +2 -2
  49. package/dist/{primitiveFns-MYl8wCQ_.cjs → primitiveFns-BZPeg8x9.cjs} +7 -7
  50. package/dist/{primitiveFns-BgvbV1Xe.js → primitiveFns-Bj_KzMbk.js} +7 -7
  51. package/dist/projection.cjs +1 -1
  52. package/dist/projection.js +1 -1
  53. package/dist/query.cjs +2 -2
  54. package/dist/query.js +2 -2
  55. package/dist/{shapeFns-CUjmsc5n.cjs → shapeFns-C1H15_5H.cjs} +2 -2
  56. package/dist/{shapeFns-DLKjTl1m.js → shapeFns-CKAdGsFC.js} +2 -2
  57. package/dist/shapeRef.cjs +1 -1
  58. package/dist/shapeRef.js +1 -1
  59. package/dist/{shapeRefFns-AlYSd7xG.cjs → shapeRefFns-B0KzT-Gm.cjs} +4 -4
  60. package/dist/{shapeRefFns-BCBT3qjs.js → shapeRefFns-DKojnj8j.js} +4 -4
  61. package/dist/{shapeTypes-BwbnQSzG.cjs → shapeTypes-BPtEbp0M.cjs} +1 -1
  62. package/dist/{shapeTypes-B7GYg91f.js → shapeTypes-JIeiAk3d.js} +1 -1
  63. package/dist/sketching.cjs +3 -3
  64. package/dist/sketching.js +3 -3
  65. package/dist/{solidBuilders-C_CVKD9y.cjs → solidBuilders-BVS8G3cD.cjs} +2 -2
  66. package/dist/{solidBuilders-E9QDs2AH.js → solidBuilders-C9qNi_0P.js} +2 -2
  67. package/dist/{surfaceBuilders-DbqaooTh.js → surfaceBuilders-CY8jJP-F.js} +2 -2
  68. package/dist/{surfaceBuilders-Ae2XRahr.cjs → surfaceBuilders-DCRn8Srd.cjs} +2 -2
  69. package/dist/text.cjs +2 -2
  70. package/dist/text.js +2 -2
  71. package/dist/{textBlueprints-IJMNaWq4.cjs → textBlueprints-DZ6z07kv.cjs} +7 -7
  72. package/dist/{textBlueprints-CStv8fXQ.js → textBlueprints-DcEAdnAc.js} +7 -7
  73. package/dist/{textMetrics-CL4DE2-I.cjs → textMetrics-B3OdFcVn.cjs} +1 -1
  74. package/dist/{textMetrics-B5sFd2Mb.js → textMetrics-DVZWsWQu.js} +1 -1
  75. package/dist/topology.cjs +7 -7
  76. package/dist/topology.js +7 -7
  77. package/dist/{topologyQueryFns-Cb25Braq.cjs → topologyQueryFns-CHVjpF39.cjs} +1 -1
  78. package/dist/{topologyQueryFns-CBIJ7Ixi.js → topologyQueryFns-CL_taAVv.js} +1 -1
  79. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
- const require_shapeTypes = require("./shapeTypes-BwbnQSzG.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BPtEbp0M.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
3
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
4
- const require_faceFns = require("./faceFns-ZhwskGuW.cjs");
5
- const require_shapeFns = require("./shapeFns-CUjmsc5n.cjs");
6
- const require_booleanFns = require("./booleanFns-D_XT8nXq.cjs");
4
+ const require_faceFns = require("./faceFns-Bk3zpto6.cjs");
5
+ const require_shapeFns = require("./shapeFns-C1H15_5H.cjs");
6
+ const require_booleanFns = require("./booleanFns-DnzEDMX6.cjs");
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
- import { B as createKernelHandle, Z as getKernel, t as castShape } from "./shapeTypes-B7GYg91f.js";
1
+ import { B as createKernelHandle, Z as getKernel, t as castShape } from "./shapeTypes-JIeiAk3d.js";
2
2
  import { A as ok, b as err, d as validationError, n as computationError, r as ioError } from "./errors-DNWJsfVU.js";
3
3
  import { d as vecNormalize, s as vecIsZero } from "./vecOps-SKPRvPH-.js";
4
- import { v as fromBREP } from "./faceFns-BuDNpvDH.js";
5
- import { s as toBREP } from "./shapeFns-DLKjTl1m.js";
6
- import { a as fuseAll } from "./booleanFns-DthZnyWl.js";
4
+ import { v as fromBREP } from "./faceFns-BkSM4Oeu.js";
5
+ import { s as toBREP } from "./shapeFns-CKAdGsFC.js";
6
+ import { a as fuseAll } from "./booleanFns-leH_QfYn.js";
7
7
  //#region src/utils/uuid.ts
8
8
  /** Generate a v4-style UUID string using `crypto.getRandomValues`. */
9
9
  function uuidv() {
@@ -1,8 +1,8 @@
1
- import { Z as getKernel, t as castShape } from "./shapeTypes-B7GYg91f.js";
1
+ import { Z as getKernel, t as castShape } from "./shapeTypes-JIeiAk3d.js";
2
2
  import { n as wasmIndex, t as vec3At$1 } from "./vec3-Dpha8d5k.js";
3
3
  import { A as ok, b as err, r as ioError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
4
4
  import { n as getAtOrThrow } from "./arrayAccess-DrUGPADn.js";
5
- import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-DGPC8bjk.js";
5
+ import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-CPjjsgrR.js";
6
6
  //#region src/io/objExportFns.ts
7
7
  /** Read a vec3 from a typed array at the given vertex index. */
8
8
  function vec3At(arr, i) {
@@ -1,8 +1,8 @@
1
- const require_shapeTypes = require("./shapeTypes-BwbnQSzG.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BPtEbp0M.cjs");
2
2
  const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
3
3
  const require_errors = require("./errors-CXJtc4I7.cjs");
4
4
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
5
- const require_blueprint = require("./blueprint-B0_xM93f.cjs");
5
+ const require_blueprint = require("./blueprint-BA5Bfdwz.cjs");
6
6
  //#region src/io/objExportFns.ts
7
7
  /** Read a vec3 from a typed array at the given vertex index. */
8
8
  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-CckSsqhi.cjs");
3
- const require_importFns = require("./importFns-pGOL3CD4.cjs");
2
+ const require_meshFns = require("./meshFns-CRvJBgJz.cjs");
3
+ const require_importFns = require("./importFns-vl1e1mW_.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-Qkk4e--0.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-DWphNxxR.js";
1
+ import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-B_kQjXw5.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-BC7mp-Tz.js";
3
3
  export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_occtWasmAdapter = require("../../occtWasmAdapter-ddZvP8Ns.cjs");
2
+ const require_occtWasmAdapter = require("../../occtWasmAdapter-BuIYbIwy.cjs");
3
3
  exports.OcctWasmAdapter = require_occtWasmAdapter.OcctWasmAdapter;
@@ -1,2 +1,2 @@
1
- import { t as OcctWasmAdapter } from "../../occtWasmAdapter-8XGnYsEi.js";
1
+ import { t as OcctWasmAdapter } from "../../occtWasmAdapter-B0PIezOZ.js";
2
2
  export { OcctWasmAdapter };
@@ -1,7 +1,7 @@
1
- const require_shapeTypes = require("./shapeTypes-BwbnQSzG.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BPtEbp0M.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-Cb25Braq.cjs");
4
- const require_faceFns = require("./faceFns-ZhwskGuW.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-CHVjpF39.cjs");
4
+ const require_faceFns = require("./faceFns-Bk3zpto6.cjs");
5
5
  //#region src/measurement/measureCache.ts
6
6
  var cache = /* @__PURE__ */ new WeakMap();
7
7
  function getCachedMeasurement(shape, key) {
@@ -1,7 +1,7 @@
1
- import { Z as getKernel } from "./shapeTypes-B7GYg91f.js";
1
+ import { Z as getKernel } from "./shapeTypes-JIeiAk3d.js";
2
2
  import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
3
- import { w as kernelCallRaw } from "./topologyQueryFns-CBIJ7Ixi.js";
4
- import { p as uvBounds } from "./faceFns-BuDNpvDH.js";
3
+ import { w as kernelCallRaw } from "./topologyQueryFns-CL_taAVv.js";
4
+ import { p as uvBounds } from "./faceFns-BkSM4Oeu.js";
5
5
  //#region src/measurement/measureCache.ts
6
6
  var cache = /* @__PURE__ */ new WeakMap();
7
7
  function getCachedMeasurement(shape, key) {
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_measureFns = require("./measureFns-DD5O45zv.cjs");
2
+ const require_measureFns = require("./measureFns-DH64vdR2.cjs");
3
3
  exports.createDistanceQuery = require_measureFns.createDistanceQuery;
4
4
  exports.measureArea = require_measureFns.measureArea;
5
5
  exports.measureDistance = require_measureFns.measureDistance;
@@ -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-BTcMyzXv.js";
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-D_UQTGi5.js";
2
2
  export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
@@ -1,7 +1,7 @@
1
- import { Z as getKernel } from "./shapeTypes-B7GYg91f.js";
1
+ import { Z as getKernel } from "./shapeTypes-JIeiAk3d.js";
2
2
  import { A as ok, b as err, r as ioError } from "./errors-DNWJsfVU.js";
3
- import { d as getSolids, n as getBounds } from "./topologyQueryFns-CBIJ7Ixi.js";
4
- import { O as getFaceOrigins } from "./shapeFns-DLKjTl1m.js";
3
+ import { d as getSolids, n as getBounds } from "./topologyQueryFns-CL_taAVv.js";
4
+ import { O as getFaceOrigins } from "./shapeFns-CKAdGsFC.js";
5
5
  //#region src/topology/meshCache.ts
6
6
  /**
7
7
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -1,7 +1,7 @@
1
- const require_shapeTypes = require("./shapeTypes-BwbnQSzG.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BPtEbp0M.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-Cb25Braq.cjs");
4
- const require_shapeFns = require("./shapeFns-CUjmsc5n.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-CHVjpF39.cjs");
4
+ const require_shapeFns = require("./shapeFns-C1H15_5H.cjs");
5
5
  //#region src/topology/meshCache.ts
6
6
  /**
7
7
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -1418,25 +1418,42 @@ function mesh(k, Module, shape, options) {
1418
1418
  meshData.delete();
1419
1419
  }
1420
1420
  }
1421
+ /**
1422
+ * Append a per-edge polyline (`pointCount` points starting at float index
1423
+ * `start` in `heap`) to `out` as a line list — consecutive point pairs, one per
1424
+ * segment. Skips degenerate samples the curve sampler repeats on tiny edges.
1425
+ */
1426
+ function pushPolylineSegments(heap, start, pointCount, out) {
1427
+ for (let j = 0; j + 1 < pointCount; j++) {
1428
+ const a = start + j * 3;
1429
+ const x0 = heap[a] ?? 0, y0 = heap[a + 1] ?? 0, z0 = heap[a + 2] ?? 0;
1430
+ const x1 = heap[a + 3] ?? 0, y1 = heap[a + 4] ?? 0, z1 = heap[a + 5] ?? 0;
1431
+ if (x0 === x1 && y0 === y1 && z0 === z1) continue;
1432
+ out.push(x0, y0, z0, x1, y1, z1);
1433
+ }
1434
+ }
1421
1435
  function meshEdges(k, Module, shape, tolerance, _angularTolerance) {
1422
1436
  const edgeData = k.wireframe(unwrap(shape), tolerance);
1423
1437
  try {
1424
- const pointCount = edgeData.pointCount;
1438
+ const heap = Module.HEAPF32;
1425
1439
  const ptr = edgeData.getPointsPtr() >> 2;
1426
- const lines = new Float32Array(pointCount);
1427
- for (let i = 0; i < pointCount; i++) lines[i] = Module.HEAPF32[ptr + i] ?? 0;
1440
+ const lineList = [];
1428
1441
  const edgeGroups = [];
1429
1442
  const egCount = edgeData.edgeGroupCount;
1430
- if (egCount > 0) {
1431
- const egPtr = edgeData.getEdgeGroupsPtr() >> 2;
1432
- for (let i = 0; i < egCount; i += 3) edgeGroups.push({
1433
- start: Module.HEAP32[egPtr + i] ?? 0,
1434
- count: Module.HEAP32[egPtr + i + 1] ?? 0,
1443
+ const egPtr = egCount > 0 ? edgeData.getEdgeGroupsPtr() >> 2 : 0;
1444
+ for (let i = 0; i < egCount; i += 3) {
1445
+ const start = ptr + (Module.HEAP32[egPtr + i] ?? 0);
1446
+ const pointCount = Math.floor((Module.HEAP32[egPtr + i + 1] ?? 0) / 3);
1447
+ const segStart = lineList.length / 3;
1448
+ pushPolylineSegments(heap, start, pointCount, lineList);
1449
+ edgeGroups.push({
1450
+ start: segStart,
1451
+ count: lineList.length / 3 - segStart,
1435
1452
  edgeHash: Module.HEAP32[egPtr + i + 2] ?? 0
1436
1453
  });
1437
1454
  }
1438
1455
  return {
1439
- lines,
1456
+ lines: new Float32Array(lineList),
1440
1457
  edgeGroups
1441
1458
  };
1442
1459
  } finally {
@@ -1418,25 +1418,42 @@ function mesh(k, Module, shape, options) {
1418
1418
  meshData.delete();
1419
1419
  }
1420
1420
  }
1421
+ /**
1422
+ * Append a per-edge polyline (`pointCount` points starting at float index
1423
+ * `start` in `heap`) to `out` as a line list — consecutive point pairs, one per
1424
+ * segment. Skips degenerate samples the curve sampler repeats on tiny edges.
1425
+ */
1426
+ function pushPolylineSegments(heap, start, pointCount, out) {
1427
+ for (let j = 0; j + 1 < pointCount; j++) {
1428
+ const a = start + j * 3;
1429
+ const x0 = heap[a] ?? 0, y0 = heap[a + 1] ?? 0, z0 = heap[a + 2] ?? 0;
1430
+ const x1 = heap[a + 3] ?? 0, y1 = heap[a + 4] ?? 0, z1 = heap[a + 5] ?? 0;
1431
+ if (x0 === x1 && y0 === y1 && z0 === z1) continue;
1432
+ out.push(x0, y0, z0, x1, y1, z1);
1433
+ }
1434
+ }
1421
1435
  function meshEdges(k, Module, shape, tolerance, _angularTolerance) {
1422
1436
  const edgeData = k.wireframe(unwrap(shape), tolerance);
1423
1437
  try {
1424
- const pointCount = edgeData.pointCount;
1438
+ const heap = Module.HEAPF32;
1425
1439
  const ptr = edgeData.getPointsPtr() >> 2;
1426
- const lines = new Float32Array(pointCount);
1427
- for (let i = 0; i < pointCount; i++) lines[i] = Module.HEAPF32[ptr + i] ?? 0;
1440
+ const lineList = [];
1428
1441
  const edgeGroups = [];
1429
1442
  const egCount = edgeData.edgeGroupCount;
1430
- if (egCount > 0) {
1431
- const egPtr = edgeData.getEdgeGroupsPtr() >> 2;
1432
- for (let i = 0; i < egCount; i += 3) edgeGroups.push({
1433
- start: Module.HEAP32[egPtr + i] ?? 0,
1434
- count: Module.HEAP32[egPtr + i + 1] ?? 0,
1443
+ const egPtr = egCount > 0 ? edgeData.getEdgeGroupsPtr() >> 2 : 0;
1444
+ for (let i = 0; i < egCount; i += 3) {
1445
+ const start = ptr + (Module.HEAP32[egPtr + i] ?? 0);
1446
+ const pointCount = Math.floor((Module.HEAP32[egPtr + i + 1] ?? 0) / 3);
1447
+ const segStart = lineList.length / 3;
1448
+ pushPolylineSegments(heap, start, pointCount, lineList);
1449
+ edgeGroups.push({
1450
+ start: segStart,
1451
+ count: lineList.length / 3 - segStart,
1435
1452
  edgeHash: Module.HEAP32[egPtr + i + 2] ?? 0
1436
1453
  });
1437
1454
  }
1438
1455
  return {
1439
- lines,
1456
+ lines: new Float32Array(lineList),
1440
1457
  edgeGroups
1441
1458
  };
1442
1459
  } finally {
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_historyFns = require("./historyFns-QbZ_1wDe.cjs");
3
- const require_extrudeFns = require("./extrudeFns-BESH_tno.cjs");
2
+ const require_historyFns = require("./historyFns-D-1AQYNQ.cjs");
3
+ const require_extrudeFns = require("./extrudeFns-C1GR7C0X.cjs");
4
4
  exports.addChild = require_historyFns.addChild;
5
5
  exports.addStep = require_historyFns.addStep;
6
6
  exports.circularPattern = require_historyFns.circularPattern;
@@ -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-vMIhK4q_.js";
2
- import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-Dx6KA3po.js";
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-DsGymyxt.js";
2
+ import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-ksXYM5j_.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,13 +1,13 @@
1
- const require_shapeTypes = require("./shapeTypes-BwbnQSzG.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BPtEbp0M.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-Cb25Braq.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-CHVjpF39.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
- const require_faceFns = require("./faceFns-ZhwskGuW.cjs");
6
- const require_shapeFns = require("./shapeFns-CUjmsc5n.cjs");
5
+ const require_faceFns = require("./faceFns-Bk3zpto6.cjs");
6
+ const require_shapeFns = require("./shapeFns-C1H15_5H.cjs");
7
7
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
8
- const require_surfaceBuilders = require("./surfaceBuilders-Ae2XRahr.cjs");
9
- const require_booleanFns = require("./booleanFns-D_XT8nXq.cjs");
10
- const require_solidBuilders = require("./solidBuilders-C_CVKD9y.cjs");
8
+ const require_surfaceBuilders = require("./surfaceBuilders-DCRn8Srd.cjs");
9
+ const require_booleanFns = require("./booleanFns-DnzEDMX6.cjs");
10
+ const require_solidBuilders = require("./solidBuilders-BVS8G3cD.cjs");
11
11
  //#region src/topology/threeHelpers.ts
12
12
  /**
13
13
  * Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
@@ -1,13 +1,13 @@
1
- import { Z 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-B7GYg91f.js";
1
+ import { Z 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-JIeiAk3d.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-DNWJsfVU.js";
3
- import { c as getFaces, i as getCachedIsValid, l as getOrCreateCache, m as invalidateShapeCache, p as getWires, s as getEdges } from "./topologyQueryFns-CBIJ7Ixi.js";
3
+ import { c as getFaces, i as getCachedIsValid, l as getOrCreateCache, m as invalidateShapeCache, p as getWires, s as getEdges } from "./topologyQueryFns-CL_taAVv.js";
4
4
  import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
5
- import { _ as downcast } from "./faceFns-BuDNpvDH.js";
6
- import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-DLKjTl1m.js";
5
+ import { _ as downcast } from "./faceFns-BkSM4Oeu.js";
6
+ import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-CKAdGsFC.js";
7
7
  import { t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
8
- import { _ as makeThreePointArc, a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, g as makeTangentArc, h as makeLine, i as makeNewFaceWithinFace, m as makeHelix, o as makePolygon, p as makeEllipseArc, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeBezierCurve } from "./surfaceBuilders-DbqaooTh.js";
9
- import { a as fuseAll, i as fuse, n as cut, r as cutAll } from "./booleanFns-DthZnyWl.js";
10
- 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-E9QDs2AH.js";
8
+ import { _ as makeThreePointArc, a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, g as makeTangentArc, h as makeLine, i as makeNewFaceWithinFace, m as makeHelix, o as makePolygon, p as makeEllipseArc, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeBezierCurve } from "./surfaceBuilders-CY8jJP-F.js";
9
+ import { a as fuseAll, i as fuse, n as cut, r as cutAll } from "./booleanFns-leH_QfYn.js";
10
+ 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-C9qNi_0P.js";
11
11
  //#region src/topology/threeHelpers.ts
12
12
  /**
13
13
  * Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_cameraFns = require("./cameraFns-N7btylSp.cjs");
2
+ const require_cameraFns = require("./cameraFns-3on_JnkF.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-BBC_mCJX.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-rx6kB6-O.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-QPPvHzFe.cjs");
3
- const require_cornerFinder = require("./cornerFinder-BrRfeGOx.cjs");
2
+ const require_helpers = require("./helpers-DspOVTTu.cjs");
3
+ const require_cornerFinder = require("./cornerFinder-CKXVZtKb.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-Ceyjiq3b.js";
2
- import { t as cornerFinder } from "./cornerFinder-BxFYMbKt.js";
1
+ import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-Bjw3hpKP.js";
2
+ import { t as cornerFinder } from "./cornerFinder-CamWi9tL.js";
3
3
  export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-BwbnQSzG.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BPtEbp0M.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-Cb25Braq.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-CHVjpF39.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  //#region src/topology/metadata/originTrackingFns.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
- import { Z as getKernel, t as castShape } from "./shapeTypes-B7GYg91f.js";
1
+ import { Z as getKernel, t as castShape } from "./shapeTypes-JIeiAk3d.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-CBIJ7Ixi.js";
3
+ import { C as kernelCall, c as getFaces, l as getOrCreateCache, r as getCacheEntry, w as kernelCallRaw } from "./topologyQueryFns-CL_taAVv.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
  /**
package/dist/shapeRef.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_shapeRefFns = require("./shapeRefFns-AlYSd7xG.cjs");
2
+ const require_shapeRefFns = require("./shapeRefFns-B0KzT-Gm.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-BCBT3qjs.js";
1
+ import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-DKojnj8j.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-Cb25Braq.cjs");
3
- const require_faceFns = require("./faceFns-ZhwskGuW.cjs");
4
- const require_shapeFns = require("./shapeFns-CUjmsc5n.cjs");
5
- const require_measureFns = require("./measureFns-DD5O45zv.cjs");
2
+ const require_topologyQueryFns = require("./topologyQueryFns-CHVjpF39.cjs");
3
+ const require_faceFns = require("./faceFns-Bk3zpto6.cjs");
4
+ const require_shapeFns = require("./shapeFns-C1H15_5H.cjs");
5
+ const require_measureFns = require("./measureFns-DH64vdR2.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-CBIJ7Ixi.js";
3
- import { c as normalAt, n as faceCenter, r as faceGeomType } from "./faceFns-BuDNpvDH.js";
4
- import { n as getHashCode } from "./shapeFns-DLKjTl1m.js";
5
- import { n as measureArea } from "./measureFns-BTcMyzXv.js";
2
+ import { c as getFaces } from "./topologyQueryFns-CL_taAVv.js";
3
+ import { c as normalAt, n as faceCenter, r as faceGeomType } from "./faceFns-BkSM4Oeu.js";
4
+ import { n as getHashCode } from "./shapeFns-CKAdGsFC.js";
5
+ import { n as measureArea } from "./measureFns-D_UQTGi5.js";
6
6
  //#region src/topology/shapeRef/scoring.ts
7
7
  /**
8
8
  * Default face scorer combining surface type, normal alignment, centroid proximity,
@@ -1,5 +1,5 @@
1
1
  const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
2
- const require_occtWasmAdapter = require("./occtWasmAdapter-ddZvP8Ns.cjs");
2
+ const require_occtWasmAdapter = require("./occtWasmAdapter-BuIYbIwy.cjs");
3
3
  const require_errors = require("./errors-CXJtc4I7.cjs");
4
4
  //#region src/kernel/kernel2dTypes.ts
5
5
  /** Check if the kernel supports 2D geometry operations. */
@@ -1,5 +1,5 @@
1
1
  import { n as wasmIndex, t as vec3At } from "./vec3-Dpha8d5k.js";
2
- import { _ as serializeCurve2d$2, a as curveTypeName, b as quickHull, c as intersectCurves2dFn, d as makeEllipse2d$2, f as makeLine2d$2, g as scaleCurve2d$2, h as rotateCurve2d$2, i as curveBounds, l as makeBezier2d$2, m as mirrorAtPoint, n as addCurveToBBox, o as deserializeCurve2d$2, p as mirrorAcrossAxis, r as createBBox2d, s as evaluateCurve2d$2, u as makeCircle2d$2, v as tangentCurve2d, y as translateCurve2d$2 } from "./occtWasmAdapter-8XGnYsEi.js";
2
+ import { _ as serializeCurve2d$2, a as curveTypeName, b as quickHull, c as intersectCurves2dFn, d as makeEllipse2d$2, f as makeLine2d$2, g as scaleCurve2d$2, h as rotateCurve2d$2, i as curveBounds, l as makeBezier2d$2, m as mirrorAtPoint, n as addCurveToBBox, o as deserializeCurve2d$2, p as mirrorAcrossAxis, r as createBBox2d, s as evaluateCurve2d$2, u as makeCircle2d$2, v as tangentCurve2d, y as translateCurve2d$2 } from "./occtWasmAdapter-B0PIezOZ.js";
3
3
  import { A as ok, b as err } from "./errors-DNWJsfVU.js";
4
4
  //#region src/kernel/kernel2dTypes.ts
5
5
  /** Check if the kernel supports 2D geometry operations. */
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_textBlueprints = require("./textBlueprints-IJMNaWq4.cjs");
3
- const require_blueprintSketcher = require("./blueprintSketcher-Dg22-24R.cjs");
4
- const require_drawFns = require("./drawFns-BBXf1AmG.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-DZ6z07kv.cjs");
3
+ const require_blueprintSketcher = require("./blueprintSketcher-hwftYMwR.cjs");
4
+ const require_drawFns = require("./drawFns-BJQqMKaJ.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-CMcZhA20.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-Wck6Yw-Z.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-CStv8fXQ.js";
1
+ import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-C8vZPCQt.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-BHxjaznK.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-DcEAdnAc.js";
4
4
  //#region src/sketching.ts
5
5
  /**
6
6
  * brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-BwbnQSzG.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BPtEbp0M.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_faceFns = require("./faceFns-ZhwskGuW.cjs");
3
+ const require_faceFns = require("./faceFns-Bk3zpto6.cjs");
4
4
  //#region src/topology/shapeUtils.ts
5
5
  /**
6
6
  * Shape assembly utilities — welding and sewing operations.
@@ -1,6 +1,6 @@
1
- import { Z as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-B7GYg91f.js";
1
+ import { Z as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-JIeiAk3d.js";
2
2
  import { A as ok, R as unwrap, b as err, l as typeCastError, v as andThen } from "./errors-DNWJsfVU.js";
3
- import { _ as downcast, g as cast } from "./faceFns-BuDNpvDH.js";
3
+ import { _ as downcast, g as cast } from "./faceFns-BkSM4Oeu.js";
4
4
  //#region src/topology/shapeUtils.ts
5
5
  /**
6
6
  * Shape assembly utilities — welding and sewing operations.
@@ -1,6 +1,6 @@
1
- import { Z as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-B7GYg91f.js";
1
+ import { Z as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-JIeiAk3d.js";
2
2
  import { A as ok, b as err, d as validationError, i as kernelError, v as andThen } from "./errors-DNWJsfVU.js";
3
- import { g as cast, l as outerWire } from "./faceFns-BuDNpvDH.js";
3
+ import { g as cast, l as outerWire } from "./faceFns-BkSM4Oeu.js";
4
4
  //#region src/utils/range.ts
5
5
  /** Generate an array of integers `[0, 1, …, len - 1]`. */
6
6
  function range(len) {
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-BwbnQSzG.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BPtEbp0M.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_faceFns = require("./faceFns-ZhwskGuW.cjs");
3
+ const require_faceFns = require("./faceFns-Bk3zpto6.cjs");
4
4
  //#region src/utils/range.ts
5
5
  /** Generate an array of integers `[0, 1, …, len - 1]`. */
6
6
  function range(len) {
package/dist/text.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_textBlueprints = require("./textBlueprints-IJMNaWq4.cjs");
3
- const require_textMetrics = require("./textMetrics-CL4DE2-I.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-DZ6z07kv.cjs");
3
+ const require_textMetrics = require("./textMetrics-B3OdFcVn.cjs");
4
4
  exports.fontMetrics = require_textMetrics.fontMetrics;
5
5
  exports.getFont = require_textBlueprints.getFont;
6
6
  exports.loadFont = require_textBlueprints.loadFont;
package/dist/text.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as getFont, r as loadFont, t as textBlueprints } from "./textBlueprints-CStv8fXQ.js";
2
- import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-B5sFd2Mb.js";
1
+ import { n as getFont, r as loadFont, t as textBlueprints } from "./textBlueprints-DcEAdnAc.js";
2
+ import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-DVZWsWQu.js";
3
3
  export { fontMetrics, getFont, loadFont, sketchText, textBlueprints, textMetrics };
@@ -29,18 +29,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
29
29
  enumerable: true
30
30
  }) : target, mod));
31
31
  //#endregion
32
- const require_shapeTypes = require("./shapeTypes-BwbnQSzG.cjs");
32
+ const require_shapeTypes = require("./shapeTypes-BPtEbp0M.cjs");
33
33
  const require_errors = require("./errors-CXJtc4I7.cjs");
34
34
  const require_types = require("./types-KjA8tY4Y.cjs");
35
35
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
36
36
  const require_planeOps = require("./planeOps-BA4HfgQu.cjs");
37
- const require_faceFns = require("./faceFns-ZhwskGuW.cjs");
38
- const require_curveFns = require("./curveFns-Cka3gEep.cjs");
37
+ const require_faceFns = require("./faceFns-Bk3zpto6.cjs");
38
+ const require_curveFns = require("./curveFns-DzHot_xI.cjs");
39
39
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
40
- const require_surfaceBuilders = require("./surfaceBuilders-Ae2XRahr.cjs");
41
- const require_blueprintSketcher = require("./blueprintSketcher-Dg22-24R.cjs");
42
- const require_solidBuilders = require("./solidBuilders-C_CVKD9y.cjs");
43
- const require_extrudeFns = require("./extrudeFns-BESH_tno.cjs");
40
+ const require_surfaceBuilders = require("./surfaceBuilders-DCRn8Srd.cjs");
41
+ const require_blueprintSketcher = require("./blueprintSketcher-hwftYMwR.cjs");
42
+ const require_solidBuilders = require("./solidBuilders-BVS8G3cD.cjs");
43
+ const require_extrudeFns = require("./extrudeFns-C1GR7C0X.cjs");
44
44
  let opentype_js = require("opentype.js");
45
45
  opentype_js = __toESM(opentype_js, 1);
46
46
  //#region src/operations/loftFns.ts
@@ -1,15 +1,15 @@
1
- import { Z as getKernel, h as isShape3D, o as createFace, p as isFace, t as castShape, u as createWire } from "./shapeTypes-B7GYg91f.js";
1
+ import { Z as getKernel, h as isShape3D, o as createFace, p as isFace, t as castShape, u as createWire } from "./shapeTypes-JIeiAk3d.js";
2
2
  import { A as ok, R as unwrap, T as isOk, b as err, d as validationError, h as bug, i as kernelError, l as typeCastError, r as ioError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
3
3
  import { r as toVec3 } from "./types-D24Y27N0.js";
4
4
  import { d as vecNormalize, h as vecScale, r as vecCross } from "./vecOps-SKPRvPH-.js";
5
5
  import { n as createPlane } from "./planeOps-DSjjtrjg.js";
6
- import { _ as downcast, g as cast } from "./faceFns-BuDNpvDH.js";
7
- import { c as curveStartPoint, l as curveTangentAt } from "./curveFns-CWpRYhZ8.js";
6
+ import { _ as downcast, g as cast } from "./faceFns-BkSM4Oeu.js";
7
+ import { c as curveStartPoint, l as curveTangentAt } from "./curveFns-D7GtayS2.js";
8
8
  import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
9
- import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-DbqaooTh.js";
10
- import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-CMcZhA20.js";
11
- import { o as makeSolid, t as makeCompound } from "./solidBuilders-E9QDs2AH.js";
12
- import { c as sweep, i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-Dx6KA3po.js";
9
+ import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-CY8jJP-F.js";
10
+ import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-C8vZPCQt.js";
11
+ import { o as makeSolid, t as makeCompound } from "./solidBuilders-C9qNi_0P.js";
12
+ import { c as sweep, i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-ksXYM5j_.js";
13
13
  import opentype from "opentype.js";
14
14
  //#region src/operations/loftFns.ts
15
15
  /**
@@ -1,4 +1,4 @@
1
- const require_textBlueprints = require("./textBlueprints-IJMNaWq4.cjs");
1
+ const require_textBlueprints = require("./textBlueprints-DZ6z07kv.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
3
  //#region src/text/sketchText.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
2
- import { g as wrapSketchData, i as Sketches, n as getFont, t as textBlueprints, v as CompoundSketch } from "./textBlueprints-CStv8fXQ.js";
2
+ import { g as wrapSketchData, i as Sketches, n as getFont, t as textBlueprints, v as CompoundSketch } from "./textBlueprints-DcEAdnAc.js";
3
3
  //#region src/text/sketchText.ts
4
4
  /**
5
5
  * Render text as 3D sketch outlines on a plane.