pygfx.geometries.klein_bottle_geometry

pygfx.geometries.klein_bottle_geometry(scale=1.0, stitch=False)

Generate a Klein bottle.

The Klein bottle is a surface for which the inside and outside are the same, similar to a Möbius strip. In fact, a Klein bottle can be constructed by glueing together two Möbius strips.

Parameters:
  • scale (float) – The scale of the bottle.

  • stitch (bool) – Whether to stitch the ends together to produce a closed manifold. If True, a mathematically correct Klein bottle is produced. If False (default) an approximation is produced where the ends of the bottle meet, but are not actually connected.

Returns:

klein_bottle – A geometry object representing the requested klein bottle. Mathematically, it is either an “orientable open manifold” or a “non-orientable closed manifold”, depending on the stitch parameter.

Return type:

Geometry

Examples

Klein Bottle Geometry

Klein Bottle Geometry

Dynamic Environment Map

Dynamic Environment Map