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