Face3 constructor
Face3(
- dynamic a,
- dynamic b,
- dynamic c,
- dynamic normal,
- dynamic color, {
- int materialIndex = 0,
Implementation
Face3(a, b, c, normal, color, {int materialIndex = 0}) {
this.a = a;
this.b = b;
this.c = c;
this.normal = (normal != null && normal.runtimeType == THREE.Vector3)
? normal
: new THREE.Vector3();
this.vertexNormals = normal != null ? normal : [];
this.color = (color != null && color.runtimeType == THREE.Color)
? color
: new THREE.Color(0, 0, 0);
this.vertexColors = color != null ? color : [];
this.materialIndex = materialIndex;
}