From 143596b4cd606763080dee1c77a87e562b40ead2 Mon Sep 17 00:00:00 2001 From: SamTov Date: Fri, 24 May 2024 16:30:30 +0100 Subject: [PATCH] Increase scale of simple spheres example --- examples/simple_spheres.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/simple_spheres.py b/examples/simple_spheres.py index a2782c9..69a5094 100644 --- a/examples/simple_spheres.py +++ b/examples/simple_spheres.py @@ -31,8 +31,8 @@ """ material_1 = vis.Material(colour=np.array([30, 144, 255]) / 255, alpha=0.6) # Define the first particle. - trajectory = np.random.uniform(-100, 100, (100, 1000, 3)) - mesh = vis.Sphere(radius=2.0, resolution=10, material=material_1) + trajectory = np.random.uniform(-100, 100, (100, 10000, 3)) + mesh = vis.Sphere(radius=2.0, resolution=3, material=material_1) particle = vis.Particle( name="Blue", mesh=mesh, position=trajectory, smoothing=False ) @@ -40,8 +40,8 @@ material_2 = vis.Material(colour=np.array([255, 140, 0]) / 255, alpha=1.0) # Define the second particle. - trajectory_2 = np.random.uniform(-10, 10, (100, 1000, 3)) - mesh_2 = vis.Sphere(radius=1.0, resolution=10, material=material_2) + trajectory_2 = np.random.uniform(-10, 10, (100, 10000, 3)) + mesh_2 = vis.Sphere(radius=1.0, resolution=3, material=material_2) particle_2 = vis.Particle( name="Orange", mesh=mesh_2, position=trajectory_2, smoothing=False )