picogl.core.vertex_attributes ============================= .. py:module:: picogl.core.vertex_attributes Classes ------- .. autoapisummary:: picogl.core.vertex_attributes.VertexAttributes Module Contents --------------- .. py:class:: VertexAttributes 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. .. attribute:: positions (N, 3) float32 array of vertex positions .. attribute:: normals (N, 3) float32 array of vertex normals .. attribute:: colors (N, 3) float32 array of RGB vertex colors (0-1 range) .. py:attribute:: positions :type: numpy.ndarray .. py:attribute:: normals :type: numpy.ndarray .. py:attribute:: colors :type: numpy.ndarray .. py:property:: vertex_count :type: int Number of vertices. .. py:method:: to_mesh_data(indices: Optional[numpy.ndarray] = None, texcoords: Optional[numpy.ndarray] = None) -> picogl.renderer.MeshData Convert to MeshData for rendering.