picogl.utils.loader.object_data

Object Data

Representation of object data from an .loader file.

Example Usage:

# If raw_data.indices exists, keep it; otherwise ObjectData will generate it self.data = ObjectData(

vertices=raw_data.vertices, texcoords=raw_data.texcoords or [], normals=raw_data.normals, indices=getattr(raw_data, “indices”, None)

)

Classes

ObjectData

Object Data Class

Module Contents

class picogl.utils.loader.object_data.ObjectData[source]

Object Data Class

The data returned by the object loader

vertices: List[float][source]
texcoords: List[float] = [][source]
normals: List[float] = [][source]
indices: List[int] | None = None[source]
__post_init__()[source]