scriptup 2026.0.1 → 2026.0.2

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 (501) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +43 -24
  3. data/ext/arc_curve.c +50 -0
  4. data/ext/attribute_dictionaries.c +49 -32
  5. data/ext/attribute_dictionary.c +54 -127
  6. data/ext/axes.c +79 -0
  7. data/ext/behavior.c +100 -9
  8. data/ext/bounding_box.c +195 -0
  9. data/ext/camera.c +178 -0
  10. data/ext/classifications.c +85 -0
  11. data/ext/color.c +91 -163
  12. data/ext/component_definition.c +78 -162
  13. data/ext/component_instance.c +88 -9
  14. data/ext/construction.c +59 -0
  15. data/ext/curve.c +87 -0
  16. data/ext/definition_list.c +89 -109
  17. data/ext/depend +1 -0
  18. data/ext/drawing_element.c +96 -117
  19. data/ext/edge.c +147 -0
  20. data/ext/edge_use.c +37 -0
  21. data/ext/entities.c +573 -16
  22. data/ext/entities_builder.c +145 -0
  23. data/ext/entity.c +175 -215
  24. data/ext/environments.c +149 -0
  25. data/ext/extconf.rb +54 -10
  26. data/ext/face.c +331 -0
  27. data/ext/geom.c +172 -0
  28. data/ext/group.c +86 -0
  29. data/ext/helpers.c +244 -0
  30. data/ext/image.c +182 -0
  31. data/ext/image_rep.c +158 -0
  32. data/ext/instance_path.c +185 -0
  33. data/ext/lat_long.c +88 -0
  34. data/ext/layer.c +98 -0
  35. data/ext/layer_folder.c +99 -0
  36. data/ext/layers.c +122 -0
  37. data/ext/length.c +253 -0
  38. data/ext/line_styles.c +60 -0
  39. data/ext/loop.c +24 -0
  40. data/ext/material.c +144 -197
  41. data/ext/materials.c +49 -60
  42. data/ext/model.c +232 -26
  43. data/ext/options_store.c +188 -0
  44. data/ext/page.c +168 -0
  45. data/ext/pages.c +135 -0
  46. data/ext/point2d.c +195 -0
  47. data/ext/point3d.c +340 -0
  48. data/ext/polygon_mesh.c +253 -0
  49. data/ext/scriptup.h +279 -0
  50. data/ext/section_plane.c +44 -0
  51. data/ext/sketchup.c +102 -76
  52. data/ext/styles.c +91 -0
  53. data/ext/text.c +135 -0
  54. data/ext/texture.c +74 -83
  55. data/ext/texture_writer.c +104 -0
  56. data/ext/transformation.c +309 -0
  57. data/ext/transformation2d.c +190 -0
  58. data/ext/uv_helper.c +41 -0
  59. data/ext/vector2d.c +238 -0
  60. data/ext/vector3d.c +294 -0
  61. data/ext/vertex.c +67 -0
  62. data/lib/sketchup.rb +2 -2
  63. data/sig/_top_level.rbs +188 -0
  64. data/sig/array.rbs +52 -0
  65. data/sig/geom/bounding_box.rbs +28 -0
  66. data/sig/geom/bounds2d.rbs +20 -0
  67. data/sig/geom/lat_long.rbs +13 -0
  68. data/sig/geom/oriented_bounds2d.rbs +10 -0
  69. data/sig/geom/point2d.rbs +32 -0
  70. data/sig/geom/point3d.rbs +46 -0
  71. data/sig/geom/polygon_mesh.rbs +35 -0
  72. data/sig/geom/transformation.rbs +44 -0
  73. data/sig/geom/transformation2d.rbs +26 -0
  74. data/sig/geom/utm.rbs +14 -0
  75. data/sig/geom/vector2d.rbs +40 -0
  76. data/sig/geom/vector3d.rbs +49 -0
  77. data/sig/geom.rbs +25 -0
  78. data/sig/language_handler.rbs +8 -0
  79. data/sig/layout/angular_dimension.rbs +32 -0
  80. data/sig/layout/auto_text_definition.rbs +73 -0
  81. data/sig/layout/auto_text_definitions.rbs +15 -0
  82. data/sig/layout/connection_point.rbs +6 -0
  83. data/sig/layout/dictionary.rbs +18 -0
  84. data/sig/layout/document.rbs +61 -0
  85. data/sig/layout/ellipse.rbs +5 -0
  86. data/sig/layout/entities.rbs +10 -0
  87. data/sig/layout/entity.rbs +28 -0
  88. data/sig/layout/formatted_text.rbs +30 -0
  89. data/sig/layout/grid.rbs +24 -0
  90. data/sig/layout/group.rbs +17 -0
  91. data/sig/layout/image.rbs +7 -0
  92. data/sig/layout/label.rbs +31 -0
  93. data/sig/layout/layer.rbs +21 -0
  94. data/sig/layout/layer_instance.rbs +9 -0
  95. data/sig/layout/layers.rbs +18 -0
  96. data/sig/layout/linear_dimension.rbs +39 -0
  97. data/sig/layout/locked_entity_error.rbs +4 -0
  98. data/sig/layout/locked_layer_error.rbs +4 -0
  99. data/sig/layout/page.rbs +20 -0
  100. data/sig/layout/page_info.rbs +37 -0
  101. data/sig/layout/pages.rbs +17 -0
  102. data/sig/layout/path.rbs +34 -0
  103. data/sig/layout/rectangle.rbs +15 -0
  104. data/sig/layout/reference_entity.rbs +7 -0
  105. data/sig/layout/sketch_up_model.rbs +54 -0
  106. data/sig/layout/style.rbs +150 -0
  107. data/sig/layout/table.rbs +17 -0
  108. data/sig/layout/table_cell.rbs +13 -0
  109. data/sig/layout/table_column.rbs +10 -0
  110. data/sig/layout/table_row.rbs +10 -0
  111. data/sig/layout.rbs +4 -0
  112. data/sig/length.rbs +37 -0
  113. data/sig/numeric.rbs +23 -0
  114. data/sig/sketchup/animation.rbs +8 -0
  115. data/sig/sketchup/app_observer.rbs +11 -0
  116. data/sig/sketchup/arc_curve.rbs +14 -0
  117. data/sig/sketchup/attribute_dictionaries.rbs +11 -0
  118. data/sig/sketchup/attribute_dictionary.rbs +18 -0
  119. data/sig/sketchup/axes.rbs +13 -0
  120. data/sig/sketchup/behavior.rbs +19 -0
  121. data/sig/sketchup/camera.rbs +33 -0
  122. data/sig/sketchup/classification_schema.rbs +8 -0
  123. data/sig/sketchup/classifications.rbs +12 -0
  124. data/sig/sketchup/color.rbs +22 -0
  125. data/sig/sketchup/component_definition.rbs +43 -0
  126. data/sig/sketchup/component_instance.rbs +32 -0
  127. data/sig/sketchup/console.rbs +8 -0
  128. data/sig/sketchup/construction_line.rbs +17 -0
  129. data/sig/sketchup/construction_point.rbs +5 -0
  130. data/sig/sketchup/curve.rbs +13 -0
  131. data/sig/sketchup/definition_list.rbs +26 -0
  132. data/sig/sketchup/definition_observer.rbs +6 -0
  133. data/sig/sketchup/definitions_observer.rbs +8 -0
  134. data/sig/sketchup/dimension.rbs +18 -0
  135. data/sig/sketchup/dimension_linear.rbs +24 -0
  136. data/sig/sketchup/dimension_observer.rbs +5 -0
  137. data/sig/sketchup/dimension_radial.rbs +9 -0
  138. data/sig/sketchup/drawingelement.rbs +18 -0
  139. data/sig/sketchup/edge.rbs +24 -0
  140. data/sig/sketchup/edge_use.rbs +13 -0
  141. data/sig/sketchup/entities.rbs +61 -0
  142. data/sig/sketchup/entities_builder.rbs +15 -0
  143. data/sig/sketchup/entities_observer.rbs +9 -0
  144. data/sig/sketchup/entity.rbs +21 -0
  145. data/sig/sketchup/entity_observer.rbs +6 -0
  146. data/sig/sketchup/environment.rbs +25 -0
  147. data/sig/sketchup/environments.rbs +18 -0
  148. data/sig/sketchup/environments_observer.rbs +8 -0
  149. data/sig/sketchup/extensions_manager.rbs +11 -0
  150. data/sig/sketchup/face.rbs +44 -0
  151. data/sig/sketchup/frame_change_observer.rbs +5 -0
  152. data/sig/sketchup/group.rbs +38 -0
  153. data/sig/sketchup/http/request.rbs +17 -0
  154. data/sig/sketchup/http/response.rbs +7 -0
  155. data/sig/sketchup/http.rbs +27 -0
  156. data/sig/sketchup/image.rbs +23 -0
  157. data/sig/sketchup/image_rep.rbs +17 -0
  158. data/sig/sketchup/importer.rbs +14 -0
  159. data/sig/sketchup/input_point.rbs +25 -0
  160. data/sig/sketchup/instance_observer.rbs +6 -0
  161. data/sig/sketchup/instance_path.rbs +20 -0
  162. data/sig/sketchup/layer.rbs +20 -0
  163. data/sig/sketchup/layer_folder.rbs +26 -0
  164. data/sig/sketchup/layers.rbs +30 -0
  165. data/sig/sketchup/layers_observer.rbs +13 -0
  166. data/sig/sketchup/licensing/extension_license.rbs +8 -0
  167. data/sig/sketchup/licensing.rbs +15 -0
  168. data/sig/sketchup/line_style.rbs +5 -0
  169. data/sig/sketchup/line_styles.rbs +13 -0
  170. data/sig/sketchup/load_handler.rbs +8 -0
  171. data/sig/sketchup/loop.rbs +10 -0
  172. data/sig/sketchup/material.rbs +74 -0
  173. data/sig/sketchup/materials.rbs +22 -0
  174. data/sig/sketchup/materials_observer.rbs +10 -0
  175. data/sig/sketchup/menu.rbs +9 -0
  176. data/sig/sketchup/model.rbs +105 -0
  177. data/sig/sketchup/model_observer.rbs +23 -0
  178. data/sig/sketchup/options_manager.rbs +12 -0
  179. data/sig/sketchup/options_provider.rbs +23 -0
  180. data/sig/sketchup/options_provider_observer.rbs +5 -0
  181. data/sig/sketchup/overlay.rbs +21 -0
  182. data/sig/sketchup/overlays_manager.rbs +10 -0
  183. data/sig/sketchup/page.rbs +55 -0
  184. data/sig/sketchup/pages.rbs +25 -0
  185. data/sig/sketchup/pages_observer.rbs +7 -0
  186. data/sig/sketchup/pick_helper.rbs +28 -0
  187. data/sig/sketchup/regional_settings.rbs +7 -0
  188. data/sig/sketchup/rendering_options.rbs +89 -0
  189. data/sig/sketchup/rendering_options_observer.rbs +5 -0
  190. data/sig/sketchup/section_plane.rbs +12 -0
  191. data/sig/sketchup/selection.rbs +31 -0
  192. data/sig/sketchup/selection_observer.rbs +8 -0
  193. data/sig/sketchup/set.rbs +15 -0
  194. data/sig/sketchup/shadow_info.rbs +18 -0
  195. data/sig/sketchup/shadow_info_observer.rbs +5 -0
  196. data/sig/sketchup/skp.rbs +5 -0
  197. data/sig/sketchup/snap.rbs +10 -0
  198. data/sig/sketchup/style.rbs +9 -0
  199. data/sig/sketchup/styles.rbs +21 -0
  200. data/sig/sketchup/text.rbs +22 -0
  201. data/sig/sketchup/texture.rbs +14 -0
  202. data/sig/sketchup/texture_writer.rbs +14 -0
  203. data/sig/sketchup/tool.rbs +45 -0
  204. data/sig/sketchup/tools.rbs +14 -0
  205. data/sig/sketchup/tools_observer.rbs +6 -0
  206. data/sig/sketchup/uv_helper.rbs +6 -0
  207. data/sig/sketchup/vertex.rbs +11 -0
  208. data/sig/sketchup/view.rbs +87 -0
  209. data/sig/sketchup/view_observer.rbs +6 -0
  210. data/sig/sketchup.rbs +137 -0
  211. data/sig/sketchup_extension.rbs +23 -0
  212. data/sig/string.rbs +5 -0
  213. data/sig/ui/command.rbs +20 -0
  214. data/sig/ui/html_dialog.rbs +29 -0
  215. data/sig/ui/notification.rbs +16 -0
  216. data/sig/ui/toolbar.rbs +18 -0
  217. data/sig/ui/web_dialog.rbs +38 -0
  218. data/sig/ui.rbs +66 -0
  219. metadata +204 -287
  220. data/ext/attribute_dictionaries.h +0 -8
  221. data/ext/attribute_dictionary.h +0 -8
  222. data/ext/behavior.h +0 -8
  223. data/ext/color.h +0 -8
  224. data/ext/component_definition.h +0 -8
  225. data/ext/component_instance.h +0 -8
  226. data/ext/definition_list.h +0 -8
  227. data/ext/drawing_element.h +0 -8
  228. data/ext/entities.h +0 -8
  229. data/ext/entity.h +0 -8
  230. data/ext/material.h +0 -8
  231. data/ext/materials.h +0 -8
  232. data/ext/model.h +0 -8
  233. data/ext/not_implemented.c +0 -88
  234. data/ext/not_implemented.h +0 -20
  235. data/ext/sketchup.h +0 -9
  236. data/ext/texture.h +0 -8
  237. data/ext/typed_value.c +0 -84
  238. data/ext/typed_value.h +0 -11
  239. data/ext/utils.h +0 -111
  240. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonGeometry.dylib +0 -0
  241. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonGeoutils.dylib +0 -0
  242. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonImage.dylib +0 -4
  243. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonPreferences.dylib +0 -0
  244. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonUnits.dylib +0 -0
  245. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonUtils.dylib +0 -0
  246. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonZip.dylib +0 -0
  247. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/application.h +0 -36
  248. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/model.h +0 -59
  249. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/overlay.h +0 -262
  250. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/ruby_api.h +0 -118
  251. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/color.h +0 -107
  252. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/common.h +0 -178
  253. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/defs.h +0 -19
  254. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/extension_license.h +0 -70
  255. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/bounding_box.h +0 -34
  256. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/plane3d.h +0 -153
  257. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/point2d.h +0 -96
  258. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/point3d.h +0 -98
  259. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/ray3d.h +0 -64
  260. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/transformation.h +0 -321
  261. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/transformation2d.h +0 -163
  262. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/vector2d.h +0 -235
  263. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/vector3d.h +0 -285
  264. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry.h +0 -154
  265. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/modelexporterplugin.h +0 -165
  266. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/modelimporterplugin.h +0 -187
  267. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/pluginprogresscallback.h +0 -84
  268. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/initialize.h +0 -43
  269. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/length_formatter.h +0 -424
  270. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/arccurve.h +0 -244
  271. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/arrow_type.h +0 -17
  272. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/attribute_dictionary.h +0 -161
  273. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/axes.h +0 -242
  274. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/camera.h +0 -398
  275. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classification_attribute.h +0 -89
  276. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classification_info.h +0 -125
  277. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classifications.h +0 -86
  278. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/component_definition.h +0 -629
  279. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/component_definition_snap_to_behavior_private.h +0 -46
  280. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/component_instance.h +0 -344
  281. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/curve.h +0 -143
  282. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/defs.h +0 -147
  283. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension.h +0 -224
  284. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_linear.h +0 -421
  285. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_radial.h +0 -194
  286. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_style.h +0 -253
  287. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/drawing_element.h +0 -198
  288. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dynamic_component_attribute.h +0 -92
  289. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dynamic_component_info.h +0 -70
  290. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/edge.h +0 -271
  291. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/edge_use.h +0 -214
  292. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entities.h +0 -879
  293. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity.h +0 -189
  294. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity_list.h +0 -80
  295. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity_list_iterator.h +0 -90
  296. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/environment.h +0 -382
  297. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/environments.h +0 -133
  298. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/face.h +0 -702
  299. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/font.h +0 -138
  300. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/geometry.h +0 -20
  301. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/geometry_input.h +0 -695
  302. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/group.h +0 -245
  303. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/guide_line.h +0 -155
  304. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/guide_point.h +0 -153
  305. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/image.h +0 -289
  306. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/image_rep.h +0 -275
  307. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/instancepath.h +0 -266
  308. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/layer.h +0 -265
  309. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/layer_folder.h +0 -301
  310. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/line_style.h +0 -211
  311. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/line_styles.h +0 -81
  312. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/location.h +0 -65
  313. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/loop.h +0 -182
  314. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/material.h +0 -797
  315. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/mesh_helper.h +0 -187
  316. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/model.h +0 -1826
  317. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/model_entity_type_private.h +0 -44
  318. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/model_version.h +0 -49
  319. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/opening.h +0 -72
  320. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/options_manager.h +0 -79
  321. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/options_provider.h +0 -166
  322. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/polyline3d.h +0 -140
  323. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/rendering_options.h +0 -180
  324. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/scene.h +0 -1016
  325. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/schema.h +0 -56
  326. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/schema_type.h +0 -26
  327. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/section_plane.h +0 -212
  328. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/selection.h +0 -156
  329. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/shadow_info.h +0 -147
  330. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/skp.h +0 -45
  331. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/snap.h +0 -183
  332. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/space.h +0 -26
  333. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/style.h +0 -303
  334. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/styles.h +0 -192
  335. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/text.h +0 -392
  336. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/texture.h +0 -380
  337. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/texture_writer.h +0 -280
  338. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/typed_value.h +0 -390
  339. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/uv_helper.h +0 -79
  340. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/vertex.h +0 -154
  341. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/sketchup.h +0 -125
  342. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/sketchup_info.h +0 -65
  343. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/slapi.h +0 -16
  344. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/transformation.h +0 -16
  345. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/unicodestring.h +0 -239
  346. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/utils/math_helpers.h +0 -124
  347. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Resources/Info.plist +0 -50
  348. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/SketchUpAPI +0 -0
  349. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/_CodeSignature/CodeResources +0 -891
  350. data/sketchup-sdk-win/binaries/layout/x64/LayOutAPI.dll +0 -0
  351. data/sketchup-sdk-win/binaries/layout/x64/LayOutAPI.lib +0 -0
  352. data/sketchup-sdk-win/binaries/layout/x64/LayOutControllers.dll +0 -0
  353. data/sketchup-sdk-win/binaries/layout/x64/LayOutModel.dll +0 -0
  354. data/sketchup-sdk-win/binaries/layout/x64/LayOutRTF.dll +0 -0
  355. data/sketchup-sdk-win/binaries/layout/x64/LayOutUtils.dll +0 -0
  356. data/sketchup-sdk-win/binaries/layout/x64/LayOutView.dll +0 -4
  357. data/sketchup-sdk-win/binaries/layout/x64/SketchUpCommonPreferences.dll +0 -0
  358. data/sketchup-sdk-win/binaries/layout/x64/SketchUpViewerAPI.dll +0 -0
  359. data/sketchup-sdk-win/binaries/layout/x64/SketchUpViewerAPI.lib +0 -0
  360. data/sketchup-sdk-win/binaries/layout/x64/pdflib.dll +0 -0
  361. data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpAPI.dll +0 -0
  362. data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpAPI.lib +0 -0
  363. data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpCommonPreferences.dll +0 -0
  364. data/sketchup-sdk-win/binaries/sketchup/x64/sketchup.lib +0 -0
  365. data/sketchup-sdk-win/headers/LayOutAPI/application/application.h +0 -117
  366. data/sketchup-sdk-win/headers/LayOutAPI/common.h +0 -22
  367. data/sketchup-sdk-win/headers/LayOutAPI/geometry/geometry.h +0 -78
  368. data/sketchup-sdk-win/headers/LayOutAPI/initialize.h +0 -36
  369. data/sketchup-sdk-win/headers/LayOutAPI/layout.h +0 -49
  370. data/sketchup-sdk-win/headers/LayOutAPI/model/angulardimension.h +0 -468
  371. data/sketchup-sdk-win/headers/LayOutAPI/model/autotextdefinition.h +0 -569
  372. data/sketchup-sdk-win/headers/LayOutAPI/model/autotextdefinitionlist.h +0 -79
  373. data/sketchup-sdk-win/headers/LayOutAPI/model/connectionpoint.h +0 -107
  374. data/sketchup-sdk-win/headers/LayOutAPI/model/defs.h +0 -42
  375. data/sketchup-sdk-win/headers/LayOutAPI/model/dictionary.h +0 -120
  376. data/sketchup-sdk-win/headers/LayOutAPI/model/document.h +0 -937
  377. data/sketchup-sdk-win/headers/LayOutAPI/model/documentexportoptions.h +0 -78
  378. data/sketchup-sdk-win/headers/LayOutAPI/model/ellipse.h +0 -78
  379. data/sketchup-sdk-win/headers/LayOutAPI/model/entity.h +0 -402
  380. data/sketchup-sdk-win/headers/LayOutAPI/model/entityiterator.h +0 -49
  381. data/sketchup-sdk-win/headers/LayOutAPI/model/entitylist.h +0 -114
  382. data/sketchup-sdk-win/headers/LayOutAPI/model/formattedtext.h +0 -397
  383. data/sketchup-sdk-win/headers/LayOutAPI/model/grid.h +0 -251
  384. data/sketchup-sdk-win/headers/LayOutAPI/model/group.h +0 -244
  385. data/sketchup-sdk-win/headers/LayOutAPI/model/image.h +0 -146
  386. data/sketchup-sdk-win/headers/LayOutAPI/model/imagerep.h +0 -109
  387. data/sketchup-sdk-win/headers/LayOutAPI/model/label.h +0 -332
  388. data/sketchup-sdk-win/headers/LayOutAPI/model/layer.h +0 -207
  389. data/sketchup-sdk-win/headers/LayOutAPI/model/layerinstance.h +0 -117
  390. data/sketchup-sdk-win/headers/LayOutAPI/model/layerlist.h +0 -69
  391. data/sketchup-sdk-win/headers/LayOutAPI/model/lineardimension.h +0 -508
  392. data/sketchup-sdk-win/headers/LayOutAPI/model/page.h +0 -331
  393. data/sketchup-sdk-win/headers/LayOutAPI/model/pageinfo.h +0 -372
  394. data/sketchup-sdk-win/headers/LayOutAPI/model/pagelist.h +0 -81
  395. data/sketchup-sdk-win/headers/LayOutAPI/model/path.h +0 -464
  396. data/sketchup-sdk-win/headers/LayOutAPI/model/rectangle.h +0 -240
  397. data/sketchup-sdk-win/headers/LayOutAPI/model/referenceentity.h +0 -120
  398. data/sketchup-sdk-win/headers/LayOutAPI/model/sketchupmodel.h +0 -681
  399. data/sketchup-sdk-win/headers/LayOutAPI/model/style.h +0 -1116
  400. data/sketchup-sdk-win/headers/LayOutAPI/model/table.h +0 -472
  401. data/sketchup-sdk-win/headers/LayOutAPI/model/typed_value.h +0 -180
  402. data/sketchup-sdk-win/headers/SketchUpAPI/application/application.h +0 -36
  403. data/sketchup-sdk-win/headers/SketchUpAPI/application/model.h +0 -59
  404. data/sketchup-sdk-win/headers/SketchUpAPI/application/overlay.h +0 -262
  405. data/sketchup-sdk-win/headers/SketchUpAPI/application/ruby_api.h +0 -118
  406. data/sketchup-sdk-win/headers/SketchUpAPI/color.h +0 -107
  407. data/sketchup-sdk-win/headers/SketchUpAPI/common.h +0 -178
  408. data/sketchup-sdk-win/headers/SketchUpAPI/defs.h +0 -19
  409. data/sketchup-sdk-win/headers/SketchUpAPI/extension_license.h +0 -70
  410. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/bounding_box.h +0 -34
  411. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/plane3d.h +0 -153
  412. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/point2d.h +0 -96
  413. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/point3d.h +0 -98
  414. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/ray3d.h +0 -64
  415. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/transformation.h +0 -321
  416. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/transformation2d.h +0 -163
  417. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/vector2d.h +0 -235
  418. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/vector3d.h +0 -285
  419. data/sketchup-sdk-win/headers/SketchUpAPI/geometry.h +0 -154
  420. data/sketchup-sdk-win/headers/SketchUpAPI/import_export/modelexporterplugin.h +0 -165
  421. data/sketchup-sdk-win/headers/SketchUpAPI/import_export/modelimporterplugin.h +0 -187
  422. data/sketchup-sdk-win/headers/SketchUpAPI/import_export/pluginprogresscallback.h +0 -84
  423. data/sketchup-sdk-win/headers/SketchUpAPI/initialize.h +0 -43
  424. data/sketchup-sdk-win/headers/SketchUpAPI/length_formatter.h +0 -424
  425. data/sketchup-sdk-win/headers/SketchUpAPI/model/arccurve.h +0 -244
  426. data/sketchup-sdk-win/headers/SketchUpAPI/model/arrow_type.h +0 -17
  427. data/sketchup-sdk-win/headers/SketchUpAPI/model/attribute_dictionary.h +0 -161
  428. data/sketchup-sdk-win/headers/SketchUpAPI/model/axes.h +0 -242
  429. data/sketchup-sdk-win/headers/SketchUpAPI/model/camera.h +0 -398
  430. data/sketchup-sdk-win/headers/SketchUpAPI/model/classification_attribute.h +0 -89
  431. data/sketchup-sdk-win/headers/SketchUpAPI/model/classification_info.h +0 -125
  432. data/sketchup-sdk-win/headers/SketchUpAPI/model/classifications.h +0 -86
  433. data/sketchup-sdk-win/headers/SketchUpAPI/model/component_definition.h +0 -629
  434. data/sketchup-sdk-win/headers/SketchUpAPI/model/component_definition_snap_to_behavior_private.h +0 -46
  435. data/sketchup-sdk-win/headers/SketchUpAPI/model/component_instance.h +0 -344
  436. data/sketchup-sdk-win/headers/SketchUpAPI/model/curve.h +0 -143
  437. data/sketchup-sdk-win/headers/SketchUpAPI/model/defs.h +0 -147
  438. data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension.h +0 -224
  439. data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_linear.h +0 -421
  440. data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_radial.h +0 -194
  441. data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_style.h +0 -253
  442. data/sketchup-sdk-win/headers/SketchUpAPI/model/drawing_element.h +0 -198
  443. data/sketchup-sdk-win/headers/SketchUpAPI/model/dynamic_component_attribute.h +0 -92
  444. data/sketchup-sdk-win/headers/SketchUpAPI/model/dynamic_component_info.h +0 -70
  445. data/sketchup-sdk-win/headers/SketchUpAPI/model/edge.h +0 -271
  446. data/sketchup-sdk-win/headers/SketchUpAPI/model/edge_use.h +0 -214
  447. data/sketchup-sdk-win/headers/SketchUpAPI/model/entities.h +0 -879
  448. data/sketchup-sdk-win/headers/SketchUpAPI/model/entity.h +0 -189
  449. data/sketchup-sdk-win/headers/SketchUpAPI/model/entity_list.h +0 -80
  450. data/sketchup-sdk-win/headers/SketchUpAPI/model/entity_list_iterator.h +0 -90
  451. data/sketchup-sdk-win/headers/SketchUpAPI/model/environment.h +0 -382
  452. data/sketchup-sdk-win/headers/SketchUpAPI/model/environments.h +0 -133
  453. data/sketchup-sdk-win/headers/SketchUpAPI/model/face.h +0 -702
  454. data/sketchup-sdk-win/headers/SketchUpAPI/model/font.h +0 -138
  455. data/sketchup-sdk-win/headers/SketchUpAPI/model/geometry.h +0 -20
  456. data/sketchup-sdk-win/headers/SketchUpAPI/model/geometry_input.h +0 -695
  457. data/sketchup-sdk-win/headers/SketchUpAPI/model/group.h +0 -245
  458. data/sketchup-sdk-win/headers/SketchUpAPI/model/guide_line.h +0 -155
  459. data/sketchup-sdk-win/headers/SketchUpAPI/model/guide_point.h +0 -153
  460. data/sketchup-sdk-win/headers/SketchUpAPI/model/image.h +0 -289
  461. data/sketchup-sdk-win/headers/SketchUpAPI/model/image_rep.h +0 -275
  462. data/sketchup-sdk-win/headers/SketchUpAPI/model/instancepath.h +0 -266
  463. data/sketchup-sdk-win/headers/SketchUpAPI/model/layer.h +0 -265
  464. data/sketchup-sdk-win/headers/SketchUpAPI/model/layer_folder.h +0 -301
  465. data/sketchup-sdk-win/headers/SketchUpAPI/model/line_style.h +0 -211
  466. data/sketchup-sdk-win/headers/SketchUpAPI/model/line_styles.h +0 -81
  467. data/sketchup-sdk-win/headers/SketchUpAPI/model/location.h +0 -65
  468. data/sketchup-sdk-win/headers/SketchUpAPI/model/loop.h +0 -182
  469. data/sketchup-sdk-win/headers/SketchUpAPI/model/material.h +0 -797
  470. data/sketchup-sdk-win/headers/SketchUpAPI/model/mesh_helper.h +0 -187
  471. data/sketchup-sdk-win/headers/SketchUpAPI/model/model.h +0 -1826
  472. data/sketchup-sdk-win/headers/SketchUpAPI/model/model_entity_type_private.h +0 -44
  473. data/sketchup-sdk-win/headers/SketchUpAPI/model/model_version.h +0 -49
  474. data/sketchup-sdk-win/headers/SketchUpAPI/model/opening.h +0 -72
  475. data/sketchup-sdk-win/headers/SketchUpAPI/model/options_manager.h +0 -79
  476. data/sketchup-sdk-win/headers/SketchUpAPI/model/options_provider.h +0 -166
  477. data/sketchup-sdk-win/headers/SketchUpAPI/model/polyline3d.h +0 -140
  478. data/sketchup-sdk-win/headers/SketchUpAPI/model/rendering_options.h +0 -180
  479. data/sketchup-sdk-win/headers/SketchUpAPI/model/scene.h +0 -1016
  480. data/sketchup-sdk-win/headers/SketchUpAPI/model/schema.h +0 -56
  481. data/sketchup-sdk-win/headers/SketchUpAPI/model/schema_type.h +0 -26
  482. data/sketchup-sdk-win/headers/SketchUpAPI/model/section_plane.h +0 -212
  483. data/sketchup-sdk-win/headers/SketchUpAPI/model/selection.h +0 -156
  484. data/sketchup-sdk-win/headers/SketchUpAPI/model/shadow_info.h +0 -147
  485. data/sketchup-sdk-win/headers/SketchUpAPI/model/skp.h +0 -45
  486. data/sketchup-sdk-win/headers/SketchUpAPI/model/snap.h +0 -183
  487. data/sketchup-sdk-win/headers/SketchUpAPI/model/space.h +0 -26
  488. data/sketchup-sdk-win/headers/SketchUpAPI/model/style.h +0 -303
  489. data/sketchup-sdk-win/headers/SketchUpAPI/model/styles.h +0 -192
  490. data/sketchup-sdk-win/headers/SketchUpAPI/model/text.h +0 -392
  491. data/sketchup-sdk-win/headers/SketchUpAPI/model/texture.h +0 -380
  492. data/sketchup-sdk-win/headers/SketchUpAPI/model/texture_writer.h +0 -280
  493. data/sketchup-sdk-win/headers/SketchUpAPI/model/typed_value.h +0 -390
  494. data/sketchup-sdk-win/headers/SketchUpAPI/model/uv_helper.h +0 -79
  495. data/sketchup-sdk-win/headers/SketchUpAPI/model/vertex.h +0 -154
  496. data/sketchup-sdk-win/headers/SketchUpAPI/sketchup.h +0 -125
  497. data/sketchup-sdk-win/headers/SketchUpAPI/sketchup_info.h +0 -65
  498. data/sketchup-sdk-win/headers/SketchUpAPI/slapi.h +0 -16
  499. data/sketchup-sdk-win/headers/SketchUpAPI/transformation.h +0 -16
  500. data/sketchup-sdk-win/headers/SketchUpAPI/unicodestring.h +0 -239
  501. data/sketchup-sdk-win/headers/SketchUpAPI/utils/math_helpers.h +0 -124
