You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm currently interested in having a mesh, and deforming it with time. The examples I've seen (using libigl with meshplot) , seem to not show the mesh object changing with time, but instead show snapshots of the mesh taken at a specific time.
What I'd like to do is have a mesh at the start of the simulation, run the simulation, and be able to see it deform in real time in the viewer. I can't seem to find any functionality for it in the source code, does it exist? Can you think of a workaround I could do instead?
Thanks
The text was updated successfully, but these errors were encountered:
Hi,
you can update your plotted objects with the function p.update_object(vertices=new_v). A possible example of a plot that you describe then looks like this
importmeshplotasmpimporttimep=mp.plot(v, f)
foriinrange(100):
v_new=run_simulation_step(v, f, ...)
p.update_object(vertices=v_new)
v=v_newtime.sleep(0.1) # depending on how long your simulation step takes you want to wait for a little while
Hi, I'm currently interested in having a mesh, and deforming it with time. The examples I've seen (using libigl with meshplot) , seem to not show the mesh object changing with time, but instead show snapshots of the mesh taken at a specific time.
What I'd like to do is have a mesh at the start of the simulation, run the simulation, and be able to see it deform in real time in the viewer. I can't seem to find any functionality for it in the source code, does it exist? Can you think of a workaround I could do instead?
Thanks
The text was updated successfully, but these errors were encountered: