pyvista_js.Circle

目次

pyvista_js.Circle#

pyvista_js.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.

パラメータ:
  • radius (float, optional) -- Radius of the circle. Default is 0.5.

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

戻り値:

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

戻り値の型:

PolyData

サンプル

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