@@ -1,879 +0,0 @@
1
- // Copyright 2013-2025 Trimble Inc. All Rights Reserved.
2
-
3
- /**
4
- * @file
5
- * @brief Interfaces for SUEntitiesRef.
6
- */
7
- #ifndef SKETCHUP_MODEL_ENTITIES_H_
8
- #define SKETCHUP_MODEL_ENTITIES_H_
9
-
10
- #include <SketchUpAPI/geometry.h>
11
- #include <SketchUpAPI/common.h>
12
- #include <SketchUpAPI/unicodestring.h>
13
- #include <SketchUpAPI/model/curve.h>
14
- #include <SketchUpAPI/model/defs.h>
15
-
16
- #pragma pack(push, 8)
17
- #ifdef __cplusplus
18
- extern "C" {
19
- #endif
20
-
21
- /**
22
- @struct SUEntitiesRef
23
- @brief References a container object for all entities in a model,
24
- component definition or a group.
25
- */
26
-
27
- /**
28
- @brief Removes all entities in the container.
29
- @since SketchUp 2019, API 7.0
30
- @param[in,out] entities The entities to clear.
31
- @related SUEntitiesRef
32
- @return
33
- - \ref SU_ERROR_NONE on success
34
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
35
- */
36
- SU_RESULT SUEntitiesClear(SUEntitiesRef entities);
37
-
38
- /**
39
- @brief SUEntitiesFill is the fastest way to populate an entities object. The
40
- important precondition is that no duplicate data should be given.
41
-
42
- NOTE: Faces included in the geometry input object will be merged together when
43
- using this function. This only applies to geometry in the geometry input
44
- object and not to any already-existing geometry in the entities object.
45
- Examples of merging are:
46
- - If weld_vertices is true, duplicated vertices are merged.
47
- - Coincident faces are merged.
48
- - Coincident faces with opposite normals are merged into a single face using the
49
- appropriate materials from both faces as the front and back materials.
50
- - Faces are created from coplanar edge loops.
51
- - Conincident edges are merged. Visibility is retained when visible and
52
- invisible edges are welded together. Hardness is retained when hard and soft
53
- edges are welded together.
54
-
55
- @param[in,out] entities The entities to populate. Must be an empty entities
56
- object.
57
- @param[in] geom_input The geometry input that the entities object is to be
58
- populated with.
59
- @param[in] weld_vertices Flag indicating whether to join coincident vertices.
60
- @related SUEntitiesRef
61
- @return
62
- - \ref SU_ERROR_NONE on success
63
- - \ref SU_ERROR_INVALID_INPUT if entities or geom_input are invalid objects
64
- */
65
- SU_RESULT SUEntitiesFill(SUEntitiesRef entities, SUGeometryInputRef geom_input, bool weld_vertices);
66
-
67
- /**
68
- @brief Retrieves the bounding box of the entities.
69
- @param[in] entities The entities object.
70
- @param[out] bbox The bounding box retrieved.
71
- @related SUEntitiesRef
72
- @return
73
- - \ref SU_ERROR_NONE on success
74
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
75
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if bbox is NULL
76
- */
77
- SU_RESULT SUEntitiesGetBoundingBox(SUEntitiesRef entities, struct SUBoundingBox3D* bbox);
78
-
79
- /**
80
- @brief Retrieves the LLA coordinates (Latidue, Longitude and Altitude) bounding
81
- box of the given entities object.
82
-
83
- @note Note that the altitude is calculated based on the model origin. Example: If an entities object
84
- has a bounding box with the following values `{100,100,100}`, `{200,200,200}` the result will be
85
- something like the following: `{Latitude, Longitude, 100/METERS_TO_INCHES}`, `{Latitude,
86
- Longitude, 200/METERS_TO_INCHES}` where Latitude and Longitude are the geographical coordinates
87
- and altitude is just a conversion from inches to meters.
88
- @since SketchUp 2018 M0, API 6.0
89
- @param[in] entities The entities object.
90
- @param[out] bbox The latidue longitude and altitude bounding box retrieved.
91
- @related SUEntitiesRef
92
- @return
93
- - \ref SU_ERROR_NONE on success
94
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
95
- - \ref SU_ERROR_NO_DATA if entities doesn't belong to a valid model.
96
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if bbox is NULL
97
-
98
- @code
99
- SUModelRef model = SU_INVALID;
100
- SUModelLoadStatus status;
101
- SUResult res = SUModelCreateFromFileWithStatus(&model, "path/to/face.skp", &status);
102
- if (res != SU_ERROR_NONE) {
103
- // Handle error
104
- return 1;
105
- }
106
-
107
- // Get the entity container of the model
108
- SUEntitiesRef entities = SU_INVALID;
109
- SUModelGetEntities(model, &entities);
110
-
111
- // Retrieve the bounding box in LLA coordinates
112
- SUBoundingBox3D box_lla;
113
- res = SUEntitiesGetBoundingBoxLLA(entities, &box_lla);
114
- if (res == SU_ERROR_NONE) {
115
- // Process box_lla
116
- }
117
-
118
- SUModelRelease(&model);
119
- @endcode
120
- */
121
- SU_RESULT SUEntitiesGetBoundingBoxLLA(SUEntitiesRef entities, struct SUBoundingBox3D* bbox);
122
-
123
- /**
124
- @brief Retrieves the number of faces in the entities object.
125
- @param[in] entities The entities object.
126
- @param[out] count The number of faces.
127
- @related SUEntitiesRef
128
- @return
129
- - \ref SU_ERROR_NONE on success
130
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
131
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if count is NULL
132
- */
133
- SU_RESULT SUEntitiesGetNumFaces(SUEntitiesRef entities, size_t* count);
134
-
135
- /**
136
- @brief Retrieves the faces in the entities object.
137
- @param[in] entities The entities object.
138
- @param[in] len The number of faces to retrieve.
139
- @param[out] faces The faces retrieved.
140
- @param[out] count The number of faces retrieved.
141
- @related SUEntitiesRef
142
- @return
143
- - \ref SU_ERROR_NONE on success
144
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
145
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if faces or count is NULL
146
- */
147
- SU_RESULT SUEntitiesGetFaces(SUEntitiesRef entities, size_t len, SUFaceRef faces[], size_t* count);
148
-
149
- /**
150
- @brief Retrieves the number of curves in the entities object that are not
151
- associated with a face.
152
- @param[in] entities The entities object.
153
- @param[out] count The number of curves.
154
- @related SUEntitiesRef
155
- @return
156
- - \ref SU_ERROR_NONE on success
157
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
158
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if count is NULL
159
- */
160
- SU_RESULT SUEntitiesGetNumCurves(SUEntitiesRef entities, size_t* count);
161
-
162
- /**
163
- @brief Retrieves the curves in the entities object that are not associated with
164
- a face.
165
- @param[in] entities The entities object.
166
- @param[in] len The number of curves to retrieve.
167
- @param[out] curves The curves retrieved.
168
- @param[out] count The number of curves retrieved.
169
- @related SUEntitiesRef
170
- @return
171
- - \ref SU_ERROR_NONE on success
172
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
173
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if curves or count is NULL
174
- */
175
- SU_RESULT SUEntitiesGetCurves(
176
- SUEntitiesRef entities, size_t len, SUCurveRef curves[], size_t* count);
177
-
178
- /**
179
- @brief Retrieves the number of arccurves in the entities object that are not
180
- associated with a face.
181
- @since SketchUp 2016, API 4.0
182
- @param[in] entities The entities object.
183
- @param[out] count The number of arccurves.
184
- @related SUEntitiesRef
185
- @return
186
- - \ref SU_ERROR_NONE on success
187
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
188
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if count is NULL
189
- */
190
- SU_RESULT SUEntitiesGetNumArcCurves(SUEntitiesRef entities, size_t* count);
191
-
192
- /**
193
- @brief Retrieves the arccurves in the entities object that are not associated
194
- with a face.
195
- @since SketchUp 2016, API 4.0
196
- @param[in] entities The entities object.
197
- @param[in] len The number of arccurves to retrieve.
198
- @param[out] arccurves The arccurves retrieved.
199
- @param[out] count The number of curves retrieved.
200
- @related SUEntitiesRef
201
- @return
202
- - \ref SU_ERROR_NONE on success
203
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
204
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if arccurves or count is NULL
205
- */
206
- SU_RESULT SUEntitiesGetArcCurves(
207
- SUEntitiesRef entities, size_t len, SUArcCurveRef arccurves[], size_t* count);
208
-
209
- /**
210
- @brief Retrieves the number of guide points in the entities object.
211
- @since SketchUp 2014 M1, API 2.1
212
- @param[in] entities The entities object.
213
- @param[out] count The number of guide_points.
214
- @related SUEntitiesRef
215
- @return
216
- - \ref SU_ERROR_NONE on success
217
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
218
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if count is NULL
219
- */
220
- SU_RESULT SUEntitiesGetNumGuidePoints(SUEntitiesRef entities, size_t* count);
221
-
222
- /**
223
- @brief Retrieves the guide points in the entities object.
224
- @since SketchUp 2014 M1, API 2.1
225
- @param[in] entities The entities object.
226
- @param[in] len The number of guide points to retrieve.
227
- @param[out] guide_points The guide_points retrieved.
228
- @param[out] count The number of guide_points retrieved.
229
- @related SUEntitiesRef
230
- @return
231
- - \ref SU_ERROR_NONE on success
232
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
233
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if guide_points or count is NULL
234
- */
235
- SU_RESULT SUEntitiesGetGuidePoints(
236
- SUEntitiesRef entities, size_t len, SUGuidePointRef guide_points[], size_t* count);
237
-
238
- /**
239
- @brief Retrieves the number of guide lines in the entities object.
240
- @since SketchUp 2016, API 4.0
241
- @param[in] entities The entities object.
242
- @param[out] count The number of guide_lines.
243
- @related SUEntitiesRef
244
- @return
245
- - \ref SU_ERROR_NONE on success
246
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
247
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if count is NULL
248
- */
249
- SU_RESULT SUEntitiesGetNumGuideLines(SUEntitiesRef entities, size_t* count);
250
-
251
- /**
252
- @brief Retrieves the guide lines in the entities object.
253
- @since SketchUp 2016, API 4.0
254
- @param[in] entities The entities object.
255
- @param[in] len The number of guide lines to retrieve.
256
- @param[out] guide_lines The guide_lines retrieved.
257
- @param[out] count The number of guide_lines retrieved.
258
- @related SUEntitiesRef
259
- @return
260
- - \ref SU_ERROR_NONE on success
261
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
262
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if guide_lines or count is NULL
263
- */
264
- SU_RESULT SUEntitiesGetGuideLines(
265
- SUEntitiesRef entities, size_t len, SUGuideLineRef guide_lines[], size_t* count);
266
-
267
- /**
268
- @brief Retrieves the number of edges in the entities object.
269
- @param[in] entities The entities object.
270
- @param[in] standalone_only Whether to count all edges (false) or only the edges
271
- not attached to curves and faces (true).
272
- @param[out] count The number of edges.
273
- @related SUEntitiesRef
274
- @return
275
- - \ref SU_ERROR_NONE on success
276
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
277
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if count is NULL
278
- */
279
- SU_RESULT SUEntitiesGetNumEdges(SUEntitiesRef entities, bool standalone_only, size_t* count);
280
-
281
- /**
282
- @brief Retrieves the edges in the entities object.
283
- @param[in] entities The entities object.
284
- @param[in] standalone_only Whether to get all edges (false) or only the edges
285
- not attached to curves and faces (true).
286
- @param[in] len The number of edges to retrieve.
287
- @param[out] edges The edges retrieved.
288
- @param[out] count The number of edges retrieved.
289
- @related SUEntitiesRef
290
- @return
291
- - \ref SU_ERROR_NONE on success
292
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
293
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if edges or count is NULL
294
- */
295
- SU_RESULT SUEntitiesGetEdges(
296
- SUEntitiesRef entities, bool standalone_only, size_t len, SUEdgeRef edges[], size_t* count);
297
-
298
- /**
299
- @brief Retrieves the number of polyline3d's in the entities object.
300
- @param[in] entities The entities object.
301
- @param[out] count The the number of polyline3d's.
302
- @related SUEntitiesRef
303
- @return
304
- - \ref SU_ERROR_NONE on success
305
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
306
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if count is NULL
307
- */
308
- SU_RESULT SUEntitiesGetNumPolyline3ds(SUEntitiesRef entities, size_t* count);
309
-
310
- /**
311
- @brief Retrieves the polyline3d's in the entities object.
312
- @param[in] len The number of polyline3d's to retrieve.
313
- @param[in] entities The entities object.
314
- @param[out] lines The polyline3d's retrieved.
315
- @param[out] count The number of polyline3d's retrieved.
316
- @related SUEntitiesRef
317
- @return
318
- - \ref SU_ERROR_NONE on success
319
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
320
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if lines or count is NULL
321
- */
322
- SU_RESULT SUEntitiesGetPolyline3ds(
323
- SUEntitiesRef entities, size_t len, SUPolyline3dRef lines[], size_t* count);
324
-
325
- /**
326
- @brief Adds face objects to a entities object.
327
-
328
- @bug SUEntitiesAddFaces() will not merge overlapping vertices and edges, which
329
- produces SketchUp models with unexpected state. Avoid using these functions
330
- and instead use SUGeometryInputRef along with SUEntitiesFill().
331
-
332
- @param[in,out] entities The entities object.
333
- @param[in] len The length of the array of face objects.
334
- @param[in] faces The array of face objects to add.
335
- @related SUEntitiesRef
336
- @return
337
- - \ref SU_ERROR_NONE on success
338
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
339
- - \ref SU_ERROR_NULL_POINTER_INPUT if faces is NULL
340
-
341
- @own{faces}
342
- */
343
- SU_RESULT SUEntitiesAddFaces(SUEntitiesRef entities, size_t len, const SUFaceRef faces[]);
344
-
345
- /**
346
- @brief Adds edge objects to an entities object.
347
-
348
- NOTE: This function does not merge geometry, which will likely create an invalid
349
- SketchUp model. It is recommended to use SUGeometryInput instead which does
350
- correctly merge geometry.
351
-
352
- @param[in,out] entities The entities object.
353
- @param[in] len The length of the array of edge objects.
354
- @param[in] edges The array of edge objects to add.
355
- @related SUEntitiesRef
356
- @return
357
- - \ref SU_ERROR_NONE on success
358
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
359
- - \ref SU_ERROR_NULL_POINTER_INPUT if edges is NULL
360
-
361
- @own{edges}
362
- */
363
- SU_RESULT SUEntitiesAddEdges(SUEntitiesRef entities, size_t len, const SUEdgeRef edges[]);
364
-
365
- /**
366
- @brief Adds curve objects to an entities object.
367
-
368
- NOTE: This function does not merge geometry, which will likely create an invalid
369
- SketchUp model. It is recommended to use SUGeometryInput instead which does
370
- correctly merge geometry.
371
-
372
- @param[in,out] entities The entities object.
373
- @param[in] len The length of the array of curve objects.
374
- @param[in] curves The array of curve objects to add.
375
- @related SUEntitiesRef
376
- @return
377
- - \ref SU_ERROR_NONE on success
378
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
379
- - \ref SU_ERROR_NULL_POINTER_INPUT if curves is NULL
380
-
381
- @own{curves}
382
- */
383
- SU_RESULT SUEntitiesAddCurves(SUEntitiesRef entities, size_t len, const SUCurveRef curves[]);
384
-
385
- /**
386
- @brief Adds arccurve objects to an entities object.
387
- @since SketchUp 2016, API 4.0
388
-
389
- NOTE: This function does not merge geometry, which will likely create an invalid
390
- SketchUp model. It is recommended to use SUGeometryInput instead which does
391
- correctly merge geometry.
392
-
393
- @param[in,out] entities The entities object.
394
- @param[in] len The length of the array of curve objects.
395
- @param[in] curves The array of arccurve objects to add.
396
- @related SUEntitiesRef
397
- @return
398
- - \ref SU_ERROR_NONE on success
399
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
400
- - \ref SU_ERROR_NULL_POINTER_INPUT if curves is NULL
401
-
402
- @own{curves}
403
- */
404
- SU_RESULT SUEntitiesAddArcCurves(SUEntitiesRef entities, size_t len, const SUArcCurveRef curves[]);
405
-
406
- /**
407
- @brief Adds guide point objects to an entities object.
408
- @since SketchUp 2014 M1, API 2.1
409
- @param[in,out] entities The entities object.
410
- @param[in] len The length of the array of guide point objects.
411
- @param[in] guide_points The array of guide point objects to add.
412
- @related SUEntitiesRef
413
- @return
414
- - \ref SU_ERROR_NONE on success
415
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
416
- - \ref SU_ERROR_NULL_POINTER_INPUT if guide_points is NULL
417
-
418
- @own{guide_points}
419
- */
420
- SU_RESULT SUEntitiesAddGuidePoints(
421
- SUEntitiesRef entities, size_t len, const SUGuidePointRef guide_points[]);
422
-
423
- /**
424
- @brief Adds guide line objects to an entities object.
425
- @since SketchUp 2016, API 4.0
426
- @param[in,out] entities The entities object.
427
- @param[in] len The length of the array of guide line objects.
428
- @param[in] guide_lines The array of guide line objects to add.
429
- @related SUEntitiesRef
430
- @return
431
- - \ref SU_ERROR_NONE on success
432
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
433
- - \ref SU_ERROR_NULL_POINTER_INPUT if guide_lines is NULL
434
-
435
- @own{guild_lines}
436
- */
437
- SU_RESULT SUEntitiesAddGuideLines(
438
- SUEntitiesRef entities, size_t len, const SUGuideLineRef guide_lines[]);
439
-
440
- /**
441
- @brief Adds a group object to an entities object.
442
- @param[in,out] entities The entities object.
443
- @param[in] group The group object to add.
444
- @related SUEntitiesRef
445
- @return
446
- - \ref SU_ERROR_NONE on success
447
- - \ref SU_ERROR_INVALID_INPUT if entities or group is not a valid object
448
-
449
- @own{group}
450
- */
451
- SU_RESULT SUEntitiesAddGroup(SUEntitiesRef entities, SUGroupRef group);
452
-
453
- /**
454
- @brief Adds an image object to an entities object.
455
- @param[in,out] entities The entities object.
456
- @param[in] image The image object to add.
457
- @related SUEntitiesRef
458
- @return
459
- - \ref SU_ERROR_NONE on success
460
- - \ref SU_ERROR_INVALID_INPUT if entities or image is not a valid object
461
-
462
- @own{image}
463
- */
464
- SU_RESULT SUEntitiesAddImage(SUEntitiesRef entities, SUImageRef image);
465
-
466
- /**
467
- @brief Adds a component instance object to the entities.
468
- @param[in,out] entities The entities object.
469
- @param[in] instance The component instance object to add.
470
- @param[out] name The unique name that is assigned to definition of the
471
- component instance. This can be NULL in which case the
472
- caller does not need to retrieve the assigned name.
473
- @related SUEntitiesRef
474
- @return
475
- - \ref SU_ERROR_NONE on success
476
- - \ref SU_ERROR_INVALID_INPUT if entities or instance is not a valid object
477
- - \ref SU_ERROR_INVALID_OUTPUT if name (when not NULL) does not refer to a valid
478
- \ref SUStringRef object
479
-
480
- @own{instance}
481
- */
482
- SU_RESULT SUEntitiesAddInstance(
483
- SUEntitiesRef entities, SUComponentInstanceRef instance, SUStringRef* name);
484
-
485
- /**
486
- @brief Adds section plane objects to an entities object.
487
- @since SketchUp 2016, API 4.0
488
- @param[in,out] entities The entities object.
489
- @param[in] len The length of the array of section planes objects.
490
- @param[in] section_planes The array of section planes objects to add.
491
- @related SUEntitiesRef
492
- @return
493
- - \ref SU_ERROR_NONE on success
494
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
495
- - \ref SU_ERROR_NULL_POINTER_INPUT if section_planes is NULL
496
-
497
- @own{section_planes}
498
- */
499
- SU_RESULT SUEntitiesAddSectionPlanes(
500
- SUEntitiesRef entities, size_t len, const SUSectionPlaneRef section_planes[]);
501
-
502
- /**
503
- @brief Adds text objects to an entities object.
504
- @since SketchUp 2018, API 6.0
505
- @param[in,out] entities The entities object.
506
- @param[in] len The length of the array of text objects.
507
- @param[in] texts The array of text objects to add.
508
- @related SUEntitiesRef
509
- @return
510
- - \ref SU_ERROR_NONE on success
511
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
512
- - \ref SU_ERROR_NULL_POINTER_INPUT if texts is NULL
513
-
514
- @own{texts}
515
- */
516
- SU_RESULT SUEntitiesAddTexts(SUEntitiesRef entities, size_t len, const SUTextRef texts[]);
517
-
518
- /**
519
- @brief Retrieves the number of groups in the entities.
520
- @param[in] entities The entities object.
521
- @param[out] count The number of groups.
522
- @related SUEntitiesRef
523
- @return
524
- - \ref SU_ERROR_NONE on success
525
- - \ref SU_ERROR_INVALID_INPUT if entities is an invalid entities object
526
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if count is NULL
527
- */
528
- SU_RESULT SUEntitiesGetNumGroups(SUEntitiesRef entities, size_t* count);
529
-
530
- /**
531
- @brief Retrieves the groups in the entities.
532
- @param[in] entities The entities object.
533
- @param[in] len The number of groups to retrieve.
534
- @param[out] groups The groups retrieved.
535
- @param[out] count The number of groups retrieved.
536
- @related SUEntitiesRef
537
- @return
538
- - \ref SU_ERROR_NONE on success
539
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
540
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if groups or count is NULL
541
- */
542
- SU_RESULT SUEntitiesGetGroups(
543
- SUEntitiesRef entities, size_t len, SUGroupRef groups[], size_t* count);
544
-
545
- /**
546
- @brief Retrieves the number of images in the entities.
547
- @param[in] entities The entities object.
548
- @param[out] count The number of image objects.
549
- @related SUEntitiesRef
550
- @return
551
- - \ref SU_ERROR_NONE on success
552
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
553
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if count is NULL
554
- */
555
- SU_RESULT SUEntitiesGetNumImages(SUEntitiesRef entities, size_t* count);
556
-
557
- /**
558
- @brief Retrieves the array of image objects of a entities object.
559
- @param[in] entities The entities object.
560
- @param[in] len The number of image objects to retrieve.
561
- @param[out] images The image objects retrieved.
562
- @param[out] count The number of image objects retrieved.
563
- @related SUEntitiesRef
564
- @return
565
- - \ref SU_ERROR_NONE on success
566
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
567
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if images or count is NULL
568
- */
569
- SU_RESULT SUEntitiesGetImages(
570
- SUEntitiesRef entities, size_t len, SUImageRef images[], size_t* count);
571
-
572
- /**
573
- @brief Retrieves the number of component instances in the entities.
574
- @param[in] entities The entities object.
575
- @param[out] count The number of component instances.
576
- @related SUEntitiesRef
577
- @return
578
- - \ref SU_ERROR_NONE on success
579
- - \ref SU_ERROR_INVALID_INPUT if entities is an invalid entities object.
580
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if count is NULL
581
- */
582
- SU_RESULT SUEntitiesGetNumInstances(SUEntitiesRef entities, size_t* count);
583
-
584
- /**
585
- @brief Retrieves the component instances in the entities.
586
- @param[in] entities The entities object.
587
- @param[in] len The number of component instances to retrieve.
588
- @param[out] instances The component instances retrieved.
589
- @param[out] count The number of component instances retrieved.
590
- @related SUEntitiesRef
591
- @return
592
- - \ref SU_ERROR_NONE on success
593
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
594
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if instances or count is NULL
595
- */
596
- SU_RESULT SUEntitiesGetInstances(
597
- SUEntitiesRef entities, size_t len, SUComponentInstanceRef instances[], size_t* count);
598
-
599
- /**
600
- @brief Retrieves the number of section planes in the entities object.
601
- @since SketchUp 2016, API 4.0
602
- @param[in] entities The entities object.
603
- @param[out] count The number of section planes.
604
- @related SUEntitiesRef
605
- @return
606
- - \ref SU_ERROR_NONE on success
607
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
608
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if count is NULL
609
- */
610
- SU_RESULT SUEntitiesGetNumSectionPlanes(SUEntitiesRef entities, size_t* count);
611
-
612
- /**
613
- @brief Retrieves the number of texts in the entities object.
614
- @since SketchUp 2018, API 6.0
615
- @param[in] entities The entities object.
616
- @param[out] count The number of texts.
617
- @related SUEntitiesRef
618
- @return
619
- - \ref SU_ERROR_NONE on success
620
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
621
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if count is NULL
622
- */
623
- SU_RESULT SUEntitiesGetNumTexts(SUEntitiesRef entities, size_t* count);
624
-
625
- /**
626
- @brief Retrieves the section planes in the entities.
627
- @since SketchUp 2016, API 4.0
628
- @param[in] entities The entities object.
629
- @param[in] len The number of section planes to retrieve.
630
- @param[out] section_planes The section planes retrieved.
631
- @param[out] count The number of section planes retrieved.
632
- @related SUEntitiesRef
633
- @return
634
- - \ref SU_ERROR_NONE on success
635
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
636
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if section_planes or count is NULL
637
- */
638
- SU_RESULT SUEntitiesGetSectionPlanes(
639
- SUEntitiesRef entities, size_t len, SUSectionPlaneRef section_planes[], size_t* count);
640
-
641
- /**
642
- @brief Retrieves the number of dimensions in the entities object.
643
- @since SketchUp 2017, API 5.0
644
- @param[in] entities The entities object.
645
- @param[out] count The number of dimensions.
646
- @related SUEntitiesRef
647
- @return
648
- - \ref SU_ERROR_NONE on success
649
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
650
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if count is NULL
651
- */
652
- SU_RESULT SUEntitiesGetNumDimensions(SUEntitiesRef entities, size_t* count);
653
-
654
- /**
655
- @brief Retrieves the dimensions in the entities object.
656
- @since SketchUp 2017, API 5.0
657
- @param[in] entities The entities object.
658
- @param[in] len The number of dimensions to retrieve.
659
- @param[out] dimensions The dimensions retrieved.
660
- @param[out] count The number of dimensions retrieved.
661
- @related SUEntitiesRef
662
- @return
663
- - \ref SU_ERROR_NONE on success
664
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
665
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if dimensions or count is NULL
666
- */
667
- SU_RESULT SUEntitiesGetDimensions(
668
- SUEntitiesRef entities, size_t len, SUDimensionRef dimensions[], size_t* count);
669
-
670
- /**
671
- @brief Retrieves the texts in the entities.
672
- @since SketchUp 2018, API 6.0
673
- @param[in] entities The entities object.
674
- @param[in] len The number of section planes to retrieve.
675
- @param[out] texts The texts retrieved.
676
- @param[out] count The number of texts retrieved.
677
- @related SUEntitiesRef
678
- @return
679
- - \ref SU_ERROR_NONE on success
680
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
681
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if texts or count is NULL
682
- */
683
- SU_RESULT SUEntitiesGetTexts(SUEntitiesRef entities, size_t len, SUTextRef texts[], size_t* count);
684
-
685
- /**
686
- @brief Applies a 3D transformation to the elements of the provided entity array.
687
- @since SketchUp 2017, API 5.0
688
- @param[in,out] entities The entities object.
689
- @param[in] len The number of entities in the array.
690
- @param[in] elements The elements to be transformed.
691
- @param[in] trans The transform to be applied.
692
- @related SUEntitiesRef
693
- @return
694
- - \ref SU_ERROR_NONE on success
695
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
696
- - \ref SU_ERROR_NULL_POINTER_INPUT if trans or elements are NULL
697
- - \ref SU_ERROR_UNSUPPORTED if any of the elements in the array are not
698
- contained by entities
699
- - \ref SU_ERROR_GENERIC if the transformation operation fails
700
- */
701
- SU_RESULT SUEntitiesTransform(
702
- SUEntitiesRef entities, size_t len, SUEntityRef elements[],
703
- const struct SUTransformation* trans);
704
-
705
- /**
706
- @brief Applies a 3D transformations to the elements of the provided entity
707
- array. The arrays of elements and transformations must be the same
708
- length.
709
- @since SketchUp 2017, API 5.0
710
- @param[in,out] entities The entities object.
711
- @param[in] len The number of entities in the array.
712
- @param[in] elements The elements to be transformed.
713
- @param[in] tranforms The transformations to be applied.
714
- @related SUEntitiesRef
715
- @return
716
- - \ref SU_ERROR_NONE on success
717
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
718
- - \ref SU_ERROR_NULL_POINTER_INPUT if elements or tranforms are NULL
719
- - \ref SU_ERROR_UNSUPPORTED if any of the elements in the array are not
720
- contained by entities
721
- - \ref SU_ERROR_GENERIC if the transformation operation fails
722
- */
723
- SU_RESULT SUEntitiesTransformMultiple(
724
- SUEntitiesRef entities, size_t len, SUEntityRef elements[],
725
- const struct SUTransformation tranforms[]);
726
-
727
- /**
728
- @brief Erases elements from an entities object. The input elements are
729
- destroyed, so the array elements are invalidated to prevent user from
730
- attempting to use destroyed entities.
731
- @since SketchUp 2017, API 5.0
732
- @param[in,out] entities The entities object.
733
- @param[in] len The number of entities in the array.
734
- @param[in] elements The elements to be destroyed.
735
- @related SUEntitiesRef
736
- @return
737
- - \ref SU_ERROR_NONE on success
738
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
739
- - \ref SU_ERROR_NULL_POINTER_INPUT if elements is NULL
740
- - \ref SU_ERROR_UNSUPPORTED if any of the elements in the array are not
741
- contained by entities
742
- */
743
- SU_RESULT SUEntitiesErase(SUEntitiesRef entities, size_t len, SUEntityRef elements[]);
744
-
745
- /**
746
- @brief Retrieves a boolean indicating whether the entities object is
747
- recursively empty. A recursively empty entities object is defined as one
748
- that either has zero entities or contains only instances of definitions
749
- with recursively empty entities objects.
750
- @since SketchUp 2017, API 5.0
751
- @param[in] entities The entities object.
752
- @param[out] is_empty The bool value retrieved.
753
- @related SUEntitiesRef
754
- @return
755
- - \ref SU_ERROR_NONE on success
756
- - \ref SU_ERROR_INVALID_INPUT if entities is invalid
757
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if is_empty is NULL
758
- */
759
- SU_RESULT SUEntitiesIsRecursivelyEmpty(SUEntitiesRef entities, bool* is_empty);
760
-
761
- /**
762
- @brief Retrieves a boolean by recursively searching through the entities
763
- determining whether the entities has an active section plane or any
764
- of its nested components have an active section plane.
765
- @since SketchUp 2018, API 6.0
766
- @param[in] entities The entities object.
767
- @param[out] has_section_cuts The bool value retrieved.
768
- @related SUEntitiesRef
769
- @return
770
- - \ref SU_ERROR_NONE on success
771
- - \ref SU_ERROR_INVALID_INPUT if entities is invalid
772
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if has_section_cuts is NULL
773
- */
774
- SU_RESULT SUEntitiesHasSectionCuts(SUEntitiesRef entities, bool* has_section_cuts);
775
-
776
- /**
777
- @brief Fills the list with all entities of the specified type in the instance.
778
- The list is not in any specific order.
779
- @since SketchUp 2018, API 6.0
780
- @param[in] entities The entities object to be queried.
781
- @param[in] type The type of entities to be collected.
782
- @param[out] list The list object to be filled.
783
- @related SUEntitiesRef
784
- @return
785
- - \ref SU_ERROR_NONE on success
786
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
787
- - \ref SU_ERROR_INVALID_OUTPUT if list is not a valid object
788
- */
789
- SU_RESULT SUEntitiesEntityListFill(
790
- SUEntitiesRef entities, enum SURefType type, SUEntityListRef list);
791
-
792
- /**
793
- @brief Takes a set of edges and find all possible chains of edges and connect
794
- them with a \ref SUCurveRef.
795
-
796
- A curve will not cross another curve. They will split where multiple
797
- curves meet.
798
-
799
- @since SketchUp 2020.1, API 8.1
800
- @param[in,out] entities The entities object to be queried.
801
- @param[in] num_edges The length of the array of edge objects.
802
- @param[in] edges The array of edge objects to weld.
803
- @param[out] list The list object to be filled with \ref SUCurveRef objects.
804
- @related SUEntitiesRef
805
- @see SUArcCurveRef
806
- @see SUCurveRef
807
- @return
808
- - \ref SU_ERROR_NONE on success
809
- - \ref SU_ERROR_INVALID_INPUT if entities is not a valid object
810
- - \ref SU_ERROR_NULL_POINTER_INPUT if edges is NULL
811
- - \ref SU_ERROR_INVALID_OUTPUT if list is not a valid object
812
- - \ref SU_ERROR_INVALID_ARGUMENT if edges contains edges that don't belong to
813
- the same entities collection.
814
- */
815
- SU_RESULT SUEntitiesWeld(
816
- SUEntitiesRef entities, size_t num_edges, SUEdgeRef edges[], SUEntityListRef list);
817
-
818
- /**
819
- @brief Reference to the parent of an SUEntitiesRef object.
820
- @since SketchUp 2021.1, API 9.1
821
- */
822
- struct SUEntitiesParent {
823
- /// The parent model, or \p SU_INVALID if the parent is a component definition.
824
- SUModelRef model;
825
-
826
- /// The parent component definition, or \p SU_INVALID if the parent is a model.
827
- SUComponentDefinitionRef definition;
828
- };
829
-
830
- /**
831
- @brief Get the parent component definition or model that owns this entities object.
832
- @since SketchUp 2021.1, API 9.1
833
- @param[in] entities
834
- @param[out] parent
835
- @related SUEntitiesRef
836
- @return
837
- - \ref SU_ERROR_NONE on success
838
- - \ref SU_ERROR_INVALID_INPUT if \p entities is not a valid object
839
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if \p parent is NULL.
840
- */
841
- SU_RESULT SUEntitiesGetParent(SUEntitiesRef entities, struct SUEntitiesParent* parent);
842
-
843
- /**
844
- @brief Get the active section plane for this entities object.
845
- @since SketchUp 2021.1, API 9.1
846
- @param[in] entities
847
- @param[out] section_plane
848
- @related SUEntitiesRef
849
- @return
850
- - \ref SU_ERROR_NONE on success.
851
- - \ref SU_ERROR_INVALID_INPUT if \p entities is not a valid object.
852
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if \p entities is NULL.
853
- - \ref SU_ERROR_OVERWRITE_VALID if \p section_plane already references a valid object.
854
- - \ref SU_ERROR_NO_DATA if \p entities has no active section plane.
855
- */
856
- SU_RESULT SUEntitiesGetActiveSectionPlane(SUEntitiesRef entities, SUSectionPlaneRef* section_plane);
857
-
858
- /**
859
- @brief Set the active section plane for this entities object.
860
- @since SketchUp 2021.1, API 9.1
861
- @bug Before SketchUp 2023.1 (API 11.1) this function would not accept SU_INVALID as a valid
862
- \p section_plane value and would have returned SU_ERROR_INVALID_INPUT instead
863
- @param[in,out] entities
864
- @param[in] section_plane The section plane to activate or \p SU_INVALID if none should be
865
- active.
866
- @related SUEntitiesRef
867
- @return
868
- - \ref SU_ERROR_NONE on success
869
- - \ref SU_ERROR_INVALID_INPUT if \p entities is not a valid object.
870
- - \ref SU_ERROR_INVALID_ARGUMENT if \p section_plane doesn't belong to \p entities.
871
- */
872
- SU_RESULT SUEntitiesSetActiveSectionPlane(SUEntitiesRef entities, SUSectionPlaneRef section_plane);
873
-
874
- #ifdef __cplusplus
875
- } // extern "C"
876
- #endif
877
- #pragma pack(pop)
878
-
879
- #endif // SKETCHUP_MODEL_ENTITIES_H_