brepjs 18.73.0 → 18.74.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 (77) hide show
  1. package/README.md +1 -1
  2. package/dist/2d.cjs +6 -6
  3. package/dist/2d.js +6 -6
  4. package/dist/{blueprint-qVw9ZkE4.js → blueprint-6PeP6v2f.js} +5 -5
  5. package/dist/{blueprint-jlSsZ0sZ.cjs → blueprint-DihpXYMK.cjs} +5 -5
  6. package/dist/{blueprintFns-zLwbytjs.js → blueprintFns-Cs-W4h4M.js} +2 -2
  7. package/dist/{blueprintFns-DsuY7gCu.cjs → blueprintFns-Cy7lDEbD.cjs} +2 -2
  8. package/dist/{blueprintSketcher-dZZ8e5ey.cjs → blueprintSketcher-BDYo5dt-.cjs} +3 -3
  9. package/dist/{blueprintSketcher-BRKbVgE2.js → blueprintSketcher-DcdEGIqB.js} +3 -3
  10. package/dist/{boolean2D-4E1kbwQx.cjs → boolean2D-DaVXVhSh.cjs} +4 -4
  11. package/dist/{boolean2D-CANP43pN.js → boolean2D-DjrMcnMs.js} +4 -4
  12. package/dist/{booleanFns-Bp_wYEwG.cjs → booleanFns-DCXqDGPd.cjs} +4 -4
  13. package/dist/{booleanFns-DYSaupiG.js → booleanFns-DIeeeOaS.js} +4 -4
  14. package/dist/brepjs.cjs +24 -24
  15. package/dist/brepjs.js +24 -24
  16. package/dist/{cameraFns-dRK1CnFi.cjs → cameraFns-CJzh4iuj.cjs} +2 -2
  17. package/dist/{cameraFns-BFRGMXSn.js → cameraFns-DmpsjoqQ.js} +2 -2
  18. package/dist/core.cjs +1 -1
  19. package/dist/core.js +1 -1
  20. package/dist/{cornerFinder-DcHCKoUh.js → cornerFinder-DVuSb6-g.js} +1 -1
  21. package/dist/{cornerFinder-CQPXY8Aw.cjs → cornerFinder-jqX0KG9s.cjs} +1 -1
  22. package/dist/{curveFns-CXhOkKR4.js → curveFns--XMHTocr.js} +1 -1
  23. package/dist/{curveFns-uPVW6eo-.cjs → curveFns-DtfPCynP.cjs} +1 -1
  24. package/dist/{drawFns-eMU4H__w.cjs → drawFns-BxdX6Gni.cjs} +12 -12
  25. package/dist/{drawFns-ZqWpAG8b.js → drawFns-yqaxPXGG.js} +12 -12
  26. package/dist/{extrudeFns-CSy2C7WW.js → extrudeFns-XHmvD7Dx.js} +1 -1
  27. package/dist/{extrudeFns-CzQans6p.cjs → extrudeFns-x8e57uyS.cjs} +1 -1
  28. package/dist/{faceFns-BBcrvY7r.js → faceFns-MKPUk9C5.js} +2 -2
  29. package/dist/{faceFns-CcLFCtg4.cjs → faceFns-SVDlKPRF.cjs} +2 -2
  30. package/dist/{helpers-BmY5kO0w.cjs → helpers-Ca8WmwCj.cjs} +6 -6
  31. package/dist/{helpers-CxT3j8jG.js → helpers-Cric5loB.js} +6 -6
  32. package/dist/{historyFns-ClLT60_V.js → historyFns-BMMInQRI.js} +4 -4
  33. package/dist/{historyFns-BEB2Yjld.cjs → historyFns-hN8uoEfF.cjs} +4 -4
  34. package/dist/{importFns-BNDWuBuq.js → importFns-BgoGUk2z.js} +2 -2
  35. package/dist/{importFns-DA0Klh7_.cjs → importFns-Cbmw3sxF.cjs} +2 -2
  36. package/dist/io.cjs +2 -2
  37. package/dist/io.js +2 -2
  38. package/dist/kernel/brepkit/geometryOps.d.ts +8 -1
  39. package/dist/{measureFns-DAP8LjBB.js → measureFns-BR4QEtEp.js} +3 -3
  40. package/dist/{measureFns-zGABZl6o.cjs → measureFns-BopOdCy3.cjs} +3 -3
  41. package/dist/measurement.cjs +1 -1
  42. package/dist/measurement.js +1 -1
  43. package/dist/{meshFns-D-nLiHvU.js → meshFns-BmkPoN2B.js} +3 -3
  44. package/dist/{meshFns-CEGnFm33.cjs → meshFns-L5c_j5M9.cjs} +3 -3
  45. package/dist/operations.cjs +2 -2
  46. package/dist/operations.js +2 -2
  47. package/dist/{primitiveFns-CDbe5gjc.js → primitiveFns-B-9QhDl7.js} +7 -7
  48. package/dist/{primitiveFns-CpkG8ZkI.cjs → primitiveFns-qpPE5R8j.cjs} +7 -7
  49. package/dist/projection.cjs +1 -1
  50. package/dist/projection.js +1 -1
  51. package/dist/query.cjs +2 -2
  52. package/dist/query.js +2 -2
  53. package/dist/{shapeFns-CDHya-nt.cjs → shapeFns-D4BQn_zI.cjs} +2 -2
  54. package/dist/{shapeFns-DVUNOG2I.js → shapeFns-gKgMm-64.js} +2 -2
  55. package/dist/shapeRef.cjs +1 -1
  56. package/dist/shapeRef.js +1 -1
  57. package/dist/{shapeRefFns-B1Tygk9V.cjs → shapeRefFns-5fCvQBSB.cjs} +4 -4
  58. package/dist/{shapeRefFns-CAJUDLTi.js → shapeRefFns-B1UpIhDY.js} +4 -4
  59. package/dist/{shapeTypes-2cKwu2z4.js → shapeTypes-BWeil_Mz.js} +23 -3
  60. package/dist/{shapeTypes-DRxArFIc.cjs → shapeTypes-D-rrSLH2.cjs} +23 -3
  61. package/dist/sketching.cjs +3 -3
  62. package/dist/sketching.js +3 -3
  63. package/dist/{solidBuilders-Bx3UdW91.js → solidBuilders-BaRC8vgR.js} +2 -2
  64. package/dist/{solidBuilders-ibLq_9EK.cjs → solidBuilders-Cq942r9s.cjs} +2 -2
  65. package/dist/{surfaceBuilders-BtNrSolT.js → surfaceBuilders-0SwRwnZg.js} +2 -2
  66. package/dist/{surfaceBuilders-D2PBBoja.cjs → surfaceBuilders-Cu7NNqHH.cjs} +2 -2
  67. package/dist/text.cjs +2 -2
  68. package/dist/text.js +2 -2
  69. package/dist/{textBlueprints-HfRD4iNF.js → textBlueprints-CQCf61Vk.js} +7 -7
  70. package/dist/{textBlueprints-COG8m1aE.cjs → textBlueprints-DTyg8Yvq.cjs} +7 -7
  71. package/dist/{textMetrics-Zp8rzokO.js → textMetrics-CYNIS7TM.js} +1 -1
  72. package/dist/{textMetrics-CTSpUXtk.cjs → textMetrics-Kiit-Ku7.cjs} +1 -1
  73. package/dist/topology.cjs +7 -7
  74. package/dist/topology.js +7 -7
  75. package/dist/{topologyQueryFns-024l64sD.cjs → topologyQueryFns-BFg1T8YA.cjs} +1 -1
  76. package/dist/{topologyQueryFns-c2RQIcfW.js → topologyQueryFns-CtwjrlEc.js} +1 -1
  77. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
