@snaptrude/plugin-core 0.0.0-bimsvg-20260928124803

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 (383) hide show
  1. package/AGENTS.md +231 -0
  2. package/CHANGELOG.md +341 -0
  3. package/CLAUDE.md +11 -0
  4. package/api-manifest.json +9120 -0
  5. package/dist/api/analysis/daylight.d.ts +603 -0
  6. package/dist/api/analysis/daylight.d.ts.map +1 -0
  7. package/dist/api/analysis/heatmaps.d.ts +658 -0
  8. package/dist/api/analysis/heatmaps.d.ts.map +1 -0
  9. package/dist/api/analysis/illuminance.d.ts +145 -0
  10. package/dist/api/analysis/illuminance.d.ts.map +1 -0
  11. package/dist/api/analysis/index.d.ts +59 -0
  12. package/dist/api/analysis/index.d.ts.map +1 -0
  13. package/dist/api/analysis/shadows.d.ts +165 -0
  14. package/dist/api/analysis/shadows.d.ts.map +1 -0
  15. package/dist/api/analysis/solar.d.ts +249 -0
  16. package/dist/api/analysis/solar.d.ts.map +1 -0
  17. package/dist/api/analysis/sunlightHours.d.ts +208 -0
  18. package/dist/api/analysis/sunlightHours.d.ts.map +1 -0
  19. package/dist/api/analysis/sunpath.d.ts +80 -0
  20. package/dist/api/analysis/sunpath.d.ts.map +1 -0
  21. package/dist/api/analysis/weather.d.ts +193 -0
  22. package/dist/api/analysis/weather.d.ts.map +1 -0
  23. package/dist/api/core/buildings.d.ts +427 -0
  24. package/dist/api/core/buildings.d.ts.map +1 -0
  25. package/dist/api/core/camera/index.d.ts +261 -0
  26. package/dist/api/core/camera/index.d.ts.map +1 -0
  27. package/dist/api/core/comment/index.d.ts +333 -0
  28. package/dist/api/core/comment/index.d.ts.map +1 -0
  29. package/dist/api/core/geom/create/index.d.ts +1073 -0
  30. package/dist/api/core/geom/create/index.d.ts.map +1 -0
  31. package/dist/api/core/geom/delete/index.d.ts +78 -0
  32. package/dist/api/core/geom/delete/index.d.ts.map +1 -0
  33. package/dist/api/core/geom/index.d.ts +33 -0
  34. package/dist/api/core/geom/index.d.ts.map +1 -0
  35. package/dist/api/core/geom/query/arc.d.ts +169 -0
  36. package/dist/api/core/geom/query/arc.d.ts.map +1 -0
  37. package/dist/api/core/geom/query/brep.d.ts +514 -0
  38. package/dist/api/core/geom/query/brep.d.ts.map +1 -0
  39. package/dist/api/core/geom/query/circle.d.ts +378 -0
  40. package/dist/api/core/geom/query/circle.d.ts.map +1 -0
  41. package/dist/api/core/geom/query/contour.d.ts +450 -0
  42. package/dist/api/core/geom/query/contour.d.ts.map +1 -0
  43. package/dist/api/core/geom/query/curve.d.ts +918 -0
  44. package/dist/api/core/geom/query/curve.d.ts.map +1 -0
  45. package/dist/api/core/geom/query/edge.d.ts +128 -0
  46. package/dist/api/core/geom/query/edge.d.ts.map +1 -0
  47. package/dist/api/core/geom/query/face.d.ts +363 -0
  48. package/dist/api/core/geom/query/face.d.ts.map +1 -0
  49. package/dist/api/core/geom/query/halfedge.d.ts +206 -0
  50. package/dist/api/core/geom/query/halfedge.d.ts.map +1 -0
  51. package/dist/api/core/geom/query/index.d.ts +61 -0
  52. package/dist/api/core/geom/query/index.d.ts.map +1 -0
  53. package/dist/api/core/geom/query/profile.d.ts +410 -0
  54. package/dist/api/core/geom/query/profile.d.ts.map +1 -0
  55. package/dist/api/core/geom/query/vertex.d.ts +187 -0
  56. package/dist/api/core/geom/query/vertex.d.ts.map +1 -0
  57. package/dist/api/core/geom/update/contour.d.ts +272 -0
  58. package/dist/api/core/geom/update/contour.d.ts.map +1 -0
  59. package/dist/api/core/geom/update/curve.d.ts +180 -0
  60. package/dist/api/core/geom/update/curve.d.ts.map +1 -0
  61. package/dist/api/core/geom/update/index.d.ts +27 -0
  62. package/dist/api/core/geom/update/index.d.ts.map +1 -0
  63. package/dist/api/core/geom/update/profile.d.ts +329 -0
  64. package/dist/api/core/geom/update/profile.d.ts.map +1 -0
  65. package/dist/api/core/groups.d.ts +485 -0
  66. package/dist/api/core/groups.d.ts.map +1 -0
  67. package/dist/api/core/handles/index.d.ts +210 -0
  68. package/dist/api/core/handles/index.d.ts.map +1 -0
  69. package/dist/api/core/history/index.d.ts +78 -0
  70. package/dist/api/core/history/index.d.ts.map +1 -0
  71. package/dist/api/core/index.d.ts +97 -0
  72. package/dist/api/core/index.d.ts.map +1 -0
  73. package/dist/api/core/io/export/index.d.ts +134 -0
  74. package/dist/api/core/io/export/index.d.ts.map +1 -0
  75. package/dist/api/core/io/import/index.d.ts +455 -0
  76. package/dist/api/core/io/import/index.d.ts.map +1 -0
  77. package/dist/api/core/io/index.d.ts +40 -0
  78. package/dist/api/core/io/index.d.ts.map +1 -0
  79. package/dist/api/core/io/job/index.d.ts +139 -0
  80. package/dist/api/core/io/job/index.d.ts.map +1 -0
  81. package/dist/api/core/io/query/index.d.ts +74 -0
  82. package/dist/api/core/io/query/index.d.ts.map +1 -0
  83. package/dist/api/core/io/terrain/index.d.ts +341 -0
  84. package/dist/api/core/io/terrain/index.d.ts.map +1 -0
  85. package/dist/api/core/io/underlay/index.d.ts +805 -0
  86. package/dist/api/core/io/underlay/index.d.ts.map +1 -0
  87. package/dist/api/core/layers.d.ts +402 -0
  88. package/dist/api/core/layers.d.ts.map +1 -0
  89. package/dist/api/core/math/index.d.ts +18 -0
  90. package/dist/api/core/math/index.d.ts.map +1 -0
  91. package/dist/api/core/math/quat.d.ts +170 -0
  92. package/dist/api/core/math/quat.d.ts.map +1 -0
  93. package/dist/api/core/math/vec3.d.ts +174 -0
  94. package/dist/api/core/math/vec3.d.ts.map +1 -0
  95. package/dist/api/core/mode/index.d.ts +111 -0
  96. package/dist/api/core/mode/index.d.ts.map +1 -0
  97. package/dist/api/core/project/index.d.ts +466 -0
  98. package/dist/api/core/project/index.d.ts.map +1 -0
  99. package/dist/api/core/proposals/index.d.ts +531 -0
  100. package/dist/api/core/proposals/index.d.ts.map +1 -0
  101. package/dist/api/core/storeys/index.d.ts +265 -0
  102. package/dist/api/core/storeys/index.d.ts.map +1 -0
  103. package/dist/api/core/tags.d.ts +860 -0
  104. package/dist/api/core/tags.d.ts.map +1 -0
  105. package/dist/api/core/units/index.d.ts +175 -0
  106. package/dist/api/core/units/index.d.ts.map +1 -0
  107. package/dist/api/core/user.d.ts +44 -0
  108. package/dist/api/core/user.d.ts.map +1 -0
  109. package/dist/api/core/zoom/index.d.ts +49 -0
  110. package/dist/api/core/zoom/index.d.ts.map +1 -0
  111. package/dist/api/design/boolean/index.d.ts +168 -0
  112. package/dist/api/design/boolean/index.d.ts.map +1 -0
  113. package/dist/api/design/create/bulk-items.d.ts +185 -0
  114. package/dist/api/design/create/bulk-items.d.ts.map +1 -0
  115. package/dist/api/design/create/grids.d.ts +132 -0
  116. package/dist/api/design/create/grids.d.ts.map +1 -0
  117. package/dist/api/design/create/index.d.ts +1747 -0
  118. package/dist/api/design/create/index.d.ts.map +1 -0
  119. package/dist/api/design/create/opening-fields.d.ts +37 -0
  120. package/dist/api/design/create/opening-fields.d.ts.map +1 -0
  121. package/dist/api/design/delete/index.d.ts +70 -0
  122. package/dist/api/design/delete/index.d.ts.map +1 -0
  123. package/dist/api/design/dimensions.d.ts +427 -0
  124. package/dist/api/design/dimensions.d.ts.map +1 -0
  125. package/dist/api/design/doors/index.d.ts +470 -0
  126. package/dist/api/design/doors/index.d.ts.map +1 -0
  127. package/dist/api/design/edit/index.d.ts +49 -0
  128. package/dist/api/design/edit/index.d.ts.map +1 -0
  129. package/dist/api/design/erase/index.d.ts +160 -0
  130. package/dist/api/design/erase/index.d.ts.map +1 -0
  131. package/dist/api/design/family.d.ts +611 -0
  132. package/dist/api/design/family.d.ts.map +1 -0
  133. package/dist/api/design/furniture/index.d.ts +296 -0
  134. package/dist/api/design/furniture/index.d.ts.map +1 -0
  135. package/dist/api/design/grids.d.ts +237 -0
  136. package/dist/api/design/grids.d.ts.map +1 -0
  137. package/dist/api/design/index.d.ts +260 -0
  138. package/dist/api/design/index.d.ts.map +1 -0
  139. package/dist/api/design/lock.d.ts +67 -0
  140. package/dist/api/design/lock.d.ts.map +1 -0
  141. package/dist/api/design/materials/index.d.ts +551 -0
  142. package/dist/api/design/materials/index.d.ts.map +1 -0
  143. package/dist/api/design/query/geometry/index.d.ts +252 -0
  144. package/dist/api/design/query/geometry/index.d.ts.map +1 -0
  145. package/dist/api/design/query/grids.d.ts +287 -0
  146. package/dist/api/design/query/grids.d.ts.map +1 -0
  147. package/dist/api/design/query/index.d.ts +1318 -0
  148. package/dist/api/design/query/index.d.ts.map +1 -0
  149. package/dist/api/design/query/referenceLines.d.ts +45 -0
  150. package/dist/api/design/query/referenceLines.d.ts.map +1 -0
  151. package/dist/api/design/query/spaces.d.ts +394 -0
  152. package/dist/api/design/query/spaces.d.ts.map +1 -0
  153. package/dist/api/design/selection/index.d.ts +282 -0
  154. package/dist/api/design/selection/index.d.ts.map +1 -0
  155. package/dist/api/design/shared.d.ts +38 -0
  156. package/dist/api/design/shared.d.ts.map +1 -0
  157. package/dist/api/design/transform/index.d.ts +249 -0
  158. package/dist/api/design/transform/index.d.ts.map +1 -0
  159. package/dist/api/design/types/index.d.ts +181 -0
  160. package/dist/api/design/types/index.d.ts.map +1 -0
  161. package/dist/api/design/update/index.d.ts +803 -0
  162. package/dist/api/design/update/index.d.ts.map +1 -0
  163. package/dist/api/design/visibility.d.ts +126 -0
  164. package/dist/api/design/visibility.d.ts.map +1 -0
  165. package/dist/api/design/windows/index.d.ts +300 -0
  166. package/dist/api/design/windows/index.d.ts.map +1 -0
  167. package/dist/api/entity/buildableEnvelope.d.ts +265 -0
  168. package/dist/api/entity/buildableEnvelope.d.ts.map +1 -0
  169. package/dist/api/entity/department.d.ts +1 -0
  170. package/dist/api/entity/department.d.ts.map +1 -0
  171. package/dist/api/entity/index.d.ts +28 -0
  172. package/dist/api/entity/index.d.ts.map +1 -0
  173. package/dist/api/entity/referenceLine.d.ts +210 -0
  174. package/dist/api/entity/referenceLine.d.ts.map +1 -0
  175. package/dist/api/entity/space.d.ts +846 -0
  176. package/dist/api/entity/space.d.ts.map +1 -0
  177. package/dist/api/entity/story.d.ts +476 -0
  178. package/dist/api/entity/story.d.ts.map +1 -0
  179. package/dist/api/index.d.ts +45 -0
  180. package/dist/api/index.d.ts.map +1 -0
  181. package/dist/api/presentation/aiInspiration.d.ts +2400 -0
  182. package/dist/api/presentation/aiInspiration.d.ts.map +1 -0
  183. package/dist/api/presentation/annotate.d.ts +483 -0
  184. package/dist/api/presentation/annotate.d.ts.map +1 -0
  185. package/dist/api/presentation/diagrams.d.ts +184 -0
  186. package/dist/api/presentation/diagrams.d.ts.map +1 -0
  187. package/dist/api/presentation/drawings.d.ts +2900 -0
  188. package/dist/api/presentation/drawings.d.ts.map +1 -0
  189. package/dist/api/presentation/export.d.ts +126 -0
  190. package/dist/api/presentation/export.d.ts.map +1 -0
  191. package/dist/api/presentation/import.d.ts +164 -0
  192. package/dist/api/presentation/import.d.ts.map +1 -0
  193. package/dist/api/presentation/index.d.ts +114 -0
  194. package/dist/api/presentation/index.d.ts.map +1 -0
  195. package/dist/api/presentation/placedViews.d.ts +1232 -0
  196. package/dist/api/presentation/placedViews.d.ts.map +1 -0
  197. package/dist/api/presentation/shapes.d.ts +481 -0
  198. package/dist/api/presentation/shapes.d.ts.map +1 -0
  199. package/dist/api/presentation/sheets.d.ts +643 -0
  200. package/dist/api/presentation/sheets.d.ts.map +1 -0
  201. package/dist/api/presentation/slideshow.d.ts +125 -0
  202. package/dist/api/presentation/slideshow.d.ts.map +1 -0
  203. package/dist/api/presentation/tables.d.ts +81 -0
  204. package/dist/api/presentation/tables.d.ts.map +1 -0
  205. package/dist/api/presentation/viewPresets.d.ts +70 -0
  206. package/dist/api/presentation/viewPresets.d.ts.map +1 -0
  207. package/dist/api/presentation/views.d.ts +741 -0
  208. package/dist/api/presentation/views.d.ts.map +1 -0
  209. package/dist/api/program/adjacency.d.ts +155 -0
  210. package/dist/api/program/adjacency.d.ts.map +1 -0
  211. package/dist/api/program/areas.d.ts +450 -0
  212. package/dist/api/program/areas.d.ts.map +1 -0
  213. package/dist/api/program/classification.d.ts +135 -0
  214. package/dist/api/program/classification.d.ts.map +1 -0
  215. package/dist/api/program/cores.d.ts +78 -0
  216. package/dist/api/program/cores.d.ts.map +1 -0
  217. package/dist/api/program/departments.d.ts +487 -0
  218. package/dist/api/program/departments.d.ts.map +1 -0
  219. package/dist/api/program/index.d.ts +71 -0
  220. package/dist/api/program/index.d.ts.map +1 -0
  221. package/dist/api/program/labels.d.ts +355 -0
  222. package/dist/api/program/labels.d.ts.map +1 -0
  223. package/dist/api/program/layout.d.ts +398 -0
  224. package/dist/api/program/layout.d.ts.map +1 -0
  225. package/dist/api/program/metadata.d.ts +328 -0
  226. package/dist/api/program/metadata.d.ts.map +1 -0
  227. package/dist/api/program/metrics.d.ts +108 -0
  228. package/dist/api/program/metrics.d.ts.map +1 -0
  229. package/dist/api/program/site.d.ts +823 -0
  230. package/dist/api/program/site.d.ts.map +1 -0
  231. package/dist/api/program/spreadsheet.d.ts +2628 -0
  232. package/dist/api/program/spreadsheet.d.ts.map +1 -0
  233. package/dist/api/workspace/index.d.ts +552 -0
  234. package/dist/api/workspace/index.d.ts.map +1 -0
  235. package/dist/errors/codes.d.ts +34 -0
  236. package/dist/errors/codes.d.ts.map +1 -0
  237. package/dist/errors/envelope.d.ts +56 -0
  238. package/dist/errors/envelope.d.ts.map +1 -0
  239. package/dist/errors/index.d.ts +6 -0
  240. package/dist/errors/index.d.ts.map +1 -0
  241. package/dist/errors/plugin-error.d.ts +69 -0
  242. package/dist/errors/plugin-error.d.ts.map +1 -0
  243. package/dist/handles.d.ts +229 -0
  244. package/dist/handles.d.ts.map +1 -0
  245. package/dist/host-utils.d.ts +47 -0
  246. package/dist/host-utils.d.ts.map +1 -0
  247. package/dist/index.cjs +8836 -0
  248. package/dist/index.cjs.map +1 -0
  249. package/dist/index.d.ts +6 -0
  250. package/dist/index.d.ts.map +1 -0
  251. package/dist/index.js +7568 -0
  252. package/dist/index.js.map +1 -0
  253. package/dist/types.d.ts +16 -0
  254. package/dist/types.d.ts.map +1 -0
  255. package/package.json +41 -0
  256. package/scripts/generate-manifest.mjs +238 -0
  257. package/scripts/generate-manifest.test.mjs +292 -0
  258. package/src/api/analysis/daylight.ts +470 -0
  259. package/src/api/analysis/heatmaps.ts +683 -0
  260. package/src/api/analysis/illuminance.ts +155 -0
  261. package/src/api/analysis/index.ts +61 -0
  262. package/src/api/analysis/shadows.ts +183 -0
  263. package/src/api/analysis/solar.ts +237 -0
  264. package/src/api/analysis/sunlightHours.ts +211 -0
  265. package/src/api/analysis/sunpath.ts +83 -0
  266. package/src/api/analysis/weather.ts +179 -0
  267. package/src/api/core/buildings.ts +485 -0
  268. package/src/api/core/camera/index.ts +268 -0
  269. package/src/api/core/comment/index.ts +376 -0
  270. package/src/api/core/geom/create/index.ts +1204 -0
  271. package/src/api/core/geom/delete/index.ts +84 -0
  272. package/src/api/core/geom/index.ts +35 -0
  273. package/src/api/core/geom/query/arc.ts +169 -0
  274. package/src/api/core/geom/query/brep.ts +563 -0
  275. package/src/api/core/geom/query/circle.ts +404 -0
  276. package/src/api/core/geom/query/contour.ts +540 -0
  277. package/src/api/core/geom/query/curve.ts +1078 -0
  278. package/src/api/core/geom/query/edge.ts +130 -0
  279. package/src/api/core/geom/query/face.ts +403 -0
  280. package/src/api/core/geom/query/halfedge.ts +210 -0
  281. package/src/api/core/geom/query/index.ts +63 -0
  282. package/src/api/core/geom/query/profile.ts +473 -0
  283. package/src/api/core/geom/query/vertex.ts +205 -0
  284. package/src/api/core/geom/update/contour.ts +315 -0
  285. package/src/api/core/geom/update/curve.ts +209 -0
  286. package/src/api/core/geom/update/index.ts +29 -0
  287. package/src/api/core/geom/update/profile.ts +377 -0
  288. package/src/api/core/groups.ts +521 -0
  289. package/src/api/core/handles/index.ts +233 -0
  290. package/src/api/core/history/index.ts +84 -0
  291. package/src/api/core/index.ts +99 -0
  292. package/src/api/core/io/export/index.ts +126 -0
  293. package/src/api/core/io/import/index.ts +504 -0
  294. package/src/api/core/io/index.ts +42 -0
  295. package/src/api/core/io/job/index.ts +140 -0
  296. package/src/api/core/io/query/index.ts +71 -0
  297. package/src/api/core/io/terrain/index.ts +360 -0
  298. package/src/api/core/io/underlay/index.ts +705 -0
  299. package/src/api/core/layers.ts +333 -0
  300. package/src/api/core/math/index.ts +20 -0
  301. package/src/api/core/math/quat.ts +172 -0
  302. package/src/api/core/math/vec3.ts +179 -0
  303. package/src/api/core/mode/index.ts +108 -0
  304. package/src/api/core/project/index.ts +479 -0
  305. package/src/api/core/proposals/index.ts +569 -0
  306. package/src/api/core/storeys/index.ts +294 -0
  307. package/src/api/core/tags.ts +911 -0
  308. package/src/api/core/units/index.ts +164 -0
  309. package/src/api/core/user.ts +46 -0
  310. package/src/api/core/zoom/index.ts +51 -0
  311. package/src/api/design/boolean/index.ts +179 -0
  312. package/src/api/design/create/bulk-items.ts +186 -0
  313. package/src/api/design/create/grids.ts +137 -0
  314. package/src/api/design/create/index.ts +1954 -0
  315. package/src/api/design/create/opening-fields.ts +37 -0
  316. package/src/api/design/delete/index.ts +74 -0
  317. package/src/api/design/dimensions.ts +453 -0
  318. package/src/api/design/doors/index.ts +500 -0
  319. package/src/api/design/edit/index.ts +54 -0
  320. package/src/api/design/erase/index.ts +151 -0
  321. package/src/api/design/family.ts +646 -0
  322. package/src/api/design/furniture/index.ts +319 -0
  323. package/src/api/design/grids.ts +237 -0
  324. package/src/api/design/index.ts +274 -0
  325. package/src/api/design/lock.ts +69 -0
  326. package/src/api/design/materials/index.ts +608 -0
  327. package/src/api/design/query/geometry/index.ts +288 -0
  328. package/src/api/design/query/grids.ts +197 -0
  329. package/src/api/design/query/index.ts +1176 -0
  330. package/src/api/design/query/referenceLines.ts +52 -0
  331. package/src/api/design/query/spaces.ts +275 -0
  332. package/src/api/design/selection/index.ts +273 -0
  333. package/src/api/design/shared.ts +40 -0
  334. package/src/api/design/transform/index.ts +254 -0
  335. package/src/api/design/types/index.ts +156 -0
  336. package/src/api/design/update/index.ts +798 -0
  337. package/src/api/design/visibility.ts +143 -0
  338. package/src/api/design/windows/index.ts +333 -0
  339. package/src/api/entity/buildableEnvelope.ts +322 -0
  340. package/src/api/entity/department.ts +0 -0
  341. package/src/api/entity/index.ts +30 -0
  342. package/src/api/entity/referenceLine.ts +235 -0
  343. package/src/api/entity/space.ts +612 -0
  344. package/src/api/entity/story.ts +517 -0
  345. package/src/api/index.ts +47 -0
  346. package/src/api/presentation/aiInspiration.ts +1116 -0
  347. package/src/api/presentation/annotate.ts +417 -0
  348. package/src/api/presentation/diagrams.ts +194 -0
  349. package/src/api/presentation/drawings.ts +529 -0
  350. package/src/api/presentation/export.ts +133 -0
  351. package/src/api/presentation/import.ts +159 -0
  352. package/src/api/presentation/index.ts +129 -0
  353. package/src/api/presentation/placedViews.ts +1203 -0
  354. package/src/api/presentation/shapes.ts +274 -0
  355. package/src/api/presentation/sheets.ts +616 -0
  356. package/src/api/presentation/slideshow.ts +134 -0
  357. package/src/api/presentation/tables.ts +84 -0
  358. package/src/api/presentation/viewPresets.ts +83 -0
  359. package/src/api/presentation/views.ts +698 -0
  360. package/src/api/program/adjacency.ts +164 -0
  361. package/src/api/program/areas.ts +408 -0
  362. package/src/api/program/classification.ts +138 -0
  363. package/src/api/program/cores.ts +83 -0
  364. package/src/api/program/departments.ts +517 -0
  365. package/src/api/program/index.ts +73 -0
  366. package/src/api/program/labels.ts +332 -0
  367. package/src/api/program/layout.ts +422 -0
  368. package/src/api/program/metadata.ts +364 -0
  369. package/src/api/program/metrics.ts +120 -0
  370. package/src/api/program/site.ts +748 -0
  371. package/src/api/program/spreadsheet.ts +2698 -0
  372. package/src/api/workspace/index.ts +612 -0
  373. package/src/errors/codes.ts +136 -0
  374. package/src/errors/envelope.ts +75 -0
  375. package/src/errors/index.ts +21 -0
  376. package/src/errors/plugin-error.ts +134 -0
  377. package/src/handles.ts +282 -0
  378. package/src/host-utils.ts +68 -0
  379. package/src/index.ts +5 -0
  380. package/src/types.ts +16 -0
  381. package/test/errors.test.mjs +184 -0
  382. package/tsconfig.json +22 -0
  383. package/tsup.config.ts +12 -0
