Welcome to Python-flavored Magnum! Please note that, while already being rather stable, this functionality is still considered experimental and some APIs might get changed without preserving full backwards compatibility.

magnum.primitives module

Primitive library



class SquareTextureCoords: DONT_GENERATE = 0 GENERATE = 1
Whether to generate square texture coordinates


def cube_solid() -> trade.MeshData3D
Solid 3D cube
def cube_solid_strip() -> trade.MeshData3D
Solid 3D cube as a single strip
def cube_wireframe() -> trade.MeshData3D
Wireframe 3D cube
def square_solid(arg0: SquareTextureCoords, /) -> trade.MeshData2D
Solid 2D square
def square_wireframe() -> trade.MeshData2D
Wireframe 2D square