Face3 constructor

Face3(
  1. int a,
  2. int b,
  3. int c,
  4. dynamic normal,
  5. dynamic color, {
  6. int materialIndex = 0,
})

Implementation

Face3(this.a, this.b, this.c, normal, color, {this.materialIndex = 0}) {
  this.normal = (normal != null && normal.runtimeType == three.Vector3) ? normal : three.Vector3.init();
  vertexNormals = normal ?? [];

  this.color = (color != null && color.runtimeType == three.Color) ? color : three.Color(0, 0, 0);
  vertexColors = color ?? [];
}