pyvista.Circle#
- Circle(radius=0.5, resolution=100)[source]#
Create a single PolyData circle defined by radius in the XY plane.
- Parameters:
- Returns:
pyvista.PolyData
Circle mesh.
Notes
Changed in version 0.38.0: Prior to version 0.38, this method had incorrect results, producing inconsistent edge lengths and a duplicated point which is now fixed.
Examples
>>> import pyvista as pv >>> radius = 0.5 >>> circle = pv.Circle(radius) >>> circle.plot(show_edges=True, line_width=5)