picogl.core.vertex_attributes
Classes
Container for per-vertex geometric attributes. |
Module Contents
- class picogl.core.vertex_attributes.VertexAttributes[source]
Container for per-vertex geometric attributes.
Typically returned by geometry generation, analysis, or processing functions. Provides a clean, strongly-typed interface for positions, normals, and colors.
- positions: numpy.ndarray[source]
- normals: numpy.ndarray[source]
- colors: numpy.ndarray[source]
- to_mesh_data(indices: numpy.ndarray | None = None, texcoords: numpy.ndarray | None = None) picogl.renderer.MeshData[source]
Convert to MeshData for rendering.