add_polygon#

Layer3D.add_polygon(points, material='copper', is_void=False, poly_name=None)#

Create a polygon.

Parameters:
pointslist

Points list of [x,y] coordinates.

materialstr, optional

Material name. The default is "copper".

is_voidbool, optional

Whether the polygon is a void. The default is False. On ground layers, it will act opposite of the Boolean value because the ground is negative.

poly_namestr, optional

Polygon name. The default is None.

Returns:
ansys.aedt.core.modeler.advanced_cad.stackup_3d.Polygon

Examples

>>> from ansys.aedt.core import Hfss
>>> from ansys.aedt.core.modeler.advanced_cad.stackup_3d import Stackup3D
>>> hfss = Hfss()
>>> my_stackup = Stackup3D(hfss, 2.5e9)
>>> gnd = my_stackup.add_ground_layer("gnd")
>>> my_stackup.add_dielectric_layer("diel1", thickness=1.5, material="Duroid (tm)")
>>> top = my_stackup.add_signal_layer("top")
>>> my_polygon = top.add_polygon([[0, 0], [0, 1], [1, 1], [1, 0]])
>>> my_stackup.dielectric_x_position = "2mm"
>>> my_stackup.dielectric_y_position = "2mm"
>>> my_stackup.dielectric_length = "-3mm"
>>> my_stackup.dielectric_width = "-3mm"