scriptup 2026.0.0 → 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.
- checksums.yaml +4 -4
- data/README.md +43 -24
- data/ext/arc_curve.c +50 -0
- data/ext/attribute_dictionaries.c +49 -32
- data/ext/attribute_dictionary.c +54 -127
- data/ext/axes.c +79 -0
- data/ext/behavior.c +100 -9
- data/ext/bounding_box.c +195 -0
- data/ext/camera.c +178 -0
- data/ext/classifications.c +85 -0
- data/ext/color.c +91 -163
- data/ext/component_definition.c +78 -162
- data/ext/component_instance.c +88 -9
- data/ext/construction.c +59 -0
- data/ext/curve.c +87 -0
- data/ext/definition_list.c +89 -109
- data/ext/depend +1 -0
- data/ext/drawing_element.c +96 -117
- data/ext/edge.c +147 -0
- data/ext/edge_use.c +37 -0
- data/ext/entities.c +573 -16
- data/ext/entities_builder.c +145 -0
- data/ext/entity.c +175 -212
- data/ext/environments.c +149 -0
- data/ext/extconf.rb +54 -10
- data/ext/face.c +331 -0
- data/ext/geom.c +172 -0
- data/ext/group.c +86 -0
- data/ext/helpers.c +244 -0
- data/ext/image.c +182 -0
- data/ext/image_rep.c +158 -0
- data/ext/instance_path.c +185 -0
- data/ext/lat_long.c +88 -0
- data/ext/layer.c +98 -0
- data/ext/layer_folder.c +99 -0
- data/ext/layers.c +122 -0
- data/ext/length.c +253 -0
- data/ext/line_styles.c +60 -0
- data/ext/loop.c +24 -0
- data/ext/material.c +144 -197
- data/ext/materials.c +49 -60
- data/ext/model.c +232 -26
- data/ext/options_store.c +188 -0
- data/ext/page.c +168 -0
- data/ext/pages.c +135 -0
- data/ext/point2d.c +195 -0
- data/ext/point3d.c +340 -0
- data/ext/polygon_mesh.c +253 -0
- data/ext/scriptup.h +279 -0
- data/ext/section_plane.c +44 -0
- data/ext/sketchup.c +102 -76
- data/ext/styles.c +91 -0
- data/ext/text.c +135 -0
- data/ext/texture.c +74 -83
- data/ext/texture_writer.c +104 -0
- data/ext/transformation.c +309 -0
- data/ext/transformation2d.c +190 -0
- data/ext/uv_helper.c +41 -0
- data/ext/vector2d.c +238 -0
- data/ext/vector3d.c +294 -0
- data/ext/vertex.c +67 -0
- data/lib/sketchup.rb +2 -2
- data/sig/_top_level.rbs +188 -0
- data/sig/array.rbs +52 -0
- data/sig/geom/bounding_box.rbs +28 -0
- data/sig/geom/bounds2d.rbs +20 -0
- data/sig/geom/lat_long.rbs +13 -0
- data/sig/geom/oriented_bounds2d.rbs +10 -0
- data/sig/geom/point2d.rbs +32 -0
- data/sig/geom/point3d.rbs +46 -0
- data/sig/geom/polygon_mesh.rbs +35 -0
- data/sig/geom/transformation.rbs +44 -0
- data/sig/geom/transformation2d.rbs +26 -0
- data/sig/geom/utm.rbs +14 -0
- data/sig/geom/vector2d.rbs +40 -0
- data/sig/geom/vector3d.rbs +49 -0
- data/sig/geom.rbs +25 -0
- data/sig/language_handler.rbs +8 -0
- data/sig/layout/angular_dimension.rbs +32 -0
- data/sig/layout/auto_text_definition.rbs +73 -0
- data/sig/layout/auto_text_definitions.rbs +15 -0
- data/sig/layout/connection_point.rbs +6 -0
- data/sig/layout/dictionary.rbs +18 -0
- data/sig/layout/document.rbs +61 -0
- data/sig/layout/ellipse.rbs +5 -0
- data/sig/layout/entities.rbs +10 -0
- data/sig/layout/entity.rbs +28 -0
- data/sig/layout/formatted_text.rbs +30 -0
- data/sig/layout/grid.rbs +24 -0
- data/sig/layout/group.rbs +17 -0
- data/sig/layout/image.rbs +7 -0
- data/sig/layout/label.rbs +31 -0
- data/sig/layout/layer.rbs +21 -0
- data/sig/layout/layer_instance.rbs +9 -0
- data/sig/layout/layers.rbs +18 -0
- data/sig/layout/linear_dimension.rbs +39 -0
- data/sig/layout/locked_entity_error.rbs +4 -0
- data/sig/layout/locked_layer_error.rbs +4 -0
- data/sig/layout/page.rbs +20 -0
- data/sig/layout/page_info.rbs +37 -0
- data/sig/layout/pages.rbs +17 -0
- data/sig/layout/path.rbs +34 -0
- data/sig/layout/rectangle.rbs +15 -0
- data/sig/layout/reference_entity.rbs +7 -0
- data/sig/layout/sketch_up_model.rbs +54 -0
- data/sig/layout/style.rbs +150 -0
- data/sig/layout/table.rbs +17 -0
- data/sig/layout/table_cell.rbs +13 -0
- data/sig/layout/table_column.rbs +10 -0
- data/sig/layout/table_row.rbs +10 -0
- data/sig/layout.rbs +4 -0
- data/sig/length.rbs +37 -0
- data/sig/numeric.rbs +23 -0
- data/sig/sketchup/animation.rbs +8 -0
- data/sig/sketchup/app_observer.rbs +11 -0
- data/sig/sketchup/arc_curve.rbs +14 -0
- data/sig/sketchup/attribute_dictionaries.rbs +11 -0
- data/sig/sketchup/attribute_dictionary.rbs +18 -0
- data/sig/sketchup/axes.rbs +13 -0
- data/sig/sketchup/behavior.rbs +19 -0
- data/sig/sketchup/camera.rbs +33 -0
- data/sig/sketchup/classification_schema.rbs +8 -0
- data/sig/sketchup/classifications.rbs +12 -0
- data/sig/sketchup/color.rbs +22 -0
- data/sig/sketchup/component_definition.rbs +43 -0
- data/sig/sketchup/component_instance.rbs +32 -0
- data/sig/sketchup/console.rbs +8 -0
- data/sig/sketchup/construction_line.rbs +17 -0
- data/sig/sketchup/construction_point.rbs +5 -0
- data/sig/sketchup/curve.rbs +13 -0
- data/sig/sketchup/definition_list.rbs +26 -0
- data/sig/sketchup/definition_observer.rbs +6 -0
- data/sig/sketchup/definitions_observer.rbs +8 -0
- data/sig/sketchup/dimension.rbs +18 -0
- data/sig/sketchup/dimension_linear.rbs +24 -0
- data/sig/sketchup/dimension_observer.rbs +5 -0
- data/sig/sketchup/dimension_radial.rbs +9 -0
- data/sig/sketchup/drawingelement.rbs +18 -0
- data/sig/sketchup/edge.rbs +24 -0
- data/sig/sketchup/edge_use.rbs +13 -0
- data/sig/sketchup/entities.rbs +61 -0
- data/sig/sketchup/entities_builder.rbs +15 -0
- data/sig/sketchup/entities_observer.rbs +9 -0
- data/sig/sketchup/entity.rbs +21 -0
- data/sig/sketchup/entity_observer.rbs +6 -0
- data/sig/sketchup/environment.rbs +25 -0
- data/sig/sketchup/environments.rbs +18 -0
- data/sig/sketchup/environments_observer.rbs +8 -0
- data/sig/sketchup/extensions_manager.rbs +11 -0
- data/sig/sketchup/face.rbs +44 -0
- data/sig/sketchup/frame_change_observer.rbs +5 -0
- data/sig/sketchup/group.rbs +38 -0
- data/sig/sketchup/http/request.rbs +17 -0
- data/sig/sketchup/http/response.rbs +7 -0
- data/sig/sketchup/http.rbs +27 -0
- data/sig/sketchup/image.rbs +23 -0
- data/sig/sketchup/image_rep.rbs +17 -0
- data/sig/sketchup/importer.rbs +14 -0
- data/sig/sketchup/input_point.rbs +25 -0
- data/sig/sketchup/instance_observer.rbs +6 -0
- data/sig/sketchup/instance_path.rbs +20 -0
- data/sig/sketchup/layer.rbs +20 -0
- data/sig/sketchup/layer_folder.rbs +26 -0
- data/sig/sketchup/layers.rbs +30 -0
- data/sig/sketchup/layers_observer.rbs +13 -0
- data/sig/sketchup/licensing/extension_license.rbs +8 -0
- data/sig/sketchup/licensing.rbs +15 -0
- data/sig/sketchup/line_style.rbs +5 -0
- data/sig/sketchup/line_styles.rbs +13 -0
- data/sig/sketchup/load_handler.rbs +8 -0
- data/sig/sketchup/loop.rbs +10 -0
- data/sig/sketchup/material.rbs +74 -0
- data/sig/sketchup/materials.rbs +22 -0
- data/sig/sketchup/materials_observer.rbs +10 -0
- data/sig/sketchup/menu.rbs +9 -0
- data/sig/sketchup/model.rbs +105 -0
- data/sig/sketchup/model_observer.rbs +23 -0
- data/sig/sketchup/options_manager.rbs +12 -0
- data/sig/sketchup/options_provider.rbs +23 -0
- data/sig/sketchup/options_provider_observer.rbs +5 -0
- data/sig/sketchup/overlay.rbs +21 -0
- data/sig/sketchup/overlays_manager.rbs +10 -0
- data/sig/sketchup/page.rbs +55 -0
- data/sig/sketchup/pages.rbs +25 -0
- data/sig/sketchup/pages_observer.rbs +7 -0
- data/sig/sketchup/pick_helper.rbs +28 -0
- data/sig/sketchup/regional_settings.rbs +7 -0
- data/sig/sketchup/rendering_options.rbs +89 -0
- data/sig/sketchup/rendering_options_observer.rbs +5 -0
- data/sig/sketchup/section_plane.rbs +12 -0
- data/sig/sketchup/selection.rbs +31 -0
- data/sig/sketchup/selection_observer.rbs +8 -0
- data/sig/sketchup/set.rbs +15 -0
- data/sig/sketchup/shadow_info.rbs +18 -0
- data/sig/sketchup/shadow_info_observer.rbs +5 -0
- data/sig/sketchup/skp.rbs +5 -0
- data/sig/sketchup/snap.rbs +10 -0
- data/sig/sketchup/style.rbs +9 -0
- data/sig/sketchup/styles.rbs +21 -0
- data/sig/sketchup/text.rbs +22 -0
- data/sig/sketchup/texture.rbs +14 -0
- data/sig/sketchup/texture_writer.rbs +14 -0
- data/sig/sketchup/tool.rbs +45 -0
- data/sig/sketchup/tools.rbs +14 -0
- data/sig/sketchup/tools_observer.rbs +6 -0
- data/sig/sketchup/uv_helper.rbs +6 -0
- data/sig/sketchup/vertex.rbs +11 -0
- data/sig/sketchup/view.rbs +87 -0
- data/sig/sketchup/view_observer.rbs +6 -0
- data/sig/sketchup.rbs +137 -0
- data/sig/sketchup_extension.rbs +23 -0
- data/sig/string.rbs +5 -0
- data/sig/ui/command.rbs +20 -0
- data/sig/ui/html_dialog.rbs +29 -0
- data/sig/ui/notification.rbs +16 -0
- data/sig/ui/toolbar.rbs +18 -0
- data/sig/ui/web_dialog.rbs +38 -0
- data/sig/ui.rbs +66 -0
- metadata +204 -275
- data/ext/attribute_dictionaries.h +0 -8
- data/ext/attribute_dictionary.h +0 -8
- data/ext/behavior.h +0 -8
- data/ext/color.h +0 -8
- data/ext/component_definition.h +0 -8
- data/ext/component_instance.h +0 -8
- data/ext/definition_list.h +0 -8
- data/ext/drawing_element.h +0 -8
- data/ext/entities.h +0 -8
- data/ext/entity.h +0 -8
- data/ext/material.h +0 -8
- data/ext/materials.h +0 -8
- data/ext/model.h +0 -8
- data/ext/not_implemented.c +0 -88
- data/ext/not_implemented.h +0 -20
- data/ext/sketchup.h +0 -9
- data/ext/texture.h +0 -8
- data/ext/typed_value.c +0 -84
- data/ext/typed_value.h +0 -11
- data/ext/utils.h +0 -111
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/application.h +0 -36
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/model.h +0 -59
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/overlay.h +0 -248
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/ruby_api.h +0 -118
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/color.h +0 -107
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/common.h +0 -178
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/defs.h +0 -19
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/extension_license.h +0 -62
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/bounding_box.h +0 -34
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/plane3d.h +0 -153
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/point2d.h +0 -96
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/point3d.h +0 -98
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/ray3d.h +0 -64
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/transformation.h +0 -321
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/transformation2d.h +0 -163
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/vector2d.h +0 -235
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/vector3d.h +0 -285
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry.h +0 -152
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/modelexporterplugin.h +0 -165
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/modelimporterplugin.h +0 -183
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/pluginprogresscallback.h +0 -84
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/initialize.h +0 -43
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/length_formatter.h +0 -424
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/arccurve.h +0 -244
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/arrow_type.h +0 -17
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/attribute_dictionary.h +0 -161
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/axes.h +0 -242
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/camera.h +0 -398
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classification_attribute.h +0 -89
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classification_info.h +0 -125
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classifications.h +0 -86
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/component_definition.h +0 -588
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/component_instance.h +0 -344
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/curve.h +0 -143
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/defs.h +0 -142
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension.h +0 -222
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_linear.h +0 -421
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_radial.h +0 -194
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_style.h +0 -253
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/drawing_element.h +0 -198
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dynamic_component_attribute.h +0 -92
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dynamic_component_info.h +0 -70
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/edge.h +0 -271
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/edge_use.h +0 -214
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entities.h +0 -834
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity.h +0 -186
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity_list.h +0 -80
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity_list_iterator.h +0 -90
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/face.h +0 -686
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/font.h +0 -138
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/geometry.h +0 -20
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/geometry_input.h +0 -685
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/group.h +0 -244
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/guide_line.h +0 -155
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/guide_point.h +0 -153
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/image.h +0 -288
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/image_rep.h +0 -275
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/instancepath.h +0 -266
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/layer.h +0 -265
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/layer_folder.h +0 -301
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/line_style.h +0 -211
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/line_styles.h +0 -81
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/location.h +0 -65
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/loop.h +0 -182
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/material.h +0 -390
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/mesh_helper.h +0 -187
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/model.h +0 -1663
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/model_version.h +0 -49
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/opening.h +0 -72
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/options_manager.h +0 -79
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/options_provider.h +0 -166
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/polyline3d.h +0 -140
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/rendering_options.h +0 -179
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/scene.h +0 -836
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/schema.h +0 -56
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/schema_type.h +0 -26
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/section_plane.h +0 -212
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/selection.h +0 -156
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/shadow_info.h +0 -147
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/skp.h +0 -45
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/style.h +0 -303
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/styles.h +0 -190
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/text.h +0 -384
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/texture.h +0 -358
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/texture_writer.h +0 -280
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/typed_value.h +0 -390
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/uv_helper.h +0 -79
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/vertex.h +0 -154
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/sketchup.h +0 -122
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/sketchup_info.h +0 -65
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/slapi.h +0 -16
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/transformation.h +0 -16
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/unicodestring.h +0 -239
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/utils/math_helpers.h +0 -124
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Libraries/libCommonGeometry.dylib +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Libraries/libCommonGeoutils.dylib +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Libraries/libCommonImage.dylib +0 -4
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Libraries/libCommonPreferences.dylib +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Libraries/libCommonUnits.dylib +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Libraries/libCommonUtils.dylib +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Libraries/libCommonZip.dylib +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Resources/Info.plist +0 -50
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/SketchUpAPI +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/_CodeSignature/CodeResources +0 -835
- data/sketchup-sdk-win/binaries/layout/x64/LayOutAPI.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/LayOutAPI.lib +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/LayOutControllers.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/LayOutModel.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/LayOutRTF.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/LayOutUtils.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/SketchUpCommonPreferences.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/SketchUpViewerAPI.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/SketchUpViewerAPI.lib +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/pdflib.dll +0 -0
- data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpAPI.dll +0 -0
- data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpAPI.lib +0 -0
- data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpCommonPreferences.dll +0 -0
- data/sketchup-sdk-win/binaries/sketchup/x64/sketchup.lib +0 -0
- data/sketchup-sdk-win/headers/LayOutAPI/application/application.h +0 -117
- data/sketchup-sdk-win/headers/LayOutAPI/common.h +0 -22
- data/sketchup-sdk-win/headers/LayOutAPI/geometry/geometry.h +0 -78
- data/sketchup-sdk-win/headers/LayOutAPI/initialize.h +0 -36
- data/sketchup-sdk-win/headers/LayOutAPI/layout.h +0 -49
- data/sketchup-sdk-win/headers/LayOutAPI/model/angulardimension.h +0 -468
- data/sketchup-sdk-win/headers/LayOutAPI/model/autotextdefinition.h +0 -569
- data/sketchup-sdk-win/headers/LayOutAPI/model/autotextdefinitionlist.h +0 -79
- data/sketchup-sdk-win/headers/LayOutAPI/model/connectionpoint.h +0 -107
- data/sketchup-sdk-win/headers/LayOutAPI/model/defs.h +0 -42
- data/sketchup-sdk-win/headers/LayOutAPI/model/dictionary.h +0 -120
- data/sketchup-sdk-win/headers/LayOutAPI/model/document.h +0 -864
- data/sketchup-sdk-win/headers/LayOutAPI/model/documentexportoptions.h +0 -59
- data/sketchup-sdk-win/headers/LayOutAPI/model/ellipse.h +0 -78
- data/sketchup-sdk-win/headers/LayOutAPI/model/entity.h +0 -330
- data/sketchup-sdk-win/headers/LayOutAPI/model/entityiterator.h +0 -49
- data/sketchup-sdk-win/headers/LayOutAPI/model/entitylist.h +0 -114
- data/sketchup-sdk-win/headers/LayOutAPI/model/formattedtext.h +0 -397
- data/sketchup-sdk-win/headers/LayOutAPI/model/grid.h +0 -251
- data/sketchup-sdk-win/headers/LayOutAPI/model/group.h +0 -243
- data/sketchup-sdk-win/headers/LayOutAPI/model/image.h +0 -146
- data/sketchup-sdk-win/headers/LayOutAPI/model/imagerep.h +0 -109
- data/sketchup-sdk-win/headers/LayOutAPI/model/label.h +0 -332
- data/sketchup-sdk-win/headers/LayOutAPI/model/layer.h +0 -207
- data/sketchup-sdk-win/headers/LayOutAPI/model/layerinstance.h +0 -117
- data/sketchup-sdk-win/headers/LayOutAPI/model/layerlist.h +0 -69
- data/sketchup-sdk-win/headers/LayOutAPI/model/lineardimension.h +0 -456
- data/sketchup-sdk-win/headers/LayOutAPI/model/page.h +0 -261
- data/sketchup-sdk-win/headers/LayOutAPI/model/pageinfo.h +0 -372
- data/sketchup-sdk-win/headers/LayOutAPI/model/pagelist.h +0 -81
- data/sketchup-sdk-win/headers/LayOutAPI/model/path.h +0 -464
- data/sketchup-sdk-win/headers/LayOutAPI/model/rectangle.h +0 -240
- data/sketchup-sdk-win/headers/LayOutAPI/model/referenceentity.h +0 -120
- data/sketchup-sdk-win/headers/LayOutAPI/model/sketchupmodel.h +0 -624
- data/sketchup-sdk-win/headers/LayOutAPI/model/skpfilereference.h +0 -94
- data/sketchup-sdk-win/headers/LayOutAPI/model/style.h +0 -1080
- data/sketchup-sdk-win/headers/LayOutAPI/model/table.h +0 -470
- data/sketchup-sdk-win/headers/LayOutAPI/model/typed_value.h +0 -156
- data/sketchup-sdk-win/headers/SketchUpAPI/application/application.h +0 -36
- data/sketchup-sdk-win/headers/SketchUpAPI/application/model.h +0 -59
- data/sketchup-sdk-win/headers/SketchUpAPI/application/overlay.h +0 -248
- data/sketchup-sdk-win/headers/SketchUpAPI/application/ruby_api.h +0 -118
- data/sketchup-sdk-win/headers/SketchUpAPI/color.h +0 -107
- data/sketchup-sdk-win/headers/SketchUpAPI/common.h +0 -178
- data/sketchup-sdk-win/headers/SketchUpAPI/defs.h +0 -19
- data/sketchup-sdk-win/headers/SketchUpAPI/extension_license.h +0 -62
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/bounding_box.h +0 -34
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/plane3d.h +0 -153
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/point2d.h +0 -96
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/point3d.h +0 -98
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/ray3d.h +0 -64
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/transformation.h +0 -321
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/transformation2d.h +0 -163
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/vector2d.h +0 -235
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/vector3d.h +0 -285
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry.h +0 -152
- data/sketchup-sdk-win/headers/SketchUpAPI/import_export/modelexporterplugin.h +0 -165
- data/sketchup-sdk-win/headers/SketchUpAPI/import_export/modelimporterplugin.h +0 -183
- data/sketchup-sdk-win/headers/SketchUpAPI/import_export/pluginprogresscallback.h +0 -84
- data/sketchup-sdk-win/headers/SketchUpAPI/initialize.h +0 -43
- data/sketchup-sdk-win/headers/SketchUpAPI/length_formatter.h +0 -424
- data/sketchup-sdk-win/headers/SketchUpAPI/model/arccurve.h +0 -244
- data/sketchup-sdk-win/headers/SketchUpAPI/model/arrow_type.h +0 -17
- data/sketchup-sdk-win/headers/SketchUpAPI/model/attribute_dictionary.h +0 -161
- data/sketchup-sdk-win/headers/SketchUpAPI/model/axes.h +0 -242
- data/sketchup-sdk-win/headers/SketchUpAPI/model/camera.h +0 -398
- data/sketchup-sdk-win/headers/SketchUpAPI/model/classification_attribute.h +0 -89
- data/sketchup-sdk-win/headers/SketchUpAPI/model/classification_info.h +0 -125
- data/sketchup-sdk-win/headers/SketchUpAPI/model/classifications.h +0 -86
- data/sketchup-sdk-win/headers/SketchUpAPI/model/component_definition.h +0 -588
- data/sketchup-sdk-win/headers/SketchUpAPI/model/component_instance.h +0 -344
- data/sketchup-sdk-win/headers/SketchUpAPI/model/curve.h +0 -143
- data/sketchup-sdk-win/headers/SketchUpAPI/model/defs.h +0 -142
- data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension.h +0 -222
- data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_linear.h +0 -421
- data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_radial.h +0 -194
- data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_style.h +0 -253
- data/sketchup-sdk-win/headers/SketchUpAPI/model/drawing_element.h +0 -198
- data/sketchup-sdk-win/headers/SketchUpAPI/model/dynamic_component_attribute.h +0 -92
- data/sketchup-sdk-win/headers/SketchUpAPI/model/dynamic_component_info.h +0 -70
- data/sketchup-sdk-win/headers/SketchUpAPI/model/edge.h +0 -271
- data/sketchup-sdk-win/headers/SketchUpAPI/model/edge_use.h +0 -214
- data/sketchup-sdk-win/headers/SketchUpAPI/model/entities.h +0 -834
- data/sketchup-sdk-win/headers/SketchUpAPI/model/entity.h +0 -186
- data/sketchup-sdk-win/headers/SketchUpAPI/model/entity_list.h +0 -80
- data/sketchup-sdk-win/headers/SketchUpAPI/model/entity_list_iterator.h +0 -90
- data/sketchup-sdk-win/headers/SketchUpAPI/model/face.h +0 -686
- data/sketchup-sdk-win/headers/SketchUpAPI/model/font.h +0 -138
- data/sketchup-sdk-win/headers/SketchUpAPI/model/geometry.h +0 -20
- data/sketchup-sdk-win/headers/SketchUpAPI/model/geometry_input.h +0 -685
- data/sketchup-sdk-win/headers/SketchUpAPI/model/group.h +0 -244
- data/sketchup-sdk-win/headers/SketchUpAPI/model/guide_line.h +0 -155
- data/sketchup-sdk-win/headers/SketchUpAPI/model/guide_point.h +0 -153
- data/sketchup-sdk-win/headers/SketchUpAPI/model/image.h +0 -288
- data/sketchup-sdk-win/headers/SketchUpAPI/model/image_rep.h +0 -275
- data/sketchup-sdk-win/headers/SketchUpAPI/model/instancepath.h +0 -266
- data/sketchup-sdk-win/headers/SketchUpAPI/model/layer.h +0 -265
- data/sketchup-sdk-win/headers/SketchUpAPI/model/layer_folder.h +0 -301
- data/sketchup-sdk-win/headers/SketchUpAPI/model/line_style.h +0 -211
- data/sketchup-sdk-win/headers/SketchUpAPI/model/line_styles.h +0 -81
- data/sketchup-sdk-win/headers/SketchUpAPI/model/location.h +0 -65
- data/sketchup-sdk-win/headers/SketchUpAPI/model/loop.h +0 -182
- data/sketchup-sdk-win/headers/SketchUpAPI/model/material.h +0 -390
- data/sketchup-sdk-win/headers/SketchUpAPI/model/mesh_helper.h +0 -187
- data/sketchup-sdk-win/headers/SketchUpAPI/model/model.h +0 -1663
- data/sketchup-sdk-win/headers/SketchUpAPI/model/model_version.h +0 -49
- data/sketchup-sdk-win/headers/SketchUpAPI/model/opening.h +0 -72
- data/sketchup-sdk-win/headers/SketchUpAPI/model/options_manager.h +0 -79
- data/sketchup-sdk-win/headers/SketchUpAPI/model/options_provider.h +0 -166
- data/sketchup-sdk-win/headers/SketchUpAPI/model/polyline3d.h +0 -140
- data/sketchup-sdk-win/headers/SketchUpAPI/model/rendering_options.h +0 -179
- data/sketchup-sdk-win/headers/SketchUpAPI/model/scene.h +0 -836
- data/sketchup-sdk-win/headers/SketchUpAPI/model/schema.h +0 -56
- data/sketchup-sdk-win/headers/SketchUpAPI/model/schema_type.h +0 -26
- data/sketchup-sdk-win/headers/SketchUpAPI/model/section_plane.h +0 -212
- data/sketchup-sdk-win/headers/SketchUpAPI/model/selection.h +0 -156
- data/sketchup-sdk-win/headers/SketchUpAPI/model/shadow_info.h +0 -147
- data/sketchup-sdk-win/headers/SketchUpAPI/model/skp.h +0 -45
- data/sketchup-sdk-win/headers/SketchUpAPI/model/style.h +0 -303
- data/sketchup-sdk-win/headers/SketchUpAPI/model/styles.h +0 -190
- data/sketchup-sdk-win/headers/SketchUpAPI/model/text.h +0 -384
- data/sketchup-sdk-win/headers/SketchUpAPI/model/texture.h +0 -358
- data/sketchup-sdk-win/headers/SketchUpAPI/model/texture_writer.h +0 -280
- data/sketchup-sdk-win/headers/SketchUpAPI/model/typed_value.h +0 -390
- data/sketchup-sdk-win/headers/SketchUpAPI/model/uv_helper.h +0 -79
- data/sketchup-sdk-win/headers/SketchUpAPI/model/vertex.h +0 -154
- data/sketchup-sdk-win/headers/SketchUpAPI/sketchup.h +0 -122
- data/sketchup-sdk-win/headers/SketchUpAPI/sketchup_info.h +0 -65
- data/sketchup-sdk-win/headers/SketchUpAPI/slapi.h +0 -16
- data/sketchup-sdk-win/headers/SketchUpAPI/transformation.h +0 -16
- data/sketchup-sdk-win/headers/SketchUpAPI/unicodestring.h +0 -239
- data/sketchup-sdk-win/headers/SketchUpAPI/utils/math_helpers.h +0 -124
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
// Copyright 2014 Trimble Inc., All rights reserved.
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @file
|
|
5
|
-
* @brief Interfaces for SUExtensionLicense.
|
|
6
|
-
*/
|
|
7
|
-
#ifndef SKETCHUP_EXTENSION_LICENSE_H_
|
|
8
|
-
#define SKETCHUP_EXTENSION_LICENSE_H_
|
|
9
|
-
|
|
10
|
-
#include <SketchUpAPI/common.h>
|
|
11
|
-
|
|
12
|
-
#pragma pack(push, 8)
|
|
13
|
-
#ifdef __cplusplus
|
|
14
|
-
extern "C" {
|
|
15
|
-
#endif
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
@brief Indicates the current state of an extension license.
|
|
19
|
-
*/
|
|
20
|
-
enum SUExtensionLicenseState {
|
|
21
|
-
SUExtensionLicenseState_Licensed, ///< Extension is licensed to run
|
|
22
|
-
SUExtensionLicenseState_Expired, ///< License had an expiration date and it expired
|
|
23
|
-
SUExtensionLicenseState_Trial, ///< Extension is in trial
|
|
24
|
-
SUExtensionLicenseState_TrialExpired, ///< Trial period has ended
|
|
25
|
-
SUExtensionLicenseState_NotLicensed ///< Extension is not licensed
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
@brief Stores extension license information.
|
|
30
|
-
*/
|
|
31
|
-
struct SUExtensionLicense {
|
|
32
|
-
/// Main flag indicating whether the extension is allowed to run or not.
|
|
33
|
-
bool is_licensed;
|
|
34
|
-
/// Additional state information.
|
|
35
|
-
enum SUExtensionLicenseState state;
|
|
36
|
-
/// Number of days until license expiration. 0 if permanent or not licensed.
|
|
37
|
-
size_t days_remaining;
|
|
38
|
-
/// Error description in case of failure to acquire a license. This is meant
|
|
39
|
-
/// to aid in debugging only. Extensions should not rely on any exact error
|
|
40
|
-
/// description.
|
|
41
|
-
char error_description[512];
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
@brief Acquires a license for a given extension.
|
|
46
|
-
@param[in] extension_id The Extension Warehouse UUID for the extension.
|
|
47
|
-
@param[out] out_license the licensing retrieved.
|
|
48
|
-
@related SUExtensionLicense
|
|
49
|
-
@return
|
|
50
|
-
- \ref SU_ERROR_NONE on success
|
|
51
|
-
- \ref SU_ERROR_GENERIC if retrieving the extension license failed
|
|
52
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if extension_id is NULL
|
|
53
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if out_license is NULL
|
|
54
|
-
*/
|
|
55
|
-
SU_RESULT SUGetExtensionLicense(const char* extension_id, struct SUExtensionLicense* out_license);
|
|
56
|
-
|
|
57
|
-
#ifdef __cplusplus
|
|
58
|
-
} // extern "C" {
|
|
59
|
-
#endif
|
|
60
|
-
#pragma pack(pop)
|
|
61
|
-
|
|
62
|
-
#endif // SKETCHUP_EXTENSION_LICENSE_H_
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// Copyright 2017 Trimble Inc., All rights reserved.
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @file
|
|
5
|
-
* @brief Interfaces for SUBoundingBox3D.
|
|
6
|
-
*/
|
|
7
|
-
#ifndef SKETCHUP_GEOMETRY_BOUNDING_BOX_H_
|
|
8
|
-
#define SKETCHUP_GEOMETRY_BOUNDING_BOX_H_
|
|
9
|
-
|
|
10
|
-
#include <SketchUpAPI/geometry.h>
|
|
11
|
-
|
|
12
|
-
#ifdef __cplusplus
|
|
13
|
-
extern "C" {
|
|
14
|
-
#endif // __cplusplus
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
@brief Gets the mid point from the given bounding box.
|
|
18
|
-
@since SketchUp 2018 M0, API 6.0
|
|
19
|
-
@param[in] bounding_box The bounding box to calculate the mid point from.
|
|
20
|
-
@param[out] mid_point The mid point to be returned.
|
|
21
|
-
@related SUBoundingBox3D
|
|
22
|
-
@return
|
|
23
|
-
- \ref SU_ERROR_NONE on success
|
|
24
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if bounding_box is NULL
|
|
25
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if mid_point NULL
|
|
26
|
-
*/
|
|
27
|
-
SU_RESULT SUBoundingBox3DGetMidPoint(
|
|
28
|
-
const struct SUBoundingBox3D* bounding_box, struct SUPoint3D* mid_point);
|
|
29
|
-
|
|
30
|
-
#ifdef __cplusplus
|
|
31
|
-
} // end extern "C"
|
|
32
|
-
#endif // __cplusplus
|
|
33
|
-
|
|
34
|
-
#endif // SKETCHUP_GEOMETRY_BOUNDING_BOX_H_
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
// Copyright 2017 Trimble Inc., All rights reserved.
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @file
|
|
5
|
-
* @brief Interfaces for SUPlane3D.
|
|
6
|
-
*/
|
|
7
|
-
#ifndef SKETCHUP_GEOMETRY_PLANE3D_H_
|
|
8
|
-
#define SKETCHUP_GEOMETRY_PLANE3D_H_
|
|
9
|
-
|
|
10
|
-
#include <SketchUpAPI/geometry.h>
|
|
11
|
-
|
|
12
|
-
#ifdef __cplusplus
|
|
13
|
-
extern "C" {
|
|
14
|
-
#endif // __cplusplus
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
@brief Sets the plane using three points.
|
|
18
|
-
@since SketchUp 2018, API 6.0
|
|
19
|
-
@param[out] plane The plane defined by the three points.
|
|
20
|
-
@param[in] point1 The first point.
|
|
21
|
-
@param[in] point2 The second point.
|
|
22
|
-
@param[in] point3 The third point.
|
|
23
|
-
@related SUPlane3D
|
|
24
|
-
@return
|
|
25
|
-
- \ref SU_ERROR_NONE on success
|
|
26
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if plane is NULL
|
|
27
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if point1, point2, or point3 are NULL
|
|
28
|
-
*/
|
|
29
|
-
SU_RESULT SUPlane3DSetWithPoints(
|
|
30
|
-
struct SUPlane3D* plane, const struct SUPoint3D* point1, const struct SUPoint3D* point2,
|
|
31
|
-
const struct SUPoint3D* point3);
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
@brief Sets the plane using a point and normal vector.
|
|
35
|
-
@since SketchUp 2018, API 6.0
|
|
36
|
-
@param[out] plane The plane defined by the point and normal.
|
|
37
|
-
@param[in] point The point.
|
|
38
|
-
@param[in] normal The normal vector.
|
|
39
|
-
@related SUPlane3D
|
|
40
|
-
@return
|
|
41
|
-
- \ref SU_ERROR_NONE on success
|
|
42
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if plane is NULL
|
|
43
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if point or normal are NULL
|
|
44
|
-
*/
|
|
45
|
-
SU_RESULT SUPlane3DSetWithPointAndNormal(
|
|
46
|
-
struct SUPlane3D* plane, const struct SUPoint3D* point, const struct SUVector3D* normal);
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
@brief Sets the plane using equation coefficients.
|
|
50
|
-
@since SketchUp 2018, API 6.0
|
|
51
|
-
@param[out] plane The plane defined by the coefficients.
|
|
52
|
-
@param[in] a The first coefficient.
|
|
53
|
-
@param[in] b The second coefficient.
|
|
54
|
-
@param[in] c The third coefficient.
|
|
55
|
-
@param[in] d The fourth coefficient.
|
|
56
|
-
@related SUPlane3D
|
|
57
|
-
@return
|
|
58
|
-
- \ref SU_ERROR_NONE on success
|
|
59
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if plane is NULL
|
|
60
|
-
*/
|
|
61
|
-
SU_RESULT SUPlane3DSetWithCoefficients(
|
|
62
|
-
struct SUPlane3D* plane, double a, double b, double c, double d);
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
@brief Gets the position on the plane closest to the origin.
|
|
66
|
-
@since SketchUp 2016, API 4.0
|
|
67
|
-
@param[in] plane The plane from which to get the position.
|
|
68
|
-
@param[out] position The 3D point struct retrieved.
|
|
69
|
-
@related SUPlane3D
|
|
70
|
-
@return
|
|
71
|
-
- \ref SU_ERROR_NONE on success
|
|
72
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if plane is NULL
|
|
73
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if position is NULL
|
|
74
|
-
*/
|
|
75
|
-
SU_RESULT SUPlane3DGetPosition(const struct SUPlane3D* plane, struct SUPoint3D* position);
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
@brief Gets the plane's unit normal vector.
|
|
79
|
-
@since SketchUp 2017, API 5.0
|
|
80
|
-
@param[in] plane The plane from which to get the normal.
|
|
81
|
-
@param[out] normal The 3D vector struct retrieved.
|
|
82
|
-
@related SUPlane3D
|
|
83
|
-
@return
|
|
84
|
-
- \ref SU_ERROR_NONE on success
|
|
85
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if plane is NULL
|
|
86
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if normal is NULL
|
|
87
|
-
*/
|
|
88
|
-
SU_RESULT SUPlane3DGetNormal(const struct SUPlane3D* plane, struct SUVector3D* normal);
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
@brief Gets whether or not the point is on the plane.
|
|
92
|
-
@since SketchUp 2018, API 6.0
|
|
93
|
-
@param[in] plane The plane.
|
|
94
|
-
@param[in] point The 3D point.
|
|
95
|
-
@param[out] is_on Whether or not the point is on the plane.
|
|
96
|
-
@related SUPlane3D
|
|
97
|
-
@return
|
|
98
|
-
- \ref SU_ERROR_NONE on success
|
|
99
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if plane or point are NULL
|
|
100
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if is_on is NULL
|
|
101
|
-
*/
|
|
102
|
-
SU_RESULT SUPlane3DIsOn(const struct SUPlane3D* plane, const struct SUPoint3D* point, bool* is_on);
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
@brief Gets the distance from the point to the nearest point on the plane.
|
|
106
|
-
@since SketchUp 2018, API 6.0
|
|
107
|
-
@param[in] plane The plane.
|
|
108
|
-
@param[in] point The 3D point.
|
|
109
|
-
@param[out] distance The distance between the plane and point.
|
|
110
|
-
@related SUPlane3D
|
|
111
|
-
@return
|
|
112
|
-
- \ref SU_ERROR_NONE on success
|
|
113
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if plane or point are NULL
|
|
114
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if distance is NULL
|
|
115
|
-
*/
|
|
116
|
-
SU_RESULT SUPlane3DDistanceTo(
|
|
117
|
-
const struct SUPlane3D* plane, const struct SUPoint3D* point, double* distance);
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
@brief Projects a point onto the plane.
|
|
121
|
-
@since SketchUp 2018, API 6.0
|
|
122
|
-
@param[in] plane The plane.
|
|
123
|
-
@param[in] point The 3D point to project onto the plane.
|
|
124
|
-
@param[out] projected_point The point resulting from the projection.
|
|
125
|
-
@related SUPlane3D
|
|
126
|
-
@return
|
|
127
|
-
- \ref SU_ERROR_NONE on success
|
|
128
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if plane or point are NULL
|
|
129
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if projected_point is NULL
|
|
130
|
-
*/
|
|
131
|
-
SU_RESULT SUPlane3DProjectTo(
|
|
132
|
-
const struct SUPlane3D* plane, const struct SUPoint3D* point,
|
|
133
|
-
struct SUPoint3D* projected_point);
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
@brief Transforms the provided 3D plane by applying the provided 3D
|
|
137
|
-
transformation.
|
|
138
|
-
@since SketchUp 2018, API 6.0
|
|
139
|
-
@param[in] transform The transformation to be applied.
|
|
140
|
-
@param[in,out] plane The plane to be transformed.
|
|
141
|
-
@related SUPlane3D
|
|
142
|
-
@return
|
|
143
|
-
- \ref SU_ERROR_NONE on success
|
|
144
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if transform is NULL
|
|
145
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if plane is NULL
|
|
146
|
-
*/
|
|
147
|
-
SU_RESULT SUPlane3DTransform(const struct SUTransformation* transform, struct SUPlane3D* plane);
|
|
148
|
-
|
|
149
|
-
#ifdef __cplusplus
|
|
150
|
-
} // end extern "C"
|
|
151
|
-
#endif // __cplusplus
|
|
152
|
-
|
|
153
|
-
#endif // SKETCHUP_GEOMETRY_PLANE3D_H_
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
// Copyright 2017 Trimble Inc. All Rights Reserved.
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @file
|
|
5
|
-
* @brief Interfaces for SUPoint2D.
|
|
6
|
-
*/
|
|
7
|
-
#ifndef SKETCHUP_GEOMETRY_POINT2D_H_
|
|
8
|
-
#define SKETCHUP_GEOMETRY_POINT2D_H_
|
|
9
|
-
|
|
10
|
-
#include <SketchUpAPI/common.h>
|
|
11
|
-
#include <SketchUpAPI/geometry.h>
|
|
12
|
-
|
|
13
|
-
#ifdef __cplusplus
|
|
14
|
-
extern "C" {
|
|
15
|
-
#endif
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
@brief Creates a vector between two point objects.
|
|
19
|
-
@since SketchUp 2017, API 5.0
|
|
20
|
-
@deprecated The functionality is replaced by SUVector2DCreate.
|
|
21
|
-
@param[in] point1 The first point object.
|
|
22
|
-
@param[in] point2 The second point object.
|
|
23
|
-
@param[out] vector The vector from point1 to point2.
|
|
24
|
-
@related SUPoint2D
|
|
25
|
-
@return
|
|
26
|
-
- \ref SU_ERROR_NONE on success
|
|
27
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if point1 or point2 is NULL
|
|
28
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if vector is NULL
|
|
29
|
-
*/
|
|
30
|
-
SU_DEPRECATED_FUNCTION("SketchUp API 6.0")
|
|
31
|
-
SU_RESULT SUPoint2DToSUPoint2D(
|
|
32
|
-
const struct SUPoint2D* point1, const struct SUPoint2D* point2, struct SUVector2D* vector);
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
@brief Determines if two points are equal.
|
|
36
|
-
@since SketchUp 2017, API 5.0
|
|
37
|
-
@param[in] point1 The first point object.
|
|
38
|
-
@param[in] point2 The second point object.
|
|
39
|
-
@param[out] equal Whether the two points are the same.
|
|
40
|
-
@related SUPoint2D
|
|
41
|
-
@return
|
|
42
|
-
- \ref SU_ERROR_NONE on success
|
|
43
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if point1 or point2 is NULL
|
|
44
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if equal is NULL
|
|
45
|
-
*/
|
|
46
|
-
SU_RESULT SUPoint2DGetEqual(
|
|
47
|
-
const struct SUPoint2D* point1, const struct SUPoint2D* point2, bool* equal);
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
@brief Creates a new point that is offset from another point.
|
|
51
|
-
@since SketchUp 2017, API 5.0
|
|
52
|
-
@param[in] point1 The point object.
|
|
53
|
-
@param[in] vector The offset vector object.
|
|
54
|
-
@param[out] point2 The new point.
|
|
55
|
-
@related SUPoint2D
|
|
56
|
-
@return
|
|
57
|
-
- \ref SU_ERROR_NONE on success
|
|
58
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if point1 or vector is NULL
|
|
59
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if point2 is NULL
|
|
60
|
-
*/
|
|
61
|
-
SU_RESULT SUPoint2DOffset(
|
|
62
|
-
const struct SUPoint2D* point1, const struct SUVector2D* vector, struct SUPoint2D* point2);
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
@brief Gets the distance between two point objects.
|
|
66
|
-
@since SketchUp 2017, API 5.0
|
|
67
|
-
@param[in] point1 The first point object.
|
|
68
|
-
@param[in] point2 The second point object.
|
|
69
|
-
@param[out] distance The distance between the two points.
|
|
70
|
-
@related SUPoint2D
|
|
71
|
-
@return
|
|
72
|
-
- \ref SU_ERROR_NONE on success
|
|
73
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if point1 or point2 is NULL
|
|
74
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if distance is NULL
|
|
75
|
-
*/
|
|
76
|
-
SU_RESULT SUPoint2DDistanceToSUPoint2D(
|
|
77
|
-
const struct SUPoint2D* point1, const struct SUPoint2D* point2, double* distance);
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
@brief Transforms a point by applying a 2D transformation.
|
|
81
|
-
@since SketchUp 2019, API 7.0
|
|
82
|
-
@param[in] transform The transformation to be applied.
|
|
83
|
-
@param[in,out] point The point to be transformed.
|
|
84
|
-
@related SUPoint2D
|
|
85
|
-
@return
|
|
86
|
-
- \ref SU_ERROR_NONE on success
|
|
87
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if transform is NULL
|
|
88
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if point is NULL
|
|
89
|
-
*/
|
|
90
|
-
SU_RESULT SUPoint2DTransform(const struct SUTransformation2D* transform, struct SUPoint2D* point);
|
|
91
|
-
|
|
92
|
-
#ifdef __cplusplus
|
|
93
|
-
} // extern "C"
|
|
94
|
-
#endif
|
|
95
|
-
|
|
96
|
-
#endif // SKETCHUP_GEOMETRY_POINT2D_H_
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
// Copyright 2017 Trimble Inc. All Rights Reserved.
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @file
|
|
5
|
-
* @brief Interfaces for SUPoint3D.
|
|
6
|
-
*/
|
|
7
|
-
#ifndef SKETCHUP_GEOMETRY_POINT3D_H_
|
|
8
|
-
#define SKETCHUP_GEOMETRY_POINT3D_H_
|
|
9
|
-
|
|
10
|
-
#include <SketchUpAPI/common.h>
|
|
11
|
-
#include <SketchUpAPI/geometry.h>
|
|
12
|
-
|
|
13
|
-
// Forward declarations
|
|
14
|
-
struct SUTransformation;
|
|
15
|
-
|
|
16
|
-
#ifdef __cplusplus
|
|
17
|
-
extern "C" {
|
|
18
|
-
#endif
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
@brief Determines if two points are equal.
|
|
22
|
-
@since SketchUp 2018 M0, API 6.0
|
|
23
|
-
@param[in] point1 The first point object.
|
|
24
|
-
@param[in] point2 The second point object.
|
|
25
|
-
@param[out] equal Whether the two points are the same.
|
|
26
|
-
@related SUPoint3D
|
|
27
|
-
@return
|
|
28
|
-
- \ref SU_ERROR_NONE on success
|
|
29
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if point1 or point2 is NULL
|
|
30
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if equal is NULL
|
|
31
|
-
*/
|
|
32
|
-
SU_RESULT SUPoint3DGetEqual(
|
|
33
|
-
const struct SUPoint3D* point1, const struct SUPoint3D* point2, bool* equal);
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
@brief Determines if point1 is less than point2.
|
|
37
|
-
@since SketchUp 2018 M0, API 6.0
|
|
38
|
-
@param[in] point1 The first point object.
|
|
39
|
-
@param[in] point2 The second point object.
|
|
40
|
-
@param[out] less_than Whether point1 is less than point2.
|
|
41
|
-
@related SUPoint3D
|
|
42
|
-
@return
|
|
43
|
-
- \ref SU_ERROR_NONE on success
|
|
44
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if point1 or point2 is NULL
|
|
45
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if less_than is NULL
|
|
46
|
-
*/
|
|
47
|
-
SU_RESULT SUPoint3DLessThan(
|
|
48
|
-
const struct SUPoint3D* point1, const struct SUPoint3D* point2, bool* less_than);
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
@brief Creates a new point that is offset from another point.
|
|
52
|
-
@since SketchUp 2018 M0, API 6.0
|
|
53
|
-
@param[in] point1 The point object.
|
|
54
|
-
@param[in] vector The offset vector object.
|
|
55
|
-
@param[out] point2 The new point.
|
|
56
|
-
@related SUPoint3D
|
|
57
|
-
@return
|
|
58
|
-
- \ref SU_ERROR_NONE on success
|
|
59
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if point1 or vector is NULL
|
|
60
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if point2 is NULL
|
|
61
|
-
*/
|
|
62
|
-
SU_RESULT SUPoint3DOffset(
|
|
63
|
-
const struct SUPoint3D* point1, const struct SUVector3D* vector, struct SUPoint3D* point2);
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
@brief Gets the distance between two point objects.
|
|
67
|
-
@since SketchUp 2018 M0, API 6.0
|
|
68
|
-
@param[in] point1 The first point object.
|
|
69
|
-
@param[in] point2 The second point object.
|
|
70
|
-
@param[out] distance The distance between the two points.
|
|
71
|
-
@related SUPoint3D
|
|
72
|
-
@return
|
|
73
|
-
- \ref SU_ERROR_NONE on success
|
|
74
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if point1 or point2 is NULL
|
|
75
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if distance is NULL
|
|
76
|
-
*/
|
|
77
|
-
SU_RESULT SUPoint3DDistanceToSUPoint3D(
|
|
78
|
-
const struct SUPoint3D* point1, const struct SUPoint3D* point2, double* distance);
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
@brief Transforms the provided 3D point by applying the provided 3D
|
|
82
|
-
transformation.
|
|
83
|
-
@since SketchUp 2016, API 4.0
|
|
84
|
-
@param[in] transform The transformation to be applied.
|
|
85
|
-
@param[in,out] point The point to be transformed.
|
|
86
|
-
@related SUPoint3D
|
|
87
|
-
@return
|
|
88
|
-
- \ref SU_ERROR_NONE on success
|
|
89
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if transform is NULL
|
|
90
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if point is NULL
|
|
91
|
-
*/
|
|
92
|
-
SU_RESULT SUPoint3DTransform(const struct SUTransformation* transform, struct SUPoint3D* point);
|
|
93
|
-
|
|
94
|
-
#ifdef __cplusplus
|
|
95
|
-
} // extern "C"
|
|
96
|
-
#endif
|
|
97
|
-
|
|
98
|
-
#endif // SKETCHUP_GEOMETRY_POINT3D_H_
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
// Copyright 2017 Trimble Inc., All rights reserved.
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @file
|
|
5
|
-
* @brief Interfaces for SURay3D.
|
|
6
|
-
*/
|
|
7
|
-
#ifndef SKETCHUP_GEOMETRY_RAY3D_H_
|
|
8
|
-
#define SKETCHUP_GEOMETRY_RAY3D_H_
|
|
9
|
-
|
|
10
|
-
#include <SketchUpAPI/geometry.h>
|
|
11
|
-
|
|
12
|
-
#ifdef __cplusplus
|
|
13
|
-
extern "C" {
|
|
14
|
-
#endif // __cplusplus
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
@brief Gets whether or not the point is on the ray.
|
|
18
|
-
@since SketchUp 2018, API 6.0
|
|
19
|
-
@param[in] ray The ray.
|
|
20
|
-
@param[in] point The 3D point.
|
|
21
|
-
@param[out] is_on Whether or not the point is on the ray.
|
|
22
|
-
@related SURay3D
|
|
23
|
-
@return
|
|
24
|
-
- \ref SU_ERROR_NONE on success
|
|
25
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if ray or point are NULL
|
|
26
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if is_on is NULL
|
|
27
|
-
*/
|
|
28
|
-
SU_RESULT SURay3DIsOn(const struct SURay3D* ray, const struct SUPoint3D* point, bool* is_on);
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
@brief Gets the distance from the point to the ray.
|
|
32
|
-
@since SketchUp 2018, API 6.0
|
|
33
|
-
@param[in] ray The ray.
|
|
34
|
-
@param[in] point The 3D point.
|
|
35
|
-
@param[out] distance The distance between the ray and point.
|
|
36
|
-
@related SURay3D
|
|
37
|
-
@return
|
|
38
|
-
- \ref SU_ERROR_NONE on success
|
|
39
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if ray or point are NULL
|
|
40
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if distance is NULL
|
|
41
|
-
*/
|
|
42
|
-
SU_RESULT SURay3DDistanceTo(
|
|
43
|
-
const struct SURay3D* ray, const struct SUPoint3D* point, double* distance);
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
@brief Projects a point onto the ray.
|
|
47
|
-
@since SketchUp 2018, API 6.0
|
|
48
|
-
@param[in] ray The ray.
|
|
49
|
-
@param[in] point The 3D point to project onto the ray.
|
|
50
|
-
@param[out] projected_point The point resulting from the projection.
|
|
51
|
-
@related SURay3D
|
|
52
|
-
@return
|
|
53
|
-
- \ref SU_ERROR_NONE on success
|
|
54
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if ray or point are NULL
|
|
55
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if projected_point is NULL
|
|
56
|
-
*/
|
|
57
|
-
SU_RESULT SURay3DProjectTo(
|
|
58
|
-
const struct SURay3D* ray, const struct SUPoint3D* point, struct SUPoint3D* projected_point);
|
|
59
|
-
|
|
60
|
-
#ifdef __cplusplus
|
|
61
|
-
} // end extern "C"
|
|
62
|
-
#endif // __cplusplus
|
|
63
|
-
|
|
64
|
-
#endif // SKETCHUP_GEOMETRY_RAY3D_H_
|