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.meshtools module

Mesh tools

Contents

Enums

class CompileFlag: NONE = 0 GENERATE_FLAT_NORMALS = 1 GENERATE_SMOOTH_NORMALS = 2
Mesh compilation flags

Functions

def compile(mesh_data: trade.MeshData2D) -> gl.Mesh
Compile 2D mesh data
def compile(mesh_data: trade.MeshData3D, flags: CompileFlag = CompileFlag.NONE) -> gl.Mesh
Compile 3D mesh data