I am trying to animate a 3d mesh that chnages over time using trimesh. On each iteration I draw the mesh. On some iterations I also change the camera position orientation etc. However the camera resets after plotting. I would like the camera position to stay fixed on further iterations. How can I do that?
I am trying to animate a 3d mesh that chnages over time using trimesh
Share
If you do a
clforclaanywhere, that also clears the axes’camera*properties. You’ll have to save those and re-set them on every iteration:Alternatively, you can save handles to all objects your create, and delete them on each iteration. AFAIK, this will preserve the axes’ properties:
Haven’t tested this last one though, so you might want to do some experimenting with that first.