Mesh.this - multiple declarations

Function Mesh.this

Initialize a new mesh.

this (
  T[] vertices = [],
  uint[] indices = []
);

Parameters

NameDescription
vertices Mesh vertex data to optionally pre-populate.
indices Mesh vertex indices to optionally pre-populate.

Function Mesh.this

Initialize a new mesh.

this (
  Primitive topology = Primitive.triangleStrip,
  T[] vertices = [],
  uint[] indices = []
);

Parameters

NameDescription
topology
vertices Mesh vertex data to optionally pre-populate.
indices Mesh vertex indices to optionally pre-populate.

Function Mesh.this

Initialize a new named mesh.

this (
  string name,
  T[] vertices = [],
  uint[] indices = []
);

Parameters

NameDescription
name The name of this mesh.
vertices Mesh vertex data to optionally pre-populate.
indices Mesh vertex indices to optionally pre-populate.

Function Mesh.this

Initialize a new named mesh.

this (
  string name,
  Primitive topology = Primitive.triangleStrip,
  T[] vertices = [],
  uint[] indices = []
);

Parameters

NameDescription
name The name of this mesh.
topology
vertices Mesh vertex data to optionally pre-populate.
indices Mesh vertex indices to optionally pre-populate.