Polygon#
- Polygon(center=(0.0, 0.0, 0.0), radius=1, normal=(0, 0, 1), n_sides=6)[source]#
Create a polygon.
- Parameters
- Returns
pyvista.PolyData
Mesh of the polygon.
Examples
Create an 8 sided polygon.
>>> import pyvista >>> mesh = pyvista.Polygon(n_sides=8) >>> mesh.plot(show_edges=True, line_width=5)