I am experiencing an issue while attempting to clone some Vector3 objects, as the copied clones are created with all zero values in x, y, and z. Here is an example:
When I use this statement
console.log(this.geometries[j].vertices[i].multiplyScalar(1));
The output is:
LabeledVertex {x: -0.5, y: 0.5, z: 2.6745e-12, label: "U", constructor: function…}
(Note that LabeledVertex is an extension of THREE.Vector3)
If I try to clone the above mentioned object:
position = this.geometries[j].vertices[i].clone().multiplyScalar(1);
the result inside 'position' becomes: THREE.Vector3 {x: 0, y: 0, z: 0, constructor: function, set: function…}.
It can be observed that it is filled with zeros. This issue occurred in Three.js version r71.