square#

ansys.motorcad.core.geometry_shapes.square(width, r_O, th_O, region_type=RegionType.adaptive, motorcad_instance=None)#

Create a square of given width at a given set of coordinates.

Parameters:
widthfloat

Width value.

r_Ofloat

Radial coordinate of the square centre.

th_Ofloat

Angular coordinate of the square centre.

region_type: RegionType or str

Type of region. String must be a valid RegionType.

motorcad_instance: ansys.motorcad.core.MotorCAD

Motor-CAD instance currently connected.

Returns:
this_squareansys.motorcad.core.geometry.Region

Region object with four Line entity types.