pyvista.ParametricFigure8Klein

pyvista.ParametricFigure8Klein#

ParametricFigure8Klein(radius=None, **kwargs)[source]#

Generate a figure-8 Klein bottle.

ParametricFigure8Klein generates a figure-8 Klein bottle. A Klein bottle is a closed surface with no interior and only one surface. It is unrealisable in 3 dimensions without intersecting surfaces.

Parameters:
radiusfloat, default: 1.0

The radius of the bottle.

**kwargsdict, optional

See surface_from_para() for additional keyword arguments.

Returns:
pyvista.PolyData

ParametricFigure8Klein surface.

Examples

Create a ParametricFigure8Klein mesh.

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