Mesh / vertex-format primitives for 3D rendering (extracted from kagura)
pub struct Mesh3D {
vertex_data : Array[Double]
indices : Array[Int]
bounds : MeshBounds3D
format : VertexFormat
} derive(Debug)fn Mesh3D::new_with_format(vertex_data : Array[Double], indices : Array[Int], format : VertexFormat) -> Mesh3Dpub struct MeshBounds3D {
min_x : Double
min_y : Double
min_z : Double
max_x : Double
max_y : Double
max_z : Double
} derive(Debug)impl Show for MeshBounds3Dimpl Show for VertexAttributeimpl Show for VertexFormatfn push_vertex(data : Array[Double], px : Double, py : Double, pz : Double, nx : Double, ny : Double, nz : Double, u : Double, v : Double) -> UnitMesh / vertex-format primitives for 3D rendering (extracted from kagura)