copy method
dynamic
copy(
- Face3 source
)
Implementation
copy(Face3 source) {
a = source.a;
b = source.b;
c = source.c;
normal.copy(source.normal);
color.copy(source.color);
materialIndex = source.materialIndex;
vertexNormals = List<three.Vector3>.filled(source.vertexNormals.length, three.Vector3.init());
for (var i = 0, il = source.vertexNormals.length; i < il; i++) {
vertexNormals[i] = source.vertexNormals[i].clone();
}
vertexColors = List<three.Color>.filled(source.vertexColors.length, three.Color(0, 0, 0));
for (var i = 0, il = source.vertexColors.length; i < il; i++) {
vertexColors[i] = source.vertexColors[i].clone();
}
return this;
}