From 3e5993cd66884bba97429584a3735bd48f3fe25b Mon Sep 17 00:00:00 2001 From: Hanno Rein Date: Mon, 19 Feb 2024 11:11:38 -0500 Subject: [PATCH] Added wire=2 to animation example --- examples/animation_solar_system/problem.c | 6 ++++-- examples/outer_solar_system/Makefile | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/animation_solar_system/problem.c b/examples/animation_solar_system/problem.c index 76a023e22..12f475920 100644 --- a/examples/animation_solar_system/problem.c +++ b/examples/animation_solar_system/problem.c @@ -53,6 +53,8 @@ void heartbeat(struct reb_simulation* const r){ view = reb_mat4df_multiply(rm, view); }else if (r->t > 2.*2.*M_PI && r->t < 4.*2.*M_PI){ // Year 2 to 4 + // Show orbits as wires + r->display_settings->wire = 1; // Increase length of trail to 64 r->display_settings->breadcrumbs = 64; @@ -192,8 +194,8 @@ int main(int argc, char* argv[]) { // Show particles as points (not as spheres with their real size) r->display_settings->spheres = 0; - // Show orbits - r->display_settings->wire = 1; + // Show orbits as planes + r->display_settings->wire = 2; // Show 4 past particle positions r->display_settings->breadcrumbs = 4; diff --git a/examples/outer_solar_system/Makefile b/examples/outer_solar_system/Makefile index 13e9a36a3..b67fc4d9d 100644 --- a/examples/outer_solar_system/Makefile +++ b/examples/outer_solar_system/Makefile @@ -1,4 +1,4 @@ -export OPENGL=0# Set this to 1 to enable OpenGL +export OPENGL=1# Set this to 1 to enable OpenGL export SERVER=1# Set this to 1 to enable the visualization web server include ../../src/Makefile.defs