pyvista.ParametricTorus#
- ParametricTorus(ringradius=None, crosssectionradius=None, **kwargs)[source]#
Generate a torus.
- Parameters:
- ringradius
float
, default: 1.0 The radius from the center to the middle of the ring of the torus.
- crosssectionradius
float
, default: 0.5 The radius of the cross section of ring of the torus.
- **kwargs
dict
,optional
See
surface_from_para()
for additional keyword arguments.
- ringradius
- Returns:
pyvista.PolyData
ParametricTorus surface.
Examples
Create a ParametricTorus mesh.
>>> import pyvista as pv >>> mesh = pv.ParametricTorus() >>> mesh.plot(color='w', smooth_shading=True)