Skip to content

Commit

Permalink
Added wire=2 to animation example
Browse files Browse the repository at this point in the history
  • Loading branch information
hannorein committed Feb 19, 2024
1 parent f81ba52 commit 3e5993c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions examples/animation_solar_system/problem.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion 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

Expand Down

0 comments on commit 3e5993c

Please sign in to comment.