Create Polyline Section Geometry#

opstool.preprocessing.add_polygon(outline, holes=None, material=None)[source]#

Add polygon plane geom obj.

Parameters#

outlinelist[list[float, float]]

The coords list of polygon points, [(x1, y1), (x2, y2),…,(xn, yn)]

holes: list[list[list[float, float]]].

Hole of the section, a list of multiple hole coords, [hole1, hole2,…holeN], holeN=[(x1, y1), (x2, y2),…,(xn, yn)].

material: material obj

The instance from add_material().

Returns#

polygon obj