Class: Sketchup::Axes
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 Method Summary # collapse
-
#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.
Methods inherited from Entity
#add_observer, #attribute_dictionaries, #attribute_dictionary, #delete_attribute, #deleted?, #entityID, #get_attribute, #inspect, #model, #parent, #persistent_id, #remove_observer, #set_attribute, #to_s, #valid?
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.