@snaptrude/plugin-core 0.3.0 → 0.6.0

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 (302) hide show
  1. package/AGENTS.md +130 -48
  2. package/CHANGELOG.md +163 -0
  3. package/api-manifest.full.json +5600 -0
  4. package/api-manifest.json +5502 -0
  5. package/dist/api/analysis/heatmaps.d.ts +234 -0
  6. package/dist/api/analysis/heatmaps.d.ts.map +1 -0
  7. package/dist/api/analysis/illuminance.d.ts +145 -0
  8. package/dist/api/analysis/illuminance.d.ts.map +1 -0
  9. package/dist/api/analysis/index.d.ts +44 -0
  10. package/dist/api/analysis/index.d.ts.map +1 -0
  11. package/dist/api/analysis/shadows.d.ts +165 -0
  12. package/dist/api/analysis/shadows.d.ts.map +1 -0
  13. package/dist/api/analysis/sunlightHours.d.ts +208 -0
  14. package/dist/api/analysis/sunlightHours.d.ts.map +1 -0
  15. package/dist/api/analysis/sunpath.d.ts +80 -0
  16. package/dist/api/analysis/sunpath.d.ts.map +1 -0
  17. package/dist/api/core/buildings.d.ts +427 -0
  18. package/dist/api/core/buildings.d.ts.map +1 -0
  19. package/dist/api/core/comment/index.d.ts +230 -0
  20. package/dist/api/core/comment/index.d.ts.map +1 -0
  21. package/dist/api/core/geom/create/index.d.ts +247 -0
  22. package/dist/api/core/geom/create/index.d.ts.map +1 -0
  23. package/dist/api/core/geom/delete/index.d.ts +72 -0
  24. package/dist/api/core/geom/delete/index.d.ts.map +1 -0
  25. package/dist/api/core/geom/index.d.ts +24 -23
  26. package/dist/api/core/geom/index.d.ts.map +1 -1
  27. package/dist/api/core/geom/query/arc.d.ts +169 -0
  28. package/dist/api/core/geom/query/arc.d.ts.map +1 -0
  29. package/dist/api/core/geom/query/brep.d.ts +402 -0
  30. package/dist/api/core/geom/query/brep.d.ts.map +1 -0
  31. package/dist/api/core/geom/query/circle.d.ts +378 -0
  32. package/dist/api/core/geom/query/circle.d.ts.map +1 -0
  33. package/dist/api/core/geom/query/contour.d.ts +450 -0
  34. package/dist/api/core/geom/query/contour.d.ts.map +1 -0
  35. package/dist/api/core/geom/query/curve.d.ts +918 -0
  36. package/dist/api/core/geom/query/curve.d.ts.map +1 -0
  37. package/dist/api/core/geom/query/edge.d.ts +128 -0
  38. package/dist/api/core/geom/query/edge.d.ts.map +1 -0
  39. package/dist/api/core/geom/query/face.d.ts +363 -0
  40. package/dist/api/core/geom/query/face.d.ts.map +1 -0
  41. package/dist/api/core/geom/query/halfedge.d.ts +206 -0
  42. package/dist/api/core/geom/query/halfedge.d.ts.map +1 -0
  43. package/dist/api/core/geom/query/index.d.ts +61 -0
  44. package/dist/api/core/geom/query/index.d.ts.map +1 -0
  45. package/dist/api/core/geom/query/profile.d.ts +410 -0
  46. package/dist/api/core/geom/query/profile.d.ts.map +1 -0
  47. package/dist/api/core/geom/query/vertex.d.ts +187 -0
  48. package/dist/api/core/geom/query/vertex.d.ts.map +1 -0
  49. package/dist/api/core/geom/update/contour.d.ts +272 -0
  50. package/dist/api/core/geom/update/contour.d.ts.map +1 -0
  51. package/dist/api/core/geom/update/curve.d.ts +180 -0
  52. package/dist/api/core/geom/update/curve.d.ts.map +1 -0
  53. package/dist/api/core/geom/update/index.d.ts +27 -0
  54. package/dist/api/core/geom/update/index.d.ts.map +1 -0
  55. package/dist/api/core/geom/update/profile.d.ts +329 -0
  56. package/dist/api/core/geom/update/profile.d.ts.map +1 -0
  57. package/dist/api/core/groups.d.ts +485 -0
  58. package/dist/api/core/groups.d.ts.map +1 -0
  59. package/dist/api/core/history/index.d.ts +78 -0
  60. package/dist/api/core/history/index.d.ts.map +1 -0
  61. package/dist/api/core/index.d.ts +51 -1
  62. package/dist/api/core/index.d.ts.map +1 -1
  63. package/dist/api/core/io/import/index.d.ts +392 -0
  64. package/dist/api/core/io/import/index.d.ts.map +1 -0
  65. package/dist/api/core/io/index.d.ts +35 -0
  66. package/dist/api/core/io/index.d.ts.map +1 -0
  67. package/dist/api/core/io/job/index.d.ts +139 -0
  68. package/dist/api/core/io/job/index.d.ts.map +1 -0
  69. package/dist/api/core/io/query/index.d.ts +74 -0
  70. package/dist/api/core/io/query/index.d.ts.map +1 -0
  71. package/dist/api/core/io/terrain/index.d.ts +206 -0
  72. package/dist/api/core/io/terrain/index.d.ts.map +1 -0
  73. package/dist/api/core/io/underlay/index.d.ts +286 -0
  74. package/dist/api/core/io/underlay/index.d.ts.map +1 -0
  75. package/dist/api/core/layers.d.ts +402 -0
  76. package/dist/api/core/layers.d.ts.map +1 -0
  77. package/dist/api/core/math/quat.d.ts +111 -128
  78. package/dist/api/core/math/quat.d.ts.map +1 -1
  79. package/dist/api/core/math/vec3.d.ts +120 -102
  80. package/dist/api/core/math/vec3.d.ts.map +1 -1
  81. package/dist/api/core/project/index.d.ts +399 -0
  82. package/dist/api/core/project/index.d.ts.map +1 -0
  83. package/dist/api/core/tags.d.ts +755 -0
  84. package/dist/api/core/tags.d.ts.map +1 -0
  85. package/dist/api/core/units/index.d.ts +175 -0
  86. package/dist/api/core/units/index.d.ts.map +1 -0
  87. package/dist/api/core/zoom/index.d.ts +45 -0
  88. package/dist/api/core/zoom/index.d.ts.map +1 -0
  89. package/dist/api/design/boolean/index.d.ts +168 -0
  90. package/dist/api/design/boolean/index.d.ts.map +1 -0
  91. package/dist/api/design/create/index.d.ts +837 -0
  92. package/dist/api/design/create/index.d.ts.map +1 -0
  93. package/dist/api/design/delete/index.d.ts +63 -0
  94. package/dist/api/design/delete/index.d.ts.map +1 -0
  95. package/dist/api/design/doors/index.d.ts +268 -0
  96. package/dist/api/design/doors/index.d.ts.map +1 -0
  97. package/dist/api/design/edit/index.d.ts +49 -0
  98. package/dist/api/design/edit/index.d.ts.map +1 -0
  99. package/dist/api/design/erase/index.d.ts +160 -0
  100. package/dist/api/design/erase/index.d.ts.map +1 -0
  101. package/dist/api/design/furniture/index.d.ts +123 -0
  102. package/dist/api/design/furniture/index.d.ts.map +1 -0
  103. package/dist/api/design/index.d.ts +153 -0
  104. package/dist/api/design/index.d.ts.map +1 -0
  105. package/dist/api/design/lock.d.ts +41 -0
  106. package/dist/api/design/lock.d.ts.map +1 -0
  107. package/dist/api/design/materials/index.d.ts +297 -0
  108. package/dist/api/design/materials/index.d.ts.map +1 -0
  109. package/dist/api/design/query/geometry/index.d.ts +140 -0
  110. package/dist/api/design/query/geometry/index.d.ts.map +1 -0
  111. package/dist/api/design/query/index.d.ts +1011 -0
  112. package/dist/api/design/query/index.d.ts.map +1 -0
  113. package/dist/api/design/query/spaces.d.ts +221 -0
  114. package/dist/api/design/query/spaces.d.ts.map +1 -0
  115. package/dist/api/design/selection/index.d.ts +282 -0
  116. package/dist/api/design/selection/index.d.ts.map +1 -0
  117. package/dist/api/design/shared.d.ts +38 -0
  118. package/dist/api/design/shared.d.ts.map +1 -0
  119. package/dist/api/design/transform/index.d.ts +87 -0
  120. package/dist/api/design/transform/index.d.ts.map +1 -0
  121. package/dist/api/design/update/index.d.ts +178 -0
  122. package/dist/api/design/update/index.d.ts.map +1 -0
  123. package/dist/api/design/windows/index.d.ts +189 -0
  124. package/dist/api/design/windows/index.d.ts.map +1 -0
  125. package/dist/api/entity/buildableEnvelope.d.ts +261 -0
  126. package/dist/api/entity/buildableEnvelope.d.ts.map +1 -0
  127. package/dist/api/entity/department.d.ts +0 -98
  128. package/dist/api/entity/department.d.ts.map +1 -1
  129. package/dist/api/entity/index.d.ts +9 -9
  130. package/dist/api/entity/index.d.ts.map +1 -1
  131. package/dist/api/entity/referenceLine.d.ts +49 -106
  132. package/dist/api/entity/referenceLine.d.ts.map +1 -1
  133. package/dist/api/entity/space.d.ts +484 -251
  134. package/dist/api/entity/space.d.ts.map +1 -1
  135. package/dist/api/entity/story.d.ts +49 -39
  136. package/dist/api/entity/story.d.ts.map +1 -1
  137. package/dist/api/index.d.ts +22 -12
  138. package/dist/api/index.d.ts.map +1 -1
  139. package/dist/api/presentation/aiInspiration.d.ts +440 -0
  140. package/dist/api/presentation/aiInspiration.d.ts.map +1 -0
  141. package/dist/api/presentation/diagrams.d.ts +81 -0
  142. package/dist/api/presentation/diagrams.d.ts.map +1 -0
  143. package/dist/api/presentation/import.d.ts +113 -0
  144. package/dist/api/presentation/import.d.ts.map +1 -0
  145. package/dist/api/presentation/index.d.ts +46 -0
  146. package/dist/api/presentation/index.d.ts.map +1 -0
  147. package/dist/api/presentation/sheets.d.ts +176 -0
  148. package/dist/api/presentation/sheets.d.ts.map +1 -0
  149. package/dist/api/presentation/views.d.ts +296 -0
  150. package/dist/api/presentation/views.d.ts.map +1 -0
  151. package/dist/api/program/adjacency.d.ts +155 -0
  152. package/dist/api/program/adjacency.d.ts.map +1 -0
  153. package/dist/api/program/areas.d.ts +360 -0
  154. package/dist/api/program/areas.d.ts.map +1 -0
  155. package/dist/api/program/classification.d.ts +135 -0
  156. package/dist/api/program/classification.d.ts.map +1 -0
  157. package/dist/api/program/cores.d.ts +174 -0
  158. package/dist/api/program/cores.d.ts.map +1 -0
  159. package/dist/api/program/departments.d.ts +431 -0
  160. package/dist/api/program/departments.d.ts.map +1 -0
  161. package/dist/api/program/index.d.ts +69 -0
  162. package/dist/api/program/index.d.ts.map +1 -0
  163. package/dist/api/program/layout.d.ts +63 -0
  164. package/dist/api/program/layout.d.ts.map +1 -0
  165. package/dist/api/program/metrics.d.ts +108 -0
  166. package/dist/api/program/metrics.d.ts.map +1 -0
  167. package/dist/api/program/site.d.ts +451 -0
  168. package/dist/api/program/site.d.ts.map +1 -0
  169. package/dist/api/program/spreadsheet.d.ts +2041 -0
  170. package/dist/api/program/spreadsheet.d.ts.map +1 -0
  171. package/dist/handles.d.ts +171 -0
  172. package/dist/handles.d.ts.map +1 -0
  173. package/dist/host-utils.d.ts +7 -5
  174. package/dist/host-utils.d.ts.map +1 -1
  175. package/dist/index.cjs +4344 -899
  176. package/dist/index.cjs.map +1 -1
  177. package/dist/index.d.ts +1 -0
  178. package/dist/index.d.ts.map +1 -1
  179. package/dist/index.js +3682 -865
  180. package/dist/index.js.map +1 -1
  181. package/package.json +6 -2
  182. package/scripts/generate-manifest.mjs +193 -0
  183. package/scripts/generate-manifest.test.mjs +215 -0
  184. package/src/api/analysis/heatmaps.ts +256 -0
  185. package/src/api/analysis/illuminance.ts +155 -0
  186. package/src/api/analysis/index.ts +46 -0
  187. package/src/api/analysis/shadows.ts +183 -0
  188. package/src/api/analysis/sunlightHours.ts +211 -0
  189. package/src/api/analysis/sunpath.ts +83 -0
  190. package/src/api/core/buildings.ts +485 -0
  191. package/src/api/core/comment/index.ts +258 -0
  192. package/src/api/core/geom/create/index.ts +293 -0
  193. package/src/api/core/geom/delete/index.ts +78 -0
  194. package/src/api/core/geom/index.ts +24 -23
  195. package/src/api/core/geom/query/arc.ts +169 -0
  196. package/src/api/core/geom/query/brep.ts +444 -0
  197. package/src/api/core/geom/query/circle.ts +404 -0
  198. package/src/api/core/geom/query/contour.ts +540 -0
  199. package/src/api/core/geom/query/curve.ts +1078 -0
  200. package/src/api/core/geom/query/edge.ts +130 -0
  201. package/src/api/core/geom/query/face.ts +403 -0
  202. package/src/api/core/geom/query/halfedge.ts +210 -0
  203. package/src/api/core/geom/query/index.ts +63 -0
  204. package/src/api/core/geom/query/profile.ts +473 -0
  205. package/src/api/core/geom/query/vertex.ts +205 -0
  206. package/src/api/core/geom/update/contour.ts +315 -0
  207. package/src/api/core/geom/update/curve.ts +209 -0
  208. package/src/api/core/geom/update/index.ts +29 -0
  209. package/src/api/core/geom/update/profile.ts +377 -0
  210. package/src/api/core/groups.ts +521 -0
  211. package/src/api/core/history/index.ts +84 -0
  212. package/src/api/core/index.ts +51 -1
  213. package/src/api/core/io/import/index.ts +432 -0
  214. package/src/api/core/io/index.ts +37 -0
  215. package/src/api/core/io/job/index.ts +140 -0
  216. package/src/api/core/io/query/index.ts +71 -0
  217. package/src/api/core/io/terrain/index.ts +214 -0
  218. package/src/api/core/io/underlay/index.ts +295 -0
  219. package/src/api/core/layers.ts +333 -0
  220. package/src/api/core/math/quat.ts +112 -235
  221. package/src/api/core/math/vec3.ts +124 -159
  222. package/src/api/core/project/index.ts +418 -0
  223. package/src/api/core/tags.ts +808 -0
  224. package/src/api/core/units/index.ts +164 -0
  225. package/src/api/core/zoom/index.ts +47 -0
  226. package/src/api/design/boolean/index.ts +179 -0
  227. package/src/api/design/create/index.ts +895 -0
  228. package/src/api/design/delete/index.ts +67 -0
  229. package/src/api/design/doors/index.ts +285 -0
  230. package/src/api/design/edit/index.ts +54 -0
  231. package/src/api/design/erase/index.ts +151 -0
  232. package/src/api/design/furniture/index.ts +130 -0
  233. package/src/api/design/index.ts +162 -0
  234. package/src/api/design/lock.ts +42 -0
  235. package/src/api/design/materials/index.ts +301 -0
  236. package/src/api/design/query/geometry/index.ts +166 -0
  237. package/src/api/design/query/index.ts +937 -0
  238. package/src/api/design/query/spaces.ts +132 -0
  239. package/src/api/design/selection/index.ts +273 -0
  240. package/src/api/design/shared.ts +40 -0
  241. package/src/api/design/transform/index.ts +93 -0
  242. package/src/api/design/update/index.ts +117 -0
  243. package/src/api/design/windows/index.ts +207 -0
  244. package/src/api/entity/buildableEnvelope.ts +318 -0
  245. package/src/api/entity/department.ts +0 -113
  246. package/src/api/entity/index.ts +9 -9
  247. package/src/api/entity/referenceLine.ts +50 -38
  248. package/src/api/entity/space.ts +285 -226
  249. package/src/api/entity/story.ts +53 -42
  250. package/src/api/index.ts +22 -12
  251. package/src/api/presentation/aiInspiration.ts +362 -0
  252. package/src/api/presentation/diagrams.ts +84 -0
  253. package/src/api/presentation/import.ts +112 -0
  254. package/src/api/presentation/index.ts +48 -0
  255. package/src/api/presentation/sheets.ts +198 -0
  256. package/src/api/presentation/views.ts +303 -0
  257. package/src/api/program/adjacency.ts +164 -0
  258. package/src/api/program/areas.ts +335 -0
  259. package/src/api/program/classification.ts +138 -0
  260. package/src/api/program/cores.ts +171 -0
  261. package/src/api/program/departments.ts +465 -0
  262. package/src/api/program/index.ts +71 -0
  263. package/src/api/program/layout.ts +68 -0
  264. package/src/api/program/metrics.ts +120 -0
  265. package/src/api/program/site.ts +419 -0
  266. package/src/api/program/spreadsheet.ts +2075 -0
  267. package/src/handles.ts +194 -0
  268. package/src/host-utils.ts +10 -6
  269. package/src/index.ts +1 -0
  270. package/dist/api/core/geom/arc.d.ts +0 -81
  271. package/dist/api/core/geom/arc.d.ts.map +0 -1
  272. package/dist/api/core/geom/curve.d.ts +0 -70
  273. package/dist/api/core/geom/curve.d.ts.map +0 -1
  274. package/dist/api/core/geom/line.d.ts +0 -56
  275. package/dist/api/core/geom/line.d.ts.map +0 -1
  276. package/dist/api/core/geom/profile.d.ts +0 -121
  277. package/dist/api/core/geom/profile.d.ts.map +0 -1
  278. package/dist/api/tools/copy.d.ts +0 -59
  279. package/dist/api/tools/copy.d.ts.map +0 -1
  280. package/dist/api/tools/index.d.ts +0 -33
  281. package/dist/api/tools/index.d.ts.map +0 -1
  282. package/dist/api/tools/material.d.ts +0 -51
  283. package/dist/api/tools/material.d.ts.map +0 -1
  284. package/dist/api/tools/offset.d.ts +0 -43
  285. package/dist/api/tools/offset.d.ts.map +0 -1
  286. package/dist/api/tools/selection.d.ts +0 -48
  287. package/dist/api/tools/selection.d.ts.map +0 -1
  288. package/dist/api/tools/transform.d.ts +0 -114
  289. package/dist/api/tools/transform.d.ts.map +0 -1
  290. package/dist/api/units/index.d.ts +0 -163
  291. package/dist/api/units/index.d.ts.map +0 -1
  292. package/src/api/core/geom/arc.ts +0 -70
  293. package/src/api/core/geom/curve.ts +0 -41
  294. package/src/api/core/geom/line.ts +0 -53
  295. package/src/api/core/geom/profile.ts +0 -94
  296. package/src/api/tools/copy.ts +0 -55
  297. package/src/api/tools/index.ts +0 -39
  298. package/src/api/tools/material.ts +0 -49
  299. package/src/api/tools/offset.ts +0 -43
  300. package/src/api/tools/selection.ts +0 -51
  301. package/src/api/tools/transform.ts +0 -117
  302. package/src/api/units/index.ts +0 -163