@@ -0,0 +1,514 @@
1
+ import * as z from "zod";
2
+ import { PluginApiReturn } from "../../../../types";
3
+ import { BrepHandle, FaceHandle, EdgeHandle, VertexHandle, HalfEdgeHandle, Vec3Components, BBoxComponents } from "../../../../handles";
4
+ /**
5
+ * BREP queries — read the topology and geometry of a boundary-representation mesh
6
+ * as plain values / child handles (all-handle model, §11). A {@linkcode BrepHandle}
7
+ * is a session-ephemeral resource handle obtained from `design.query.geometry.getBrep`;
8
+ * it goes stale on undo/redo/re-topologize.
9
+ *
10
+ * Enumerations mint fresh child topology handles ({@linkcode FaceHandle},
11
+ * {@linkcode EdgeHandle}, {@linkcode VertexHandle}, {@linkcode HalfEdgeHandle}); the
12
+ * registry dedupes by identity, so re-enumeration returns the same handles. Position
13
+ * reads return {@linkcode Vec3Components}. No query mutates its inputs.
14
+ *
15
+ * Accessed via `snaptrude.core.geom.query.brep`.
16
+ */
17
+ export declare abstract class PluginGeomQueryBrepApi {
18
+ constructor();
19
+ /**
20
+ * List the faces of a brep.
21
+ * @param brep The brep to query
22
+ * @returns The faces as {@linkcode FaceHandle}`[]`
23
+ *
24
+ * # Example
25
+ * ```ts
26
+ * const [wall] = await snaptrude.design.query.listWalls()
27
+ * const brep = await snaptrude.design.query.geometry.getBrep(wall)
28
+ * if (brep) {
29
+ * const faces = await snaptrude.core.geom.query.brep.listFaces(brep)
30
+ * }
31
+ * ```
32
+ */
33
+ abstract listFaces(brep: BrepHandle): PluginApiReturn<FaceHandle[]>;
34
+ /**
35
+ * List the edges of a brep.
36
+ * @param brep The brep to query
37
+ * @returns The edges as {@linkcode EdgeHandle}`[]`
38
+ *
39
+ * # Example
40
+ * ```ts
41
+ * const [wall] = await snaptrude.design.query.listWalls()
42
+ * const brep = await snaptrude.design.query.geometry.getBrep(wall)
43
+ * if (brep) {
44
+ * const edges = await snaptrude.core.geom.query.brep.listEdges(brep)
45
+ * }
46
+ * ```
47
+ */
48
+ abstract listEdges(brep: BrepHandle): PluginApiReturn<EdgeHandle[]>;
49
+ /**
50
+ * List the vertices of a brep.
51
+ * @param brep The brep to query
52
+ * @returns The vertices as {@linkcode VertexHandle}`[]`
53
+ *
54
+ * # Example
55
+ * ```ts
56
+ * const [mass] = await snaptrude.design.query.listMasses()
57
+ * const brep = await snaptrude.design.query.geometry.getBrep(mass)
58
+ * if (brep) {
59
+ * const vertices = await snaptrude.core.geom.query.brep.listVertices(brep)
60
+ * }
61
+ * ```
62
+ */
63
+ abstract listVertices(brep: BrepHandle): PluginApiReturn<VertexHandle[]>;
64
+ /**
65
+ * List the half-edges of a brep.
66
+ * @param brep The brep to query
67
+ * @returns The half-edges as {@linkcode HalfEdgeHandle}`[]`
68
+ *
69
+ * # Example
70
+ * ```ts
71
+ * const [wall] = await snaptrude.design.query.listWalls()
72
+ * const brep = await snaptrude.design.query.geometry.getBrep(wall)
73
+ * if (brep) {
74
+ * const halfEdges = await snaptrude.core.geom.query.brep.listHalfEdges(brep)
75
+ * }
76
+ * ```
77
+ */
78
+ abstract listHalfEdges(brep: BrepHandle): PluginApiReturn<HalfEdgeHandle[]>;
79
+ /**
80
+ * Get the edge connecting two vertices (by their brep vertex indices).
81
+ * @param brep The brep to query
82
+ * @param vertexIndexA First vertex index
83
+ * @param vertexIndexB Second vertex index
84
+ * @returns The edge as an {@linkcode EdgeHandle}, or `null` if no such edge exists
85
+ *
86
+ * # Example
87
+ * ```ts
88
+ * const [wall] = await snaptrude.design.query.listWalls()
89
+ * const brep = await snaptrude.design.query.geometry.getBrep(wall)
90
+ * if (brep) {
91
+ * const [va, vb] = await snaptrude.core.geom.query.brep.listVertices(brep)
92
+ * const ia = await snaptrude.core.geom.query.vertex.getIndex(va)
93
+ * const ib = await snaptrude.core.geom.query.vertex.getIndex(vb)
94
+ * const edge = await snaptrude.core.geom.query.brep.getEdge(brep, ia, ib)
95
+ * if (edge) console.log("those two vertices are connected")
96
+ * }
97
+ * ```
98
+ */
99
+ abstract getEdge(brep: BrepHandle, vertexIndexA: number, vertexIndexB: number): PluginApiReturn<EdgeHandle | null>;
100
+ /**
101
+ * Test whether an edge connects two vertices (by their brep vertex indices).
102
+ * @param brep The brep to query
103
+ * @param vertexIndexA First vertex index
104
+ * @param vertexIndexB Second vertex index
105
+ * @returns `true` if such an edge exists, otherwise `false`
106
+ *
107
+ * # Example
108
+ * ```ts
109
+ * const [wall] = await snaptrude.design.query.listWalls()
110
+ * const brep = await snaptrude.design.query.geometry.getBrep(wall)
111
+ * if (brep) {
112
+ * // brep vertex indices (get one from core.geom.query.vertex.getIndex)
113
+ * const connected = await snaptrude.core.geom.query.brep.hasEdge(brep, 0, 1)
114
+ * }
115
+ * ```
116
+ */
117
+ abstract hasEdge(brep: BrepHandle, vertexIndexA: number, vertexIndexB: number): PluginApiReturn<boolean>;
118
+ /**
119
+ * List every edge connecting two vertices (by their brep vertex indices).
120
+ * @param brep The brep to query
121
+ * @param vertexIndexA First vertex index
122
+ * @param vertexIndexB Second vertex index
123
+ * @returns The edges as {@linkcode EdgeHandle}`[]`
124
+ *
125
+ * # Example
126
+ * ```ts
127
+ * const [wall] = await snaptrude.design.query.listWalls()
128
+ * const brep = await snaptrude.design.query.geometry.getBrep(wall)
129
+ * if (brep) {
130
+ * // brep vertex indices (get one from core.geom.query.vertex.getIndex)
131
+ * const edges = await snaptrude.core.geom.query.brep.listEdgesBetween(brep, 0, 1)
132
+ * console.log("edges between vertices 0 and 1:", edges.length)
133
+ * }
134
+ * ```
135
+ */
136
+ abstract listEdgesBetween(brep: BrepHandle, vertexIndexA: number, vertexIndexB: number): PluginApiReturn<EdgeHandle[]>;
137
+ /**
138
+ * Read the exact curve of a brep edge as plain values — a discriminated
139
+ * union on `type`. Pure read: no geometry kernel is loaded. Points and
140
+ * directions are {@linkcode Vec3Components}; lengths and radii are raw
141
+ * Babylon units.
142
+ *
143
+ * | `type` | Fields |
144
+ * |---|---|
145
+ * | `"line"` | `startPoint`, `endPoint`, `length` |
146
+ * | `"arc"` | `startPoint`, `endPoint`, `centre`, `axis`, `radius`, `length` |
147
+ * | `"circle"` | `centre`, `axis`, `radius`, `length` — a full-circle edge (e.g. a cylinder cap rim) |
148
+ *
149
+ * @param brep The brep the edge belongs to
150
+ * @param edge The edge whose curve to read
151
+ * @returns The curve data as a discriminated union on `type` (see table above)
152
+ * @throws VALIDATION if the edge is not on `brep`
153
+ *
154
+ * @examplePrompt Read the radius of this curved edge
155
+ * @examplePrompt Is this edge straight or an arc?
156
+ * @examplePrompt Get the exact start and end points of this edge
157
+ * @examplePrompt Measure the length of each edge of this mass
158
+ *
159
+ * # Example
160
+ * ```ts
161
+ * const [mass] = await snaptrude.design.query.listMasses()
162
+ * const brep = await snaptrude.design.query.geometry.getBrep(mass)
163
+ * if (brep) {
164
+ * const edges = await snaptrude.core.geom.query.brep.listEdges(brep)
165
+ * for (const edge of edges) {
166
+ * const curve = await snaptrude.core.geom.query.brep.getEdgeCurve(brep, edge)
167
+ * if (curve.type === "arc") console.log("arc radius:", curve.radius)
168
+ * }
169
+ * }
170
+ * ```
171
+ */
172
+ abstract getEdgeCurve(brep: BrepHandle, edge: EdgeHandle): PluginApiReturn<{
173
+ type: "line";
174
+ startPoint: Vec3Components;
175
+ endPoint: Vec3Components;
176
+ length: number;
177
+ } | {
178
+ type: "arc";
179
+ startPoint: Vec3Components;
180
+ endPoint: Vec3Components;
181
+ centre: Vec3Components;
182
+ axis: Vec3Components;
183
+ radius: number;
184
+ length: number;
185
+ } | {
186
+ type: "circle";
187
+ centre: Vec3Components;
188
+ axis: Vec3Components;
189
+ radius: number;
190
+ length: number;
191
+ }>;
192
+ /**
193
+ * Get the position of a vertex within a brep.
194
+ * @param brep The brep to query
195
+ * @param vertex The vertex whose position to read
196
+ * @returns The position as {@linkcode Vec3Components}
197
+ *
198
+ * # Example
199
+ * ```ts
200
+ * const [wall] = await snaptrude.design.query.listWalls()
201
+ * const brep = await snaptrude.design.query.geometry.getBrep(wall)
202
+ * if (brep) {
203
+ * const [vertex] = await snaptrude.core.geom.query.brep.listVertices(brep)
204
+ * const { x, y, z } = await snaptrude.core.geom.query.brep.getVertexPosition(brep, vertex)
205
+ * }
206
+ * ```
207
+ */
208
+ abstract getVertexPosition(brep: BrepHandle, vertex: VertexHandle): PluginApiReturn<Vec3Components>;
209
+ /**
210
+ * List the positions of all vertices in a brep (ordered as {@linkcode PluginGeomQueryBrepApi.listVertices}).
211
+ * @param brep The brep to query
212
+ * @returns The positions as {@linkcode Vec3Components}`[]`
213
+ *
214
+ * @examplePrompt Get the coordinates of every corner of this shape
215
+ * @examplePrompt Give me all the corner points of the selected mass as XYZ coordinates
216
+ *
217
+ * # Example
218
+ * ```ts
219
+ * const [mass] = await snaptrude.design.query.listMasses()
220
+ * const brep = await snaptrude.design.query.geometry.getBrep(mass)
221
+ * if (brep) {
222
+ * const positions = await snaptrude.core.geom.query.brep.listVertexPositions(brep)
223
+ * for (const p of positions) console.log(p.x, p.y, p.z)
224
+ * }
225
+ * ```
226
+ */
227
+ abstract listVertexPositions(brep: BrepHandle): PluginApiReturn<Vec3Components[]>;
228
+ /**
229
+ * Get the centroid (mean of all vertex positions) of a brep.
230
+ * @param brep The brep to query
231
+ * @returns The centroid as {@linkcode Vec3Components}
232
+ *
233
+ * @examplePrompt Find the centre point of this shape
234
+ * @examplePrompt What is the centroid of the selected object?
235
+ *
236
+ * # Example
237
+ * ```ts
238
+ * const [mass] = await snaptrude.design.query.listMasses()
239
+ * const brep = await snaptrude.design.query.geometry.getBrep(mass)
240
+ * if (brep) {
241
+ * const centroid = await snaptrude.core.geom.query.brep.getCentroid(brep)
242
+ * console.log(centroid.x, centroid.y, centroid.z)
243
+ * }
244
+ * ```
245
+ */
246
+ abstract getCentroid(brep: BrepHandle): PluginApiReturn<Vec3Components>;
247
+ /**
248
+ * Get the number of faces in a brep.
249
+ * @param brep The brep to query
250
+ * @returns The face count as a `number`
251
+ *
252
+ * # Example
253
+ * ```ts
254
+ * const [wall] = await snaptrude.design.query.listWalls()
255
+ * const brep = await snaptrude.design.query.geometry.getBrep(wall)
256
+ * if (brep) {
257
+ * const faceCount = await snaptrude.core.geom.query.brep.getFaceCount(brep)
258
+ * }
259
+ * ```
260
+ */
261
+ abstract getFaceCount(brep: BrepHandle): PluginApiReturn<number>;
262
+ /**
263
+ * Get the number of edges in a brep.
264
+ * @param brep The brep to query
265
+ * @returns The edge count as a `number`
266
+ *
267
+ * # Example
268
+ * ```ts
269
+ * const [wall] = await snaptrude.design.query.listWalls()
270
+ * const brep = await snaptrude.design.query.geometry.getBrep(wall)
271
+ * if (brep) {
272
+ * const edgeCount = await snaptrude.core.geom.query.brep.getEdgeCount(brep)
273
+ * }
274
+ * ```
275
+ */
276
+ abstract getEdgeCount(brep: BrepHandle): PluginApiReturn<number>;
277
+ /**
278
+ * Get the number of vertices in a brep.
279
+ * @param brep The brep to query
280
+ * @returns The vertex count as a `number`
281
+ *
282
+ * # Example
283
+ * ```ts
284
+ * const [mass] = await snaptrude.design.query.listMasses()
285
+ * const brep = await snaptrude.design.query.geometry.getBrep(mass)
286
+ * if (brep) {
287
+ * const vertexCount = await snaptrude.core.geom.query.brep.getVertexCount(brep)
288
+ * }
289
+ * ```
290
+ */
291
+ abstract getVertexCount(brep: BrepHandle): PluginApiReturn<number>;
292
+ /**
293
+ * Get the number of half-edges in a brep.
294
+ * @param brep The brep to query
295
+ * @returns The half-edge count as a `number`
296
+ *
297
+ * # Example
298
+ * ```ts
299
+ * const [mass] = await snaptrude.design.query.listMasses()
300
+ * const brep = await snaptrude.design.query.geometry.getBrep(mass)
301
+ * if (brep) {
302
+ * const halfEdgeCount = await snaptrude.core.geom.query.brep.getHalfEdgeCount(brep)
303
+ * }
304
+ * ```
305
+ */
306
+ abstract getHalfEdgeCount(brep: BrepHandle): PluginApiReturn<number>;
307
+ /**
308
+ * Get the axis-aligned bounding box of a brep.
309
+ * @param brep The brep to query
310
+ * @returns The bounding box as {@linkcode BBoxComponents}
311
+ *
312
+ * @examplePrompt What is the bounding box of this shape?
313
+ * @examplePrompt How big is this object overall — give me its min and max extents
314
+ *
315
+ * # Example
316
+ * ```ts
317
+ * const [mass] = await snaptrude.design.query.listMasses()
318
+ * const brep = await snaptrude.design.query.geometry.getBrep(mass)
319
+ * if (brep) {
320
+ * const { min, max } = await snaptrude.core.geom.query.brep.getBoundingBox(brep)
321
+ * console.log("size:", max.x - min.x, max.y - min.y, max.z - min.z)
322
+ * }
323
+ * ```
324
+ */
325
+ abstract getBoundingBox(brep: BrepHandle): PluginApiReturn<BBoxComponents>;
326
+ /**
327
+ * Test whether two breps are geometrically equal.
328
+ * @param brepA First brep
329
+ * @param brepB Second brep
330
+ * @returns `true` if the breps are equal, otherwise `false`
331
+ *
332
+ * @examplePrompt Are these two shapes geometrically identical?
333
+ * @examplePrompt Check whether these two objects have the same geometry
334
+ *
335
+ * # Example
336
+ * ```ts
337
+ * const [a, b] = await snaptrude.design.query.listMasses()
338
+ * const brepA = await snaptrude.design.query.geometry.getBrep(a)
339
+ * const brepB = await snaptrude.design.query.geometry.getBrep(b)
340
+ * if (brepA && brepB) {
341
+ * const same = await snaptrude.core.geom.query.brep.isEqual(brepA, brepB)
342
+ * }
343
+ * ```
344
+ */
345
+ abstract isEqual(brepA: BrepHandle, brepB: BrepHandle): PluginApiReturn<boolean>;
346
+ /**
347
+ * Measures the minimum distance between two solids, with the closest witness
348
+ * point on each. Touching or overlapping solids report a distance of 0 with
349
+ * contact points.
350
+ *
351
+ * @param brepA First solid
352
+ * @param brepB Second solid
353
+ * @returns `{ distance, pointA, pointB }` — the minimum distance and the
354
+ * closest points on `brepA` and `brepB` as {@linkcode Vec3Components}
355
+ * @throws OPERATION_FAILED if the kernel cannot compute the distance
356
+ *
357
+ * @examplePrompt What is the clearance between these two masses?
358
+ * @examplePrompt How far apart are the tower and the neighbouring building?
359
+ * @examplePrompt Find the closest points between these two solids
360
+ *
361
+ * # Example
362
+ * ```ts
363
+ * const [a, b] = await snaptrude.design.query.listMasses()
364
+ * const brepA = await snaptrude.design.query.geometry.getBrep(a)
365
+ * const brepB = await snaptrude.design.query.geometry.getBrep(b)
366
+ * if (brepA && brepB) {
367
+ * const { distance, pointA, pointB } = await snaptrude.core.geom.query.brep.getDistance(brepA, brepB)
368
+ * console.log("clearance:", distance)
369
+ * }
370
+ * ```
371
+ */
372
+ abstract getDistance(brepA: BrepHandle, brepB: BrepHandle): PluginApiReturn<{
373
+ distance: number;
374
+ pointA: Vec3Components;
375
+ pointB: Vec3Components;
376
+ }>;
377
+ }
378
+ /** Arguments for {@linkcode PluginGeomQueryBrepApi.listFaces}. `{ brep: BrepHandle }` */
379
+ export declare const PluginGeomQueryBrepListFacesArgs: z.ZodObject<{
380
+ brep: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"brep">, string>>;
381
+ }, z.core.$strip>;
382
+ export type PluginGeomQueryBrepListFacesArgs = z.infer<typeof PluginGeomQueryBrepListFacesArgs>;
383
+ /** Arguments for {@linkcode PluginGeomQueryBrepApi.listEdges}. `{ brep: BrepHandle }` */
384
+ export declare const PluginGeomQueryBrepListEdgesArgs: z.ZodObject<{
385
+ brep: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"brep">, string>>;
386
+ }, z.core.$strip>;
387
+ export type PluginGeomQueryBrepListEdgesArgs = z.infer<typeof PluginGeomQueryBrepListEdgesArgs>;
388
+ /** Arguments for {@linkcode PluginGeomQueryBrepApi.listVertices}. `{ brep: BrepHandle }` */
389
+ export declare const PluginGeomQueryBrepListVerticesArgs: z.ZodObject<{
390
+ brep: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"brep">, string>>;
391
+ }, z.core.$strip>;
392
+ export type PluginGeomQueryBrepListVerticesArgs = z.infer<typeof PluginGeomQueryBrepListVerticesArgs>;
393
+ /** Arguments for {@linkcode PluginGeomQueryBrepApi.listHalfEdges}. `{ brep: BrepHandle }` */
394
+ export declare const PluginGeomQueryBrepListHalfEdgesArgs: z.ZodObject<{
395
+ brep: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"brep">, string>>;
396
+ }, z.core.$strip>;
397
+ export type PluginGeomQueryBrepListHalfEdgesArgs = z.infer<typeof PluginGeomQueryBrepListHalfEdgesArgs>;
398
+ /**
399
+ * Arguments for {@linkcode PluginGeomQueryBrepApi.getEdge}.
400
+ *
401
+ * | Property | Type | Description |
402
+ * |---|---|---|
403
+ * | `brep` | {@linkcode BrepHandle} | The brep to query |
404
+ * | `vertexIndexA` | `number` | First vertex index |
405
+ * | `vertexIndexB` | `number` | Second vertex index |
406
+ */
407
+ export declare const PluginGeomQueryBrepGetEdgeArgs: z.ZodObject<{
408
+ brep: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"brep">, string>>;
409
+ vertexIndexA: z.ZodNumber;
410
+ vertexIndexB: z.ZodNumber;
411
+ }, z.core.$strip>;
412
+ export type PluginGeomQueryBrepGetEdgeArgs = z.infer<typeof PluginGeomQueryBrepGetEdgeArgs>;
413
+ /** Arguments for {@linkcode PluginGeomQueryBrepApi.hasEdge}. `{ brep, vertexIndexA, vertexIndexB }` */
414
+ export declare const PluginGeomQueryBrepHasEdgeArgs: z.ZodObject<{
415
+ brep: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"brep">, string>>;
416
+ vertexIndexA: z.ZodNumber;
417
+ vertexIndexB: z.ZodNumber;
418
+ }, z.core.$strip>;
419
+ export type PluginGeomQueryBrepHasEdgeArgs = z.infer<typeof PluginGeomQueryBrepHasEdgeArgs>;
420
+ /** Arguments for {@linkcode PluginGeomQueryBrepApi.listEdgesBetween}. `{ brep, vertexIndexA, vertexIndexB }` */
421
+ export declare const PluginGeomQueryBrepListEdgesBetweenArgs: z.ZodObject<{
422
+ brep: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"brep">, string>>;
423
+ vertexIndexA: z.ZodNumber;
424
+ vertexIndexB: z.ZodNumber;
425
+ }, z.core.$strip>;
426
+ export type PluginGeomQueryBrepListEdgesBetweenArgs = z.infer<typeof PluginGeomQueryBrepListEdgesBetweenArgs>;
427
+ /**
428
+ * Arguments for {@linkcode PluginGeomQueryBrepApi.getEdgeCurve}.
429
+ *
430
+ * | Property | Type | Description |
431
+ * |---|---|---|
432
+ * | `brep` | {@linkcode BrepHandle} | The brep the edge belongs to |
433
+ * | `edge` | {@linkcode EdgeHandle} | The edge whose curve to read |
434
+ */
435
+ export declare const PluginGeomQueryBrepGetEdgeCurveArgs: z.ZodObject<{
436
+ brep: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"brep">, string>>;
437
+ edge: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"edge">, string>>;
438
+ }, z.core.$strip>;
439
+ export type PluginGeomQueryBrepGetEdgeCurveArgs = z.infer<typeof PluginGeomQueryBrepGetEdgeCurveArgs>;
440
+ /**
441
+ * Arguments for {@linkcode PluginGeomQueryBrepApi.getVertexPosition}.
442
+ *
443
+ * | Property | Type | Description |
444
+ * |---|---|---|
445
+ * | `brep` | {@linkcode BrepHandle} | The brep to query |
446
+ * | `vertex` | {@linkcode VertexHandle} | The vertex whose position to read |
447
+ */
448
+ export declare const PluginGeomQueryBrepGetVertexPositionArgs: z.ZodObject<{
449
+ brep: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"brep">, string>>;
450
+ vertex: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"vertex">, string>>;
451
+ }, z.core.$strip>;
452
+ export type PluginGeomQueryBrepGetVertexPositionArgs = z.infer<typeof PluginGeomQueryBrepGetVertexPositionArgs>;
453
+ /** Arguments for {@linkcode PluginGeomQueryBrepApi.listVertexPositions}. `{ brep: BrepHandle }` */
454
+ export declare const PluginGeomQueryBrepListVertexPositionsArgs: z.ZodObject<{
455
+ brep: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"brep">, string>>;
456
+ }, z.core.$strip>;
457
+ export type PluginGeomQueryBrepListVertexPositionsArgs = z.infer<typeof PluginGeomQueryBrepListVertexPositionsArgs>;
458
+ /** Arguments for {@linkcode PluginGeomQueryBrepApi.getCentroid}. `{ brep: BrepHandle }` */
459
+ export declare const PluginGeomQueryBrepGetCentroidArgs: z.ZodObject<{
460
+ brep: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"brep">, string>>;
461
+ }, z.core.$strip>;
462
+ export type PluginGeomQueryBrepGetCentroidArgs = z.infer<typeof PluginGeomQueryBrepGetCentroidArgs>;
463
+ /** Arguments for {@linkcode PluginGeomQueryBrepApi.getFaceCount}. `{ brep: BrepHandle }` */
464
+ export declare const PluginGeomQueryBrepGetFaceCountArgs: z.ZodObject<{
465
+ brep: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"brep">, string>>;
466
+ }, z.core.$strip>;
467
+ export type PluginGeomQueryBrepGetFaceCountArgs = z.infer<typeof PluginGeomQueryBrepGetFaceCountArgs>;
468
+ /** Arguments for {@linkcode PluginGeomQueryBrepApi.getEdgeCount}. `{ brep: BrepHandle }` */
469
+ export declare const PluginGeomQueryBrepGetEdgeCountArgs: z.ZodObject<{
470
+ brep: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"brep">, string>>;
471
+ }, z.core.$strip>;
472
+ export type PluginGeomQueryBrepGetEdgeCountArgs = z.infer<typeof PluginGeomQueryBrepGetEdgeCountArgs>;
473
+ /** Arguments for {@linkcode PluginGeomQueryBrepApi.getVertexCount}. `{ brep: BrepHandle }` */
474
+ export declare const PluginGeomQueryBrepGetVertexCountArgs: z.ZodObject<{
475
+ brep: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"brep">, string>>;
476
+ }, z.core.$strip>;
477
+ export type PluginGeomQueryBrepGetVertexCountArgs = z.infer<typeof PluginGeomQueryBrepGetVertexCountArgs>;
478
+ /** Arguments for {@linkcode PluginGeomQueryBrepApi.getHalfEdgeCount}. `{ brep: BrepHandle }` */
479
+ export declare const PluginGeomQueryBrepGetHalfEdgeCountArgs: z.ZodObject<{
480
+ brep: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"brep">, string>>;
481
+ }, z.core.$strip>;
482
+ export type PluginGeomQueryBrepGetHalfEdgeCountArgs = z.infer<typeof PluginGeomQueryBrepGetHalfEdgeCountArgs>;
483
+ /** Arguments for {@linkcode PluginGeomQueryBrepApi.getBoundingBox}. `{ brep: BrepHandle }` */
484
+ export declare const PluginGeomQueryBrepGetBoundingBoxArgs: z.ZodObject<{
485
+ brep: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"brep">, string>>;
486
+ }, z.core.$strip>;
487
+ export type PluginGeomQueryBrepGetBoundingBoxArgs = z.infer<typeof PluginGeomQueryBrepGetBoundingBoxArgs>;
488
+ /**
489
+ * Arguments for {@linkcode PluginGeomQueryBrepApi.isEqual}.
490
+ *
491
+ * | Property | Type | Description |
492
+ * |---|---|---|
493
+ * | `brepA` | {@linkcode BrepHandle} | First brep |
494
+ * | `brepB` | {@linkcode BrepHandle} | Second brep |
495
+ */
496
+ export declare const PluginGeomQueryBrepIsEqualArgs: z.ZodObject<{
497
+ brepA: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"brep">, string>>;
498
+ brepB: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"brep">, string>>;
499
+ }, z.core.$strip>;
500
+ export type PluginGeomQueryBrepIsEqualArgs = z.infer<typeof PluginGeomQueryBrepIsEqualArgs>;
501
+ /**
502
+ * Arguments for {@linkcode PluginGeomQueryBrepApi.getDistance}.
503
+ *
504
+ * | Property | Type | Description |
505
+ * |---|---|---|
506
+ * | `brepA` | {@linkcode BrepHandle} | First solid |
507
+ * | `brepB` | {@linkcode BrepHandle} | Second solid |
508
+ */
509
+ export declare const PluginGeomQueryBrepGetDistanceArgs: z.ZodObject<{
510
+ brepA: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"brep">, string>>;
511
+ brepB: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"brep">, string>>;
512
+ }, z.core.$strip>;
513
+ export type PluginGeomQueryBrepGetDistanceArgs = z.infer<typeof PluginGeomQueryBrepGetDistanceArgs>;
514
+ //# sourceMappingURL=brep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brep.d.ts","sourceRoot":"","sources":["../../../../../src/api/core/geom/query/brep.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EACL,UAAU,EACV,UAAU,EACV,UAAU,EACV,YAAY,EACZ,cAAc,EACd,cAAc,EACd,cAAc,EACf,MAAM,qBAAqB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