Animating vedo.shapes.Spheres
See original GitHub issueI am trying to visualise a particle system using the vedo.shapes.Spheres class. This is the main loop:
def run(self):
print("Run simulation...")
reset_cam = True
while True:
#particle_driver.collision_check()
particle_driver.boundary_check()
particle_driver.update()
particle_driver.get_positions(self.positions)
#self.points.points(self.positions)
self.spheres.points(self.positions)
plt.show(resetcam=reset_cam, axes=1)
if reset_cam:
reset_cam = False
if plt.escaped:
break # if ESC is hit during the loop
Running this will display a single set of points and then crash without an exception.
particle_driver is a fortran extension module. Using vedo.mesh.Points class works.
It also works when you recreate a Spheres instance every loop iteration, but that is really slow…
Any ideas?
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
3D shapes - Sphere - YouTube
PowToon is a free tool that allows you to develop cool animated clips and ... or anything else you could use an animated...
Read more >Create spheres using shapes in After Effects - YouTube
Templates: http://easyaftereffects.net/ shapes - spheres -in-after-effects/Hi. In this after effects tutorial i teach you how you can create ...
Read more >Easy 3D Sphere Animation. After Effects Tutorial - YouTube
... Tutorial we are going to learn how to create an Easy 3D Sphere Animation in a coolest way ever! ... Your browser...
Read more >vedo.shapes API documentation
Integrate a vector field on a domain (a Points/Mesh or other vtk datasets types) to generate streamlines. The integration is performed using a...
Read more >After Effects + FreeForm Pro - Reveal Animation with Spheres
Charles Yeager shows how to create a shape reveal animation with FreeForm Pro in After Effects. The animated spheres are easily created with ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks, looks like a very impressive library. Evaluating right now for a project assignment in a Scientific Programming course.
Jonas
Perhaps a bug, but on Windows you can’t type vedo in the command line. For all the other scripts in this folder there are .exe equivalents. I had to do: