Vertex constructor

Vertex(
  1. Vector3 pos,
  2. Vector3 normal,
  3. Vector3 uv, [
  4. Vector3? color,
])

Implementation

Vertex(Vector3 pos,Vector3 normal,Vector3 uv,[ Vector3? color]) {
  position = Vector3.copy(pos);
  this.normal = Vector3.copy(normal);
  this.uv = Vector3.copy(uv);
  this.color = color != null?Vector3.copy(color):null;
}