pygfx.geometries.dodecahedron_geometry

pygfx.geometries.dodecahedron_geometry(radius=1.0, subdivisions=0)

Generate a dodecahedron.

Creates an dodecahedron that is centered around the local origin. It has its vertices lie on the surface of a sphere of the given radius. Its faces are optionally subdivided if subdivisions>0.

Parameters:
  • radius (int) – The radius of a sphere that has the vertices on its surface.

  • subdivisions (int) – The amount of times each face will be subdivided, where 0 (the default) means no subdivision.

Returns:

dodecahedron – A geometry object representing the desired dodecahedron. Mathematically, it consists of a set of open orientable manifolds.

Return type:

Geometry

Examples

Rotating Polyhedra

Rotating Polyhedra