Dynamically updating vertex coordinates on a Mesh’ Geometry?

Hi,

Im trying to update the vertex coordinates on the geometry of a (custom) mesh by doing this on some loop callback:

<meshvar>.geometry.vertices[idx].position.y = someNewYVal;

however the render on the screen is not showing the modifications. My question is whether this should work and the error is somewhere else… or is there anything I need to do to ‘invalidate’ the mesh geometry?

Thanks!

Author: Fantashit

1 thought on “Dynamically updating vertex coordinates on a Mesh’ Geometry?

Comments are closed.