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,681 +0,0 @@
1
- // Copyright 2015-2023 Trimble Inc. All rights reserved.
2
- // This file is intended for public distribution.
3
-
4
- #ifndef LAYOUT_MODEL_SKETCHUPMODEL_H_
5
- #define LAYOUT_MODEL_SKETCHUPMODEL_H_
6
-
7
- #include <LayOutAPI/common.h>
8
- #include <LayOutAPI/geometry/geometry.h>
9
- #include <LayOutAPI/model/defs.h>
10
- #include <SketchUpAPI/model/defs.h>
11
-
12
- /**
13
- @struct LOSketchUpModelRef
14
- @brief References a SketchUp model viewport entity.
15
- */
16
-
17
- /**
18
- @enum LOSketchUpModelRenderMode
19
- @brief Defines the different rendering modes available for a SketchUp model.
20
- @note New for LayOut 2023.1, API 8.1 is the value LOSketchUpModelRenderMode_NoOverride.
21
- The value is only used for the document render mode override, to indicate that
22
- the output render mode should match the edit render mode, which is set per LOSketchUpModelRef.
23
- */
24
- typedef enum {
25
- LOSketchUpModelRenderMode_NoOverride = -1, ///< Output render mode matches edit render mode.
26
- LOSketchUpModelRenderMode_Raster = 0, ///< Raster rendering.
27
- LOSketchUpModelRenderMode_Hybrid, ///< Hybrid rendering.
28
- LOSketchUpModelRenderMode_Vector, ///< Vector rendering.
29
- LONumSketchUpModelRenderModes
30
- } LOSketchUpModelRenderMode;
31
-
32
- /**
33
- @enum LOSketchUpModelStandardView
34
- @brief Defines the standard views available for a SketchUp model. Relative views
35
- are not necessarily aligned to the corresponding axes like regular views,
36
- but rather they maintain the alignment from the previous position of the
37
- camera.
38
- */
39
- typedef enum {
40
- LOSketchUpModelStandardView_Top = 0, ///< Top. This view is aligned with the X and Y axes.
41
- LOSketchUpModelStandardView_RelativeTop, ///< Top (Relative). This top view is oriented relative
42
- ///< to the previous camera position.
43
- LOSketchUpModelStandardView_Bottom, ///< Bottom. This view is aligned with the X and Y axes.
44
- LOSketchUpModelStandardView_RelativeBottom, ///< Bottom (Relative). This bottom view is oriented
45
- ///< relative to the previous camera position.
46
- LOSketchUpModelStandardView_Front, ///< Front. This view is aligned with the X and Z axes.
47
- LOSketchUpModelStandardView_Back, ///< Back. This view is aligned with the X and Z axes.
48
- LOSketchUpModelStandardView_Left, ///< Left. This view is aligned with the Y and Z axes.
49
- LOSketchUpModelStandardView_Right, ///< Right. This view is aligned with the Y and Z axes.
50
- LOSketchUpModelStandardView_Iso, ///< Iso. This is aligned with the nearest isometric axes to the
51
- ///< current view.
52
- LONumSketchUpModelStandardViews
53
- } LOSketchUpModelStandardView;
54
-
55
- #ifdef __cplusplus
56
- extern "C" {
57
- #endif // __cplusplus
58
-
59
- /**
60
- @brief Creates a new SketchUp model object with the specified bounds that
61
- references the specified SketchUp file.
62
- @param[out] model The SketchUp model object.
63
- @param[in] path The path to the SketchUp file.
64
- @param[in] bounds The starting dimensions of the SketchUp model.
65
- @return
66
- - \ref SU_ERROR_NONE on success
67
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if model is NULL
68
- - \ref SU_ERROR_OVERWRITE_VALID if *model already refers to a valid object
69
- - \ref SU_ERROR_NULL_POINTER_INPUT if path is NULL
70
- - \ref SU_ERROR_NULL_POINTER_INPUT if bounds is NULL
71
- - \ref SU_ERROR_OUT_OF_RANGE if bounds has a width or height of zero
72
- - \ref SU_ERROR_SERIALIZATION if the .skp file could not be loaded
73
- - \ref SU_ERROR_NO_DATA if the .skp file could not be found
74
- */
75
- LO_RESULT LOSketchUpModelCreate(
76
- LOSketchUpModelRef* model, const char* path, const LOAxisAlignedRect2D* bounds);
77
-
78
- /**
79
- @brief Adds a reference to a SketchUp model object.
80
- @param[in] model The SketchUp model object.
81
- @return
82
- - \ref SU_ERROR_NONE on success
83
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
84
- */
85
- LO_RESULT LOSketchUpModelAddReference(LOSketchUpModelRef model);
86
-
87
- /**
88
- @brief Releases a SketchUp model object. The object will be invalidated if
89
- releasing the last reference.
90
- @param[in] model The SketchUp model object.
91
- @return
92
- - \ref SU_ERROR_NONE on success
93
- - \ref SU_ERROR_NULL_POINTER_INPUT model is NULL
94
- - \ref SU_ERROR_INVALID_INPUT *model does not refer to a valid object
95
- */
96
- LO_RESULT LOSketchUpModelRelease(LOSketchUpModelRef* model);
97
-
98
- /**
99
- @brief Converts from a \ref LOEntityRef to a \ref LOSketchUpModelRef.
100
- This is essentially a downcast operation so the given \ref LOEntityRef
101
- must be convertible to a \ref LOSketchUpModelRef.
102
- @param[in] entity The entity object.
103
- @return
104
- - The converted \ref LOSketchUpModelRef if the downcast operation succeeds
105
- - If not, the returned reference will be invalid
106
- */
107
- LO_EXPORT LOSketchUpModelRef LOSketchUpModelFromEntity(LOEntityRef entity);
108
-
109
- /**
110
- @brief Converts from a \ref LOSketchUpModelRef to a \ref LOEntityRef.
111
- This is essentially an upcast operation.
112
- @param[in] model The SketchUp model object.
113
- @return
114
- - The converted \ref LOEntityRef if model is a valid object
115
- - If not, the returned reference will be invalid
116
- */
117
- LO_EXPORT LOEntityRef LOSketchUpModelToEntity(LOSketchUpModelRef model);
118
-
119
- /**
120
- @brief Applies the SketchUp model viewport's overrides on the SketchUp model retrieved by
121
- \ref LOSketchUpModelGetModel.
122
- @note The SketchUp model must be reset back to its default state by calling
123
- \ref LOSketchUpModelResetViewportOverridesOnModel.
124
- @since LayOut 2026.0, API 11.0
125
- @param[in] model The SketchUp model object.
126
- @return
127
- - \ref SU_ERROR_NONE on success
128
- - \ref SU_ERROR_INVALID_INPUT if \p model does not refer to a valid object
129
- */
130
- LO_RESULT LOSketchUpModelSetViewportOverridesOnModel(LOSketchUpModelRef model);
131
-
132
- /**
133
- @brief Resets the SketchUp model used by this viewport back to its default state.
134
- @note This must be done after a corresponding call to
135
- \ref LOSketchUpModelSetViewportOverridesOnModel to ensure proper behavior of the SketchUp
136
- model when multiple viewports exist using the same SketchUp model reference.
137
- @since LayOut 2026.0, API 11.0
138
- @param[in] model The SketchUp model object.
139
- @return
140
- - \ref SU_ERROR_NONE on success
141
- - \ref SU_ERROR_INVALID_INPUT if \p model does not refer to a valid object
142
- */
143
- LO_RESULT LOSketchUpModelResetViewportOverridesOnModel(LOSketchUpModelRef model);
144
-
145
- /**
146
- @brief Gets the \p SUModelRef representation of the SketchUp model.
147
- @note This \p SUModelRef is shared by all SketchUp model viewports that use the same file
148
- reference. To apply the SketchUp model viewport's overrides to the \p SUModelRef
149
- call \ref LOSketchUpModelSetViewportOverridesOnModel. You must reset the SketchUp model
150
- back to its default state by calling \ref LOSketchUpModelResetViewportOverridesOnModel
151
- once you are done.
152
- @since LayOut 2017, API 2.0
153
- @param[in] model The SketchUp model object.
154
- @param[out] sumodel The model reference object.
155
- @return
156
- - \ref SU_ERROR_NONE on success
157
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
158
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if sumodel is NULL
159
- */
160
- LO_RESULT LOSketchUpModelGetModel(LOSketchUpModelRef model, SUModelRef* sumodel);
161
-
162
- /**
163
- @brief Gets the render mode of the SketchUp model.
164
- @param[in] model The SketchUp model object.
165
- @param[out] render_mode The render mode of the SketchUp model.
166
- @return
167
- - \ref SU_ERROR_NONE on success
168
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
169
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if render_mode is NULL
170
- */
171
- LO_RESULT LOSketchUpModelGetRenderMode(
172
- LOSketchUpModelRef model, LOSketchUpModelRenderMode* render_mode);
173
-
174
- /**
175
- @brief Sets the render mode of the SketchUp model.
176
- @param[in] model The SketchUp model object.
177
- @param[in] render_mode The new render mode for the SketchUp model.
178
- @return
179
- - \ref SU_ERROR_NONE on success
180
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
181
- - \ref SU_ERROR_OUT_OF_RANGE if the value of render_mode is invalid
182
- - \ref SU_ERROR_LAYER_LOCKED if model is on a locked layer
183
- - \ref SU_ERROR_ENTITY_LOCKED if model is locked
184
- */
185
- LO_RESULT LOSketchUpModelSetRenderMode(
186
- LOSketchUpModelRef model, LOSketchUpModelRenderMode render_mode);
187
-
188
- /**
189
- @brief Renders the SketchUp model. If the model belongs to a
190
- \ref LODocumentRef, then the render will be performed at the
191
- resolution set in document.page_info (see \ref LODocumentRef and
192
- \ref LOPageInfoRef). Otherwise, the render will be performed at Low
193
- resolution.
194
- @param[in] model The SketchUp model object.
195
- @return
196
- - \ref SU_ERROR_NONE on success
197
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
198
- - \ref SU_ERROR_LAYER_LOCKED if model is on a locked layer
199
- - \ref SU_ERROR_ENTITY_LOCKED if model is locked
200
- */
201
- LO_RESULT LOSketchUpModelRender(LOSketchUpModelRef model);
202
-
203
- /**
204
- @brief Gets the status indicating whether the SketchUp model needs to be
205
- rendered.
206
- @param[in] model The SketchUp model object.
207
- @param[out] render_needed True if the SketchUp model needs to be rendered.
208
- @return
209
- - \ref SU_ERROR_NONE on success
210
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
211
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if render_needed is NULL
212
- */
213
- LO_RESULT LOSketchUpModelIsRenderNeeded(LOSketchUpModelRef model, bool* render_needed);
214
-
215
- /**
216
- @brief Gets the number of scenes that are available for a SketchUp model. Use
217
- this to determine the size of the array that should be passed to \ref
218
- LOSketchUpModelGetAvailableScenes.
219
- @param[in] model The SketchUp model object.
220
- @param[out] number_of_scenes The number of scenes.
221
- @return
222
- - \ref SU_ERROR_NONE on success
223
- - \ref SU_ERROR_INVALID_INPUT if model is an invalid object
224
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if number_of_scenes is NULL
225
- */
226
- LO_RESULT LOSketchUpModelGetNumberOfAvailableScenes(
227
- LOSketchUpModelRef model, size_t* number_of_scenes);
228
-
229
- /**
230
- @brief Gets the array of scenes that are available for a SketchUp model. The
231
- first scene returned will always be the default scene, called
232
- "Last saved SketchUp View".
233
- @param[in] model The SketchUp model object.
234
- @param[in] len The maximum number of scenes to retrieve.
235
- @param[out] scenes The names of the scenes retrieved.
236
- @param[out] count The number of scenes retrieved.
237
- @return
238
- - \ref SU_ERROR_NONE on success
239
- - \ref SU_ERROR_INVALID_INPUT if model is an invalid object
240
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if scenes or count is NULL
241
- */
242
- LO_RESULT LOSketchUpModelGetAvailableScenes(
243
- LOSketchUpModelRef model, size_t len, SUStringRef scenes[], size_t* count);
244
-
245
- /**
246
- @brief Gets the most recently selected scene of the SketchUp model.
247
- @param[in] model The SketchUp model object.
248
- @param[out] scene_index The index of the SketchUp model's scene. This is an
249
- index into the list of available scenes returned by
250
- \ref LOSketchUpModelGetAvailableScenes.
251
- @param[out] scene_modified Indicates whether or not the scene has been modified
252
- in LayOut.
253
- @return
254
- - \ref SU_ERROR_NONE on success
255
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
256
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if scene_index or scene_modified is NULL
257
- - \ref SU_ERROR_NO_DATA if the most recently selected scene no longer exists
258
- */
259
- LO_RESULT LOSketchUpModelGetCurrentScene(
260
- LOSketchUpModelRef model, size_t* scene_index, bool* scene_modified);
261
-
262
- /**
263
- @brief Sets the scene of the SketchUp model.
264
- @param[in] model The SketchUp model object.
265
- @param[in] scene_index The index of the scene. This is an index into the list
266
- of available scenes returned by \ref
267
- LOSketchUpModelGetAvailableScenes.
268
- @return
269
- - \ref SU_ERROR_NONE on success
270
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
271
- - \ref SU_ERROR_OUT_OF_RANGE if scene_index is greater than or equal to the
272
- number of available scenes.
273
- - \ref SU_ERROR_LAYER_LOCKED if model is on a locked layer
274
- - \ref SU_ERROR_ENTITY_LOCKED if model is locked
275
-
276
- */
277
- LO_RESULT LOSketchUpModelSetCurrentScene(LOSketchUpModelRef model, size_t scene_index);
278
-
279
- /**
280
- @brief Gets whether the SketchUp model's camera has been modified.
281
- @param[in] model The SketchUp model object.
282
- @param[out] modified Indicates whether or not the camera has been modified
283
- in LayOut.
284
- @since LayOut 2020.1, API 5.1
285
- @return
286
- - \ref SU_ERROR_NONE on success
287
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
288
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if modified is NULL
289
- */
290
- LO_RESULT LOSketchUpModelGetCameraModified(LOSketchUpModelRef model, bool* modified);
291
-
292
- /**
293
- @brief Resets the SketchUp model's camera to the scene's setting.
294
- @param[in] model The SketchUp model object.
295
- @since LayOut 2020.1, API 5.1
296
- @return
297
- - \ref SU_ERROR_NONE on success
298
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
299
- - \ref SU_ERROR_LAYER_LOCKED if model is on a locked layer
300
- - \ref SU_ERROR_ENTITY_LOCKED if model is locked
301
- */
302
- LO_RESULT LOSketchUpModelResetCamera(LOSketchUpModelRef model);
303
-
304
- /**
305
- @brief Gets a SUCameraRef representing the camera for the viewport.
306
- @since LayOut 2026.0, API 11.0
307
- @param[in] model The SketchUp model object.
308
- @param[out] sucamera The camera reference object.
309
- @return
310
- - \ref SU_ERROR_NONE on success
311
- - \ref SU_ERROR_INVALID_INPUT if \p model does not refer to a valid object
312
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if \p sucamera is NULL
313
- - \ref SU_ERROR_INVALID_OUTPUT if \p *sucamera does not refer to a valid object
314
- */
315
- LO_RESULT LOSketchUpModelGetCamera(LOSketchUpModelRef model, SUCameraRef* sucamera);
316
-
317
- /**
318
- @brief Sets the camera for the viewport.
319
- @note Setting the camera will flag the viewport as having a modified camera.
320
- @since LayOut 2026.0, API 11.0
321
- @param[in] model The SketchUp model object.
322
- @param[in] sucamera The camera reference object.
323
- @return
324
- - \ref SU_ERROR_NONE on success
325
- - \ref SU_ERROR_INVALID_INPUT if \p model does not refer to a valid object
326
- - \ref SU_ERROR_INVALID_INPUT if \p sucamera does not refer to a valid object
327
- */
328
- LO_RESULT LOSketchUpModelSetCamera(LOSketchUpModelRef model, SUCameraRef sucamera);
329
-
330
- /**
331
- @brief Gets whether the SketchUp model's shadow or fog effects have been modified.
332
- @param[in] model The SketchUp model object.
333
- @param[out] modified Indicates whether or not the shadow or fog effects have
334
- been modified in LayOut.
335
- @since LayOut 2020.1, API 5.1
336
- @return
337
- - \ref SU_ERROR_NONE on success
338
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
339
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if modified is NULL
340
- */
341
- LO_RESULT LOSketchUpModelGetEffectsModified(LOSketchUpModelRef model, bool* modified);
342
-
343
- /**
344
- @brief Resets the SketchUp model's shadow and fog effects to the scene's settings.
345
- @param[in] model The SketchUp model object.
346
- @since LayOut 2020.1, API 5.1
347
- @return
348
- - \ref SU_ERROR_NONE on success
349
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
350
- - \ref SU_ERROR_LAYER_LOCKED if model is on a locked layer
351
- - \ref SU_ERROR_ENTITY_LOCKED if model is locked
352
- */
353
- LO_RESULT LOSketchUpModelResetEffects(LOSketchUpModelRef model);
354
-
355
- /**
356
- @brief Gets whether the SketchUp model's style has been modified.
357
- @param[in] model The SketchUp model object.
358
- @param[out] modified Indicates whether or not the style has been modified in
359
- LayOut.
360
- @since LayOut 2020.1, API 5.1
361
- @return
362
- - \ref SU_ERROR_NONE on success
363
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
364
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if modified is NULL
365
- */
366
- LO_RESULT LOSketchUpModelGetStyleModified(LOSketchUpModelRef model, bool* modified);
367
-
368
- /**
369
- @brief Resets the SketchUp model's style to the scene's setting.
370
- @param[in] model The SketchUp model object.
371
- @since LayOut 2020.1, API 5.1
372
- @return
373
- - \ref SU_ERROR_NONE on success
374
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
375
- - \ref SU_ERROR_LAYER_LOCKED if model is on a locked layer
376
- - \ref SU_ERROR_ENTITY_LOCKED if model is locked
377
- */
378
- LO_RESULT LOSketchUpModelResetStyle(LOSketchUpModelRef model);
379
-
380
- /**
381
- @brief Gets whether the SketchUp model's layers have been modified.
382
- @note In SketchUp 2020, SketchUp "layers" were renamed to "tags". For
383
- consistency with the SketchUp API, this will continue to refer to "tags"
384
- as "layers".
385
- @since LayOut 2020.1, API 5.1
386
- @param[in] model The SketchUp model object.
387
- @param[out] modified Indicates whether or not the tag have been modified in
388
- LayOut.
389
- @return
390
- - \ref SU_ERROR_NONE on success
391
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
392
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if modified is NULL
393
- */
394
- LO_RESULT LOSketchUpModelGetLayersModified(LOSketchUpModelRef model, bool* modified);
395
-
396
- /**
397
- @brief Resets the SketchUp model's layers to the scene's setting.
398
- @note In SketchUp 2020, SketchUp "layers" were renamed to "tags". For
399
- consistency with the SketchUp API, this will continue to refer to "tags"
400
- as "layers".
401
- @since LayOut 2020.1, API 5.1
402
- @param[in] model The SketchUp model object.
403
- @return
404
- - \ref SU_ERROR_NONE on success
405
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
406
- - \ref SU_ERROR_LAYER_LOCKED if model is on a locked layer
407
- - \ref SU_ERROR_ENTITY_LOCKED if model is locked
408
- */
409
- LO_RESULT LOSketchUpModelResetLayers(LOSketchUpModelRef model);
410
-
411
- /**
412
- @brief Gets the status of whether or not the background is displayed for the
413
- SketchUp model. This setting only applies when the render mode is
414
- \ref LOSketchUpModelRenderMode_Vector.
415
- @param[in] model The SketchUp model object.
416
- @param[out] display_background True if the background is displayed.
417
- @return
418
- - \ref SU_ERROR_NONE on success
419
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
420
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if display_background is NULL
421
- */
422
- LO_RESULT LOSketchUpModelGetDisplayBackground(LOSketchUpModelRef model, bool* display_background);
423
-
424
- /**
425
- @brief Sets the status of whether or not the background is displayed for the
426
- SketchUp model. This setting only applies when the render mode is
427
- \ref LOSketchUpModelRenderMode_Vector.
428
- @param[in] model The SketchUp model object.
429
- @param[in] display_background True if the background should be displayed.
430
- @return
431
- - \ref SU_ERROR_NONE on success
432
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
433
- - \ref SU_ERROR_LAYER_LOCKED if model is on a locked layer
434
- - \ref SU_ERROR_ENTITY_LOCKED if model is locked
435
- */
436
- LO_RESULT LOSketchUpModelSetDisplayBackground(LOSketchUpModelRef model, bool display_background);
437
-
438
- /**
439
- @brief Gets the line weight in points for the SketchUp model.
440
- @param[in] model The SketchUp model object.
441
- @param[out] line_weight Line weight in points.
442
- @return
443
- - \ref SU_ERROR_NONE on success
444
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
445
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if line_weight is NULL
446
- */
447
- LO_RESULT LOSketchUpModelGetLineWeight(LOSketchUpModelRef model, double* line_weight);
448
-
449
- /**
450
- @brief Sets the line weight in points for the SketchUp model.
451
- @param[in] model The SketchUp model object.
452
- @param[in] line_weight Line weight in points.
453
- @return
454
- - \ref SU_ERROR_NONE on success
455
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
456
- - \ref SU_ERROR_OUT_OF_RANGE if line_weight is less than 0.01
457
- - \ref SU_ERROR_LAYER_LOCKED if model is on a locked layer
458
- - \ref SU_ERROR_ENTITY_LOCKED if model is locked
459
- */
460
- LO_RESULT LOSketchUpModelSetLineWeight(LOSketchUpModelRef model, double line_weight);
461
-
462
- /**
463
- @brief Gets the scale for dashes in the SketchUp model. A scale value of 0.0
464
- means the dashes are scaled based on the line weight.
465
- @since LayOut 2019, API 4.0
466
- @param[in] model The SketchUp model object.
467
- @param[out] dash_scale Dash scale. Will be in the range [0, 10].
468
- @return
469
- - \ref SU_ERROR_NONE on success
470
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
471
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if dash_scale is NULL
472
- */
473
- LO_RESULT LOSketchUpModelGetDashScale(LOSketchUpModelRef model, double* dash_scale);
474
-
475
- /**
476
- @brief Sets the scale for dashes in the SketchUp model. A scale value of 0.0 or
477
- lower will "auto" scale the dashes based on the line weight.
478
- @since LayOut 2019, API 4.0
479
- @param[in] model The SketchUp model object.
480
- @param[in] dash_scale Dash scale. A value less than zero will be set to 0.
481
- @return
482
- - \ref SU_ERROR_NONE on success
483
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
484
- - \ref SU_ERROR_LAYER_LOCKED if model is on a locked layer
485
- - \ref SU_ERROR_ENTITY_LOCKED if model is locked
486
- */
487
- LO_RESULT LOSketchUpModelSetDashScale(LOSketchUpModelRef model, double dash_scale);
488
-
489
- /**
490
- @brief Gets whether or not the view is rendered in perspective mode.
491
- @param[in] model The SketchUp model object.
492
- @param[out] perspective Whether or not the view is rendered in perspective mode.
493
- @return
494
- - \ref SU_ERROR_NONE on success
495
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
496
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if perspective is NULL
497
- */
498
- LO_RESULT LOSketchUpModelGetPerspective(LOSketchUpModelRef model, bool* perspective);
499
-
500
- /**
501
- @brief Sets whether or not the view is rendered in perspective mode.
502
- @param[in] model The SketchUp model object.
503
- @param[in] perspective Whether or not the view should be rendered in
504
- perspective mode.
505
- @return
506
- - \ref SU_ERROR_NONE on success
507
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
508
- - \ref SU_ERROR_LAYER_LOCKED if model is on a locked layer
509
- - \ref SU_ERROR_ENTITY_LOCKED if model is locked
510
- */
511
- LO_RESULT LOSketchUpModelSetPerspective(LOSketchUpModelRef model, bool perspective);
512
-
513
- /**
514
- @brief Gets the standard view that a SketchUp model is currently set to.
515
- @param[in] model The SketchUp model object.
516
- @param[out] view The standard view that the SketchUp model is currently set to.
517
- @return
518
- - \ref SU_ERROR_NONE on success
519
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
520
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if view is NULL
521
- - \ref SU_ERROR_NO_DATA if the SketchUp model is not currently set to a
522
- standard view
523
- */
524
- LO_RESULT LOSketchUpModelGetStandardView(
525
- LOSketchUpModelRef model, LOSketchUpModelStandardView* view);
526
-
527
- /**
528
- @brief Sets a SketchUp model to use a standard view.
529
- @param[in] model The SketchUp model object.
530
- @param[in] view The standard view to use.
531
- - \ref SU_ERROR_NONE on success
532
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
533
- - \ref SU_ERROR_LAYER_LOCKED if model is on a locked layer
534
- - \ref SU_ERROR_ENTITY_LOCKED if model is locked
535
- - \ref SU_ERROR_OUT_OF_RANGE if view specifies an invalid value
536
- */
537
- LO_RESULT LOSketchUpModelSetStandardView(
538
- LOSketchUpModelRef model, LOSketchUpModelStandardView view);
539
-
540
- /**
541
- @brief Gets the scale of a SketchUp model. This is only valid to call for
542
- models that are rendered in orthographic (non-perspective) mode.
543
- @param[in] model The SketchUp model object.
544
- @param[out] scale The SketchUp model's scale.
545
- @return
546
- - \ref SU_ERROR_NONE on success
547
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
548
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if scale is NULL
549
- - \ref SU_ERROR_NO_DATA if model is currently rendered in perspective mode.
550
- */
551
- LO_RESULT LOSketchUpModelGetScale(LOSketchUpModelRef model, double* scale);
552
-
553
- /**
554
- @brief Sets the scale of a SketchUp model. This is only valid to call for
555
- models that are rendered in orthographic (non-perspective) mode.
556
- @param[in] model The SketchUp model object.
557
- @param[in] scale The new scale for the SketchUp model.
558
- @return
559
- - \ref SU_ERROR_NONE on success
560
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
561
- - \ref SU_ERROR_GENERIC if model is rendered in perspective mode
562
- - \ref SU_ERROR_OUT_OF_RANGE if scale is less than 0.0000001
563
- - \ref SU_ERROR_LAYER_LOCKED if model is on a locked layer
564
- - \ref SU_ERROR_ENTITY_LOCKED if model is locked
565
- */
566
- LO_RESULT LOSketchUpModelSetScale(LOSketchUpModelRef model, double scale);
567
-
568
- /**
569
- @brief Gets whether or not the scale is preserved when the SketchUp model is
570
- resized.
571
- @param[in] model The SketchUp model object.
572
- @param[out] preserve_scale True if the scale is preserved on resize.
573
- @return
574
- - \ref SU_ERROR_NONE on success
575
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
576
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if preserve_scale is NULL
577
- */
578
- LO_RESULT LOSketchUpModelGetPreserveScaleOnResize(LOSketchUpModelRef model, bool* preserve_scale);
579
-
580
- /**
581
- @brief Sets whether or not the scale is preserved when the SketchUp model is
582
- resized.
583
- @param[in] model The SketchUp model object.
584
- @param[in] preserve_scale True if the scale should be preserved on resize.
585
- @return
586
- - \ref SU_ERROR_NONE on success
587
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
588
- - \ref SU_ERROR_LAYER_LOCKED if model is on a locked layer
589
- - \ref SU_ERROR_ENTITY_LOCKED if model is locked
590
- */
591
- LO_RESULT LOSketchUpModelSetPreserveScaleOnResize(LOSketchUpModelRef model, bool preserve_scale);
592
-
593
- /**
594
- @brief Converts a 3D model space point in the SketchUp model to a 2D paper
595
- space point on the page.
596
- @param[in] model The SketchUp model object.
597
- @param[in] model_point The 3D model space point.
598
- @param[out] paper_point The 2D paper space point.
599
- @return
600
- - \ref SU_ERROR_NONE on success
601
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
602
- - \ref SU_ERROR_NULL_POINTER_INPUT if model_point is NULL
603
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if paper_point is NULL
604
- */
605
- LO_RESULT LOSketchUpModelConvertModelPointToPaperPoint(
606
- LOSketchUpModelRef model, const LOPoint3D* model_point, LOPoint2D* paper_point);
607
-
608
- /**
609
- @brief Returns any clip mask assigned to the SketchUp model.
610
- @since LayOut 2017, API 2.0
611
- @param[in] model The SketchUp model object.
612
- @param[out] clip_mask The clip mask of the SketchUp model.
613
- @return
614
- - \ref SU_ERROR_NONE on success
615
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
616
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if clip_mask is NULL
617
- - \ref SU_ERROR_OVERWRITE_VALID if *clip_mask already refers to a valid object
618
- - \ref SU_ERROR_NO_DATA if the model is not being clipped by a clip mask
619
- */
620
- LO_RESULT LOSketchUpModelGetClipMask(LOSketchUpModelRef model, LOEntityRef* clip_mask);
621
-
622
- /**
623
- @brief Sets the clip mask of the SketchUp model. A clip mask defines a region
624
- of the entity that is visible. This allows you to crop with arbitrary
625
- shapes. This operation will replace any clip mask that is already
626
- assigned to this model. The entity being used must not be already part
627
- of a document or group. The clip mask entity must be either a rectangle,
628
- ellipse or a path.
629
- @note Starting in LayOut 2020.1, API 5.1, clip_mask may be SU_INVALID, which
630
- will remove the existing clip mask, if any.
631
- @since LayOut 2017, API 2.0
632
- @param[in] model The SketchUp model object.
633
- @param[in] clip_mask The new clip mask for the SketchUp model.
634
- @return
635
- - \ref SU_ERROR_NONE on success
636
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
637
- - \ref SU_ERROR_GENERIC if clip_mask is already in a document or group
638
- - \ref SU_ERROR_UNSUPPORTED if clip_mask is not a rectangle, ellipse, or path
639
- - \ref SU_ERROR_LAYER_LOCKED if model is on a locked layer
640
- - \ref SU_ERROR_ENTITY_LOCKED if model is locked
641
- */
642
- LO_RESULT LOSketchUpModelSetClipMask(LOSketchUpModelRef model, LOEntityRef clip_mask);
643
-
644
- /**
645
- @brief Creates the entities that represent the SketchUp model in its exploded
646
- form and adds them to a \ref LOEntityListRef. It is NOT necessary to
647
- explicitly release these entities, since \ref LOEntityListRef itself
648
- adds a reference to the entities and will release them when they are
649
- removed from the list or when the list is released.
650
- @note Starting in LayOut 2018 M0, API 3.0 - an exploded raster-rendered model
651
- will now wrap the \ref LOImageRef in a \ref LOGroupRef.
652
- @param[in] model The SketchUp model object.
653
- @param[in] entity_list The entity list object to add the new entities to.
654
- @return
655
- - \ref SU_ERROR_NONE on success
656
- - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
657
- - \ref SU_ERROR_INVALID_INPUT if entity_list does not refer to a valid object
658
- */
659
- LO_RESULT LOSketchUpModelGetExplodedEntities(LOSketchUpModelRef model, LOEntityListRef entity_list);
660
-
661
- /**
662
- @brief Creates the entities that represent the SketchUp model using its output settings and adds
663
- them to a \ref LOEntityListRef.
664
-
665
- This will use the document's output render mode override setting for SketchUp model viewports, and
666
- the raster output image quality set by \ref LOPageInfoSetOutputResolution. It is NOT necessary to
667
- explicitly release these entities, since \ref LOEntityListRef itself adds a reference to the
668
- entities and will release them when they are removed from the list or when the list is released.
669
- @since Layout 2023.1, API 8.1
670
- @param[in] model The SketchUp model object.
671
- @param[in] entity_list The entity list object to add the new entities to.
672
- @return
673
- - \ref SU_ERROR_NONE on success
674
- - \ref SU_ERROR_INVALID_INPUT if \p model does not refer to a valid object
675
- - \ref SU_ERROR_INVALID_INPUT if \p entity_list does not refer to a valid object
676
- */
677
- LO_RESULT LOSketchUpModelGetOutputEntities(LOSketchUpModelRef model, LOEntityListRef entity_list);
678
- #ifdef __cplusplus
679
- } // end extern "C"
680
- #endif // __cplusplus
681
- #endif // LAYOUT_MODEL_SKETCHUPMODEL_H_