-
Notifications
You must be signed in to change notification settings - Fork 0
/
jamie.scad
100 lines (76 loc) · 3.36 KB
/
jamie.scad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
DISTANCE_SCALING_FACTOR = 50000000;
SIZE_SCALING_FACTOR = 10000;
/*
Generated with http://ssd.jpl.nasa.gov/horizons.cgi
Sun
X = 3.445928995828132E+04 Y =-5.977842930458921E+05 Z =-1.137675170209317E+03
Mercury
X = 2.804947516450232E+07 Y =-6.010920649215650E+07 Z =-7.433869064556710E+06
Venus
X = 1.081255565633538E+08 Y =-1.061806306006552E+07 Z =-6.378551380944608E+06
Earth
X = 4.982939238479244E+07 Y = 1.382169511085975E+08 Z = 6.126610014669597E+03
Mars
X =-8.840767546874936E+07 Y =-2.081078978986169E+08 Z =-2.168133984634548E+06
Jupiter
X = 4.012961468016061E+08 Y = 6.332450309910216E+08 Z =-1.159657024521962E+07
Saturn
X =-9.039260039400640E+08 Y = 1.021983212645124E+09 Z = 1.804472639908135E+07
Uranus
X =-2.180321109644558E+09 Y =-1.717095672422973E+09 Z = 2.191471638130832E+07
Neptune
X =-1.249308260673955E+09 Y =-4.354968224879044E+09 Z = 1.184551310038505E+08
Pluto
X =-4.270028274993162E+09 Y =-9.328475878087844E+08 Z = 1.334912452672853E+09
*/
// Sun
translate([(3.445928995828132E+04/DISTANCE_SCALING_FACTOR),(-5.977842930458921E+05/DISTANCE_SCALING_FACTOR),(-1.137675170209317E+03/DISTANCE_SCALING_FACTOR)]){
// the sun is huge, so it has its own scaling factor
#sphere(r=(6.963*100000)/100000);
}
// Mercury
translate([(2.804947516450232E+07/DISTANCE_SCALING_FACTOR),(-6.010920649215650E+07/DISTANCE_SCALING_FACTOR),(-7.433869064556710E+06/DISTANCE_SCALING_FACTOR)]){
color("silver")
sphere(r=2440/SIZE_SCALING_FACTOR);
}
// Venus
translate([(1.081255565633538E+08/DISTANCE_SCALING_FACTOR),(-1.061806306006552E+07/DISTANCE_SCALING_FACTOR),(-6.378551380944608E+06/DISTANCE_SCALING_FACTOR)]){
color("yellow")
sphere(r=6051.8/SIZE_SCALING_FACTOR);
}
// Earth
translate([(4.982939238479244E+07/DISTANCE_SCALING_FACTOR),(1.382169511085975E+08/DISTANCE_SCALING_FACTOR),(6.126610014669597E+03/DISTANCE_SCALING_FACTOR)]){
color("green")
sphere(r=6371.01/SIZE_SCALING_FACTOR);
}
// Mars
translate([(-8.840767546874936E+07/DISTANCE_SCALING_FACTOR),(-2.081078978986169E+08/DISTANCE_SCALING_FACTOR),(-2.168133984634548E+06/DISTANCE_SCALING_FACTOR)]){
color("red")
sphere(r=3389.9/SIZE_SCALING_FACTOR);
}
// Jupiter
translate([(4.012961468016061E+08/DISTANCE_SCALING_FACTOR),(6.332450309910216E+08/DISTANCE_SCALING_FACTOR),(-1.159657024521962E+07/DISTANCE_SCALING_FACTOR)]){
color("purple")
sphere(r=69911/SIZE_SCALING_FACTOR);
}
// Saturn
translate([(-9.039260039400640E+08/DISTANCE_SCALING_FACTOR),(1.021983212645124E+09/DISTANCE_SCALING_FACTOR),(1.804472639908135E+07/DISTANCE_SCALING_FACTOR)]){
color("pink")
sphere(r=58232/SIZE_SCALING_FACTOR);
}
// Uranus
translate([(-2.180321109644558E+09/DISTANCE_SCALING_FACTOR),(-1.717095672422973E+09/DISTANCE_SCALING_FACTOR),(2.191471638130832E+07/DISTANCE_SCALING_FACTOR)]){
color("brown")
sphere(r=25362/SIZE_SCALING_FACTOR);
}
// Neptune
translate([(-1.249308260673955E+09/DISTANCE_SCALING_FACTOR),(-4.354968224879044E+09/DISTANCE_SCALING_FACTOR),(1.184551310038505E+08/DISTANCE_SCALING_FACTOR)]){
color("blue")
sphere(r=24624/SIZE_SCALING_FACTOR);
}
// Pluto
translate([(-4.270028274993162E+09/DISTANCE_SCALING_FACTOR),(-9.328475878087844E+08/DISTANCE_SCALING_FACTOR),(1.334912452672853E+09/DISTANCE_SCALING_FACTOR)]){
color("orange")
sphere(r=1195/SIZE_SCALING_FACTOR);
//sphere(r=10);
}