render#
- classmethod Rectangle.render(rep_type, x_lower_left_or_center_x, y_lower_left_or_center_y, x_upper_right_or_width, y_upper_right_or_height, corner_radius, rotation, is_hole=False)#
Get the polygon data of a rectangle.
- Parameters:
- rep_type
RectangleRepresentationType
Type that defines the meaning of the given parameters.
- x_lower_left_or_center_x
Value
X value of the lower-left point or center point.
- y_lower_left_or_center_y
Value
Y value of the lower-left point or center point.
- x_upper_right_or_width
Value
X value of the upper-right point or width.
- y_upper_right_or_height
Value
Y value of the upper-right point or height.
- corner_radius
Value
Corner radius.
- rotation
Value
Rotation.
- is_holebool, default:
False
Whether the rectangle is hole.
- rep_type
- Returns:
PolygonData
Polygon data object created.