ParametricTorus

ParametricTorus(ringradius=None, crosssectionradius=None, **kwargs)

Generate a torus.

Parameters
ringradiusfloat, optional

The radius from the center to the middle of the ring of the torus. Default is 1.0.

crosssectionradiusfloat, optional

The radius of the cross section of ring of the torus. Default is 0.5.

**kwargsdict, optional

See surface_from_para() for additional keyword arguments.

Returns
pyvista.PolyData

ParametricTorus surface.

Examples

Create a ParametricTorus mesh.

>>> import pyvista
>>> mesh = pyvista.ParametricTorus()
>>> mesh.plot(color='w', smooth_shading=True)
../../../_images/pyvista-ParametricTorus-1_00_00.png