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_typeRectangleRepresentationType

Type that defines the meaning of the given parameters.

x_lower_left_or_center_xValue

X value of the lower-left point or center point.

y_lower_left_or_center_yValue

Y value of the lower-left point or center point.

x_upper_right_or_widthValue

X value of the upper-right point or width.

y_upper_right_or_heightValue

Y value of the upper-right point or height.

corner_radiusValue

Corner radius.

rotationValue

Rotation.

is_holebool, default: False

Whether the rectangle is hole.

Returns:
PolygonData

Polygon data object created.