[docs]classstart_path(BaseModel):"""Start a path."""type:Literal["start_path"]="start_path"
[docs]classmove_path_pen(BaseModel):"""Move the path's "pen"."""path:ModelingCmdIdto:Point3dtype:Literal["move_path_pen"]="move_path_pen"
[docs]classextend_path(BaseModel):"""Extend a path by adding a new segment which starts at the path's "pen". If no "pen" location has been set before (via `MovePen`), then the pen is at the origin."""path:ModelingCmdIdsegment:PathSegmenttype:Literal["extend_path"]="extend_path"
[docs]classextrude(BaseModel):"""Extrude a 2D solid."""cap:booldistance:floattarget:ModelingCmdIdtype:Literal["extrude"]="extrude"
[docs]classclose_path(BaseModel):"""Closes a path, converting it to a 2D solid."""path_id:strtype:Literal["close_path"]="close_path"
[docs]classdefault_camera_look_at(BaseModel):"""Change what the default camera is looking at."""center:Point3dtype:Literal["default_camera_look_at"]="default_camera_look_at"up:Point3dvantage:Point3d
[docs]classdefault_camera_zoom(BaseModel):"""Adjust zoom of the default camera."""magnitude:floattype:Literal["default_camera_zoom"]="default_camera_zoom"
[docs]classdefault_camera_enable_sketch_mode(BaseModel):"""Enable sketch mode, where users can sketch 2D geometry. Users choose a plane to sketch on."""animated:booldistance_to_plane:floatorigin:Point3dortho:booltype:Literal["default_camera_enable_sketch_mode"]="default_camera_enable_sketch_mode"x_axis:Point3dy_axis:Point3d
[docs]classdefault_camera_disable_sketch_mode(BaseModel):"""Disable sketch mode, from the default camera."""type:Literal["default_camera_disable_sketch_mode"]="default_camera_disable_sketch_mode"
[docs]classdefault_camera_focus_on(BaseModel):"""Focus default camera on object."""type:Literal["default_camera_focus_on"]="default_camera_focus_on"uuid:str
[docs]classexport(BaseModel):"""Export the scene to a file."""entity_ids:List[str]format:OutputFormatsource_unit:UnitLengthtype:Literal["export"]="export"
[docs]classentity_get_parent_id(BaseModel):"""What is this entity's parent?"""entity_id:strtype:Literal["entity_get_parent_id"]="entity_get_parent_id"
[docs]classentity_get_num_children(BaseModel):"""How many children does the entity have?"""entity_id:strtype:Literal["entity_get_num_children"]="entity_get_num_children"
[docs]classentity_get_child_uuid(BaseModel):"""What is the UUID of this entity's n-th child?"""child_index:intentity_id:strtype:Literal["entity_get_child_uuid"]="entity_get_child_uuid"
[docs]classentity_get_all_child_uuids(BaseModel):"""What are all UUIDs of this entity's children?"""entity_id:strtype:Literal["entity_get_all_child_uuids"]="entity_get_all_child_uuids"
[docs]classselect_with_point(BaseModel):"""Modifies the selection by simulating a "mouse click" at the given x,y window coordinate Returns ID of whatever was selected."""selected_at_window:Point2dselection_type:SceneSelectionTypetype:Literal["select_with_point"]="select_with_point"
[docs]classselect_clear(BaseModel):"""Clear the selection"""type:Literal["select_clear"]="select_clear"
[docs]classselect_add(BaseModel):"""Adds one or more entities (by UUID) to the selection."""entities:List[str]type:Literal["select_add"]="select_add"
[docs]classselect_remove(BaseModel):"""Removes one or more entities (by UUID) from the selection."""entities:List[str]type:Literal["select_remove"]="select_remove"
[docs]classselect_replace(BaseModel):"""Replaces the current selection with these new entities (by UUID). Equivalent to doing SelectClear then SelectAdd."""entities:List[str]type:Literal["select_replace"]="select_replace"
[docs]classselect_get(BaseModel):"""Find all IDs of selected entities"""type:Literal["select_get"]="select_get"
[docs]classhighlight_set_entity(BaseModel):"""Changes the current highlighted entity to whichever one is at the given window coordinate. If there's no entity at this location, clears the highlight."""selected_at_window:Point2dsequence:Optional[int]=Nonetype:Literal["highlight_set_entity"]="highlight_set_entity"
[docs]classhighlight_set_entities(BaseModel):"""Changes the current highlighted entity to these entities."""entities:List[str]type:Literal["highlight_set_entities"]="highlight_set_entities"
[docs]classnew_annotation(BaseModel):"""Create a new annotation"""annotation_type:AnnotationTypeclobber:booloptions:AnnotationOptionstype:Literal["new_annotation"]="new_annotation"
[docs]classupdate_annotation(BaseModel):"""Update an annotation"""annotation_id:stroptions:AnnotationOptionstype:Literal["update_annotation"]="update_annotation"
[docs]classobject_visible(BaseModel):"""Hide or show an object"""hidden:boolobject_id:strtype:Literal["object_visible"]="object_visible"
[docs]classobject_bring_to_front(BaseModel):"""Bring an object to the front of the scene"""object_id:strtype:Literal["object_bring_to_front"]="object_bring_to_front"
[docs]classget_entity_type(BaseModel):"""What type of entity is this?"""entity_id:strtype:Literal["get_entity_type"]="get_entity_type"
[docs]classsolid2d_add_hole(BaseModel):"""Add a hole to a Solid2d object before extruding it."""hole_id:strobject_id:strtype:Literal["solid2d_add_hole"]="solid2d_add_hole"
[docs]classsolid3d_get_all_edge_faces(BaseModel):"""Gets all faces which use the given edge."""edge_id:strobject_id:strtype:Literal["solid3d_get_all_edge_faces"]="solid3d_get_all_edge_faces"
[docs]classsolid3d_get_all_opposite_edges(BaseModel):"""Gets all edges which are opposite the given edge, across all possible faces."""along_vector:Optional[Point3d]=Noneedge_id:strobject_id:strtype:Literal["solid3d_get_all_opposite_edges"]="solid3d_get_all_opposite_edges"
[docs]classsolid3d_get_opposite_edge(BaseModel):"""Gets the edge opposite the given edge, along the given face."""edge_id:strface_id:strobject_id:strtype:Literal["solid3d_get_opposite_edge"]="solid3d_get_opposite_edge"
[docs]classsolid3d_get_next_adjacent_edge(BaseModel):"""Gets the next adjacent edge for the given edge, along the given face."""edge_id:strface_id:strobject_id:strtype:Literal["solid3d_get_next_adjacent_edge"]="solid3d_get_next_adjacent_edge"
[docs]classsolid3d_get_prev_adjacent_edge(BaseModel):"""Gets the previous adjacent edge for the given edge, along the given face."""edge_id:strface_id:strobject_id:strtype:Literal["solid3d_get_prev_adjacent_edge"]="solid3d_get_prev_adjacent_edge"
[docs]classsend_object(BaseModel):"""Sends object to front or back."""front:boolobject_id:strtype:Literal["send_object"]="send_object"
[docs]classentity_set_opacity(BaseModel):"""Set opacity of the entity."""entity_id:stropacity:floattype:Literal["entity_set_opacity"]="entity_set_opacity"
[docs]classentity_fade(BaseModel):"""Fade the entity in or out."""duration_seconds:Optional[float]=Noneentity_id:strfade_in:booltype:Literal["entity_fade"]="entity_fade"
[docs]classmake_plane(BaseModel):"""Make a plane."""clobber:boolhide:Optional[bool]=Noneorigin:Point3dsize:floattype:Literal["make_plane"]="make_plane"x_axis:Point3dy_axis:Point3d
[docs]classplane_set_color(BaseModel):"""Set the plane's color."""color:Colorplane_id:strtype:Literal["plane_set_color"]="plane_set_color"
[docs]classset_tool(BaseModel):"""Set the active tool."""tool:SceneToolTypetype:Literal["set_tool"]="set_tool"
[docs]classmouse_move(BaseModel):"""Send a mouse move event."""sequence:Optional[int]=Nonetype:Literal["mouse_move"]="mouse_move"window:Point2d
[docs]classmouse_click(BaseModel):"""Send a mouse click event. Updates modified/selected entities."""type:Literal["mouse_click"]="mouse_click"window:Point2d
[docs]classsketch_mode_enable(BaseModel):"""Enable sketch mode on the given plane."""animated:booldisable_camera_with_plane:Optional[Point3d]=Noneortho:boolplane_id:strtype:Literal["sketch_mode_enable"]="sketch_mode_enable"
[docs]classcurve_get_type(BaseModel):"""Get type of a given curve."""curve_id:strtype:Literal["curve_get_type"]="curve_get_type"
[docs]classcurve_get_control_points(BaseModel):"""Get control points of a given curve."""curve_id:strtype:Literal["curve_get_control_points"]="curve_get_control_points"
[docs]classtake_snapshot(BaseModel):"""Take a snapshot."""format:ImageFormattype:Literal["take_snapshot"]="take_snapshot"
[docs]classmake_axes_gizmo(BaseModel):"""Add a gizmo showing the axes."""clobber:boolgizmo_mode:booltype:Literal["make_axes_gizmo"]="make_axes_gizmo"
[docs]classpath_get_info(BaseModel):"""Query the given path"""path_id:strtype:Literal["path_get_info"]="path_get_info"
[docs]classpath_get_curve_uuids_for_vertices(BaseModel):"""Get curves for vertices within a path"""path_id:strtype:Literal["path_get_curve_uuids_for_vertices"]="path_get_curve_uuids_for_vertices"vertex_ids:List[str]
[docs]classpath_get_vertex_uuids(BaseModel):"""Get vertices within a path"""path_id:strtype:Literal["path_get_vertex_uuids"]="path_get_vertex_uuids"
[docs]classremove_scene_objects(BaseModel):"""Remove scene objects."""object_ids:List[str]type:Literal["remove_scene_objects"]="remove_scene_objects"
[docs]classplane_intersect_and_project(BaseModel):"""Utility method. Performs both a ray cast and projection to plane-local coordinates. Returns the plane coordinates for the given window coordinates."""plane_id:strtype:Literal["plane_intersect_and_project"]="plane_intersect_and_project"window:Point2d
[docs]classcurve_get_end_points(BaseModel):"""Find the start and end of a curve."""curve_id:strtype:Literal["curve_get_end_points"]="curve_get_end_points"
[docs]classreconfigure_stream(BaseModel):"""Reconfigure the stream."""fps:intheight:inttype:Literal["reconfigure_stream"]="reconfigure_stream"width:int
[docs]classimport_files(BaseModel):"""Import files to the current model."""files:List[ImportFile]format:InputFormattype:Literal["import_files"]="import_files"
[docs]classmass(BaseModel):"""Get the mass of entities in the scene or the default scene."""entity_ids:List[str]material_density:floatmaterial_density_unit:UnitDensityoutput_unit:UnitMasssource_unit:UnitLengthtype:Literal["mass"]="mass"
[docs]classdensity(BaseModel):"""Get the density of entities in the scene or the default scene."""entity_ids:List[str]material_mass:floatmaterial_mass_unit:UnitMassoutput_unit:UnitDensitysource_unit:UnitLengthtype:Literal["density"]="density"
[docs]classvolume(BaseModel):"""Get the volume of entities in the scene or the default scene."""entity_ids:List[str]output_unit:UnitVolumesource_unit:UnitLengthtype:Literal["volume"]="volume"
[docs]classcenter_of_mass(BaseModel):"""Get the center of mass of entities in the scene or the default scene."""entity_ids:List[str]output_unit:UnitLengthsource_unit:UnitLengthtype:Literal["center_of_mass"]="center_of_mass"
[docs]classsurface_area(BaseModel):"""Get the surface area of entities in the scene or the default scene."""entity_ids:List[str]output_unit:UnitAreasource_unit:UnitLengthtype:Literal["surface_area"]="surface_area"
[docs]classget_sketch_mode_plane(BaseModel):"""Get the plane of the sketch mode. This is useful for getting the normal of the plane after a user selects a plane."""type:Literal["get_sketch_mode_plane"]="get_sketch_mode_plane"
[docs]classcurve_set_constraint(BaseModel):"""Constrain a curve."""constraint_bound:PathComponentConstraintBoundconstraint_type:PathComponentConstraintTypeobject_id:strtype:Literal["curve_set_constraint"]="curve_set_constraint"