This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <iostream> | |
#include <string> | |
#include <sstream> | |
#include <vector> | |
#include <iterator> | |
#include <cstdlib> | |
#include <cstring> | |
using namespace std; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
earth_r = 6371000; // Earth's mean radius in meters | |
diff = 1; | |
angle = 0; | |
a = 120; | |
b = 120; | |
h = 250; | |
space = 300; | |
translate([0, 0, -earth_r]) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
earth_r = 6371000; // Earth's mean radius in meters | |
diff = 1; | |
angle = 15; | |
a = 1200; | |
b = 1200; | |
h = 2500; | |
space = 3000; | |
translate([0, 0, -earth_r]) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MeridianCircle(r, angle, pen, col) | |
{ | |
rotate([90, 0, angle]) | |
color(col) | |
difference() | |
{ | |
circle(r); | |
circle(r - pen); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
circle_r = 5000; | |
offset = 5; | |
$vpr=[0, 0, 340]; // Viewport rotation | |
$vpd = 150 + 10 * circle_r * $t * $t * $t; // Camera distance as function of time | |
translate([-(circle_r + offset), 0, 0]) | |
{ | |
color("blue") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
earth_r = 6371000; // Earth's mean radius in meters | |
$vpr = [80, 0, 320]; // Viewport rotation | |
$vpd = 500 + 100000000 * $t * $t * $t; // Camera distance as function of time | |
translate([0, 0, -earth_r]) | |
{ | |
color("green") | |
sphere(earth_r, $fn=1000); | |
translate([0, 0, earth_r]) | |
{ |