PrimitiveMesh.getMeshArrays

Returns mesh arrays used to constitute surface of Mesh. The result can be passed to ArrayMesh.addSurfaceFromArrays to create a new surface. For example:

More...
struct PrimitiveMesh
@nogc nothrow const
Array
getMeshArrays
()

Detailed Description

var c := CylinderMesh.new() var arr_mesh := ArrayMesh.new() arr_mesh.add_surface_from_arrays(Mesh.PRIMITIVE_TRIANGLES, c.get_mesh_arrays())

Meta