pyvista_wasm.Circle

Contents

pyvista_wasm.Circle#

pyvista_wasm.Circle(radius: float = 0.5, resolution: int = 100) PolyData#

Create a circle defined by a set of points in the XY plane.

This mirrors the pyvista.Circle() API, producing a closed polygon outline of resolution points lying in the XY plane.

Parameters:
  • radius (float, optional) – Radius of the circle. Default is 0.5.

  • resolution (int, optional) – Number of points on the circle. Default is 100.

Returns:

A circle mesh (closed polyline in the XY plane).

Return type:

PolyData

Examples

>>> import pyvista_wasm as pv
>>> circle = pv.Circle(radius=1.0)
>>> circle.n_points
101
>>> circle.plot(color="black")