picogl.gpu.buffers.helper

A collection of utility functions for processing and normalizing data into array-like structures or specific container types.

This module provides functions to convert input data, such as lists or arrays, into standardized formats that are used in 3D rendering contexts, such as MeshData.

Functions

as_vec3_array(→ numpy.ndarray[Any, ...)

as vec3 array

as_meshdata(→ picogl.renderer.MeshData)

Normalize raw strand arrays/lists into a MeshData container.

Module Contents

picogl.gpu.buffers.helper.as_vec3_array(data) numpy.ndarray[Any, numpy.dtype[numpy.generic]][source]

as vec3 array

picogl.gpu.buffers.helper.as_meshdata(colors: Any, normals: Any, positions: Any, indices: Any = None) picogl.renderer.MeshData[source]

Normalize raw strand arrays/lists into a MeshData container.