brepjs 18.6.0 → 18.14.3

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 (656) hide show
  1. package/README.md +6 -0
  2. package/dist/{sketching/sketcher2d.d.ts → 2d/blueprints/baseSketcher2d.d.ts} +4 -91
  3. package/dist/2d/blueprints/blueprint.d.ts +0 -1
  4. package/dist/2d/blueprints/blueprintApproximations.d.ts +0 -1
  5. package/dist/2d/blueprints/blueprintCustomCorners.d.ts +0 -1
  6. package/dist/2d/blueprints/blueprintFns.d.ts +0 -1
  7. package/dist/2d/blueprints/blueprintOffset.d.ts +0 -1
  8. package/dist/2d/blueprints/blueprintSketcher.d.ts +29 -0
  9. package/dist/2d/blueprints/blueprints.d.ts +0 -1
  10. package/dist/2d/blueprints/boolean2D.d.ts +0 -1
  11. package/dist/2d/blueprints/booleanHelpers.d.ts +0 -1
  12. package/dist/2d/blueprints/booleanOperations.d.ts +0 -1
  13. package/dist/2d/blueprints/cannedBlueprints.d.ts +0 -1
  14. package/dist/2d/blueprints/compoundBlueprint.d.ts +0 -1
  15. package/dist/{sketching → 2d/blueprints}/ellipseUtils.d.ts +19 -2
  16. package/dist/{sketching/sketcherlib.d.ts → 2d/blueprints/genericSketcher.d.ts} +1 -20
  17. package/dist/2d/blueprints/index.d.ts +0 -1
  18. package/dist/2d/blueprints/intersectionSegments.d.ts +0 -1
  19. package/dist/2d/blueprints/lib.d.ts +0 -1
  20. package/dist/2d/blueprints/segmentAssembly.d.ts +0 -1
  21. package/dist/2d/blueprints/svg.d.ts +0 -1
  22. package/dist/2d/curve2dGeometryFns.d.ts +0 -1
  23. package/dist/2d/curves.d.ts +0 -1
  24. package/dist/2d/lib/approximations.d.ts +0 -1
  25. package/dist/2d/lib/boundingBox2d.d.ts +0 -1
  26. package/dist/2d/lib/curve2D.d.ts +0 -1
  27. package/dist/2d/lib/curve2dFns.d.ts +0 -1
  28. package/dist/2d/lib/customCorners.d.ts +0 -1
  29. package/dist/2d/lib/definitions.d.ts +0 -1
  30. package/dist/2d/lib/index.d.ts +0 -1
  31. package/dist/2d/lib/intersections.d.ts +0 -1
  32. package/dist/2d/lib/makeCurves.d.ts +0 -1
  33. package/dist/2d/lib/offset.d.ts +0 -1
  34. package/dist/2d/lib/precision.d.ts +0 -1
  35. package/dist/2d/lib/stitching.d.ts +0 -1
  36. package/dist/2d/lib/svgPath.d.ts +0 -1
  37. package/dist/2d/lib/utils.d.ts +0 -1
  38. package/dist/2d/lib/vectorOperations.d.ts +0 -1
  39. package/dist/2d.cjs +20 -19
  40. package/dist/2d.d.ts +0 -1
  41. package/dist/2d.js +7 -6
  42. package/dist/{blueprint-CscZ0-wr.cjs → blueprint-B8ogGJiQ.cjs} +16 -15
  43. package/dist/{blueprint-BCoJbaQN.js → blueprint-Dv45Evnu.js} +16 -15
  44. package/dist/{blueprintFns-DQP4KQHE.cjs → blueprintFns-BK3FYYjO.cjs} +4 -4
  45. package/dist/{blueprintFns-BZlx6BjG.js → blueprintFns-a9C2g8_E.js} +3 -3
  46. package/dist/{boolean2D-k1AJmCMp.cjs → blueprintSketcher-Bei866Bt.cjs} +65 -1383
  47. package/dist/{boolean2D-JvgjbESt.js → blueprintSketcher-xDsl9GXO.js} +70 -1316
  48. package/dist/boolean2D-DGuiEJHA.cjs +902 -0
  49. package/dist/boolean2D-Z7P0c012.js +855 -0
  50. package/dist/{booleanFns-D13Pb-NO.js → booleanFns-CRa80qMX.js} +9 -9
  51. package/dist/{booleanFns-DQW4lt7H.cjs → booleanFns-qmgMQyDl.cjs} +12 -12
  52. package/dist/brepjs.cjs +772 -112
  53. package/dist/brepjs.js +692 -42
  54. package/dist/cameraFns-1y1NyACI.cjs +315 -0
  55. package/dist/cameraFns-CUzI5RKS.js +274 -0
  56. package/dist/core/constants.d.ts +0 -1
  57. package/dist/core/curve2dHandle.d.ts +0 -1
  58. package/dist/core/dimensionTypes.d.ts +0 -1
  59. package/dist/core/disposal.d.ts +0 -1
  60. package/dist/core/errors.d.ts +0 -1
  61. package/dist/core/kernelBoundary.d.ts +0 -1
  62. package/dist/core/kernelCall.d.ts +0 -1
  63. package/dist/core/kernelErrorTranslation.d.ts +0 -1
  64. package/dist/core/planeOps.d.ts +0 -1
  65. package/dist/core/planeTypes.d.ts +0 -1
  66. package/dist/core/result.d.ts +0 -1
  67. package/dist/core/shapeTypeCache.d.ts +0 -1
  68. package/dist/core/shapeTypes.d.ts +0 -1
  69. package/dist/core/typeDiscriminants.d.ts +0 -1
  70. package/dist/core/types.d.ts +0 -1
  71. package/dist/core/validityTypes.d.ts +0 -1
  72. package/dist/core/vecOps.d.ts +0 -1
  73. package/dist/core.cjs +6 -6
  74. package/dist/core.d.ts +0 -1
  75. package/dist/core.js +6 -6
  76. package/dist/{cornerFinder-5BYE2cbd.cjs → cornerFinder-CC8EBRCR.cjs} +3 -3
  77. package/dist/{cornerFinder-Zg7pf2s0.js → cornerFinder-Dix2ghke.js} +3 -3
  78. package/dist/{curveFns-DhqUp0EI.js → curveFns-B4tWuinR.js} +2 -2
  79. package/dist/{curveFns-DrT54cm8.cjs → curveFns-CD20-4fM.cjs} +2 -2
  80. package/dist/{drawFns-lUXjhTYL.js → drawFns-BsarLfUN.js} +163 -769
  81. package/dist/{drawFns-DmP2o1oF.cjs → drawFns-LlOZoFyp.cjs} +203 -985
  82. package/dist/{errors-DboJwVCf.js → errors-0fYW_YnO.js} +2 -1
  83. package/dist/{errors-CXRNVCec.cjs → errors-Dv6pfNct.cjs} +2 -1
  84. package/dist/{extrudeFns-B9bVCt3C.js → extrudeFns-7pE8dIWz.js} +3 -3
  85. package/dist/{extrudeFns-BtblHdaJ.cjs → extrudeFns-DD36mWKv.cjs} +3 -3
  86. package/dist/faceFns-BFWz17_E.js +218 -0
  87. package/dist/faceFns-DP7i60yJ.cjs +343 -0
  88. package/dist/gear/gearFns.d.ts +129 -0
  89. package/dist/gear/gearMath.d.ts +88 -0
  90. package/dist/gear/gearProfile.d.ts +16 -0
  91. package/dist/gear/index.d.ts +3 -0
  92. package/dist/{helpers-BpXNcxuJ.cjs → helpers-Cyj6gaqy.cjs} +14 -13
  93. package/dist/{helpers-S_Ht6gwX.js → helpers-vV2ONZwD.js} +9 -8
  94. package/dist/{historyFns-B01hrkcJ.js → historyFns-DGb61ETW.js} +6 -6
  95. package/dist/{historyFns-RHO-QvEZ.cjs → historyFns-DfyrPjnK.cjs} +6 -6
  96. package/dist/{importFns-CG49lyTm.cjs → importFns-C-p0vl_h.cjs} +11 -19
  97. package/dist/{importFns-C0tUyeiW.js → importFns-Ci-L2iB3.js} +11 -19
  98. package/dist/index.d.ts +16 -8
  99. package/dist/io/dxfExportFns.d.ts +0 -1
  100. package/dist/io/dxfImportFns.d.ts +0 -1
  101. package/dist/io/gltfExportFns.d.ts +0 -1
  102. package/dist/io/gltfImportFns.d.ts +0 -1
  103. package/dist/io/importFns.d.ts +0 -1
  104. package/dist/io/ioUtils.d.ts +0 -1
  105. package/dist/io/objExportFns.d.ts +0 -1
  106. package/dist/io/objImportFns.d.ts +0 -1
  107. package/dist/io/stepConfigFns.d.ts +0 -1
  108. package/dist/io/svgImportFns.d.ts +0 -1
  109. package/dist/io/threemfExportFns.d.ts +0 -1
  110. package/dist/io/threemfImportFns.d.ts +0 -1
  111. package/dist/io.cjs +2 -2
  112. package/dist/io.d.ts +0 -1
  113. package/dist/io.js +2 -2
  114. package/dist/kernel/brepkit/booleanOps.d.ts +23 -1
  115. package/dist/kernel/brepkit/brepkitAdapter.d.ts +21 -408
  116. package/dist/kernel/brepkit/brepkitWasmTypes.d.ts +0 -1
  117. package/dist/kernel/brepkit/constructionOps.d.ts +51 -1
  118. package/dist/kernel/brepkit/evolutionOps.d.ts +34 -3
  119. package/dist/kernel/brepkit/geometryOps.d.ts +63 -2
  120. package/dist/kernel/brepkit/helpers.d.ts +6 -1
  121. package/dist/kernel/brepkit/internalOps.d.ts +0 -1
  122. package/dist/kernel/brepkit/ioOps.d.ts +47 -9
  123. package/dist/kernel/brepkit/kernel2dOps.d.ts +113 -1
  124. package/dist/kernel/brepkit/measureOps.d.ts +39 -1
  125. package/dist/kernel/brepkit/meshOps.d.ts +7 -1
  126. package/dist/kernel/brepkit/modifierOps.d.ts +15 -1
  127. package/dist/kernel/brepkit/repairOps.d.ts +14 -1
  128. package/dist/kernel/brepkit/sketchOps.d.ts +3 -1
  129. package/dist/kernel/brepkit/sweepOps.d.ts +37 -1
  130. package/dist/kernel/brepkit/topologyOps.d.ts +16 -1
  131. package/dist/kernel/brepkit/transformOps.d.ts +18 -1
  132. package/dist/kernel/geometry2d.d.ts +0 -1
  133. package/dist/kernel/index.d.ts +0 -1
  134. package/dist/kernel/interfaces/booleanOps.d.ts +0 -1
  135. package/dist/kernel/interfaces/builderOps.d.ts +0 -1
  136. package/dist/kernel/interfaces/core.d.ts +0 -1
  137. package/dist/kernel/interfaces/curveOps.d.ts +0 -1
  138. package/dist/kernel/interfaces/evolutionOps.d.ts +0 -1
  139. package/dist/kernel/interfaces/index.d.ts +0 -1
  140. package/dist/kernel/interfaces/ioOps.d.ts +0 -1
  141. package/dist/kernel/interfaces/measureOps.d.ts +0 -1
  142. package/dist/kernel/interfaces/meshOps.d.ts +0 -1
  143. package/dist/kernel/interfaces/modifierOps.d.ts +0 -1
  144. package/dist/kernel/interfaces/primitiveOps.d.ts +0 -1
  145. package/dist/kernel/interfaces/repairOps.d.ts +0 -1
  146. package/dist/kernel/interfaces/surfaceOps.d.ts +0 -1
  147. package/dist/kernel/interfaces/sweepOps.d.ts +0 -1
  148. package/dist/kernel/interfaces/topologyOps.d.ts +0 -1
  149. package/dist/kernel/interfaces/transformOps.d.ts +0 -1
  150. package/dist/kernel/kernel2dTypes.d.ts +0 -1
  151. package/dist/kernel/occt/advancedOps.d.ts +126 -24
  152. package/dist/kernel/occt/booleanBatchOps.d.ts +0 -1
  153. package/dist/kernel/occt/booleanOps.d.ts +11 -1
  154. package/dist/kernel/occt/booleanPipelineOps.d.ts +10 -1
  155. package/dist/kernel/occt/constructorOps.d.ts +14 -1
  156. package/dist/kernel/occt/curveOps.d.ts +13 -1
  157. package/dist/kernel/occt/defaultAdapter.d.ts +10 -441
  158. package/dist/kernel/occt/evolutionOps.d.ts +0 -1
  159. package/dist/kernel/occt/extendedConstructorOps.d.ts +31 -1
  160. package/dist/kernel/occt/geometryQueryOps.d.ts +40 -1
  161. package/dist/kernel/occt/healingOps.d.ts +6 -1
  162. package/dist/kernel/occt/historyOps.d.ts +17 -1
  163. package/dist/kernel/occt/hullOps.d.ts +14 -1
  164. package/dist/kernel/occt/ioOps.d.ts +9 -1
  165. package/dist/kernel/occt/kernel2dOps.d.ts +113 -1
  166. package/dist/kernel/occt/measureOps.d.ts +19 -1
  167. package/dist/kernel/occt/meshOps.d.ts +5 -1
  168. package/dist/kernel/occt/modifierOps.d.ts +24 -1
  169. package/dist/kernel/occt/nurbsQueryOps.d.ts +5 -1
  170. package/dist/kernel/occt/sweepOps.d.ts +23 -1
  171. package/dist/kernel/occt/topologyOps.d.ts +10 -1
  172. package/dist/kernel/occt/transformOps.d.ts +14 -4
  173. package/dist/kernel/occt/wasmTypes/externals.d.ts +0 -1
  174. package/dist/kernel/occt/wasmTypes/index.d.ts +0 -1
  175. package/dist/kernel/occt/wasmTypes/occtBuilders.d.ts +0 -1
  176. package/dist/kernel/occtWasm/adapterShims.d.ts +4 -0
  177. package/dist/kernel/occtWasm/booleanOps.d.ts +11 -0
  178. package/dist/kernel/occtWasm/constructionOps.d.ts +36 -0
  179. package/dist/kernel/occtWasm/curveOps.d.ts +23 -0
  180. package/dist/kernel/occtWasm/evolutionOps.d.ts +17 -0
  181. package/dist/kernel/occtWasm/helpers.d.ts +31 -0
  182. package/dist/kernel/occtWasm/hullOps.d.ts +12 -0
  183. package/dist/kernel/occtWasm/ioOps.d.ts +52 -0
  184. package/dist/kernel/occtWasm/kernel2dOps.d.ts +90 -0
  185. package/dist/kernel/occtWasm/measureOps.d.ts +31 -0
  186. package/dist/kernel/occtWasm/meshOps.d.ts +6 -0
  187. package/dist/kernel/occtWasm/modifierOps.d.ts +14 -0
  188. package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
  189. package/dist/kernel/occtWasm/occtWasmAdapter.d.ts +30 -31
  190. package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
  191. package/dist/kernel/occtWasm/occtWasmTypes.d.ts +0 -1
  192. package/dist/kernel/occtWasm/primitiveOps.d.ts +10 -0
  193. package/dist/kernel/occtWasm/repairOps.d.ts +10 -0
  194. package/dist/kernel/occtWasm/surfaceOps.d.ts +28 -0
  195. package/dist/kernel/occtWasm/sweepOps.d.ts +38 -0
  196. package/dist/kernel/occtWasm/topologyOps.d.ts +14 -0
  197. package/dist/kernel/occtWasm/transformOps.d.ts +27 -0
  198. package/dist/kernel/perfStats.d.ts +0 -1
  199. package/dist/kernel/solverAdapter.d.ts +0 -1
  200. package/dist/kernel/types.d.ts +0 -1
  201. package/dist/{measureFns-C751QGI1.cjs → measureFns-6ifSQfJt.cjs} +6 -5
  202. package/dist/{measureFns-B8C85hbT.js → measureFns-Io2nHE1k.js} +4 -3
  203. package/dist/measurement/interferenceFns.d.ts +0 -1
  204. package/dist/measurement/measureCache.d.ts +0 -1
  205. package/dist/measurement/measureFns.d.ts +0 -1
  206. package/dist/measurement/measureTypes.d.ts +0 -1
  207. package/dist/measurement.cjs +1 -1
  208. package/dist/measurement.d.ts +0 -1
  209. package/dist/measurement.js +1 -1
  210. package/dist/{meshFns-Cdhtbrhm.cjs → meshFns-BCRVZgPi.cjs} +3 -3
  211. package/dist/{meshFns-BgvsA-xA.js → meshFns-DSdkRFWq.js} +3 -3
  212. package/dist/ns/booleans.d.ts +0 -1
  213. package/dist/ns/construction.d.ts +0 -1
  214. package/dist/ns/ioNs.d.ts +0 -1
  215. package/dist/ns/measurement.d.ts +0 -1
  216. package/dist/ns/modifiers.d.ts +0 -1
  217. package/dist/ns/patterns.d.ts +0 -1
  218. package/dist/ns/primitives.d.ts +0 -1
  219. package/dist/ns/query.d.ts +0 -1
  220. package/dist/ns/transforms.d.ts +0 -1
  221. package/dist/occtWasmAdapter--TZGP9DX.js +4606 -0
  222. package/dist/occtWasmAdapter-C2VW-uYg.cjs +4719 -0
  223. package/dist/operations/api.d.ts +0 -1
  224. package/dist/operations/assemblyFns.d.ts +0 -1
  225. package/dist/operations/compoundOpsFns.d.ts +0 -1
  226. package/dist/operations/convexHullFns.d.ts +0 -1
  227. package/dist/operations/exporterFns.d.ts +0 -1
  228. package/dist/operations/exporterUtils.d.ts +0 -1
  229. package/dist/operations/exporters.d.ts +0 -1
  230. package/dist/operations/extrudeFns.d.ts +0 -1
  231. package/dist/operations/extrudeUtils.d.ts +0 -1
  232. package/dist/operations/guidedSweepFns.d.ts +0 -1
  233. package/dist/operations/historyFns.d.ts +0 -1
  234. package/dist/operations/loftFns.d.ts +0 -1
  235. package/dist/operations/mateFns.d.ts +0 -1
  236. package/dist/operations/multiSweepFns.d.ts +0 -1
  237. package/dist/operations/patternFns.d.ts +0 -1
  238. package/dist/operations/roofFns.d.ts +0 -1
  239. package/dist/operations/straightSkeleton.d.ts +0 -1
  240. package/dist/operations/sweepFns.d.ts +0 -1
  241. package/dist/operations.cjs +2 -2
  242. package/dist/operations.d.ts +0 -1
  243. package/dist/operations.js +2 -2
  244. package/dist/{planeOps-sTrM3dcQ.js → planeOps-4i2qEraD.js} +4 -4
  245. package/dist/{planeOps-BJOIbn4K.cjs → planeOps-CH4ruLuj.cjs} +4 -4
  246. package/dist/{primitiveFns-BLxaJ40A.cjs → primitiveFns-BH-JQPzh.cjs} +20 -19
  247. package/dist/{primitiveFns-fR9sWOEb.js → primitiveFns-C1p92ZcD.js} +8 -7
  248. package/dist/projection/cameraFns.d.ts +0 -1
  249. package/dist/projection/makeProjectedEdges.d.ts +0 -1
  250. package/dist/projection/projectionPlanes.d.ts +0 -1
  251. package/dist/projection.cjs +9 -0
  252. package/dist/projection.d.ts +11 -0
  253. package/dist/projection.js +2 -0
  254. package/dist/query/cornerFinder.d.ts +0 -1
  255. package/dist/query/directionUtils.d.ts +0 -1
  256. package/dist/query/edgeFinder.d.ts +0 -1
  257. package/dist/query/faceFinder.d.ts +0 -1
  258. package/dist/query/finderCore.d.ts +0 -1
  259. package/dist/query/finderFns.d.ts +0 -1
  260. package/dist/query/helpers.d.ts +0 -1
  261. package/dist/query/shapeDistanceFilter.d.ts +0 -1
  262. package/dist/query/shapeFinders.d.ts +0 -1
  263. package/dist/query/vertexFinder.d.ts +0 -1
  264. package/dist/query/wireFinder.d.ts +0 -1
  265. package/dist/query.cjs +2 -2
  266. package/dist/query.d.ts +0 -1
  267. package/dist/query.js +2 -2
  268. package/dist/result.cjs +1 -1
  269. package/dist/result.d.ts +0 -1
  270. package/dist/result.js +1 -1
  271. package/dist/{shapeFns-183zCtMc.cjs → shapeFns-B7x82K11.cjs} +17 -17
  272. package/dist/{shapeFns-2X3VOi1a.js → shapeFns-BhZ9weSI.js} +4 -4
  273. package/dist/shapeRef.cjs +1 -1
  274. package/dist/shapeRef.d.ts +0 -1
  275. package/dist/shapeRef.js +1 -1
  276. package/dist/{shapeRefFns-CU1Jwq9C.js → shapeRefFns-B9PsEqWf.js} +6 -4
  277. package/dist/{shapeRefFns-CFyv5cdW.cjs → shapeRefFns-wDY88A8u.cjs} +8 -6
  278. package/dist/{shapeTypes-C0MDggKf.cjs → shapeTypes-BTt_LLbk.cjs} +6922 -7884
  279. package/dist/{shapeTypes-CN0GUoHr.js → shapeTypes-C--1jaT1.js} +6900 -7862
  280. package/dist/sketching/cannedSketches.d.ts +0 -1
  281. package/dist/sketching/compoundSketch.d.ts +8 -7
  282. package/dist/sketching/draw3d.d.ts +1 -2
  283. package/dist/sketching/drawFns.d.ts +4 -3
  284. package/dist/sketching/{draw.d.ts → drawing.d.ts} +2 -127
  285. package/dist/sketching/drawingFactories.d.ts +94 -0
  286. package/dist/sketching/drawingPen.d.ts +34 -0
  287. package/dist/sketching/faceSketcher.d.ts +52 -0
  288. package/dist/sketching/shortcuts.d.ts +0 -1
  289. package/dist/sketching/sketch.d.ts +64 -10
  290. package/dist/sketching/sketchFns.d.ts +42 -95
  291. package/dist/sketching/sketcher.d.ts +2 -3
  292. package/dist/sketching/sketches.d.ts +5 -6
  293. package/dist/sketching.cjs +19 -18
  294. package/dist/sketching.d.ts +8 -5
  295. package/dist/sketching.js +3 -2
  296. package/dist/{solidBuilders-DACzFqvX.cjs → solidBuilders-CX_197Xm.cjs} +3 -3
  297. package/dist/{solidBuilders-BuS5ByIl.js → solidBuilders-Xs7VDMGD.js} +3 -3
  298. package/dist/{surfaceBuilders-CbH4FIW5.cjs → surfaceBuilders-CYeTNW33.cjs} +25 -3
  299. package/dist/{surfaceBuilders-BVH2SL-z.js → surfaceBuilders-CinmHCbZ.js} +20 -4
  300. package/dist/text/fontRegistry.d.ts +22 -0
  301. package/dist/text/sketchText.d.ts +30 -0
  302. package/dist/text/textBlueprints.d.ts +0 -91
  303. package/dist/text/textMetrics.d.ts +39 -0
  304. package/dist/text.cjs +9 -0
  305. package/dist/text.d.ts +12 -0
  306. package/dist/text.js +3 -0
  307. package/dist/textBlueprints-Do6xNsLt.js +643 -0
  308. package/dist/textBlueprints-oWhiABaY.cjs +800 -0
  309. package/dist/textMetrics-BjJ8sn_e.js +69 -0
  310. package/dist/textMetrics-CUvtglQE.cjs +86 -0
  311. package/dist/topology/adjacencyFns.d.ts +0 -1
  312. package/dist/topology/api.d.ts +0 -1
  313. package/dist/topology/apiTypes.d.ts +0 -1
  314. package/dist/topology/booleanDiagnosticFns.d.ts +0 -1
  315. package/dist/topology/booleanFns.d.ts +0 -1
  316. package/dist/topology/cast.d.ts +0 -1
  317. package/dist/topology/chamferAngleFns.d.ts +0 -1
  318. package/dist/topology/compoundOpsFns.d.ts +0 -1
  319. package/dist/topology/curveBuilders.d.ts +12 -1
  320. package/dist/topology/curveFns.d.ts +0 -1
  321. package/dist/topology/evolutionFns.d.ts +0 -1
  322. package/dist/topology/faceFns.d.ts +0 -1
  323. package/dist/topology/healingFns.d.ts +0 -1
  324. package/dist/topology/hullFns.d.ts +0 -1
  325. package/dist/topology/index.d.ts +0 -1
  326. package/dist/topology/meshCache.d.ts +0 -1
  327. package/dist/topology/meshFns.d.ts +0 -1
  328. package/dist/topology/metadata/colorFns.d.ts +0 -1
  329. package/dist/topology/metadata/faceTagFns.d.ts +0 -1
  330. package/dist/topology/metadata/metadataPropagation.d.ts +0 -1
  331. package/dist/topology/metadata/originTrackingFns.d.ts +0 -1
  332. package/dist/topology/minkowskiFns.d.ts +0 -1
  333. package/dist/topology/modifierFns.d.ts +0 -1
  334. package/dist/topology/nurbsFns.d.ts +0 -1
  335. package/dist/topology/polyhedronFns.d.ts +0 -1
  336. package/dist/topology/positionFns.d.ts +0 -1
  337. package/dist/topology/primitiveFns.d.ts +0 -1
  338. package/dist/topology/shapeBooleans.d.ts +0 -1
  339. package/dist/topology/shapeFns.d.ts +0 -1
  340. package/dist/topology/shapeHelpers.d.ts +0 -1
  341. package/dist/topology/shapeModifiers.d.ts +0 -1
  342. package/dist/topology/shapeRef/index.d.ts +0 -1
  343. package/dist/topology/shapeRef/scoring.d.ts +0 -1
  344. package/dist/topology/shapeRef/shapeRefFns.d.ts +0 -1
  345. package/dist/topology/shapeRef/shapeRefTypes.d.ts +0 -1
  346. package/dist/topology/shapeUtils.d.ts +0 -1
  347. package/dist/topology/solidBuilders.d.ts +0 -1
  348. package/dist/topology/surfaceBuilders.d.ts +0 -1
  349. package/dist/topology/surfaceFns.d.ts +0 -1
  350. package/dist/topology/threeHelpers.d.ts +0 -1
  351. package/dist/topology/topologyQueryFns.d.ts +0 -1
  352. package/dist/topology/transformFns.d.ts +0 -1
  353. package/dist/topology/wrapperFns.d.ts +0 -1
  354. package/dist/topology.cjs +18 -17
  355. package/dist/topology.d.ts +0 -1
  356. package/dist/topology.js +7 -6
  357. package/dist/{faceFns-22idS-ht.cjs → topologyQueryFns-BU0qdNJP.cjs} +2 -342
  358. package/dist/{faceFns-NbWd8-iR.js → topologyQueryFns-Dhf85ZBK.js} +3 -217
  359. package/dist/utils/arrayAccess.d.ts +0 -1
  360. package/dist/utils/bug.d.ts +0 -1
  361. package/dist/utils/ioFilename.d.ts +0 -1
  362. package/dist/utils/precisionRound.d.ts +0 -1
  363. package/dist/utils/range.d.ts +0 -1
  364. package/dist/utils/uuid.d.ts +0 -1
  365. package/dist/utils/vec2d.d.ts +0 -1
  366. package/dist/utils/vec3.d.ts +8 -1
  367. package/dist/utils/zip.d.ts +0 -1
  368. package/dist/vec3-BRj3eI54.js +25 -0
  369. package/dist/vec3-S4Oh59IX.cjs +36 -0
  370. package/dist/vectors.cjs +4 -4
  371. package/dist/vectors.d.ts +0 -1
  372. package/dist/vectors.js +4 -4
  373. package/dist/worker/index.d.ts +0 -1
  374. package/dist/worker/protocol.d.ts +0 -1
  375. package/dist/worker/taskQueue.d.ts +0 -1
  376. package/dist/worker/workerClient.d.ts +0 -1
  377. package/dist/worker/workerHandler.d.ts +0 -1
  378. package/dist/worker.cjs +1 -1
  379. package/dist/worker.d.ts +0 -1
  380. package/dist/worker.js +1 -1
  381. package/package.json +35 -14
  382. package/dist/2d/blueprints/blueprint.d.ts.map +0 -1
  383. package/dist/2d/blueprints/blueprintApproximations.d.ts.map +0 -1
  384. package/dist/2d/blueprints/blueprintCustomCorners.d.ts.map +0 -1
  385. package/dist/2d/blueprints/blueprintFns.d.ts.map +0 -1
  386. package/dist/2d/blueprints/blueprintOffset.d.ts.map +0 -1
  387. package/dist/2d/blueprints/blueprints.d.ts.map +0 -1
  388. package/dist/2d/blueprints/boolean2D.d.ts.map +0 -1
  389. package/dist/2d/blueprints/booleanHelpers.d.ts.map +0 -1
  390. package/dist/2d/blueprints/booleanOperations.d.ts.map +0 -1
  391. package/dist/2d/blueprints/cannedBlueprints.d.ts.map +0 -1
  392. package/dist/2d/blueprints/compoundBlueprint.d.ts.map +0 -1
  393. package/dist/2d/blueprints/index.d.ts.map +0 -1
  394. package/dist/2d/blueprints/intersectionSegments.d.ts.map +0 -1
  395. package/dist/2d/blueprints/lib.d.ts.map +0 -1
  396. package/dist/2d/blueprints/segmentAssembly.d.ts.map +0 -1
  397. package/dist/2d/blueprints/svg.d.ts.map +0 -1
  398. package/dist/2d/curve2dGeometryFns.d.ts.map +0 -1
  399. package/dist/2d/curves.d.ts.map +0 -1
  400. package/dist/2d/lib/approximations.d.ts.map +0 -1
  401. package/dist/2d/lib/boundingBox2d.d.ts.map +0 -1
  402. package/dist/2d/lib/curve2D.d.ts.map +0 -1
  403. package/dist/2d/lib/curve2dFns.d.ts.map +0 -1
  404. package/dist/2d/lib/customCorners.d.ts.map +0 -1
  405. package/dist/2d/lib/definitions.d.ts.map +0 -1
  406. package/dist/2d/lib/index.d.ts.map +0 -1
  407. package/dist/2d/lib/intersections.d.ts.map +0 -1
  408. package/dist/2d/lib/makeCurves.d.ts.map +0 -1
  409. package/dist/2d/lib/offset.d.ts.map +0 -1
  410. package/dist/2d/lib/precision.d.ts.map +0 -1
  411. package/dist/2d/lib/stitching.d.ts.map +0 -1
  412. package/dist/2d/lib/svgPath.d.ts.map +0 -1
  413. package/dist/2d/lib/utils.d.ts.map +0 -1
  414. package/dist/2d/lib/vectorOperations.d.ts.map +0 -1
  415. package/dist/2d.d.ts.map +0 -1
  416. package/dist/core/constants.d.ts.map +0 -1
  417. package/dist/core/curve2dHandle.d.ts.map +0 -1
  418. package/dist/core/dimensionTypes.d.ts.map +0 -1
  419. package/dist/core/disposal.d.ts.map +0 -1
  420. package/dist/core/errors.d.ts.map +0 -1
  421. package/dist/core/kernelBoundary.d.ts.map +0 -1
  422. package/dist/core/kernelCall.d.ts.map +0 -1
  423. package/dist/core/kernelErrorTranslation.d.ts.map +0 -1
  424. package/dist/core/planeOps.d.ts.map +0 -1
  425. package/dist/core/planeTypes.d.ts.map +0 -1
  426. package/dist/core/result.d.ts.map +0 -1
  427. package/dist/core/shapeTypeCache.d.ts.map +0 -1
  428. package/dist/core/shapeTypes.d.ts.map +0 -1
  429. package/dist/core/typeDiscriminants.d.ts.map +0 -1
  430. package/dist/core/types.d.ts.map +0 -1
  431. package/dist/core/validityTypes.d.ts.map +0 -1
  432. package/dist/core/vecOps.d.ts.map +0 -1
  433. package/dist/core.d.ts.map +0 -1
  434. package/dist/index.d.ts.map +0 -1
  435. package/dist/io/dxfExportFns.d.ts.map +0 -1
  436. package/dist/io/dxfImportFns.d.ts.map +0 -1
  437. package/dist/io/gltfExportFns.d.ts.map +0 -1
  438. package/dist/io/gltfImportFns.d.ts.map +0 -1
  439. package/dist/io/importFns.d.ts.map +0 -1
  440. package/dist/io/ioUtils.d.ts.map +0 -1
  441. package/dist/io/objExportFns.d.ts.map +0 -1
  442. package/dist/io/objImportFns.d.ts.map +0 -1
  443. package/dist/io/stepConfigFns.d.ts.map +0 -1
  444. package/dist/io/svgImportFns.d.ts.map +0 -1
  445. package/dist/io/threemfExportFns.d.ts.map +0 -1
  446. package/dist/io/threemfImportFns.d.ts.map +0 -1
  447. package/dist/io.d.ts.map +0 -1
  448. package/dist/kernel/brepkit/booleanOps.d.ts.map +0 -1
  449. package/dist/kernel/brepkit/brepkitAdapter.d.ts.map +0 -1
  450. package/dist/kernel/brepkit/brepkitWasmTypes.d.ts.map +0 -1
  451. package/dist/kernel/brepkit/constructionOps.d.ts.map +0 -1
  452. package/dist/kernel/brepkit/evolutionOps.d.ts.map +0 -1
  453. package/dist/kernel/brepkit/geometryOps.d.ts.map +0 -1
  454. package/dist/kernel/brepkit/helpers.d.ts.map +0 -1
  455. package/dist/kernel/brepkit/internalOps.d.ts.map +0 -1
  456. package/dist/kernel/brepkit/ioOps.d.ts.map +0 -1
  457. package/dist/kernel/brepkit/kernel2dOps.d.ts.map +0 -1
  458. package/dist/kernel/brepkit/measureOps.d.ts.map +0 -1
  459. package/dist/kernel/brepkit/meshOps.d.ts.map +0 -1
  460. package/dist/kernel/brepkit/modifierOps.d.ts.map +0 -1
  461. package/dist/kernel/brepkit/repairOps.d.ts.map +0 -1
  462. package/dist/kernel/brepkit/sketchOps.d.ts.map +0 -1
  463. package/dist/kernel/brepkit/sweepOps.d.ts.map +0 -1
  464. package/dist/kernel/brepkit/topologyOps.d.ts.map +0 -1
  465. package/dist/kernel/brepkit/transformOps.d.ts.map +0 -1
  466. package/dist/kernel/geometry2d.d.ts.map +0 -1
  467. package/dist/kernel/index.d.ts.map +0 -1
  468. package/dist/kernel/interfaces/booleanOps.d.ts.map +0 -1
  469. package/dist/kernel/interfaces/builderOps.d.ts.map +0 -1
  470. package/dist/kernel/interfaces/core.d.ts.map +0 -1
  471. package/dist/kernel/interfaces/curveOps.d.ts.map +0 -1
  472. package/dist/kernel/interfaces/evolutionOps.d.ts.map +0 -1
  473. package/dist/kernel/interfaces/index.d.ts.map +0 -1
  474. package/dist/kernel/interfaces/ioOps.d.ts.map +0 -1
  475. package/dist/kernel/interfaces/measureOps.d.ts.map +0 -1
  476. package/dist/kernel/interfaces/meshOps.d.ts.map +0 -1
  477. package/dist/kernel/interfaces/modifierOps.d.ts.map +0 -1
  478. package/dist/kernel/interfaces/primitiveOps.d.ts.map +0 -1
  479. package/dist/kernel/interfaces/repairOps.d.ts.map +0 -1
  480. package/dist/kernel/interfaces/surfaceOps.d.ts.map +0 -1
  481. package/dist/kernel/interfaces/sweepOps.d.ts.map +0 -1
  482. package/dist/kernel/interfaces/topologyOps.d.ts.map +0 -1
  483. package/dist/kernel/interfaces/transformOps.d.ts.map +0 -1
  484. package/dist/kernel/kernel2dTypes.d.ts.map +0 -1
  485. package/dist/kernel/occt/advancedOps.d.ts.map +0 -1
  486. package/dist/kernel/occt/booleanBatchOps.d.ts.map +0 -1
  487. package/dist/kernel/occt/booleanOps.d.ts.map +0 -1
  488. package/dist/kernel/occt/booleanPipelineOps.d.ts.map +0 -1
  489. package/dist/kernel/occt/constructorOps.d.ts.map +0 -1
  490. package/dist/kernel/occt/curveOps.d.ts.map +0 -1
  491. package/dist/kernel/occt/defaultAdapter.d.ts.map +0 -1
  492. package/dist/kernel/occt/evolutionOps.d.ts.map +0 -1
  493. package/dist/kernel/occt/extendedConstructorOps.d.ts.map +0 -1
  494. package/dist/kernel/occt/geometryQueryOps.d.ts.map +0 -1
  495. package/dist/kernel/occt/healingOps.d.ts.map +0 -1
  496. package/dist/kernel/occt/historyOps.d.ts.map +0 -1
  497. package/dist/kernel/occt/hullOps.d.ts.map +0 -1
  498. package/dist/kernel/occt/ioOps.d.ts.map +0 -1
  499. package/dist/kernel/occt/kernel2dOps.d.ts.map +0 -1
  500. package/dist/kernel/occt/measureOps.d.ts.map +0 -1
  501. package/dist/kernel/occt/meshOps.d.ts.map +0 -1
  502. package/dist/kernel/occt/modifierOps.d.ts.map +0 -1
  503. package/dist/kernel/occt/nurbsQueryOps.d.ts.map +0 -1
  504. package/dist/kernel/occt/sweepOps.d.ts.map +0 -1
  505. package/dist/kernel/occt/topologyOps.d.ts.map +0 -1
  506. package/dist/kernel/occt/transformOps.d.ts.map +0 -1
  507. package/dist/kernel/occt/wasmTypes/externals.d.ts.map +0 -1
  508. package/dist/kernel/occt/wasmTypes/index.d.ts.map +0 -1
  509. package/dist/kernel/occt/wasmTypes/occtBuilders.d.ts.map +0 -1
  510. package/dist/kernel/occtWasm/occtWasmAdapter.d.ts.map +0 -1
  511. package/dist/kernel/occtWasm/occtWasmTypes.d.ts.map +0 -1
  512. package/dist/kernel/perfStats.d.ts.map +0 -1
  513. package/dist/kernel/solverAdapter.d.ts.map +0 -1
  514. package/dist/kernel/types.d.ts.map +0 -1
  515. package/dist/measurement/interferenceFns.d.ts.map +0 -1
  516. package/dist/measurement/measureCache.d.ts.map +0 -1
  517. package/dist/measurement/measureFns.d.ts.map +0 -1
  518. package/dist/measurement/measureTypes.d.ts.map +0 -1
  519. package/dist/measurement.d.ts.map +0 -1
  520. package/dist/ns/booleans.d.ts.map +0 -1
  521. package/dist/ns/construction.d.ts.map +0 -1
  522. package/dist/ns/ioNs.d.ts.map +0 -1
  523. package/dist/ns/measurement.d.ts.map +0 -1
  524. package/dist/ns/modifiers.d.ts.map +0 -1
  525. package/dist/ns/patterns.d.ts.map +0 -1
  526. package/dist/ns/primitives.d.ts.map +0 -1
  527. package/dist/ns/query.d.ts.map +0 -1
  528. package/dist/ns/transforms.d.ts.map +0 -1
  529. package/dist/occtWasmAdapter-CuZRRioz.cjs +0 -3947
  530. package/dist/occtWasmAdapter-DIhUXubY.js +0 -3834
  531. package/dist/operations/api.d.ts.map +0 -1
  532. package/dist/operations/assemblyFns.d.ts.map +0 -1
  533. package/dist/operations/compoundOpsFns.d.ts.map +0 -1
  534. package/dist/operations/convexHullFns.d.ts.map +0 -1
  535. package/dist/operations/exporterFns.d.ts.map +0 -1
  536. package/dist/operations/exporterUtils.d.ts.map +0 -1
  537. package/dist/operations/exporters.d.ts.map +0 -1
  538. package/dist/operations/extrudeFns.d.ts.map +0 -1
  539. package/dist/operations/extrudeUtils.d.ts.map +0 -1
  540. package/dist/operations/guidedSweepFns.d.ts.map +0 -1
  541. package/dist/operations/historyFns.d.ts.map +0 -1
  542. package/dist/operations/loftFns.d.ts.map +0 -1
  543. package/dist/operations/mateFns.d.ts.map +0 -1
  544. package/dist/operations/multiSweepFns.d.ts.map +0 -1
  545. package/dist/operations/patternFns.d.ts.map +0 -1
  546. package/dist/operations/roofFns.d.ts.map +0 -1
  547. package/dist/operations/straightSkeleton.d.ts.map +0 -1
  548. package/dist/operations/sweepFns.d.ts.map +0 -1
  549. package/dist/operations.d.ts.map +0 -1
  550. package/dist/projection/cameraFns.d.ts.map +0 -1
  551. package/dist/projection/makeProjectedEdges.d.ts.map +0 -1
  552. package/dist/projection/projectionPlanes.d.ts.map +0 -1
  553. package/dist/query/cornerFinder.d.ts.map +0 -1
  554. package/dist/query/directionUtils.d.ts.map +0 -1
  555. package/dist/query/edgeFinder.d.ts.map +0 -1
  556. package/dist/query/faceFinder.d.ts.map +0 -1
  557. package/dist/query/finderCore.d.ts.map +0 -1
  558. package/dist/query/finderFns.d.ts.map +0 -1
  559. package/dist/query/helpers.d.ts.map +0 -1
  560. package/dist/query/shapeDistanceFilter.d.ts.map +0 -1
  561. package/dist/query/shapeFinders.d.ts.map +0 -1
  562. package/dist/query/vertexFinder.d.ts.map +0 -1
  563. package/dist/query/wireFinder.d.ts.map +0 -1
  564. package/dist/query.d.ts.map +0 -1
  565. package/dist/quick.d.ts.map +0 -1
  566. package/dist/result.d.ts.map +0 -1
  567. package/dist/shapeRef.d.ts.map +0 -1
  568. package/dist/sketching/cannedSketches.d.ts.map +0 -1
  569. package/dist/sketching/compoundSketch.d.ts.map +0 -1
  570. package/dist/sketching/draw.d.ts.map +0 -1
  571. package/dist/sketching/draw3d.d.ts.map +0 -1
  572. package/dist/sketching/drawFns.d.ts.map +0 -1
  573. package/dist/sketching/ellipseUtils.d.ts.map +0 -1
  574. package/dist/sketching/shortcuts.d.ts.map +0 -1
  575. package/dist/sketching/sketch.d.ts.map +0 -1
  576. package/dist/sketching/sketchFns.d.ts.map +0 -1
  577. package/dist/sketching/sketchLib.d.ts +0 -47
  578. package/dist/sketching/sketchLib.d.ts.map +0 -1
  579. package/dist/sketching/sketchUtils.d.ts +0 -8
  580. package/dist/sketching/sketchUtils.d.ts.map +0 -1
  581. package/dist/sketching/sketcher.d.ts.map +0 -1
  582. package/dist/sketching/sketcher2d.d.ts.map +0 -1
  583. package/dist/sketching/sketcherlib.d.ts.map +0 -1
  584. package/dist/sketching/sketches.d.ts.map +0 -1
  585. package/dist/sketching.d.ts.map +0 -1
  586. package/dist/text/textBlueprints.d.ts.map +0 -1
  587. package/dist/topology/adjacencyFns.d.ts.map +0 -1
  588. package/dist/topology/api.d.ts.map +0 -1
  589. package/dist/topology/apiTypes.d.ts.map +0 -1
  590. package/dist/topology/booleanDiagnosticFns.d.ts.map +0 -1
  591. package/dist/topology/booleanFns.d.ts.map +0 -1
  592. package/dist/topology/cast.d.ts.map +0 -1
  593. package/dist/topology/chamferAngleFns.d.ts.map +0 -1
  594. package/dist/topology/compoundOpsFns.d.ts.map +0 -1
  595. package/dist/topology/curveBuilders.d.ts.map +0 -1
  596. package/dist/topology/curveFns.d.ts.map +0 -1
  597. package/dist/topology/evolutionFns.d.ts.map +0 -1
  598. package/dist/topology/faceFns.d.ts.map +0 -1
  599. package/dist/topology/healingFns.d.ts.map +0 -1
  600. package/dist/topology/hullFns.d.ts.map +0 -1
  601. package/dist/topology/index.d.ts.map +0 -1
  602. package/dist/topology/meshCache.d.ts.map +0 -1
  603. package/dist/topology/meshFns.d.ts.map +0 -1
  604. package/dist/topology/metadata/colorFns.d.ts.map +0 -1
  605. package/dist/topology/metadata/faceTagFns.d.ts.map +0 -1
  606. package/dist/topology/metadata/metadataPropagation.d.ts.map +0 -1
  607. package/dist/topology/metadata/originTrackingFns.d.ts.map +0 -1
  608. package/dist/topology/minkowskiFns.d.ts.map +0 -1
  609. package/dist/topology/modifierFns.d.ts.map +0 -1
  610. package/dist/topology/nurbsFns.d.ts.map +0 -1
  611. package/dist/topology/polyhedronFns.d.ts.map +0 -1
  612. package/dist/topology/positionFns.d.ts.map +0 -1
  613. package/dist/topology/primitiveFns.d.ts.map +0 -1
  614. package/dist/topology/shapeBooleans.d.ts.map +0 -1
  615. package/dist/topology/shapeFns.d.ts.map +0 -1
  616. package/dist/topology/shapeHelpers.d.ts.map +0 -1
  617. package/dist/topology/shapeModifiers.d.ts.map +0 -1
  618. package/dist/topology/shapeRef/index.d.ts.map +0 -1
  619. package/dist/topology/shapeRef/scoring.d.ts.map +0 -1
  620. package/dist/topology/shapeRef/shapeRefFns.d.ts.map +0 -1
  621. package/dist/topology/shapeRef/shapeRefTypes.d.ts.map +0 -1
  622. package/dist/topology/shapeUtils.d.ts.map +0 -1
  623. package/dist/topology/solidBuilders.d.ts.map +0 -1
  624. package/dist/topology/surfaceBuilders.d.ts.map +0 -1
  625. package/dist/topology/surfaceFns.d.ts.map +0 -1
  626. package/dist/topology/threeHelpers.d.ts.map +0 -1
  627. package/dist/topology/topologyQueryFns.d.ts.map +0 -1
  628. package/dist/topology/transformFns.d.ts.map +0 -1
  629. package/dist/topology/wrapperFns.d.ts.map +0 -1
  630. package/dist/topology.d.ts.map +0 -1
  631. package/dist/utils/arrayAccess.d.ts.map +0 -1
  632. package/dist/utils/bug.d.ts.map +0 -1
  633. package/dist/utils/ioFilename.d.ts.map +0 -1
  634. package/dist/utils/precisionRound.d.ts.map +0 -1
  635. package/dist/utils/range.d.ts.map +0 -1
  636. package/dist/utils/uuid.d.ts.map +0 -1
  637. package/dist/utils/vec2d.d.ts.map +0 -1
  638. package/dist/utils/vec3.d.ts.map +0 -1
  639. package/dist/utils/zip.d.ts.map +0 -1
  640. package/dist/vectors.d.ts.map +0 -1
  641. package/dist/worker/index.d.ts.map +0 -1
  642. package/dist/worker/protocol.d.ts.map +0 -1
  643. package/dist/worker/taskQueue.d.ts.map +0 -1
  644. package/dist/worker/workerClient.d.ts.map +0 -1
  645. package/dist/worker/workerHandler.d.ts.map +0 -1
  646. package/dist/worker.d.ts.map +0 -1
  647. /package/dist/{arrayAccess-DsnQpdSD.cjs → arrayAccess-7pTWqkJu.cjs} +0 -0
  648. /package/dist/{arrayAccess-tCIbjLs5.js → arrayAccess-C5IWcxs9.js} +0 -0
  649. /package/dist/{constants-csSEYddm.js → constants-Ci5CA3aZ.js} +0 -0
  650. /package/dist/{constants-BNP_xnBN.cjs → constants-DTorLmes.cjs} +0 -0
  651. /package/dist/{types--GD-LVc6.js → types-BIdk_GJY.js} +0 -0
  652. /package/dist/{types-gLi9wL0N.cjs → types-CDkxah-M.cjs} +0 -0
  653. /package/dist/{vecOps-CODplJp3.cjs → vecOps-D7xplSx8.cjs} +0 -0
  654. /package/dist/{vecOps-B-PCHgyB.js → vecOps-DVROrqTV.js} +0 -0
  655. /package/dist/{workerHandler-C-3cFcsQ.cjs → workerHandler-C7seK7H-.cjs} +0 -0
  656. /package/dist/{workerHandler-Dm0_0F8Z.js → workerHandler-DaulgMax.js} +0 -0