- import { Z as getKernel, p as isFace } from "./shapeTypes-2cKwu2z4.js";
1
+ import { Z as getKernel, p as isFace } from "./shapeTypes-BWeil_Mz.js";
2
2
  import { A as ok, T as isOk, b as err, h as bug, o as queryError } from "./errors-DNWJsfVU.js";
3
- import { c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-c2RQIcfW.js";
3
+ import { c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-CtwjrlEc.js";
4
4
  import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
5
5
  import { a as vecDot, d as vecNormalize } from "./vecOps-SKPRvPH-.js";
6
- import { l as normalAt, s as getSurfaceType } from "./faceFns-BBcrvY7r.js";
7
- import { a as isSameShape, n as getHashCode } from "./shapeFns-DVUNOG2I.js";
8
- import { a as curveLength, d as getCurveType, r as curveIsClosed } from "./curveFns-CXhOkKR4.js";
9
- import { n as measureArea } from "./measureFns-DAP8LjBB.js";
6
+ import { l as normalAt, s as getSurfaceType } from "./faceFns-MKPUk9C5.js";
7
+ import { a as isSameShape, n as getHashCode } from "./shapeFns-gKgMm-64.js";
8
+ import { a as curveLength, d as getCurveType, r as curveIsClosed } from "./curveFns--XMHTocr.js";
9
+ import { n as measureArea } from "./measureFns-BR4QEtEp.js";
10
10
  //#region src/utils/vec2d.ts
11
11
  /** Precision for curve intersection and parameter operations. */
12
12
  var PRECISION_INTERSECTION = 1e-9;
@@ -1,9 +1,9 @@
1
- import { B as createKernelHandle, Z as getKernel, t as castShape } from "./shapeTypes-2cKwu2z4.js";
1
+ import { B as createKernelHandle, Z as getKernel, t as castShape } from "./shapeTypes-BWeil_Mz.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 { y as fromBREP } from "./faceFns-BBcrvY7r.js";
5
- import { s as toBREP } from "./shapeFns-DVUNOG2I.js";
6
- import { a as fuseAll } from "./booleanFns-DYSaupiG.js";
4
+ import { y as fromBREP } from "./faceFns-MKPUk9C5.js";
5
+ import { s as toBREP } from "./shapeFns-gKgMm-64.js";
6
+ import { a as fuseAll } from "./booleanFns-DIeeeOaS.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-DRxArFIc.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-D-rrSLH2.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-CcLFCtg4.cjs");
5
- const require_shapeFns = require("./shapeFns-CDHya-nt.cjs");
6
- const require_booleanFns = require("./booleanFns-Bp_wYEwG.cjs");
4
+ const require_faceFns = require("./faceFns-SVDlKPRF.cjs");
5
+ const require_shapeFns = require("./shapeFns-D4BQn_zI.cjs");
6
+ const require_booleanFns = require("./booleanFns-DCXqDGPd.cjs");
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-2cKwu2z4.js";
1
+ import { Z as getKernel, t as castShape } from "./shapeTypes-BWeil_Mz.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-qVw9ZkE4.js";
5
+ import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-6PeP6v2f.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-DRxArFIc.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-D-rrSLH2.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-jlSsZ0sZ.cjs");
5
+ const require_blueprint = require("./blueprint-DihpXYMK.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-CEGnFm33.cjs");
3
- const require_importFns = require("./importFns-DA0Klh7_.cjs");
2
+ const require_meshFns = require("./meshFns-L5c_j5M9.cjs");
3
+ const require_importFns = require("./importFns-Cbmw3sxF.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-D-nLiHvU.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-BNDWuBuq.js";
1
+ import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-BmkPoN2B.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-BgoGUk2z.js";
3
3
  export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
@@ -35,6 +35,10 @@ export declare function getSurfaceCylinderData(bk: BrepkitKernel, surface: Kerne
35
35
  radius: number;
36
36
  isDirect: boolean;
37
37
  } | null;
38
+ export declare function getSurfaceAxis(bk: BrepkitKernel, face: KernelShape): {
39
+ origin: [number, number, number];
40
+ direction: [number, number, number];
41
+ } | null;
38
42
  export declare function reverseSurfaceU(_bk: BrepkitKernel, surface: KernelType): KernelType;
39
43
  export declare function classifyPointOnFace(bk: BrepkitKernel, face: KernelShape, u: number, v: number, tolerance?: number): 'in' | 'on' | 'out';
40
44
  export declare function classifyPointRobust(bk: BrepkitKernel, shape: KernelShape, point: [number, number, number], tolerance: number): string;
@@ -108,7 +112,10 @@ export declare function makeGeometryOps(bk: BrepkitKernel): {
108
112
  radius: number;
109
113
  isDirect: boolean;
110
114
  } | null;
111
- getSurfaceAxis: () => null;
115
+ getSurfaceAxis: (face: any) => {
116
+ origin: [number, number, number];
117
+ direction: [number, number, number];
118
+ } | null;
112
119
  reverseSurfaceU: (surface: any) => any;
113
120
  classifyPointOnFace: (face: any, u: number, v: number, tolerance: number | undefined) => "in" | "on" | "out";
114
121
  classifyPointRobust: (shape: any, point: [number, number, number], tolerance: number) => string;
@@ -1,7 +1,7 @@
1
- import { Z as getKernel } from "./shapeTypes-2cKwu2z4.js";
1
+ import { Z as getKernel } from "./shapeTypes-BWeil_Mz.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-c2RQIcfW.js";
4
- import { m as uvBounds } from "./faceFns-BBcrvY7r.js";
3
+ import { w as kernelCallRaw } from "./topologyQueryFns-CtwjrlEc.js";
4
+ import { m as uvBounds } from "./faceFns-MKPUk9C5.js";
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
- const require_shapeTypes = require("./shapeTypes-DRxArFIc.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-D-rrSLH2.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-024l64sD.cjs");
4
- const require_faceFns = require("./faceFns-CcLFCtg4.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-BFg1T8YA.cjs");
4
+ const require_faceFns = require("./faceFns-SVDlKPRF.cjs");
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-zGABZl6o.cjs");
2
+ const require_measureFns = require("./measureFns-BopOdCy3.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-DAP8LjBB.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-BR4QEtEp.js";
2
2
  export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
@@ -1,7 +1,7 @@
1
- import { Z as getKernel, gt as qualityDeflection } from "./shapeTypes-2cKwu2z4.js";
1
+ import { Z as getKernel, gt as qualityDeflection } from "./shapeTypes-BWeil_Mz.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-c2RQIcfW.js";
4
- import { O as getFaceOrigins } from "./shapeFns-DVUNOG2I.js";
3
+ import { d as getSolids, n as getBounds } from "./topologyQueryFns-CtwjrlEc.js";
4
+ import { O as getFaceOrigins } from "./shapeFns-gKgMm-64.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-DRxArFIc.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-D-rrSLH2.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-024l64sD.cjs");
4
- const require_shapeFns = require("./shapeFns-CDHya-nt.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-BFg1T8YA.cjs");
4
+ const require_shapeFns = require("./shapeFns-D4BQn_zI.cjs");
5
5
  //#region src/topology/meshCache.ts
6
6
  /**
7
7
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_historyFns = require("./historyFns-BEB2Yjld.cjs");
3
- const require_extrudeFns = require("./extrudeFns-CzQans6p.cjs");
2
+ const require_historyFns = require("./historyFns-hN8uoEfF.cjs");
3
+ const require_extrudeFns = require("./extrudeFns-x8e57uyS.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-ClLT60_V.js";
2
- import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-CSy2C7WW.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-BMMInQRI.js";
2
+ import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-XHmvD7Dx.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
- 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-2cKwu2z4.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-BWeil_Mz.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-c2RQIcfW.js";
3
+ import { c as getFaces, i as getCachedIsValid, l as getOrCreateCache, m as invalidateShapeCache, p as getWires, s as getEdges } from "./topologyQueryFns-CtwjrlEc.js";
4
4
  import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
5
- import { v as downcast } from "./faceFns-BBcrvY7r.js";
6
- import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-DVUNOG2I.js";
5
+ import { v as downcast } from "./faceFns-MKPUk9C5.js";
6
+ import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-gKgMm-64.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-BtNrSolT.js";
9
- import { a as fuseAll, i as fuse, n as cut, r as cutAll } from "./booleanFns-DYSaupiG.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-Bx3UdW91.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-0SwRwnZg.js";
9
+ import { a as fuseAll, i as fuse, n as cut, r as cutAll } from "./booleanFns-DIeeeOaS.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-BaRC8vgR.js";
11
11
  //#region src/topology/threeHelpers.ts
12
12
  /**
13
13
  * Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
@@ -1,13 +1,13 @@
1
- const require_shapeTypes = require("./shapeTypes-DRxArFIc.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-D-rrSLH2.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-024l64sD.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-BFg1T8YA.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
- const require_faceFns = require("./faceFns-CcLFCtg4.cjs");
6
- const require_shapeFns = require("./shapeFns-CDHya-nt.cjs");
5
+ const require_faceFns = require("./faceFns-SVDlKPRF.cjs");
6
+ const require_shapeFns = require("./shapeFns-D4BQn_zI.cjs");
7
7
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
8
- const require_surfaceBuilders = require("./surfaceBuilders-D2PBBoja.cjs");
9
- const require_booleanFns = require("./booleanFns-Bp_wYEwG.cjs");
10
- const require_solidBuilders = require("./solidBuilders-ibLq_9EK.cjs");
8
+ const require_surfaceBuilders = require("./surfaceBuilders-Cu7NNqHH.cjs");
9
+ const require_booleanFns = require("./booleanFns-DCXqDGPd.cjs");
10
+ const require_solidBuilders = require("./solidBuilders-Cq942r9s.cjs");
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-dRK1CnFi.cjs");
2
+ const require_cameraFns = require("./cameraFns-CJzh4iuj.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-BFRGMXSn.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-DmpsjoqQ.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-BmY5kO0w.cjs");
3
- const require_cornerFinder = require("./cornerFinder-CQPXY8Aw.cjs");
2
+ const require_helpers = require("./helpers-Ca8WmwCj.cjs");
3
+ const require_cornerFinder = require("./cornerFinder-jqX0KG9s.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-CxT3j8jG.js";
2
- import { t as cornerFinder } from "./cornerFinder-DcHCKoUh.js";
1
+ import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-Cric5loB.js";
2
+ import { t as cornerFinder } from "./cornerFinder-DVuSb6-g.js";
3
3
  export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-DRxArFIc.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-D-rrSLH2.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-024l64sD.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-BFg1T8YA.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-2cKwu2z4.js";
1
+ import { Z as getKernel, t as castShape } from "./shapeTypes-BWeil_Mz.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-c2RQIcfW.js";
3
+ import { C as kernelCall, c as getFaces, l as getOrCreateCache, r as getCacheEntry, w as kernelCallRaw } from "./topologyQueryFns-CtwjrlEc.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-B1Tygk9V.cjs");
2
+ const require_shapeRefFns = require("./shapeRefFns-5fCvQBSB.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-CAJUDLTi.js";
1
+ import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-B1UpIhDY.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-024l64sD.cjs");
3
- const require_faceFns = require("./faceFns-CcLFCtg4.cjs");
4
- const require_shapeFns = require("./shapeFns-CDHya-nt.cjs");
5
- const require_measureFns = require("./measureFns-zGABZl6o.cjs");
2
+ const require_topologyQueryFns = require("./topologyQueryFns-BFg1T8YA.cjs");
3
+ const require_faceFns = require("./faceFns-SVDlKPRF.cjs");
4
+ const require_shapeFns = require("./shapeFns-D4BQn_zI.cjs");
5
+ const require_measureFns = require("./measureFns-BopOdCy3.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-c2RQIcfW.js";
3
- import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-BBcrvY7r.js";
4
- import { n as getHashCode } from "./shapeFns-DVUNOG2I.js";
5
- import { n as measureArea } from "./measureFns-DAP8LjBB.js";
2
+ import { c as getFaces } from "./topologyQueryFns-CtwjrlEc.js";
3
+ import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-MKPUk9C5.js";
4
+ import { n as getHashCode } from "./shapeFns-gKgMm-64.js";
5
+ import { n as measureArea } from "./measureFns-BR4QEtEp.js";
6
6
  //#region src/topology/shapeRef/scoring.ts
7
7
  /**
8
8
  * Default face scorer combining surface type, normal alignment, centroid proximity,
@@ -2887,7 +2887,7 @@ function getSurfaceCylinderData$1(oc, surface) {
2887
2887
  return result;
2888
2888
  }
2889
2889
  /** Get a cylindrical face's axis (point on axis + unit direction). Null otherwise. */
2890
- function getSurfaceAxis(oc, face) {
2890
+ function getSurfaceAxis$1(oc, face) {
2891
2891
  const adaptor = new oc.BRepAdaptor_Surface_2(face, false);
2892
2892
  try {
2893
2893
  const typeVal = adaptor.GetType();
@@ -2951,7 +2951,7 @@ function makeGeometryQueryOps(oc) {
2951
2951
  curvePeriod: (shape) => curvePeriod$1(oc, shape),
2952
2952
  curveType: (shape) => curveType$1(oc, shape),
2953
2953
  getSurfaceCylinderData: (surface) => getSurfaceCylinderData$1(oc, surface),
2954
- getSurfaceAxis: (face) => getSurfaceAxis(oc, face),
2954
+ getSurfaceAxis: (face) => getSurfaceAxis$1(oc, face),
2955
2955
  reverseSurfaceU: (surface) => reverseSurfaceU$1(oc, surface)
2956
2956
  };
2957
2957
  }
@@ -6016,6 +6016,26 @@ function getSurfaceCylinderData(bk, surface) {
6016
6016
  }
6017
6017
  return null;
6018
6018
  }
6019
+ function getSurfaceAxis(bk, face) {
6020
+ const params = JSON.parse(bk.getAnalyticSurfaceParams(unwrap$1(face, "face")));
6021
+ if (params.type !== "cylinder") return null;
6022
+ const [ox, oy, oz] = params.origin;
6023
+ const [ax, ay, az] = params.axis;
6024
+ const len = Math.hypot(ax, ay, az);
6025
+ if (len < 1e-12) return null;
6026
+ return {
6027
+ origin: [
6028
+ ox,
6029
+ oy,
6030
+ oz
6031
+ ],
6032
+ direction: [
6033
+ ax / len,
6034
+ ay / len,
6035
+ az / len
6036
+ ]
6037
+ };
6038
+ }
6019
6039
  function reverseSurfaceU(_bk, surface) {
6020
6040
  return surface;
6021
6041
  }
@@ -6119,7 +6139,7 @@ function makeGeometryOps$1(bk) {
6119
6139
  createCurveAdaptor: (shape) => createCurveAdaptor(bk, shape),
6120
6140
  getBezierPenultimatePole: (edge) => getBezierPenultimatePole(bk, edge),
6121
6141
  getSurfaceCylinderData: (surface) => getSurfaceCylinderData(bk, surface),
6122
- getSurfaceAxis: () => null,
6142
+ getSurfaceAxis: (face) => getSurfaceAxis(bk, face),
6123
6143
  reverseSurfaceU: (surface) => reverseSurfaceU(bk, surface),
6124
6144
  classifyPointOnFace: (face, u, v, tolerance) => classifyPointOnFace(bk, face, u, v, tolerance),
6125
6145
  classifyPointRobust: (shape, point, tolerance) => classifyPointRobust(bk, shape, point, tolerance),
@@ -2887,7 +2887,7 @@ function getSurfaceCylinderData$1(oc, surface) {
2887
2887
  return result;
2888
2888
  }
2889
2889
  /** Get a cylindrical face's axis (point on axis + unit direction). Null otherwise. */
2890
- function getSurfaceAxis(oc, face) {
2890
+ function getSurfaceAxis$1(oc, face) {
2891
2891
  const adaptor = new oc.BRepAdaptor_Surface_2(face, false);
2892
2892
  try {
2893
2893
  const typeVal = adaptor.GetType();
@@ -2951,7 +2951,7 @@ function makeGeometryQueryOps(oc) {
2951
2951
  curvePeriod: (shape) => curvePeriod$1(oc, shape),
2952
2952
  curveType: (shape) => curveType$1(oc, shape),
2953
2953
  getSurfaceCylinderData: (surface) => getSurfaceCylinderData$1(oc, surface),
2954
- getSurfaceAxis: (face) => getSurfaceAxis(oc, face),
2954
+ getSurfaceAxis: (face) => getSurfaceAxis$1(oc, face),
2955
2955
  reverseSurfaceU: (surface) => reverseSurfaceU$1(oc, surface)
2956
2956
  };
2957
2957
  }
@@ -6020,6 +6020,26 @@ function getSurfaceCylinderData(bk, surface) {
6020
6020
  }
6021
6021
  return null;
6022
6022
  }
6023
+ function getSurfaceAxis(bk, face) {
6024
+ const params = JSON.parse(bk.getAnalyticSurfaceParams(unwrap$1(face, "face")));
6025
+ if (params.type !== "cylinder") return null;
6026
+ const [ox, oy, oz] = params.origin;
6027
+ const [ax, ay, az] = params.axis;
6028
+ const len = Math.hypot(ax, ay, az);
6029
+ if (len < 1e-12) return null;
6030
+ return {
6031
+ origin: [
6032
+ ox,
6033
+ oy,
6034
+ oz
6035
+ ],
6036
+ direction: [
6037
+ ax / len,
6038
+ ay / len,
6039
+ az / len
6040
+ ]
6041
+ };
6042
+ }
6023
6043
  function reverseSurfaceU(_bk, surface) {
6024
6044
  return surface;
6025
6045
  }
@@ -6123,7 +6143,7 @@ function makeGeometryOps$1(bk) {
6123
6143
  createCurveAdaptor: (shape) => createCurveAdaptor(bk, shape),
6124
6144
  getBezierPenultimatePole: (edge) => getBezierPenultimatePole(bk, edge),
6125
6145
  getSurfaceCylinderData: (surface) => getSurfaceCylinderData(bk, surface),
6126
- getSurfaceAxis: () => null,
6146
+ getSurfaceAxis: (face) => getSurfaceAxis(bk, face),
6127
6147
  reverseSurfaceU: (surface) => reverseSurfaceU(bk, surface),
6128
6148
  classifyPointOnFace: (face, u, v, tolerance) => classifyPointOnFace(bk, face, u, v, tolerance),
6129
6149
  classifyPointRobust: (shape, point, tolerance) => classifyPointRobust(bk, shape, point, tolerance),
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_textBlueprints = require("./textBlueprints-COG8m1aE.cjs");
3
- const require_blueprintSketcher = require("./blueprintSketcher-dZZ8e5ey.cjs");
4
- const require_drawFns = require("./drawFns-eMU4H__w.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-DTyg8Yvq.cjs");
3
+ const require_blueprintSketcher = require("./blueprintSketcher-BDYo5dt-.cjs");
4
+ const require_drawFns = require("./drawFns-BxdX6Gni.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-BRKbVgE2.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-ZqWpAG8b.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-HfRD4iNF.js";
1
+ import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-DcdEGIqB.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-yqaxPXGG.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-CQCf61Vk.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
- import { Z as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-2cKwu2z4.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-BWeil_Mz.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 cast, v as downcast } from "./faceFns-BBcrvY7r.js";
3
+ import { _ as cast, v as downcast } from "./faceFns-MKPUk9C5.js";
4
4
  //#region src/topology/shapeUtils.ts
5
5
  /**
6
6
  * Shape assembly utilities — welding and sewing operations.
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-DRxArFIc.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-D-rrSLH2.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_faceFns = require("./faceFns-CcLFCtg4.cjs");
3
+ const require_faceFns = require("./faceFns-SVDlKPRF.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, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-2cKwu2z4.js";
1
+ import { Z as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-BWeil_Mz.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 { _ as cast, u as outerWire } from "./faceFns-BBcrvY7r.js";
3
+ import { _ as cast, u as outerWire } from "./faceFns-MKPUk9C5.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-DRxArFIc.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-D-rrSLH2.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_faceFns = require("./faceFns-CcLFCtg4.cjs");
3
+ const require_faceFns = require("./faceFns-SVDlKPRF.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-COG8m1aE.cjs");
3
- const require_textMetrics = require("./textMetrics-CTSpUXtk.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-DTyg8Yvq.cjs");
3
+ const require_textMetrics = require("./textMetrics-Kiit-Ku7.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-HfRD4iNF.js";
2
- import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-Zp8rzokO.js";
1
+ import { n as getFont, r as loadFont, t as textBlueprints } from "./textBlueprints-CQCf61Vk.js";
2
+ import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-CYNIS7TM.js";
3
3
  export { fontMetrics, getFont, loadFont, sketchText, textBlueprints, textMetrics };
@@ -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-2cKwu2z4.js";
1
+ import { Z as getKernel, h as isShape3D, o as createFace, p as isFace, t as castShape, u as createWire } from "./shapeTypes-BWeil_Mz.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 cast, v as downcast } from "./faceFns-BBcrvY7r.js";
7
- import { c as curveStartPoint, l as curveTangentAt } from "./curveFns-CXhOkKR4.js";
6
+ import { _ as cast, v as downcast } from "./faceFns-MKPUk9C5.js";
7
+ import { c as curveStartPoint, l as curveTangentAt } from "./curveFns--XMHTocr.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-BtNrSolT.js";
10
- import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-BRKbVgE2.js";
11
- import { o as makeSolid, t as makeCompound } from "./solidBuilders-Bx3UdW91.js";
12
- import { c as sweep, i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-CSy2C7WW.js";
9
+ import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-0SwRwnZg.js";
10
+ import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-DcdEGIqB.js";
11
+ import { o as makeSolid, t as makeCompound } from "./solidBuilders-BaRC8vgR.js";
12
+ import { c as sweep, i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-XHmvD7Dx.js";
13
13
  import opentype from "opentype.js";
14
14
  //#region src/operations/loftFns.ts
15
15
  /**
@@ -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-DRxArFIc.cjs");
32
+ const require_shapeTypes = require("./shapeTypes-D-rrSLH2.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-CcLFCtg4.cjs");
38
- const require_curveFns = require("./curveFns-uPVW6eo-.cjs");
37
+ const require_faceFns = require("./faceFns-SVDlKPRF.cjs");
38
+ const require_curveFns = require("./curveFns-DtfPCynP.cjs");
39
39
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
40
- const require_surfaceBuilders = require("./surfaceBuilders-D2PBBoja.cjs");
41
- const require_blueprintSketcher = require("./blueprintSketcher-dZZ8e5ey.cjs");
42
- const require_solidBuilders = require("./solidBuilders-ibLq_9EK.cjs");
43
- const require_extrudeFns = require("./extrudeFns-CzQans6p.cjs");
40
+ const require_surfaceBuilders = require("./surfaceBuilders-Cu7NNqHH.cjs");
41
+ const require_blueprintSketcher = require("./blueprintSketcher-BDYo5dt-.cjs");
42
+ const require_solidBuilders = require("./solidBuilders-Cq942r9s.cjs");
43
+ const require_extrudeFns = require("./extrudeFns-x8e57uyS.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,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-HfRD4iNF.js";
2
+ import { g as wrapSketchData, i as Sketches, n as getFont, t as textBlueprints, v as CompoundSketch } from "./textBlueprints-CQCf61Vk.js";
3
3
  //#region src/text/sketchText.ts
4
4
  /**
5
5
  * Render text as 3D sketch outlines on a plane.
@@ -1,4 +1,4 @@
1
- const require_textBlueprints = require("./textBlueprints-COG8m1aE.cjs");
1
+ const require_textBlueprints = require("./textBlueprints-DTyg8Yvq.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
3
  //#region src/text/sketchText.ts
4
4
  /**