javascript - Vertices coordinates geometry after moving in three.js -


I'm starting with 3D manipulation and in three .js I need to understand how to move geometry After the corner coordinates can be updated. I tried to write down this code, but it gives me the original coordinates and is not updated in the new condition.

 for  (var j = 0; j & lt; geometrycontainer.length; j ++) {for (var i = 0; i & lt; geometryContainer [j] .geometry.vertices .length; i ++) {console.log (geometry container [j] .geometry.vertices [i] .x, // courses coordinates do not update in new condition geometry container [ja]. Jometry.virtage [i] ., Geometry Container [J.]. Jametry. Waters [I]. G); Console.log (geometryContainer [0] .geometry.vertices [0] .x); }}  

You can see the update on the puzzle on the geometry object. You may also need to update normals / face normals


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -