FrameArtist
-
class
compas_ghpython.artists.FrameArtist(frame, scale=1.0)[source] Bases:
compas_ghpython.artists._primitiveartist.PrimitiveArtistArtist for drawing frames.
- Parameters
frame (compas.geometry.Frame) – A COMPAS frame.
name (str, optional) – The name of the frame.
scale (float, optional) – The scale of the vectors representing the axes of the frame. Default is
1.0.
- Attributes
scale (float)
color_origin (tuple of 3 int between 0 abd 255)
color_xaxis (tuple of 3 int between 0 abd 255)
color_yaxis (tuple of 3 int between 0 abd 255)
color_zaxis (tuple of 3 int between 0 abd 255)
Examples
>>>Methods
__init__(frame[, scale])Initialize self.
draw()Draw the frame.
draw_collection(collection)Draw the collections of frames.