ArrayMesh.addSurfaceFromArrays

Creates a new surface. Surfaces are created to be rendered using a primitive, which may be any of the types defined in Mesh.primitivetype. (As a note, when using indices, it is recommended to only use points, lines, or triangles.) Mesh.getSurfaceCount will become the surf_idx for this new surface. The arrays argument is an array of arrays. See arraytype for the values used in this array. For example, arrays$(D 0) is the array of vertices. That first vertex sub-array is always required; the others are optional. Adding an index array puts this function into "index mode" where the vertex and other arrays become the sources of data and the index array defines the vertex order. All sub-arrays must have the same length as the vertex array or be empty, except for constant ARRAY_INDEX if it is used.

struct ArrayMesh
@nogc nothrow
void
addSurfaceFromArrays
(
in long primitive
,
in Array arrays
,
in Array blend_shapes = Array.make()
,
in long compress_flags = 97280
)

Meta