概要
windows11に、sketchup6を入れてみた。
rubyで、3Dを書く。
Objectを調べてみた。
SketchUp Objects
Object | Method |
---|---|
ANIMATION | nextFrame, pause, resume, stop |
ARCCURVE | center, end_angle, normal, plane, radius, start_angle, xaxis, yaxis |
ARRAY | cross,distance, distance_to_line, distance_to_plane, dot, normalize, normalize!, offset, offset!, on_line?, on_plane?, project_to_line, project_to_plane, transform, transform!, vector_to, x, x=, y, y=, z, z= |
ATTRIBUTEDICTIONARIES | [ ], delete, each |
ATTRIBUTEDICTIONARY | [], []=, delete_key, each, each_key, each_pair, keys, length, name, locked?, make_unique, move!, transform!, transformation, transformation= |
CONSTRUCTIONLINE | direction, direction=, end, end=, position, position=, reverse!, start, start=, stipple, stipple= |
CONSTRUCTIONPOINT | position |
CURVE | count_edges, each_edge, edges, first_edge, last_edge, length, vertices |
DEFINITIONLIST | [ ], add, at, count, each, length, load, unique_name |
DRAWINGELEMENTS | bounds, erase!, hidden=, hidden?, layer, layer=, material, material=, visible=, visible? |
GROUP | copy, description, description=, entities, explode, locked?, move!, name, name=, transform!, transformation, transformation= |
IMAGE | explode, height, height=, normal, origin, origin=, path, pixelheight, pixelwidth, size=, transform!, width, width=, zrotation |
INPUTPOINT | new, ==, clear, copy!, degrees_of_freedom, depth, display?, draw, edge, face, pick, position, tooltip, transformation, valid?, vertex |
LATLONG | new, latitude, longitude, to_a, to_s, to_utm |
PAGE | camera, delay_time, delay_time=, description, description=, hidden_entities, label, layers, name, name=, rendering_options, set_visibility, shadow_info, transition_time, transition_time=, update, use_axes=, use_axes?, use_camera=, use_camera?, use_hidden=, use_hidden?, use_hidden_layers=, use_hidden_layers?, use_rendering_options=, use_rendering_options?, se_section_planes=, use_section_planes?, use_shadow_info=, use_shadow_info? |
PAGES | add_frame_change_observer, remove_frame_change_observer, [ ], add, count, each, parent, selected_page, show_frame_at, size, slideshow_time |
PICKHELPER | all_picked, best_picked, count, depth_at, do_pick, element_at, nit, leaf_at, path_at, pick_segment, |
SKETCHUP | active_model, file_new, find_support_files, format_angle, format_area, format_degrees, format_length, get_locale, get_shortcuts, load, open_file, parse_length, read_default, register_extension, require, send_action, set_status_text, undo, version, version_number, write_default |
STRING | to_l |
TEXT | arrow_type, arrow_type=, display_leader=, display_leader?, has_leader?, leader_type, leader_type=, line_weight, line_weight=, set_text, text, text= |
TEXTURE | average_color, filename, height, image_height, image_width, size=, valid?, width |
TEXTUREWRITER | count, filename, handle, length, load, unitector?, valid?, x, x=, y, y=, z, z= |
VERTEX | common_edge, curve_interior?, edges, faces, loops, position,used_by? |
VIEW | animation=, average_refresh_time, camera, camera=, center, corner, draw, draw2d, draw_line, draw_lines, draw_polyline, draw_text, drawing_color=, dynamic=, enable_autopan=, guess_target, inference_locked?, inputpoint, invalidate, last_refresh_time, line_stipple=, ine_width=,lock_inference, model, ick_helper, pickray, pixels_to_model, et_color_from_line, show_frame, tooltip=, vpheight, vpwidth, write_image, zoom, zoom_extents size, values |
BEHAVIOR | always_face_camera=, always_face_camera?, cuts_opening=, cuts_opening?, is2d=, is2d?, shadows_face_sun=, shadows_face_sun?, snapto, snapto= |
BOUNDINGBOX | new, add, center, clear, contains?, corner, depth, diagonal, empty?, height, intersect, max, min, valid?, width |
CAMERA | new, aspect_ratio, aspect_ratio=, description, description=, direction, eye, focal_length, focal_length=, fov, fov=, height, height=, image_width, image_width=, perspective=, perspective?, set, target, up, xaxis, yaxis, |
EDGE | all_connected, common_face, curve, end, explode_curve, faces, find_faces, length, line, other_vertex, reversed_in?, smooth=, smooth?, soft=, soft?, split, start, used_by?, verticies |
EDGEUSE | edge, face, loop, next, partners, previous, reversed? |
ENTITIES | [ ], add_arc, add_circle, add_cline, add_cpoint, add_curve, add_edges, add_face, add_faces_from_mesh, add_group, add_image, add_instance, add_line, add_ngon, add_text, at, clear!, count, each, erase_entities, intersect_with, length, model, parent, transform_by_vectors, |
LAYER | <=>, ==, name, name=, page_behavior, page_behavior=, visible=, visible? |
LAYERS | [ ], add, at, count, each, length, unique_name |
LENGTH | <, <=, <=>, ==, >, >=, inspect, to_f, to_s |
LOOP | convex?, edges, edgeuses, face, outer?, verticies |
MATERIAL | <=>, ==, alpha, alpha=, color, color=, display_name, materialType, name, texture, texture=, use_alpha? |
MATERIALS | [], add, at, picked_edge, picked_element, picked_face, test_point, transformation_at, view |
POINT3D | linear_combination, new, +, -, ==, [ ], [ ]=, clone, distance, distance_to_line, distance_to_plane, inspect, offset, offset!, on_line?, on_plane?, project_to_line, project_to_plane, set!, to_a, to_s, transform, transform!, vector_to, x, x=, y, y=, z, z= |
POLYGONMESH | new, add_point, add_polygon, count_points, count_polygons, normal_at, point_at, point_index, points, polygon_at, polygon_points_at, polygons, set_point, transform!, uvs, uv_at write, write_all |
TOOL | activate, deactivate, draw, getExtents, getMenu, onCancel, onKeyDown, onKeyUp, onLButtonDoubleClick, onLButtonDown, onLButtonup, onMButtonDoubleClick, onMButtonDown, onMButtonUp, onMouseEnter, onMouseLeave, onMouseMove, onRButtonDoubleClick, onRButtonDown, onRButtonUp, onReturn, onSetCursor, onUserText, resume, suspend |
TOOLBAR | new, add_item, add_seperator, get_last_state, hide, restore, show, visible? |
TRANSFORMATION | axes, interpolate, new, rotation, scaling, translation, *, clone, identity?, inverse, invert!, origin, set!, to_a, xaxis, yaxis, zaxis |
COLOR | blend, names, new, alpha, alpha=, blend, blue, blue=, green, green=, red, red=, to_a, to_i, to_s |
COMMAND | new, large_icon=, menu_text=, set_validation_proc, small_icon=, status_bar_text=, tooltip= |
COMPONENTDEFINITION | <=>, ==, behavior, count_instances, description, description=, entities, group?, guid, hidden?, image?, insertion_point, instances, internal?, name, name=, path, save_thumbnail |
COMPONENTINSTANCE | definition, definition=, explode, glued_to, glued_to=, transform_entities |
ENTITY | attribute_dictionaries, attribute_dictionary, delete_attribute, deleted?, entityID, get_attribute, model, parent, set_attribute, to_s, typename, valid? |
EXTENTION | new, copyright, copyright=, creator, creator=, description, description=, load, name, name=, version, version= |
FACE | all_connected, area, back_material, back_material=, edges, followme, get_UVHelper, loops, mesh, normal, outer_loop, plane, position_material, pushpull, reverse!, vertices |
GEOM | closest_points, fit_plane_to_points, intersect_line_line, intersect_line_plane, intersect_plane_plane, linear_combination, point_in_polygon_2d count, each, length |
MENU | add_item, add_separator, add_submenu, set_validation_proc |
NUMERIC | cm, degrees, feet, inch, km, m, mile, mm, radians, to_cm, to_feet, to_inch, to_km, to_l, to_m, to_mile, to_mm, to_yard, yard |
OPTIONSMANAGER | [ ], count, each, keys, size |
OPTIONSPROVIDER | [ ], [ ]=, count, each, each_key, each_pair, each_value, has_key?, key?, keys, name, size |
RENDERINGOPTIONS | each_key, keys, [ ], [ ]=, each, each_key, each_pair, keys |
SECTIONPLAN | get_plane, set_plane |
SELECTION | [ ], add, at, clear, contains?, count, each, empty?, first, include?, is_curve?, is_surface?, length, model, nitems, remove, shift, single_object?, toggle |
SET | new, clear, contains?, delete, each, empty?, include?, insert, length, size, to_a |
SHADOWINFO | each_key, keys, [ ], [ ]=, each, each_key, each_pair, keys |
UI | add_context_menu_handler, beep, create_cursor, inputbox, menu, messagebox, openURL, openpanel, play_sound, savepanel, set_cursor, start_timer, stop_timer, toolbar |
UTM | new, to_a, to_latlong, to_s, x, y, zone_letter, zone_number |
UVHELPER | get_front_UVQ, get_back_UVQ |
VECTOR3D | linear_combination, new, %, *, +, -, ==, [ ], [ ]=, angle_between, axes, clone, cross, dot, inspect, length, length=, normalize, normalize!, parallel?, perpendicular?, reverse, reverse!, samedirection?, set!, to_a, to_s, transform, transform!, |
MODEL | abort_operation, active_entities, active_layer, active_layer=, active_view, add_note, attribute_dictionaries, attribute_dictionary, behavior, bounds, commit_operation, definitions, description description=, entities, get_attribute, get_datum, guid, latlong_to_point, layers, list_datums, materials, modified?, options, pages, path, place_component, point_to_latlong, point_to_utm, raytest, rendering_options, save,save_thumbnail, select_tool, selection, set_attribute, set_datum, shadow_info, start_operation, title, utm_to_point valid? |
以上。