@@ -0,0 +1,272 @@
1
+ import * as z from "zod";
2
+ import { PluginApiReturn } from "../../../../types";
3
+ import { ContourHandle, ProfileHandle, Vec3Handle, Vec3Components } from "../../../../handles";
4
+ /**
5
+ * Contour editing — produce NEW contours from an existing one (all-handle model, §11).
6
+ *
7
+ * A contour is an outer {@linkcode ProfileHandle} plus zero or more inner profiles
8
+ * that punch holes in it. Every method here is an immutable derive-new operation:
9
+ * it takes an opaque {@linkcode ContourHandle} (plus any extra inputs) and returns a
10
+ * fresh {@linkcode ContourHandle} for the resulting contour. The input contour is
11
+ * never mutated — the original handle keeps referring to the unchanged contour. Read
12
+ * the resulting geometry back as plain values with the query namespace.
13
+ *
14
+ * Accessed via `snaptrude.core.geom.update.contour`.
15
+ */
16
+ export declare abstract class PluginGeomUpdateContourApi {
17
+ constructor();
18
+ /**
19
+ * Offset a contour inward/outward by a signed distance. Immutable — returns a NEW
20
+ * contour and leaves the input unchanged.
21
+ *
22
+ * @param contour The contour to offset
23
+ * @param distance Signed offset distance (outward when positive, inward when negative)
24
+ * @returns The offset contour as a NEW {@linkcode ContourHandle}
25
+ *
26
+ * @examplePrompt Offset this boundary 500mm inward
27
+ * @examplePrompt Shrink this floor outline by half a metre all around
28
+ *
29
+ * # Example
30
+ * ```ts
31
+ * const rect = await snaptrude.core.geom.create.profileRect(10, 8)
32
+ * const contour = await snaptrude.core.geom.create.contourFromProfile(rect)
33
+ * const inset = await snaptrude.core.geom.update.contour.offset(contour, -0.5)
34
+ * const area = await snaptrude.core.geom.query.contour.getArea(inset)
35
+ * ```
36
+ */
37
+ abstract offset(contour: ContourHandle, distance: number): PluginApiReturn<ContourHandle>;
38
+ /**
39
+ * Translate a contour by a vector. Immutable — returns a NEW contour and leaves
40
+ * the input unchanged.
41
+ *
42
+ * @param contour The contour to move
43
+ * @param translation Translation vector to move the contour by
44
+ * @returns The moved contour as a NEW {@linkcode ContourHandle}
45
+ *
46
+ * @examplePrompt Move this shape 2 metres to the right
47
+ * @examplePrompt Shift this outline over by 5 feet
48
+ *
49
+ * # Example
50
+ * ```ts
51
+ * const rect = await snaptrude.core.geom.create.profileRect(6, 4)
52
+ * const contour = await snaptrude.core.geom.create.contourFromProfile(rect)
53
+ * const shift = await snaptrude.core.math.vec3.new(2, 0, 0)
54
+ * const moved = await snaptrude.core.geom.update.contour.move(contour, shift)
55
+ * ```
56
+ */
57
+ abstract move(contour: ContourHandle, translation: Vec3Handle): PluginApiReturn<ContourHandle>;
58
+ /**
59
+ * Rotate a contour about an axis through an optional pivot. Immutable — returns a
60
+ * NEW contour and leaves the input unchanged.
61
+ *
62
+ * @param contour The contour to rotate
63
+ * @param axis Rotation axis direction
64
+ * @param angle Rotation angle in radians
65
+ * @param pivot Optional pivot point to rotate about (defaults to the origin)
66
+ * @returns The rotated contour as a NEW {@linkcode ContourHandle}
67
+ *
68
+ * @examplePrompt Rotate this shape 45 degrees
69
+ * @examplePrompt Turn this outline 90 degrees about its corner
70
+ *
71
+ * # Example
72
+ * ```ts
73
+ * const rect = await snaptrude.core.geom.create.profileRect(6, 4)
74
+ * const contour = await snaptrude.core.geom.create.contourFromProfile(rect)
75
+ * const axis = await snaptrude.core.math.vec3.new(0, 1, 0)
76
+ * const pivot = await snaptrude.core.math.vec3.new(3, 0, 2)
77
+ * const rotated = await snaptrude.core.geom.update.contour.rotate(contour, axis, Math.PI / 4, pivot)
78
+ * ```
79
+ */
80
+ abstract rotate(contour: ContourHandle, axis: Vec3Handle, angle: number, pivot?: Vec3Handle): PluginApiReturn<ContourHandle>;
81
+ /**
82
+ * Scale a contour uniformly or per-axis about an optional pivot. Immutable —
83
+ * returns a NEW contour and leaves the input unchanged.
84
+ *
85
+ * @param contour The contour to scale
86
+ * @param factor Uniform scale factor, or per-axis factors
87
+ * @param pivot Optional pivot point to scale about (defaults to the origin)
88
+ * @returns The scaled contour as a NEW {@linkcode ContourHandle}
89
+ *
90
+ * @examplePrompt Scale this shape up by a factor of 2
91
+ * @examplePrompt Make this outline half its current size
92
+ *
93
+ * # Example
94
+ * ```ts
95
+ * const rect = await snaptrude.core.geom.create.profileRect(6, 4)
96
+ * const contour = await snaptrude.core.geom.create.contourFromProfile(rect)
97
+ * const doubled = await snaptrude.core.geom.update.contour.scale(contour, 2)
98
+ * const stretched = await snaptrude.core.geom.update.contour.scale(contour, { x: 2, y: 1, z: 1 })
99
+ * ```
100
+ */
101
+ abstract scale(contour: ContourHandle, factor: number | Vec3Components, pivot?: Vec3Handle): PluginApiReturn<ContourHandle>;
102
+ /**
103
+ * Mirror a contour across a plane. Immutable — returns a NEW contour and leaves
104
+ * the input unchanged.
105
+ *
106
+ * @param contour The contour to mirror
107
+ * @param plane Mirror plane defined by a point on it and its normal
108
+ * @returns The mirrored contour as a NEW {@linkcode ContourHandle}
109
+ *
110
+ * @examplePrompt Mirror this shape across the gridline
111
+ * @examplePrompt Flip this outline to its mirror image
112
+ *
113
+ * # Example
114
+ * ```ts
115
+ * const rect = await snaptrude.core.geom.create.profileRect(6, 4)
116
+ * const contour = await snaptrude.core.geom.create.contourFromProfile(rect)
117
+ * const point = await snaptrude.core.math.vec3.new(0, 0, 0)
118
+ * const normal = await snaptrude.core.math.vec3.new(1, 0, 0)
119
+ * const mirrored = await snaptrude.core.geom.update.contour.mirror(contour, { point, normal })
120
+ * ```
121
+ */
122
+ abstract mirror(contour: ContourHandle, plane: {
123
+ point: Vec3Handle;
124
+ normal: Vec3Handle;
125
+ }): PluginApiReturn<ContourHandle>;
126
+ /**
127
+ * Add a hole to a contour by appending an inner profile. Immutable — returns a NEW
128
+ * contour and leaves the input unchanged.
129
+ *
130
+ * @param contour The contour to add a hole to
131
+ * @param hole The inner profile to add as a hole
132
+ * @returns The contour with the added hole as a NEW {@linkcode ContourHandle}
133
+ *
134
+ * @examplePrompt Cut a hole in this shape
135
+ * @examplePrompt Punch an opening through this floor outline
136
+ *
137
+ * # Example
138
+ * ```ts
139
+ * const outer = await snaptrude.core.geom.create.profileRect(10, 8)
140
+ * const contour = await snaptrude.core.geom.create.contourFromProfile(outer)
141
+ * const hole = await snaptrude.core.geom.create.profileRect(2, 2)
142
+ * const withHole = await snaptrude.core.geom.update.contour.addHole(contour, hole)
143
+ * const count = await snaptrude.core.geom.query.contour.getHoleCount(withHole) // 1
144
+ * ```
145
+ */
146
+ abstract addHole(contour: ContourHandle, hole: ProfileHandle): PluginApiReturn<ContourHandle>;
147
+ /**
148
+ * Remove a hole from a contour by inner-profile index. Immutable — returns a NEW
149
+ * contour and leaves the input unchanged.
150
+ *
151
+ * @param contour The contour to remove a hole from
152
+ * @param index Zero-based index of the inner profile (hole) to remove
153
+ * @returns The contour with the hole removed as a NEW {@linkcode ContourHandle}
154
+ *
155
+ * @examplePrompt Remove the hole from this shape
156
+ * @examplePrompt Fill in the opening in this floor outline
157
+ *
158
+ * # Example
159
+ * ```ts
160
+ * const outer = await snaptrude.core.geom.create.profileRect(10, 8)
161
+ * const hole = await snaptrude.core.geom.create.profileRect(2, 2)
162
+ * const contour = await snaptrude.core.geom.create.contourFromProfiles(outer, [hole])
163
+ * const solid = await snaptrude.core.geom.update.contour.removeHole(contour, 0)
164
+ * ```
165
+ */
166
+ abstract removeHole(contour: ContourHandle, index: number): PluginApiReturn<ContourHandle>;
167
+ }
168
+ /**
169
+ * Arguments for {@linkcode PluginGeomUpdateContourApi.offset}.
170
+ *
171
+ * | Property | Type | Description |
172
+ * |---|---|---|
173
+ * | `contour` | {@linkcode ContourHandle} | The contour to offset |
174
+ * | `distance` | `number` | Signed offset distance (outward when positive, inward when negative) |
175
+ */
176
+ export declare const PluginGeomUpdateContourOffsetArgs: z.ZodObject<{
177
+ contour: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"contour">, string>>;
178
+ distance: z.ZodNumber;
179
+ }, z.core.$strip>;
180
+ export type PluginGeomUpdateContourOffsetArgs = z.infer<typeof PluginGeomUpdateContourOffsetArgs>;
181
+ /**
182
+ * Arguments for {@linkcode PluginGeomUpdateContourApi.move}.
183
+ *
184
+ * | Property | Type | Description |
185
+ * |---|---|---|
186
+ * | `contour` | {@linkcode ContourHandle} | The contour to move |
187
+ * | `translation` | {@linkcode Vec3Handle} | Translation vector to move the contour by |
188
+ */
189
+ export declare const PluginGeomUpdateContourMoveArgs: z.ZodObject<{
190
+ contour: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"contour">, string>>;
191
+ translation: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"vec3">, string>>;
192
+ }, z.core.$strip>;
193
+ export type PluginGeomUpdateContourMoveArgs = z.infer<typeof PluginGeomUpdateContourMoveArgs>;
194
+ /**
195
+ * Arguments for {@linkcode PluginGeomUpdateContourApi.rotate}.
196
+ *
197
+ * | Property | Type | Description |
198
+ * |---|---|---|
199
+ * | `contour` | {@linkcode ContourHandle} | The contour to rotate |
200
+ * | `axis` | {@linkcode Vec3Handle} | Rotation axis direction |
201
+ * | `angle` | `number` | Rotation angle in radians |
202
+ * | `pivot` | {@linkcode Vec3Handle} | Optional pivot point to rotate about (defaults to the origin) |
203
+ */
204
+ export declare const PluginGeomUpdateContourRotateArgs: z.ZodObject<{
205
+ contour: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"contour">, string>>;
206
+ axis: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"vec3">, string>>;
207
+ angle: z.ZodNumber;
208
+ pivot: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"vec3">, string>>>;
209
+ }, z.core.$strip>;
210
+ export type PluginGeomUpdateContourRotateArgs = z.infer<typeof PluginGeomUpdateContourRotateArgs>;
211
+ /**
212
+ * Arguments for {@linkcode PluginGeomUpdateContourApi.scale}.
213
+ *
214
+ * | Property | Type | Description |
215
+ * |---|---|---|
216
+ * | `contour` | {@linkcode ContourHandle} | The contour to scale |
217
+ * | `factor` | `number` \| {@linkcode Vec3Components} | Uniform scale factor, or per-axis factors |
218
+ * | `pivot` | {@linkcode Vec3Handle} | Optional pivot point to scale about (defaults to the origin) |
219
+ */
220
+ export declare const PluginGeomUpdateContourScaleArgs: z.ZodObject<{
221
+ contour: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"contour">, string>>;
222
+ factor: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
223
+ x: z.ZodNumber;
224
+ y: z.ZodNumber;
225
+ z: z.ZodNumber;
226
+ }, z.core.$strip>]>;
227
+ pivot: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"vec3">, string>>>;
228
+ }, z.core.$strip>;
229
+ export type PluginGeomUpdateContourScaleArgs = z.infer<typeof PluginGeomUpdateContourScaleArgs>;
230
+ /**
231
+ * Arguments for {@linkcode PluginGeomUpdateContourApi.mirror}.
232
+ *
233
+ * | Property | Type | Description |
234
+ * |---|---|---|
235
+ * | `contour` | {@linkcode ContourHandle} | The contour to mirror |
236
+ * | `plane` | `{ point: `{@linkcode Vec3Handle}`, normal: `{@linkcode Vec3Handle}` }` | Mirror plane defined by a point on it and its normal |
237
+ */
238
+ export declare const PluginGeomUpdateContourMirrorArgs: z.ZodObject<{
239
+ contour: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"contour">, string>>;
240
+ plane: z.ZodObject<{
241
+ point: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"vec3">, string>>;
242
+ normal: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"vec3">, string>>;
243
+ }, z.core.$strip>;
244
+ }, z.core.$strip>;
245
+ export type PluginGeomUpdateContourMirrorArgs = z.infer<typeof PluginGeomUpdateContourMirrorArgs>;
246
+ /**
247
+ * Arguments for {@linkcode PluginGeomUpdateContourApi.addHole}.
248
+ *
249
+ * | Property | Type | Description |
250
+ * |---|---|---|
251
+ * | `contour` | {@linkcode ContourHandle} | The contour to add a hole to |
252
+ * | `hole` | {@linkcode ProfileHandle} | The inner profile to add as a hole |
253
+ */
254
+ export declare const PluginGeomUpdateContourAddHoleArgs: z.ZodObject<{
255
+ contour: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"contour">, string>>;
256
+ hole: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"profile">, string>>;
257
+ }, z.core.$strip>;
258
+ export type PluginGeomUpdateContourAddHoleArgs = z.infer<typeof PluginGeomUpdateContourAddHoleArgs>;
259
+ /**
260
+ * Arguments for {@linkcode PluginGeomUpdateContourApi.removeHole}.
261
+ *
262
+ * | Property | Type | Description |
263
+ * |---|---|---|
264
+ * | `contour` | {@linkcode ContourHandle} | The contour to remove a hole from |
265
+ * | `index` | `number` | Zero-based index of the inner profile (hole) to remove |
266
+ */
267
+ export declare const PluginGeomUpdateContourRemoveHoleArgs: z.ZodObject<{
268
+ contour: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"contour">, string>>;
269
+ index: z.ZodNumber;
270
+ }, z.core.$strip>;
271
+ export type PluginGeomUpdateContourRemoveHoleArgs = z.infer<typeof PluginGeomUpdateContourRemoveHoleArgs>;
272
+ //# sourceMappingURL=contour.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contour.d.ts","sourceRoot":"","sources":["../../../../../src/api/core/geom/update/contour.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EACL,aAAa,EACb,aAAa,EACb,UAAU,EACV,cAAc,EACf,MAAM,qBAAqB,CAAA;AAE5B;;;;;;;;;;;GAWG;AACH,8BAAsB,0BAA0B;;IAG9C;;;;;;;;;;;;;;;;;;OAkBG;aACa,MAAM,CACpB,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,MAAM,GACf,eAAe,CAAC,aAAa,CAAC;IAEjC;;;;;;;;;;;;;;;;;;OAkBG;aACa,IAAI,CAClB,OAAO,EAAE,aAAa,EACtB,WAAW,EAAE,UAAU,GACtB,eAAe,CAAC,aAAa,CAAC;IAEjC;;;;;;;;;;;;;;;;;;;;;OAqBG;aACa,MAAM,CACpB,OAAO,EAAE,aAAa,EACtB,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,UAAU,GACjB,eAAe,CAAC,aAAa,CAAC;IAEjC;;;;;;;;;;;;;;;;;;;OAmBG;aACa,KAAK,CACnB,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,MAAM,GAAG,cAAc,EAC/B,KAAK,CAAC,EAAE,UAAU,GACjB,eAAe,CAAC,aAAa,CAAC;IAEjC;;;;;;;;;;;;;;;;;;;OAmBG;aACa,MAAM,CACpB,OAAO,EAAE,aAAa,EACtB,KAAK,EAAE;QAAE,KAAK,EAAE,UAAU,CAAC;QAAC,MAAM,EAAE,UAAU,CAAA;KAAE,GAC/C,eAAe,CAAC,aAAa,CAAC;IAEjC;;;;;;;;;;;;;;;;;;;OAmBG;aACa,OAAO,CACrB,OAAO,EAAE,aAAa,EACtB,IAAI,EAAE,aAAa,GAClB,eAAe,CAAC,aAAa,CAAC;IAEjC;;;;;;;;;;;;;;;;;;OAkBG;aACa,UAAU,CACxB,OAAO,EAAE,aAAa,EACtB,KAAK,EAAE,MAAM,GACZ,eAAe,CAAC,aAAa,CAAC;CAClC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,iCAAiC;;;iBAG5C,CAAA;AAEF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AAEjG;;;;;;;GAOG;AACH,eAAO,MAAM,+BAA+B;;;iBAG1C,CAAA;AAEF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAE7F;;;;;;;;;GASG;AACH,eAAO,MAAM,iCAAiC;;;;;iBAK5C,CAAA;AAEF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AAEjG;;;;;;;;GAQG;AACH,eAAO,MAAM,gCAAgC;;;;;;;;iBAI3C,CAAA;AAEF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AAE/F;;;;;;;GAOG;AACH,eAAO,MAAM,iCAAiC;;;;;;iBAM5C,CAAA;AAEF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AAEjG;;;;;;;GAOG;AACH,eAAO,MAAM,kCAAkC;;;iBAG7C,CAAA;AAEF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAEnG;;;;;;;GAOG;AACH,eAAO,MAAM,qCAAqC;;;iBAGhD,CAAA;AAEF,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAA"}
@@ -0,0 +1,180 @@
1
+ import * as z from "zod";
2
+ import { PluginApiReturn } from "../../../../types";
3
+ import { Vec3Handle, CurveHandle } from "../../../../handles";
4
+ /**
5
+ * Curve editing — produce NEW curves from an existing one (all-handle model, §11).
6
+ *
7
+ * Every method takes an opaque {@linkcode CurveHandle} and returns a fresh handle
8
+ * (or handles) for the resulting geometry; the input curve is never mutated. Read
9
+ * the resulting geometry back as plain values with the query namespace.
10
+ *
11
+ * Accessed via `snaptrude.core.geom.update.curve`.
12
+ */
13
+ export declare abstract class PluginGeomUpdateCurveApi {
14
+ constructor();
15
+ /**
16
+ * Extend a curve by a distance from one of its ends. Host API call — returns a handle.
17
+ *
18
+ * @param curve - The curve to extend
19
+ * @param distance - Distance to extend the curve by
20
+ * @param fromStart - Extend from the start end when `true`, otherwise from the end
21
+ * @returns The extended curve as a {@linkcode CurveHandle}
22
+ *
23
+ * @examplePrompt Extend this line by 1 metre
24
+ * @examplePrompt Lengthen this edge from its start point
25
+ *
26
+ * # Example
27
+ * ```ts
28
+ * const a = await snaptrude.core.math.vec3.new(0, 0, 0)
29
+ * const b = await snaptrude.core.math.vec3.new(5, 0, 0)
30
+ * const line = await snaptrude.core.geom.create.line(a, b)
31
+ * const longer = await snaptrude.core.geom.update.curve.extend(line, 1, false)
32
+ * const length = await snaptrude.core.geom.query.curve.getLength(longer) // 6
33
+ * ```
34
+ */
35
+ abstract extend(curve: CurveHandle, distance: number, fromStart: boolean): PluginApiReturn<CurveHandle>;
36
+ /**
37
+ * Split a curve at a point into separate segments. Host API call — returns handles.
38
+ *
39
+ * @param curve - The curve to split
40
+ * @param point - Point on the curve to split at
41
+ * @returns The resulting segments as {@linkcode CurveHandle}`[]`
42
+ *
43
+ * @examplePrompt Split this line at its midpoint
44
+ * @examplePrompt Break this edge into two pieces where it meets the gridline
45
+ *
46
+ * # Example
47
+ * ```ts
48
+ * const a = await snaptrude.core.math.vec3.new(0, 0, 0)
49
+ * const b = await snaptrude.core.math.vec3.new(6, 0, 0)
50
+ * const line = await snaptrude.core.geom.create.line(a, b)
51
+ * const mid = await snaptrude.core.math.vec3.new(3, 0, 0)
52
+ * const [left, right] = await snaptrude.core.geom.update.curve.split(line, mid)
53
+ * ```
54
+ */
55
+ abstract split(curve: CurveHandle, point: Vec3Handle): PluginApiReturn<CurveHandle[]>;
56
+ /**
57
+ * Trim a curve to the portion between two parameter values. Host API call — returns a handle.
58
+ *
59
+ * @param curve - The curve to trim
60
+ * @param startParam - Start parameter of the portion to keep
61
+ * @param endParam - End parameter of the portion to keep
62
+ * @returns The trimmed curve as a {@linkcode CurveHandle}
63
+ *
64
+ * @examplePrompt Trim this line back to a shorter segment
65
+ * @examplePrompt Keep only the middle portion of this curve
66
+ *
67
+ * # Example
68
+ * ```ts
69
+ * const a = await snaptrude.core.math.vec3.new(0, 0, 0)
70
+ * const b = await snaptrude.core.math.vec3.new(10, 0, 0)
71
+ * const line = await snaptrude.core.geom.create.line(a, b)
72
+ * const middle = await snaptrude.core.geom.update.curve.trim(line, 0.25, 0.75)
73
+ * ```
74
+ */
75
+ abstract trim(curve: CurveHandle, startParam: number, endParam: number): PluginApiReturn<CurveHandle>;
76
+ /**
77
+ * Offset a curve by a translation vector. Host API call — returns a handle.
78
+ *
79
+ * @param curve - The curve to offset
80
+ * @param vector - Translation vector to offset the curve by
81
+ * @returns The offset curve as a {@linkcode CurveHandle}
82
+ *
83
+ * @examplePrompt Offset this line 500mm to the side
84
+ * @examplePrompt Shift this edge over to make a parallel copy
85
+ *
86
+ * # Example
87
+ * ```ts
88
+ * const a = await snaptrude.core.math.vec3.new(0, 0, 0)
89
+ * const b = await snaptrude.core.math.vec3.new(8, 0, 0)
90
+ * const line = await snaptrude.core.geom.create.line(a, b)
91
+ * const sideways = await snaptrude.core.math.vec3.new(0, 0, 0.5)
92
+ * const parallel = await snaptrude.core.geom.update.curve.offset(line, sideways)
93
+ * ```
94
+ */
95
+ abstract offset(curve: CurveHandle, vector: Vec3Handle): PluginApiReturn<CurveHandle>;
96
+ /**
97
+ * Reverse the direction of a curve. Host API call — returns a handle.
98
+ *
99
+ * @param curve - The curve to reverse
100
+ * @returns The reversed curve as a {@linkcode CurveHandle}
101
+ *
102
+ * # Example
103
+ * ```ts
104
+ * const a = await snaptrude.core.math.vec3.new(0, 0, 0)
105
+ * const b = await snaptrude.core.math.vec3.new(4, 0, 0)
106
+ * const line = await snaptrude.core.geom.create.line(a, b)
107
+ * const reversed = await snaptrude.core.geom.update.curve.reverse(line)
108
+ * const start = await snaptrude.core.geom.query.curve.getStartPoint(reversed) // { x: 4, y: 0, z: 0 }
109
+ * ```
110
+ */
111
+ abstract reverse(curve: CurveHandle): PluginApiReturn<CurveHandle>;
112
+ }
113
+ /**
114
+ * Arguments for {@linkcode PluginGeomUpdateCurveApi.extend}.
115
+ *
116
+ * | Property | Type | Description |
117
+ * |---|---|---|
118
+ * | `curve` | {@linkcode CurveHandle} | The curve to extend |
119
+ * | `distance` | `number` | Distance to extend the curve by |
120
+ * | `fromStart` | `boolean` | Extend from the start end when `true`, otherwise from the end |
121
+ */
122
+ export declare const PluginGeomUpdateCurveExtendArgs: z.ZodObject<{
123
+ curve: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"line">, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"arc">, string>>]>;
124
+ distance: z.ZodNumber;
125
+ fromStart: z.ZodBoolean;
126
+ }, z.core.$strip>;
127
+ export type PluginGeomUpdateCurveExtendArgs = z.infer<typeof PluginGeomUpdateCurveExtendArgs>;
128
+ /**
129
+ * Arguments for {@linkcode PluginGeomUpdateCurveApi.split}.
130
+ *
131
+ * | Property | Type | Description |
132
+ * |---|---|---|
133
+ * | `curve` | {@linkcode CurveHandle} | The curve to split |
134
+ * | `point` | {@linkcode Vec3Handle} | Point on the curve to split at |
135
+ */
136
+ export declare const PluginGeomUpdateCurveSplitArgs: z.ZodObject<{
137
+ curve: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"line">, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"arc">, string>>]>;
138
+ point: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"vec3">, string>>;
139
+ }, z.core.$strip>;
140
+ export type PluginGeomUpdateCurveSplitArgs = z.infer<typeof PluginGeomUpdateCurveSplitArgs>;
141
+ /**
142
+ * Arguments for {@linkcode PluginGeomUpdateCurveApi.trim}.
143
+ *
144
+ * | Property | Type | Description |
145
+ * |---|---|---|
146
+ * | `curve` | {@linkcode CurveHandle} | The curve to trim |
147
+ * | `startParam` | `number` | Start parameter of the portion to keep |
148
+ * | `endParam` | `number` | End parameter of the portion to keep |
149
+ */
150
+ export declare const PluginGeomUpdateCurveTrimArgs: z.ZodObject<{
151
+ curve: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"line">, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"arc">, string>>]>;
152
+ startParam: z.ZodNumber;
153
+ endParam: z.ZodNumber;
154
+ }, z.core.$strip>;
155
+ export type PluginGeomUpdateCurveTrimArgs = z.infer<typeof PluginGeomUpdateCurveTrimArgs>;
156
+ /**
157
+ * Arguments for {@linkcode PluginGeomUpdateCurveApi.offset}.
158
+ *
159
+ * | Property | Type | Description |
160
+ * |---|---|---|
161
+ * | `curve` | {@linkcode CurveHandle} | The curve to offset |
162
+ * | `vector` | {@linkcode Vec3Handle} | Translation vector to offset the curve by |
163
+ */
164
+ export declare const PluginGeomUpdateCurveOffsetArgs: z.ZodObject<{
165
+ curve: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"line">, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"arc">, string>>]>;
166
+ vector: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"vec3">, string>>;
167
+ }, z.core.$strip>;
168
+ export type PluginGeomUpdateCurveOffsetArgs = z.infer<typeof PluginGeomUpdateCurveOffsetArgs>;
169
+ /**
170
+ * Arguments for {@linkcode PluginGeomUpdateCurveApi.reverse}.
171
+ *
172
+ * | Property | Type | Description |
173
+ * |---|---|---|
174
+ * | `curve` | {@linkcode CurveHandle} | The curve to reverse |
175
+ */
176
+ export declare const PluginGeomUpdateCurveReverseArgs: z.ZodObject<{
177
+ curve: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"line">, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"arc">, string>>]>;
178
+ }, z.core.$strip>;
179
+ export type PluginGeomUpdateCurveReverseArgs = z.infer<typeof PluginGeomUpdateCurveReverseArgs>;
180
+ //# sourceMappingURL=curve.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"curve.d.ts","sourceRoot":"","sources":["../../../../../src/api/core/geom/update/curve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAE7D;;;;;;;;GAQG;AACH,8BAAsB,wBAAwB;;IAG5C;;;;;;;;;;;;;;;;;;;OAmBG;aACa,MAAM,CACpB,KAAK,EAAE,WAAW,EAClB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,OAAO,GACjB,eAAe,CAAC,WAAW,CAAC;IAE/B;;;;;;;;;;;;;;;;;;OAkBG;aACa,KAAK,CACnB,KAAK,EAAE,WAAW,EAClB,KAAK,EAAE,UAAU,GAChB,eAAe,CAAC,WAAW,EAAE,CAAC;IAEjC;;;;;;;;;;;;;;;;;;OAkBG;aACa,IAAI,CAClB,KAAK,EAAE,WAAW,EAClB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GACf,eAAe,CAAC,WAAW,CAAC;IAE/B;;;;;;;;;;;;;;;;;;OAkBG;aACa,MAAM,CACpB,KAAK,EAAE,WAAW,EAClB,MAAM,EAAE,UAAU,GACjB,eAAe,CAAC,WAAW,CAAC;IAE/B;;;;;;;;;;;;;;OAcG;aACa,OAAO,CAAC,KAAK,EAAE,WAAW,GAAG,eAAe,CAAC,WAAW,CAAC;CAC1E;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,+BAA+B;;;;iBAI1C,CAAA;AAEF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAE7F;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B;;;iBAGzC,CAAA;AAEF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAE3F;;;;;;;;GAQG;AACH,eAAO,MAAM,6BAA6B;;;;iBAIxC,CAAA;AAEF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA;AAEzF;;;;;;;GAOG;AACH,eAAO,MAAM,+BAA+B;;;iBAG1C,CAAA;AAEF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAE7F;;;;;;GAMG;AACH,eAAO,MAAM,gCAAgC;;iBAE3C,CAAA;AAEF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA"}
@@ -0,0 +1,27 @@
1
+ import { PluginGeomUpdateCurveApi } from "./curve";
2
+ import { PluginGeomUpdateProfileApi } from "./profile";
3
+ import { PluginGeomUpdateContourApi } from "./contour";
4
+ /**
5
+ * Curve/profile/contour update namespace — derive NEW geometry by editing existing
6
+ * handles (all-handle model, §11). Inputs are never mutated; every method returns a
7
+ * fresh handle.
8
+ *
9
+ * - {@linkcode PluginGeomUpdateApi.curve} — extend, split, trim, offset, reverse
10
+ * - {@linkcode PluginGeomUpdateApi.profile} — offset, affine, add/remove/reverse/simplify
11
+ * - {@linkcode PluginGeomUpdateApi.contour} — offset, affine, addHole/removeHole
12
+ *
13
+ * Accessed via `snaptrude.core.geom.update`.
14
+ */
15
+ export declare abstract class PluginGeomUpdateApi {
16
+ /** Curve editing operations. See {@linkcode PluginGeomUpdateCurveApi}. */
17
+ abstract curve: PluginGeomUpdateCurveApi;
18
+ /** Profile editing operations. See {@linkcode PluginGeomUpdateProfileApi}. */
19
+ abstract profile: PluginGeomUpdateProfileApi;
20
+ /** Contour editing operations. See {@linkcode PluginGeomUpdateContourApi}. */
21
+ abstract contour: PluginGeomUpdateContourApi;
22
+ constructor();
23
+ }
24
+ export * from "./curve";
25
+ export * from "./profile";
26
+ export * from "./contour";
27
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/core/geom/update/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAClD,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAA;AAEtD;;;;;;;;;;GAUG;AACH,8BAAsB,mBAAmB;IACvC,0EAA0E;IAC1E,SAAgB,KAAK,EAAE,wBAAwB,CAAA;IAC/C,8EAA8E;IAC9E,SAAgB,OAAO,EAAE,0BAA0B,CAAA;IACnD,8EAA8E;IAC9E,SAAgB,OAAO,EAAE,0BAA0B,CAAA;;CAGpD;AAED,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA"}