I am new to 3D manipulation and learning about Three.js. One thing I'm struggling with is understanding how to retrieve the updated vertex coordinates after moving a geometry. The code I've written below seems to only return the original coordinates, not the ones that have been updated to reflect the geometry's new position.
for(var j=0 ; j<geometryContainer.length ; j++) {
for (var i=0 ; i<geometryContainer[j].geometry.vertices.length ; i++){
console.log(geometryContainer[j].geometry.vertices[i].x,// vertices coordinates do not update to new position
geometryContainer[j].geometry.vertices[i].y,
geometryContainer[j].geometry.vertices[i].z);
console.log(geometryContainer[0].geometry.vertices[0].x);
}
}