Note
Go to the end to download the full example code.
Möbius strip Geometry
Example showing two Möbius strips. The one at the bottom actually has its ends attached, making it a “non-orientable” manifold. It is rendered with flat shading to avoid artifacts due to the normals flipping where the ends meet.

import pygfx as gfx
ob1 = gfx.Mesh(
gfx.mobius_strip_geometry(1, stitch=False),
gfx.MeshPhongMaterial(color=(1, 0.5, 0, 1)),
)
ob1.local.y += 0.5
ob2 = gfx.Mesh(
gfx.mobius_strip_geometry(1, stitch=True),
gfx.MeshPhongMaterial(color=(1, 0.5, 0, 1), flat_shading=True),
)
ob2.local.y -= 0.5
scene = gfx.Group()
scene.add(ob1, ob2)
if __name__ == "__main__":
disp = gfx.Display()
disp.show(scene)
Total running time of the script: (0 minutes 0.410 seconds)
Gallery generated by Sphinx-Gallery
Interactive example
Try this example in your browser using Pyodide. Might not work with all examples and all devices. Check the output and your browser’s console for details.