@@ -1,6 +1,5 @@
1
- const require_shapeTypes = require("./shapeTypes-C0MDggKf.cjs");
2
- const require_errors = require("./errors-CXRNVCec.cjs");
3
- const require_types = require("./types-gLi9wL0N.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BTt_LLbk.cjs");
2
+ const require_errors = require("./errors-Dv6pfNct.cjs");
4
3
  //#region src/core/kernelCall.ts
5
4
  function buildError(kind, code, message, cause, suggestion) {
6
5
  const base = {
@@ -91,89 +90,6 @@ function kernelCallScoped(fn, code, message, kind = "KERNEL_OPERATION") {
91
90
  }
92
91
  }
93
92
  //#endregion
94
- //#region src/topology/cast.ts
95
- var TOPO_ENUM = {
96
- compound: 0,
97
- solidCompound: 1,
98
- solid: 2,
99
- shell: 3,
100
- face: 4,
101
- wire: 5,
102
- edge: 6,
103
- vertex: 7,
104
- shape: 8
105
- };
106
- /** Convert a TopoEntity string to its kernel TopAbs_ShapeEnum value. */
107
- var asTopo = (entity) => {
108
- return TOPO_ENUM[entity];
109
- };
110
- /**
111
- * Iterate over all sub-shapes of a given type within a shape.
112
- *
113
- * @remarks Uses the kernel adapter's iterShapes rather than direct TopExp_Explorer.
114
- */
115
- var TOPO_TO_SHAPE_TYPE = {
116
- vertex: "vertex",
117
- edge: "edge",
118
- wire: "wire",
119
- face: "face",
120
- shell: "shell",
121
- solid: "solid",
122
- solidCompound: "compsolid",
123
- compound: "compound",
124
- shape: "compound"
125
- };
126
- var iterTopo = function* iterTopo(shape, topo) {
127
- const shapeType = TOPO_TO_SHAPE_TYPE[topo];
128
- if (shapeType) {
129
- const shapes = require_shapeTypes.getKernel().iterShapes(shape, shapeType);
130
- for (const s of shapes) yield s;
131
- }
132
- };
133
- /** Get the TopAbs_ShapeEnum type of an kernel shape, returning Err for null shapes. */
134
- var shapeType = (shape) => {
135
- if (require_shapeTypes.getKernel().isNull(shape)) return require_errors.err(require_errors.typeCastError("NULL_SHAPE", "This shape has no type, it is null"));
136
- return require_errors.ok(shape.ShapeType());
137
- };
138
- /**
139
- * Downcast a generic KernelShape to its concrete kernel type (e.g., kernel topology_Face).
140
- *
141
- * @remarks Uses the kernel adapter's downcast method.
142
- * @returns Ok with the downcasted shape, or Err if the shape type is unknown.
143
- */
144
- function downcast(shape) {
145
- if (require_shapeTypes.getKernel().isNull(shape)) return require_errors.err(require_errors.typeCastError("NULL_SHAPE", "This shape has no type, it is null"));
146
- try {
147
- return require_errors.ok(require_shapeTypes.getKernel().downcast(shape));
148
- } catch {
149
- return require_errors.err(require_errors.typeCastError("NO_WRAPPER", "Could not find a wrapper for this shape type"));
150
- }
151
- }
152
- /**
153
- * Cast a raw kernel shape to its corresponding branded brepjs type (Vertex, Edge, Face, etc.).
154
- *
155
- * Performs downcast + branded handle creation in one step.
156
- *
157
- * @returns Ok with a typed AnyShape, or Err if the shape type is unknown.
158
- */
159
- function cast(shape) {
160
- if (require_shapeTypes.getKernel().isNull(shape)) return require_errors.err(require_errors.typeCastError("NULL_SHAPE", "Cannot cast a null shape"));
161
- return require_errors.ok(require_shapeTypes.castShape(shape));
162
- }
163
- /** Type guard: return true if the shape is a CompSolid. */
164
- function isCompSolid(shape) {
165
- return require_shapeTypes.getKernel().shapeType(shape.wrapped) === "compsolid";
166
- }
167
- /**
168
- * Deserialize a shape from a BREP string representation.
169
- *
170
- * @param data - BREP string produced by toBREP().
171
- * @returns Ok with the deserialized shape, or Err if parsing fails.
172
- */
173
- function fromBREP(data) {
174
- return cast(require_shapeTypes.getKernel().fromBREP(data));
175
- }
176
- //#endregion
177
93
  //#region src/topology/topologyQueryFns.ts
178
94
  /**
179
95
  * Topology query functions — extract sub-shapes, compute bounds, and
@@ -317,196 +233,12 @@ function vertexPosition(vertex) {
317
233
  return require_shapeTypes.getKernel().vertexPosition(vertex.wrapped);
318
234
  }
319
235
  //#endregion
320
- //#region src/topology/faceFns.ts
321
- /**
322
- * Face-specific functions — functional replacements for Face class methods.
323
- * All functions accept branded Face handles and return plain values or branded shapes.
324
- */
325
- /** Map kernel surface type strings to the public API surface type constants. */
326
- var KERNEL_TO_PUBLIC_SURFACE_TYPE = {
327
- plane: "PLANE",
328
- cylinder: "CYLINDRE",
329
- cone: "CONE",
330
- sphere: "SPHERE",
331
- torus: "TORUS",
332
- bezier: "BEZIER_SURFACE",
333
- bspline: "BSPLINE_SURFACE",
334
- revolution: "REVOLUTION_SURFACE",
335
- extrusion: "EXTRUSION_SURFACE",
336
- offset: "OFFSET_SURFACE",
337
- other: "OTHER_SURFACE"
338
- };
339
- /**
340
- * Get the geometric surface type of a face.
341
- *
342
- * @returns Ok with the surface type, or Err for unrecognized kernel surface types.
343
- */
344
- function getSurfaceType(face) {
345
- return require_errors.ok(KERNEL_TO_PUBLIC_SURFACE_TYPE[getCachedSurfaceType(face)]);
346
- }
347
- /** Get the surface type of a face (unwrapped convenience). */
348
- function faceGeomType(face) {
349
- return require_errors.unwrap(getSurfaceType(face));
350
- }
351
- /** Get the topological orientation of a face. */
352
- function faceOrientation(face) {
353
- return require_shapeTypes.getKernel().shapeOrientation(face.wrapped) === "forward" ? "forward" : "backward";
354
- }
355
- /** Flip the orientation of a face. Returns a new face. */
356
- function flipFaceOrientation(face) {
357
- return require_shapeTypes.castShape(require_shapeTypes.getKernel().reverseShape(face.wrapped));
358
- }
359
- /** Get the UV parameter bounds of a face. */
360
- function uvBounds(face) {
361
- return require_shapeTypes.getKernel().uvBounds(face.wrapped);
362
- }
363
- /**
364
- * Get a point on a face surface at normalized UV coordinates (0-1 range).
365
- *
366
- * @param face - The face to evaluate.
367
- * @param u - Normalized U parameter (0-1).
368
- * @param v - Normalized V parameter (0-1).
369
- */
370
- function pointOnSurface(face, u, v) {
371
- const bounds = uvBounds(face);
372
- const absU = u * (bounds.uMax - bounds.uMin) + bounds.uMin;
373
- const absV = v * (bounds.vMax - bounds.vMin) + bounds.vMin;
374
- return require_shapeTypes.getKernel().pointOnSurface(face.wrapped, absU, absV);
375
- }
376
- /** Get the UV coordinates on a face for a given 3D point. */
377
- function uvCoordinates(face, point) {
378
- const v = require_types.toVec3(point);
379
- const result = require_shapeTypes.getKernel().uvFromPoint(face.wrapped, v);
380
- if (!result) return [0, 0];
381
- return result;
382
- }
383
- /**
384
- * Project a 3D point onto a face surface.
385
- *
386
- * Returns the projected point, its UV coordinates, and the distance
387
- * from the original point to the surface.
388
- */
389
- function projectPointOnFace(face, point) {
390
- const v = require_types.toVec3(point);
391
- try {
392
- const vMut = v;
393
- const uvResult = require_shapeTypes.getKernel().uvFromPoint(face.wrapped, vMut);
394
- if (!uvResult) return require_errors.err(require_errors.typeCastError("PROJECTION_FAILED", "No projection found on the face"));
395
- const projectedPoint = require_shapeTypes.getKernel().projectPointOnFace(face.wrapped, vMut);
396
- const dx = v[0] - projectedPoint[0];
397
- const dy = v[1] - projectedPoint[1];
398
- const dz = v[2] - projectedPoint[2];
399
- return require_errors.ok({
400
- uv: uvResult,
401
- point: projectedPoint,
402
- distance: Math.sqrt(dx * dx + dy * dy + dz * dz)
403
- });
404
- } catch (e) {
405
- return require_errors.err(require_errors.typeCastError("PROJECTION_FAILED", `Point projection failed: ${e instanceof Error ? e.message : String(e)}`));
406
- }
407
- }
408
- /** Get the surface normal at a point (or at the center if no point given). */
409
- function normalAt(face, locationPoint) {
410
- let u;
411
- let v;
412
- if (!locationPoint) {
413
- const bounds = uvBounds(face);
414
- u = .5 * (bounds.uMin + bounds.uMax);
415
- v = .5 * (bounds.vMin + bounds.vMax);
416
- } else [u, v] = uvCoordinates(face, locationPoint);
417
- return require_shapeTypes.getKernel().surfaceNormal(face.wrapped, u, v);
418
- }
419
- /** Get the center of mass of a face. */
420
- function faceCenter(face) {
421
- return require_shapeTypes.getKernel().surfaceCenterOfMass(face.wrapped);
422
- }
423
- /**
424
- * Classify a 3D point's position relative to a face boundary.
425
- * Projects the point onto the face's surface and classifies the UV result.
426
- *
427
- * @returns 'in' if inside, 'on' if on the boundary, 'out' if outside
428
- */
429
- function classifyPointOnFace(face, point, tolerance = 1e-6) {
430
- const [u, v] = uvCoordinates(face, point);
431
- return require_shapeTypes.getKernel().classifyPointOnFace(face.wrapped, u, v, tolerance);
432
- }
433
- /** Get the outer wire of a face. The outer boundary of a face is always closed. */
434
- function outerWire(face) {
435
- return require_shapeTypes.castShape(require_shapeTypes.getKernel().outerWire(face.wrapped));
436
- }
437
- /**
438
- * Remove all holes (inner wires) from a face, returning a new face with only the outer boundary.
439
- * Useful for defeaturing workflows where holes need to be temporarily or permanently filled.
440
- */
441
- function removeHolesFromFace(face) {
442
- return require_shapeTypes.castShape(require_shapeTypes.getKernel().removeHolesFromFace(face.wrapped));
443
- }
444
- /** Get the inner wires (holes) of a face. Hole boundaries are always closed. */
445
- function innerWires(face) {
446
- const outer = outerWire(face);
447
- return Array.from(iterTopo(face.wrapped, "wire")).map((w) => require_shapeTypes.castShape(require_errors.unwrap(downcast(w)))).filter((w) => !require_shapeTypes.getKernel().isSame(w.wrapped, outer.wrapped));
448
- }
449
- //#endregion
450
- Object.defineProperty(exports, "asTopo", {
451
- enumerable: true,
452
- get: function() {
453
- return asTopo;
454
- }
455
- });
456
- Object.defineProperty(exports, "cast", {
457
- enumerable: true,
458
- get: function() {
459
- return cast;
460
- }
461
- });
462
- Object.defineProperty(exports, "classifyPointOnFace", {
463
- enumerable: true,
464
- get: function() {
465
- return classifyPointOnFace;
466
- }
467
- });
468
236
  Object.defineProperty(exports, "describe", {
469
237
  enumerable: true,
470
238
  get: function() {
471
239
  return describe;
472
240
  }
473
241
  });
474
- Object.defineProperty(exports, "downcast", {
475
- enumerable: true,
476
- get: function() {
477
- return downcast;
478
- }
479
- });
480
- Object.defineProperty(exports, "faceCenter", {
481
- enumerable: true,
482
- get: function() {
483
- return faceCenter;
484
- }
485
- });
486
- Object.defineProperty(exports, "faceGeomType", {
487
- enumerable: true,
488
- get: function() {
489
- return faceGeomType;
490
- }
491
- });
492
- Object.defineProperty(exports, "faceOrientation", {
493
- enumerable: true,
494
- get: function() {
495
- return faceOrientation;
496
- }
497
- });
498
- Object.defineProperty(exports, "flipFaceOrientation", {
499
- enumerable: true,
500
- get: function() {
501
- return flipFaceOrientation;
502
- }
503
- });
504
- Object.defineProperty(exports, "fromBREP", {
505
- enumerable: true,
506
- get: function() {
507
- return fromBREP;
508
- }
509
- });
510
242
  Object.defineProperty(exports, "getBounds", {
511
243
  enumerable: true,
512
244
  get: function() {
@@ -549,12 +281,6 @@ Object.defineProperty(exports, "getOrCreateCache", {
549
281
  return getOrCreateCache;
550
282
  }
551
283
  });
552
- Object.defineProperty(exports, "getSurfaceType", {
553
- enumerable: true,
554
- get: function() {
555
- return getSurfaceType;
556
- }
557
- });
558
284
  Object.defineProperty(exports, "getVertices", {
559
285
  enumerable: true,
560
286
  get: function() {
@@ -567,24 +293,12 @@ Object.defineProperty(exports, "getWires", {
567
293
  return getWires;
568
294
  }
569
295
  });
570
- Object.defineProperty(exports, "innerWires", {
571
- enumerable: true,
572
- get: function() {
573
- return innerWires;
574
- }
575
- });
576
296
  Object.defineProperty(exports, "invalidateShapeCache", {
577
297
  enumerable: true,
578
298
  get: function() {
579
299
  return invalidateShapeCache;
580
300
  }
581
301
  });
582
- Object.defineProperty(exports, "isCompSolid", {
583
- enumerable: true,
584
- get: function() {
585
- return isCompSolid;
586
- }
587
- });
588
302
  Object.defineProperty(exports, "iterEdges", {
589
303
  enumerable: true,
590
304
  get: function() {
@@ -597,12 +311,6 @@ Object.defineProperty(exports, "iterFaces", {
597
311
  return iterFaces;
598
312
  }
599
313
  });
600
- Object.defineProperty(exports, "iterTopo", {
601
- enumerable: true,
602
- get: function() {
603
- return iterTopo;
604
- }
605
- });
606
314
  Object.defineProperty(exports, "iterVertices", {
607
315
  enumerable: true,
608
316
  get: function() {
@@ -633,54 +341,6 @@ Object.defineProperty(exports, "kernelCallScoped", {
633
341
  return kernelCallScoped;
634
342
  }
635
343
  });
636
- Object.defineProperty(exports, "normalAt", {
637
- enumerable: true,
638
- get: function() {
639
- return normalAt;
640
- }
641
- });
642
- Object.defineProperty(exports, "outerWire", {
643
- enumerable: true,
644
- get: function() {
645
- return outerWire;
646
- }
647
- });
648
- Object.defineProperty(exports, "pointOnSurface", {
649
- enumerable: true,
650
- get: function() {
651
- return pointOnSurface;
652
- }
653
- });
654
- Object.defineProperty(exports, "projectPointOnFace", {
655
- enumerable: true,
656
- get: function() {
657
- return projectPointOnFace;
658
- }
659
- });
660
- Object.defineProperty(exports, "removeHolesFromFace", {
661
- enumerable: true,
662
- get: function() {
663
- return removeHolesFromFace;
664
- }
665
- });
666
- Object.defineProperty(exports, "shapeType", {
667
- enumerable: true,
668
- get: function() {
669
- return shapeType;
670
- }
671
- });
672
- Object.defineProperty(exports, "uvBounds", {
673
- enumerable: true,
674
- get: function() {
675
- return uvBounds;
676
- }
677
- });
678
- Object.defineProperty(exports, "uvCoordinates", {
679
- enumerable: true,
680
- get: function() {
681
- return uvCoordinates;
682
- }
683
- });
684
344
  Object.defineProperty(exports, "vertexPosition", {
685
345
  enumerable: true,
686
346
  get: function() {
@@ -1,6 +1,5 @@
1
- import { N as getOrQueryType, R as DisposalScope, X as getKernel, Y as _usingCtx, r as castShapeWithKnownType, t as castShape } from "./shapeTypes-CN0GUoHr.js";
2
- import { A as ok, R as unwrap, b as err, f as getSuggestionForCode, l as typeCastError, p as translateKernelError } from "./errors-DboJwVCf.js";
3
- import { r as toVec3 } from "./types--GD-LVc6.js";
1
+ import { N as getOrQueryType, R as DisposalScope, X as getKernel, Y as _usingCtx, r as castShapeWithKnownType, t as castShape } from "./shapeTypes-C--1jaT1.js";
2
+ import { A as ok, b as err, f as getSuggestionForCode, p as translateKernelError } from "./errors-0fYW_YnO.js";
4
3
  //#region src/core/kernelCall.ts
5
4
  function buildError(kind, code, message, cause, suggestion) {
6
5
  const base = {
@@ -91,89 +90,6 @@ function kernelCallScoped(fn, code, message, kind = "KERNEL_OPERATION") {
91
90
  }
92
91
  }
93
92
  //#endregion
94
- //#region src/topology/cast.ts
95
- var TOPO_ENUM = {
96
- compound: 0,
97
- solidCompound: 1,
98
- solid: 2,
99
- shell: 3,
100
- face: 4,
101
- wire: 5,
102
- edge: 6,
103
- vertex: 7,
104
- shape: 8
105
- };
106
- /** Convert a TopoEntity string to its kernel TopAbs_ShapeEnum value. */
107
- var asTopo = (entity) => {
108
- return TOPO_ENUM[entity];
109
- };
110
- /**
111
- * Iterate over all sub-shapes of a given type within a shape.
112
- *
113
- * @remarks Uses the kernel adapter's iterShapes rather than direct TopExp_Explorer.
114
- */
115
- var TOPO_TO_SHAPE_TYPE = {
116
- vertex: "vertex",
117
- edge: "edge",
118
- wire: "wire",
119
- face: "face",
120
- shell: "shell",
121
- solid: "solid",
122
- solidCompound: "compsolid",
123
- compound: "compound",
124
- shape: "compound"
125
- };
126
- var iterTopo = function* iterTopo(shape, topo) {
127
- const shapeType = TOPO_TO_SHAPE_TYPE[topo];
128
- if (shapeType) {
129
- const shapes = getKernel().iterShapes(shape, shapeType);
130
- for (const s of shapes) yield s;
131
- }
132
- };
133
- /** Get the TopAbs_ShapeEnum type of an kernel shape, returning Err for null shapes. */
134
- var shapeType = (shape) => {
135
- if (getKernel().isNull(shape)) return err(typeCastError("NULL_SHAPE", "This shape has no type, it is null"));
136
- return ok(shape.ShapeType());
137
- };
138
- /**
139
- * Downcast a generic KernelShape to its concrete kernel type (e.g., kernel topology_Face).
140
- *
141
- * @remarks Uses the kernel adapter's downcast method.
142
- * @returns Ok with the downcasted shape, or Err if the shape type is unknown.
143
- */
144
- function downcast(shape) {
145
- if (getKernel().isNull(shape)) return err(typeCastError("NULL_SHAPE", "This shape has no type, it is null"));
146
- try {
147
- return ok(getKernel().downcast(shape));
148
- } catch {
149
- return err(typeCastError("NO_WRAPPER", "Could not find a wrapper for this shape type"));
150
- }
151
- }
152
- /**
153
- * Cast a raw kernel shape to its corresponding branded brepjs type (Vertex, Edge, Face, etc.).
154
- *
155
- * Performs downcast + branded handle creation in one step.
156
- *
157
- * @returns Ok with a typed AnyShape, or Err if the shape type is unknown.
158
- */
159
- function cast(shape) {
160
- if (getKernel().isNull(shape)) return err(typeCastError("NULL_SHAPE", "Cannot cast a null shape"));
161
- return ok(castShape(shape));
162
- }
163
- /** Type guard: return true if the shape is a CompSolid. */
164
- function isCompSolid(shape) {
165
- return getKernel().shapeType(shape.wrapped) === "compsolid";
166
- }
167
- /**
168
- * Deserialize a shape from a BREP string representation.
169
- *
170
- * @param data - BREP string produced by toBREP().
171
- * @returns Ok with the deserialized shape, or Err if parsing fails.
172
- */
173
- function fromBREP(data) {
174
- return cast(getKernel().fromBREP(data));
175
- }
176
- //#endregion
177
93
  //#region src/topology/topologyQueryFns.ts
178
94
  /**
179
95
  * Topology query functions — extract sub-shapes, compute bounds, and
@@ -317,134 +233,4 @@ function vertexPosition(vertex) {
317
233
  return getKernel().vertexPosition(vertex.wrapped);
318
234
  }
319
235
  //#endregion
320
- //#region src/topology/faceFns.ts
321
- /**
322
- * Face-specific functions — functional replacements for Face class methods.
323
- * All functions accept branded Face handles and return plain values or branded shapes.
324
- */
325
- /** Map kernel surface type strings to the public API surface type constants. */
326
- var KERNEL_TO_PUBLIC_SURFACE_TYPE = {
327
- plane: "PLANE",
328
- cylinder: "CYLINDRE",
329
- cone: "CONE",
330
- sphere: "SPHERE",
331
- torus: "TORUS",
332
- bezier: "BEZIER_SURFACE",
333
- bspline: "BSPLINE_SURFACE",
334
- revolution: "REVOLUTION_SURFACE",
335
- extrusion: "EXTRUSION_SURFACE",
336
- offset: "OFFSET_SURFACE",
337
- other: "OTHER_SURFACE"
338
- };
339
- /**
340
- * Get the geometric surface type of a face.
341
- *
342
- * @returns Ok with the surface type, or Err for unrecognized kernel surface types.
343
- */
344
- function getSurfaceType(face) {
345
- return ok(KERNEL_TO_PUBLIC_SURFACE_TYPE[getCachedSurfaceType(face)]);
346
- }
347
- /** Get the surface type of a face (unwrapped convenience). */
348
- function faceGeomType(face) {
349
- return unwrap(getSurfaceType(face));
350
- }
351
- /** Get the topological orientation of a face. */
352
- function faceOrientation(face) {
353
- return getKernel().shapeOrientation(face.wrapped) === "forward" ? "forward" : "backward";
354
- }
355
- /** Flip the orientation of a face. Returns a new face. */
356
- function flipFaceOrientation(face) {
357
- return castShape(getKernel().reverseShape(face.wrapped));
358
- }
359
- /** Get the UV parameter bounds of a face. */
360
- function uvBounds(face) {
361
- return getKernel().uvBounds(face.wrapped);
362
- }
363
- /**
364
- * Get a point on a face surface at normalized UV coordinates (0-1 range).
365
- *
366
- * @param face - The face to evaluate.
367
- * @param u - Normalized U parameter (0-1).
368
- * @param v - Normalized V parameter (0-1).
369
- */
370
- function pointOnSurface(face, u, v) {
371
- const bounds = uvBounds(face);
372
- const absU = u * (bounds.uMax - bounds.uMin) + bounds.uMin;
373
- const absV = v * (bounds.vMax - bounds.vMin) + bounds.vMin;
374
- return getKernel().pointOnSurface(face.wrapped, absU, absV);
375
- }
376
- /** Get the UV coordinates on a face for a given 3D point. */
377
- function uvCoordinates(face, point) {
378
- const v = toVec3(point);
379
- const result = getKernel().uvFromPoint(face.wrapped, v);
380
- if (!result) return [0, 0];
381
- return result;
382
- }
383
- /**
384
- * Project a 3D point onto a face surface.
385
- *
386
- * Returns the projected point, its UV coordinates, and the distance
387
- * from the original point to the surface.
388
- */
389
- function projectPointOnFace(face, point) {
390
- const v = toVec3(point);
391
- try {
392
- const vMut = v;
393
- const uvResult = getKernel().uvFromPoint(face.wrapped, vMut);
394
- if (!uvResult) return err(typeCastError("PROJECTION_FAILED", "No projection found on the face"));
395
- const projectedPoint = getKernel().projectPointOnFace(face.wrapped, vMut);
396
- const dx = v[0] - projectedPoint[0];
397
- const dy = v[1] - projectedPoint[1];
398
- const dz = v[2] - projectedPoint[2];
399
- return ok({
400
- uv: uvResult,
401
- point: projectedPoint,
402
- distance: Math.sqrt(dx * dx + dy * dy + dz * dz)
403
- });
404
- } catch (e) {
405
- return err(typeCastError("PROJECTION_FAILED", `Point projection failed: ${e instanceof Error ? e.message : String(e)}`));
406
- }
407
- }
408
- /** Get the surface normal at a point (or at the center if no point given). */
409
- function normalAt(face, locationPoint) {
410
- let u;
411
- let v;
412
- if (!locationPoint) {
413
- const bounds = uvBounds(face);
414
- u = .5 * (bounds.uMin + bounds.uMax);
415
- v = .5 * (bounds.vMin + bounds.vMax);
416
- } else [u, v] = uvCoordinates(face, locationPoint);
417
- return getKernel().surfaceNormal(face.wrapped, u, v);
418
- }
419
- /** Get the center of mass of a face. */
420
- function faceCenter(face) {
421
- return getKernel().surfaceCenterOfMass(face.wrapped);
422
- }
423
- /**
424
- * Classify a 3D point's position relative to a face boundary.
425
- * Projects the point onto the face's surface and classifies the UV result.
426
- *
427
- * @returns 'in' if inside, 'on' if on the boundary, 'out' if outside
428
- */
429
- function classifyPointOnFace(face, point, tolerance = 1e-6) {
430
- const [u, v] = uvCoordinates(face, point);
431
- return getKernel().classifyPointOnFace(face.wrapped, u, v, tolerance);
432
- }
433
- /** Get the outer wire of a face. The outer boundary of a face is always closed. */
434
- function outerWire(face) {
435
- return castShape(getKernel().outerWire(face.wrapped));
436
- }
437
- /**
438
- * Remove all holes (inner wires) from a face, returning a new face with only the outer boundary.
439
- * Useful for defeaturing workflows where holes need to be temporarily or permanently filled.
440
- */
441
- function removeHolesFromFace(face) {
442
- return castShape(getKernel().removeHolesFromFace(face.wrapped));
443
- }
444
- /** Get the inner wires (holes) of a face. Hole boundaries are always closed. */
445
- function innerWires(face) {
446
- const outer = outerWire(face);
447
- return Array.from(iterTopo(face.wrapped, "wire")).map((w) => castShape(unwrap(downcast(w)))).filter((w) => !getKernel().isSame(w.wrapped, outer.wrapped));
448
- }
449
- //#endregion
450
- export { vertexPosition as A, kernelCallScoped as B, getVertices as C, iterFaces as D, iterEdges as E, isCompSolid as F, iterTopo as I, shapeType as L, cast as M, downcast as N, iterVertices as O, fromBREP as P, kernelCall as R, getOrCreateCache as S, invalidateShapeCache as T, getCacheEntry as _, flipFaceOrientation as a, getEdges as b, normalAt as c, projectPointOnFace as d, removeHolesFromFace as f, getBounds as g, describe as h, faceOrientation as i, asTopo as j, iterWires as k, outerWire as l, uvCoordinates as m, faceCenter as n, getSurfaceType as o, uvBounds as p, faceGeomType as r, innerWires as s, classifyPointOnFace as t, pointOnSurface as u, getCachedIsValid as v, getWires as w, getFaces as x, getCachedSurfaceType as y, kernelCallRaw as z };
236
+ export { kernelCall as _, getCachedSurfaceType as a, getOrCreateCache as c, invalidateShapeCache as d, iterEdges as f, vertexPosition as g, iterWires as h, getCachedIsValid as i, getVertices as l, iterVertices as m, getBounds as n, getEdges as o, iterFaces as p, getCacheEntry as r, getFaces as s, describe as t, getWires as u, kernelCallRaw as v, kernelCallScoped as y };
@@ -9,4 +9,3 @@ export declare function getAtOrThrow<T>(arr: readonly T[], index: number, msg?:
9
9
  export declare function firstOrThrow<T>(arr: readonly T[], msg?: string): T;
10
10
  /** Get the last element of a non-empty array, throwing if empty. */
11
11
  export declare function lastOrThrow<T>(arr: readonly T[], msg?: string): T;
12
- //# sourceMappingURL=arrayAccess.d.ts.map
@@ -12,4 +12,3 @@ export declare class BrepBugError extends Error {
12
12
  * Equivalent to Rust's panic!() — should never be caught in normal code.
13
13
  */
14
14
  export declare function bug(location: string, message: string): never;
15
- //# sourceMappingURL=bug.d.ts.map
@@ -1,3 +1,2 @@
1
1
  /** Generate a unique filename with prefix and extension (e.g., `_export_1.step`). */
2
2
  export declare function uniqueIOFilename(prefix: string, ext: string): string;
3
- //# sourceMappingURL=ioFilename.d.ts.map
@@ -8,4 +8,3 @@ export default function precisionRound(number: number, precision: number): numbe
8
8
  export declare function round2(v: number): number;
9
9
  /** Round a number to 5 decimal places. */
10
10
  export declare function round5(v: number): number;
11
- //# sourceMappingURL=precisionRound.d.ts.map
@@ -1,3 +1,2 @@
1
1
  /** Generate an array of integers `[0, 1, …, len - 1]`. */
2
2
  export default function range(len: number): number[];
3
- //# sourceMappingURL=range.d.ts.map
@@ -1,3 +1,2 @@
1
1
  /** Generate a v4-style UUID string using `crypto.getRandomValues`. */
2
2
  export declare function uuidv(): string;
3
- //# sourceMappingURL=uuid.d.ts.map
@@ -57,4 +57,3 @@ export declare const polarToCartesian: (r: number, theta: number) => Point2D;
57
57
  * @returns A tuple of `[radius, theta]`.
58
58
  */
59
59
  export declare const cartesianToPolar: ([x, y]: Point2D) => [number, number];
60
- //# sourceMappingURL=vec2d.d.ts.map
@@ -21,4 +21,11 @@ export type Vec3 = readonly [number, number, number];
21
21
  * Equivalent to `arr[i]!` but typed as `T` directly — no eslint-disable needed.
22
22
  */
23
23
  export declare function wasmIndex<T>(arr: ArrayLike<T>, i: number): T;
24
- //# sourceMappingURL=vec3.d.ts.map
24
+ /**
25
+ * Extract a 3-element tuple from a numeric array starting at `offset`.
26
+ * Equivalent to `[arr[offset]!, arr[offset+1]!, arr[offset+2]!]` but typed
27
+ * as `[T, T, T]` so no eslint-disable comments are needed at the call site.
28
+ *
29
+ * Common use cases: WASM result buffers (xyz, bbox min/max, witness points).
30
+ */
31
+ export declare function vec3At<T>(arr: ArrayLike<T>, offset?: number): [T, T, T];
@@ -2,4 +2,3 @@
2
2
  export default function zip<T extends unknown[][]>(arrays: T): {
3
3
  [K in keyof T]: T[K] extends (infer V)[] ? V : never;
4
4
  }[];
5
- //# sourceMappingURL=zip.d.ts.map