__init__(self,
vertices,
color=None,
opacity=1.0,
style=1)
(Constructor)
|
|
Creates polygon object in Maestro.
Constructor requires:
vertices: List of vertex coordinates (x, y, z).
Specify at least 3 vertices in consecutive order.
All vertices must be in the same plane.
color: One of:
Color object (Color class)
Color name (string)
Tuple of (R, G, B) (each a float in range 0.0-1.0)
Optional arguments:
opacity: 0.0 (invisible) through 1.0 (opaque)
Defaults to 1.0
style: LINE or FILL. Default is FILL.
- Overrides:
object.__init__
|