pyvista.ParametricTorus#

ParametricTorus(ringradius=None, crosssectionradius=None, **kwargs)[source]#

Generate a torus.

Parameters:
ringradiusfloat, default: 1.0

The radius from the center to the middle of the ring of the torus.

crosssectionradiusfloat, default: 0.5

The radius of the cross section of ring of the torus.

**kwargsdict, optional

See surface_from_para() for additional keyword arguments.

Returns:
pyvista.PolyData

ParametricTorus surface.

Examples

Create a ParametricTorus mesh.

>>> import pyvista as pv
>>> mesh = pv.ParametricTorus()
>>> mesh.plot(color='w', smooth_shading=True)
https://d33wubrfki0l68.cloudfront.net/5912f9d4e4e30bdc3784025f8381794e424d496e/aff90/_images/pyvista-parametrictorus-1_00_00.png