Class: Sketchup::Axes
Relationships | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Entity
|
|
Instance Chain:
self,
Entity
|
|
Inherits: |
Sketchup::Entity
|
Overview
SketchUp’s drawing axes consist of three colored lines (red, green, blue), usually perpendicular to each other, displayed in the drawing area. The exception is when the user open an instance with a non-orthogonal transformation. The root model transformation is always orthogonal.
The drawing axes are used by drawing tools to align the geometry it creates as well as affecting the inference engine.
The plane where the red and green axes lines lie is called the ground plane. The term origin, is used to define the place where all of axes lines start or originate.
Instance Attribute Summary
Entity
- Inherited
Instance Method Summary
-
#axes ⇒ Object
The axes method returns the vectors representing the directions of the axes.
-
#origin ⇒ Object
The origin method returns the origin of the axes.
-
#set(origin, xaxis, yaxis, zaxis) ⇒ Object
The set method allows the axes to be manipulated.
-
#sketch_plane ⇒ Object
The sketch_plane method returns a plane representing the ground plane of the axes.
-
#to_a ⇒ Object
The axes method returns the origin and vectors representing the axes.
-
#transformation ⇒ Object
The transformation method returns the transformation of the axes.
-
#xaxis ⇒ Object
The xaxis method returns the x axis of the axes.
-
#yaxis ⇒ Object
The yaxis method returns the y axis of the axes.
-
#zaxis ⇒ Object
The zaxis method returns the z axis of the axes.
Entity
- Inherited
#add_observer | The add_observer method is used to add an observer to the current object. |
#attribute_dictionaries | The attribute_dictionaries method is used to retrieve the |
#attribute_dictionary | The attribute_dictionary method is used to retrieve an attribute dictionary with a given name that is attached to an |
#delete_attribute | The |
#entityID | The entityID method is used to retrieve a unique ID assigned to an entity. |
#get_attribute | The |
#inspect | The |
#model | The model method is used to retrieve the model for the entity. |
#parent | The parent method is used to retrieve the parent of the entity. |
#persistent_id | The |
#remove_observer | The remove_observer method is used to remove an observer from the current object. |
#set_attribute | The set attribute is used to set the value of an attribute in an attribute dictionary with the given name. |
#to_s | The |
#typename | The typename method retrieves the type of the entity, which will be a string such as “Face”, “Edge”, or “Group”. |
Instance Method Details
#axes ⇒ Object
The axes method returns the vectors representing the directions of the axes.
#origin ⇒ Object
The origin method returns the origin of the axes.
#set(origin, xaxis, yaxis, zaxis) ⇒ Object
The set method allows the axes to be manipulated. The axes must always be orthogonal, otherwise an error is thrown.
#sketch_plane ⇒ Object
The sketch_plane method returns a plane representing the ground plane of the axes.
#to_a ⇒ Object
The axes method returns the origin and vectors representing the axes.
#transformation ⇒ Object
The transformation method returns the transformation of the axes. This is useful when creating tools that respect the model’s drawing axes.
#xaxis ⇒ Object
The xaxis method returns the x axis of the axes.
#yaxis ⇒ Object
The yaxis method returns the y axis of the axes.
#zaxis ⇒ Object
The zaxis method returns the z axis of the axes.