Circle

Circle(radius=0.5, resolution=100)

Create a single PolyData circle defined by radius in the XY plane.

Parameters
radiusfloat, optional

Radius of circle.

resolutionint, optional

Number of points on the circle.

Returns
pyvista.PolyData

Circle mesh.

Examples

>>> import pyvista
>>> radius = 0.5
>>> circle = pyvista.Circle(radius)
>>> circle.plot(show_edges=True, line_width=5)
../../../_images/pyvista-Circle-1_00_00.png