FrameArtist
- class compas_ghpython.artists.FrameArtist(*args, **kwargs)[source]
Bases:
GHArtist
,PrimitiveArtist
Artist for drawing frames.
- Parameters
frame (
compas.geometry.Frame
) – A COMPAS frame.scale (float, optional) – The scale of the vectors representing the axes of the frame.
**kwargs (dict, optional) – Additional keyword arguments. See
compas_ghpython.artists.GHArtist
andcompas.artists.PrimitiveArtist
for more info.
- Attributes
scale (float) – Scale factor that controls the length of the axes.
color_origin (tuple[int, int, int]) – Default is
(0, 0, 0)
.color_xaxis (tuple[int, int, int]) – Default is
(255, 0, 0)
.color_yaxis (tuple[int, int, int]) – Default is
(0, 255, 0)
.color_zaxis (tuple[int, int, int]) – Default is
(0, 0, 255)
.
Methods
Draw the frame.
Draw the frame's axes.
Draw the frame's origin.
Inherited Methods
Build an artist corresponding to the item type.
Build an artist with the given type.
Clear all objects from the view.
Drawing method for drawing an entire collection of objects.
Redraw the view.
Register an artist type to a data type.