Quad Mesh Class
QuadMesh
Bases: BaseMesh
A mesh representing a quad in 3D space.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
opengl_context |
Context
|
The OpenGL context. |
required |
program |
Program
|
The shader program used to render the mesh. |
required |
Source code in pynecraft/mesh/quad.py
get_vertex_data()
Returns the vertex data for the mesh.
Returns:
Type | Description |
---|---|
array
|
np.array: The vertex data. |