#VRML V2.0 utf8
# An inlined component of a user-defined prototype wrapper implementation.
# A heavyweight data plotting template that inlines a user created VRML Shape.  
#  This object can be used as a template to extend other future user created shapes 
#  like an indexedFaceSet.  Just inLine the Shape. 

#  A component in a 3D data plotting application 
# Kurt A. Fisher fisherka@csolutions.net  beginner level VRML coder
# 12/2003

#  Used by:  lib_UD_proto.wrl  

#  The user must manually implement object color and translucency in this inlined file. 

# ====================================
# Usage 
#     in UD_proto.wrl 

# Inline { 
#	url  "my_user_defined_object.wrl" 
#} 

# ===========================================
#  Background 

#  version x: Default White background 
# DEF DefaultBack Background {
#	skyColor 		[ 1.0 1.0 1.0,  1.0 1.0 1.0,  1.0 1.0 1.0 ]
#	skyAngle 		[ 1.0, 1.0 ]
#	groundColor 		[ 1.0 1.0 1.0,  1.0 1.0 1.0,  1.0 1.0 1.0 ]
#	groundAngle 		[ 1.0, 1.0 ]
# } # End of default background


# ====================================
# BEGIN INLINED USER-DEFINED OBJECT

# Disable for more than one shape 
#				Shape {				
#				# Set overall appearance for all PointSet coordinates - must be emissive 
#					appearance Appearance {
#						material Material { 
#   Manually set the color of the object
#							diffuseColor 1.0 1.0 1.0   #  IS objColor
#			    				emissiveColor 0.5 0.5 0.5  #  IS objColor
#							shininess 0.08
# Manually set the transparency of the object
# 							transparency 0.0

#						} # end Material 
#					} # end Appearance 


# RENDER THE USER-DEFINED SHAPE OR SHAPE(S)

# RENDER THE MILKY WAY SHAPE
#  Modification notes:
#  2/2006 - Adjusted Orion Arm to pass 32.6 parsecs inside of Sol 
#  2/2006 - Added Olano's Ring
#  2/2006 - Added hard-coded anchor link to CDS Simbad tied to galactic core 


# ===========================================							
# Fundamental line 							


Shape {
    appearance Appearance {
        material Material {
#	diffuseColor 0.8 0.8 0.8 
	emissiveColor 0.8 0.0 0.0
	transparency 0.6
        }
    }
    geometry IndexedLineSet {
        coord Coordinate {							
            point [							
# Sol-centered coordinates 8.5 kpc R								
# x	,	y	,	z	,			# Gal centererd
-7	,	0	,	0	,	# Clips kpc	7	15
-6	,	0	,	0	,	# Clips kpc	6	14
-5	,	0	,	0	,	# Clips kpc	5	13
-4	,	0	,	0	,	# Clips kpc	4	12
-3	,	0	,	0	,	# Clips kpc	3	11
-2	,	0	,	0	,	# Clips kpc	2	10
-1	,	0	,	0	,	# Clips kpc	1	9
0	,	0	,	0	,	# Clips kpc	1	8
1	,	0	,	0	,	# Clips kpc	1	7
2	,	0	,	0	,	# Clips kpc	2	6
3	,	0	,	0	,	# Clips kpc	3	5
4	,	0	,	0	,	# Clips kpc	4	4
5	,	0	,	0	,	# Clips kpc	5	3
6	,	0	,	0	,	# Clips kpc	6	2
7	,	0	,	0	,	# Clips kpc	7	1
8	,	0	,	0	,	# Clips kpc	8	0.5
8.5	,	0	,	0	,	# Clips kpc	9	0
          ]							
        }							
# Fundamental line 				
        coordIndex [				
0	,	# Clips kpc	7
1	,	# Clips kpc	6
2	,	# Clips kpc	5
3	,	# Clips kpc	4
4	,	# Clips kpc	3
5	,	# Clips kpc	2
6	,	# Clips kpc	1
7	,	# Clips kpc	1
8	,	# Clips kpc	1
9	,	# Clips kpc	2
10	,	# Clips kpc	3
11	,	# Clips kpc	4
12	,	# Clips kpc	5
13	,	# Clips kpc	6
14	,	# Clips kpc	7
15	,	# Clips kpc	8
16	,	# Clips kpc	9
	        ]			
	    }			
	}			

# ======================================================
#  Simulation of  Sgr A East Core GMC and synchroton source 

# Scale and rotation two objects (GMC Core and synchrotron source) to size and orientation down x plane 
Transform { 

#  Size to 1 unit model to real galactic size 
#                               	x     	y    	z  
	scale 	0.015 	0.015	0.015 

# two axis rotation combined -90 deg around z and -90 deg around y 
# rotation to x+                x	y	z 	rotation  

	rotation        -0.577 -0.577 0.577 2.095
#  Translate complex to center of galaxy 
#                               	x     	y    	z  
	translation 8.5	0	0  
	
	children [ 
	
#  Sgr A East Core 
Transform { 
#                               	x     	y    	z  
	scale 	1.0 	0.5 	0.5 

# translation - Sgr A* West is center of Galaxy.   Position Sgr A East complex offcenter by 9.5 pc (2.5 axis of NMC + 7 pc) 
#   in 1 unit world 1 unit = 7.5, and 9.5 pc = 1.2666
# translate to center of core in z plane -1.2666  
#                               	x     	y    	z  
	translation 0	0	-1.2666  

	children [ 

# A one-unit sphere truncated at 71.5 degrees latitude, leaving a 0.334 radius or 0.668 diameter hole. 
# When scaled to 1.0:0.5:0.5,  the major axis of the hole is 2x or 0.668 radius and 1.333 diameter. 
Shape {
	appearance Appearance {
		material Material {
	diffuseColor 0.8 0.8 0.8 
#	transparency 0.8
		}
	}
    geometry Extrusion {
        creaseAngle 1.57
        endCap FALSE
        solid  FALSE
        crossSection [
# Cross-section - a circle of 15 pc
# a 30 degree circle 
# x	y
1.000	0.000
0.866	0.500
0.500	0.866
0.000	1.000
-0.500	0.866
-0.866	0.500
-1.000	0.000
-0.866	-0.500
-0.500	-0.866
0.000	-1.000
0.500	-0.866
0.866	-0.500
1.000	0.000
        ] # end cross-section 
        spine [
# Truncated sphere spline rising in z plane has the following spline points and scales  
# z plane rising spline - a straight line ending at a truncated sphere of 10 pc
 # x	y	z			
0 , 	0 ,	0.000	,	# latitude 90 deg		0
0 , 	0 ,	0.034	,	# latitude 75 deg		1
0 , 	0 ,	0.134	,	# latitude 60 deg		2
0 , 	0 ,	0.293	,	# latitude 45 deg		3
0 , 	0 ,	0.500	,	# latitude 30 deg		4
0 , 	0 ,	0.741	,	# latitude 15 deg		5
0 , 	0 ,	1.000	,	# latitude 0 deg		6
0 , 	0 ,	1.259	,	# latitude -15 deg		7
0 , 	0 ,	1.500	,	# latitude -30 deg		8
0 , 	0 ,	1.707	,	# latitude -45 deg		9
0 , 	0 ,	1.749	,	# latitude -49 deg		10
        ]  # end spline 
        scale [
# circle scale at this latitude	
# x	y
0.000	0.000	,	# latitude 90 deg		0
0.259	0.259	,	# latitude 75 deg		1
0.500	0.500	,	# latitude 60 deg		2
0.707	0.707	,	# latitude 45 deg		3
0.866	0.866	,	# latitude 30 deg		4
0.966	0.966	,	# latitude 15 deg		5
1.000	1.000	,	# latitude 0 deg		6
0.966	0.966	,	# latitude -15 deg		7
0.866	0.866	,	# latitude -30 deg		8
0.707	0.707	,	# latitude -45 deg		9
0.663	0.663	,	# latitude -49 deg		10
        ] # end scale 
    }  # end Extrusion 
}  # end Shape 

] # end children
} # end Transform 

#  Sgr A East sychrotron source 
# Elliptical sphere of 0.9  inside the Sgr A East Core 
Transform { 
	scale 	0.9 	0.45 	0.3 
# translation - Sgr A* West is center of Galaxy.   Position Sgr A East complex offcenter by 9.5 pc (2.5 axis of NMC + 7 pc) 
#   in 1 unit world 1 unit = 7.5, and 9.5 pc = 1.2666
# translate to center of core in z plane -1.2666  + 0.500 = -0.7666
#                               	x     	y    	z  
	translation 0	0	-0.7666

#	rotation 0 0 1.0 -0.34906585

children [ 

Shape {
    appearance Appearance {
	material Material { 
		diffuseColor 1.0 0.8 0.0
		transparency 0.1
	} # end Material 
    } # end Appearance 
    geometry Sphere {
    } # end Sphere 
} # end Shape

] # end children Transform Sgr A East 
} # end Transform Sgr A East sychrotron source 

] # end children Transform Both Objects 
} # end Transform Both Objects 

#======================================
# 80-50 pc giant molecular cloud ring at the core 
Shape {
	appearance Appearance {
		material Material {
	diffuseColor 0.8 0.8 0.8 
#	transparency 0.6
		}
	}
	geometry Extrusion {
		creaseAngle 1.57
		beginCap FALSE
		endCap   FALSE
		crossSection [
# 30 pc ring - a circle 
# x	y	,	
0.0150	0.0000	,	# 0 deg angle
0.0130	0.0075	,	# 30 deg angle
0.0075	0.0130	,	# 60 deg angle
0.0000	0.0150	,	# 90 deg angle
-0.0075	0.0130	,	# 120 deg angle
-0.0130	0.0075	,	# 150 deg angle
-0.0150	0.0000	,	# 180 deg angle
-0.0130	-0.0075	,	# 210 deg angle
-0.0075	-0.0130	,	# 240 deg angle
0.0000	-0.0150	,	# 270 deg angle
0.0075	-0.0130	,	# 300 deg angle
0.0130	-0.0075	,	# 330 deg angle
0.0150	0.0000	,	# 0 deg angle
		]
		spine [
# Spline for extrusion - a circle with a radius of 50pc + 15 pc - a circle 
# x	y	z		
8.565	0.0000	0.0000	,	# 0 deg angle
8.556	0.0325	0.0000	,	# 30 deg angle
8.533	0.0563	0.0000	,	# 60 deg angle
8.500	0.0650	0.0000	,	# 90 deg angle
8.468	0.0563	0.0000	,	# 120 deg angle
8.444	0.0325	0.0000	,	# 150 deg angle
8.435	0.0000	0.0000	,	# 180 deg angle
8.444	-0.0325	0.0000	,	# 210 deg angle
8.468	-0.0563	0.0000	,	# 240 deg angle
8.500	-0.0650	0.0000	,	# 270 deg angle
8.533	-0.0563	0.0000	,	# 300 deg angle
8.556	-0.0325	0.0000	,	# 330 deg angle
8.565	0.0000	0.0000	,	# 0 deg angle
		]
	}
}

# ===========================================
#  Galactic bulge - two parts  
#  Per Binney 1997 

# Part 1 - bulge 
Transform { 
	scale 	1.8  1.08  0.72
	translation	 8.5 0 -0.026 
	rotation 0 0 1.0 -0.34906585

children [ 


# Anchor link to CDS Simbad database 
Anchor {
url "http://simbad.harvard.edu/sim-fid.pl"
description "Link to external content: CDS Simbad database"
children [


Shape {
    appearance Appearance {
	material Material { 
		diffuseColor 0.8 0.8 0.8 
		transparency 0.8
	} # end Material 
    } # end Appearance 
    geometry Sphere {
    } # end Sphere 
} # end Shape

] # end children Transform
} # end Transform 


] # end children anchor to CDS Simbad
} # end anchor to CDS Simbad



# Part 2 - elliptical annulus 
Transform { 
	scale 	3.5 2.5 0.275
	translation	 8.5 0 -0.026 
	rotation 0 0 1.0 -0.34906585

children [ 


# Anchor link to CDS Simbad database 
Anchor {
url "http://simbad.harvard.edu/sim-fid.pl"
description "Link to external content: CDS Simbad database"
children [

Shape {
    appearance Appearance {
	material Material { 
		diffuseColor 0.8 0.8 0.8 
		transparency 0.8
	} # end Material 
    } # end Appearance 
    geometry Sphere {
    } # end Sphere 
} # end Shape

] # end children anchor to CDS Simbad
} # end anchor to CDS Simbad

] # end children Transform
} # end Transform 




# ===========================================
#  Galactic thin bar Per Lopez 2001, the galactic bar 
Transform { 
	scale 3.9, 0.250, 0.025      #  Scaling is 1/2 object size for box 
	translation	 8.5, 0, -0.026 
	rotation 0, 0, 1.0 -0.6981

children [ 

Shape {
    appearance Appearance {
	material Material { 
		diffuseColor 0.8 0.8 0.8 
		transparency 0.8
	} # end Material 
    } # end Appearance 
    geometry Box {
    } # end Box 
} # end Shape

] # end children Transform
} # end Transform 


# ===========================================
# 3 kpc Norma Arm
Shape {
    appearance Appearance {
        material Material {
	diffuseColor 0.8 0.8 0.8 
	transparency 0.6
        }
    }
    geometry IndexedLineSet {
# 3 kpc Norma Arm 		 3kpc-Norma'!$J$35:$J$61					
        coord Coordinate {							
            point [							
# Sol-centered coordinates 8.5 kpc R							
# x	,	y	,	z	,		
5.71	,	1.61	,	-0.026	,	# Clips kpc	6
5.359	,	1.143	,	-0.026	,		
5.083	,	0.602	,	-0.026	,		
4.9	,	0	,	-0.026	,	# Clips kpc	5
4.82	,	-0.649	,	-0.026	,		
4.856	,	-1.327	,	-0.026	,		
5.015	,	-2.012	,	-0.026	,	# Clips kpc	5
5.301	,	-2.685	,	-0.026	,		
5.714	,	-3.32	,	-0.026	,	# Clips kpc	6
6.251	,	-3.895	,	-0.026	,		
6.903	,	-4.387	,	-0.026	,	# Clips kpc	7
7.658	,	-4.771	,	-0.026	,	# Clips kpc	8
8.499	,	-5.027	,	-0.026	,	# Clips kpc	9
9.405	,	-5.138	,	-0.026	,	# Clips kpc	10
10.351	,	-5.088	,	-0.026	,		
11.309	,	-4.866	,	-0.026	,		
12.248	,	-4.467	,	-0.026	,		
13.135	,	-3.89	,	-0.026	,		
13.938	,	-3.141	,	-0.026	,		
14.624	,	-2.23	,	-0.026	,		
15.161	,	-1.175	,	-0.026	,		
15.519	,	-0.001	,	-0.027	,		
15.674	,	1.265	,	0.254	,		
15.604	,	2.585	,	0.547	,		
15.294	,	3.922	,	0.843	,		
14.737	,	5.233	,	1.134	,		
13.931	,	6.473	,	1.408	,		
          ]							
        }							
# 3 kpc Norma Arm 				
        coordIndex [				
	0	,	# Clips kpc	6
	1	,		
	2	,		
	3	,	# Clips kpc	5
	4	,		
	5	,		
	6	,	# Clips kpc	5
	7	,		
	8	,	# Clips kpc	6
	9	,		
	10	,	# Clips kpc	7
	11	,	# Clips kpc	8
	12	,	# Clips kpc	9
	13	,	# Clips kpc	10
	14	,		
	15	,		
	16	,		
	17	,		
	18	,
	-1	,	# Inferred extension 		
	19	,		
	20	,
	-1	,	# Inferred extension 		
	21	,		
	22	,
	-1	,	# Inferred extension 		
	23	,		
	24	,
	-1	,	# Inferred extension 
	25	,
	26	,
	-1	,	# Inferred extension 
	        ]	
	    }	
	}	


# ===========================================
#  Scutum Crux Arm 
Shape {
    appearance Appearance {
        material Material {
	diffuseColor 0.8 0.8 0.8 
	transparency 0.6
        }
    }
    geometry IndexedLineSet {
# Scutum Crux Arm  Scutum-Crux!$J$20:$J$56							
        coord Coordinate {							
            point [							
# Sol-centered coordinates 8.5 kpc R							
# x	,	y	,	z	,		
11.218	,	0	,	-0.026	,		
11.277	,	0.489	,	-0.026	,		
11.25	,	1.001	,	-0.026	,		
11.131	,	1.519	,	-0.026	,		
10.915	,	2.026	,	-0.026	,		
10.603	,	2.506	,	-0.026	,		
10.197	,	2.94	,	-0.026	,		
9.705	,	3.311	,	-0.026	,	# Clips kpc	10
9.135	,	3.601	,	-0.026	,		
8.5	,	3.795	,	-0.026	,	# Clips kpc	9
7.816	,	3.879	,	-0.026	,	# Clips kpc	8
7.101	,	3.841	,	-0.026	,		
6.378	,	3.673	,	-0.026	,	# Clips kpc	7
5.67	,	3.372	,	-0.026	,	# Clips kpc	6
4.999	,	2.936	,	-0.026	,	# Clips kpc	5
4.393	,	2.37	,	-0.026	,		
3.875	,	1.683	,	-0.026	,	# Clips kpc	4
3.47	,	0.886	,	-0.026	,		
3.2	,	0	,	-0.026	,		
3.083	,	-0.956	,	-0.026	,		
3.136	,	-1.953	,	-0.026	,		
3.369	,	-2.962	,	-0.026	,		
3.79	,	-3.952	,	-0.026	,	# Clips kpc	4
4.398	,	-4.888	,	-0.026	,	# Clips kpc	5
5.189	,	-5.735	,	-0.026	,	# Clips kpc	6
6.149	,	-6.458	,	-0.026	,	# Clips kpc	7
7.261	,	-7.023	,	-0.026	,	# Clips kpc	8
8.499	,	-7.401	,	-0.026	,	# Clips kpc	9
9.833	,	-7.564	,	-0.026	,	# Clips kpc	10
11.226	,	-7.491	,	-0.026	,		
12.636	,	-7.164	,	-0.026	,		
14.018	,	-6.577	,	-0.026	,		
15.324	,	-5.727	,	-0.026	,		
16.507	,	-4.623	,	-0.026	,		
17.516	,	-3.282	,	-0.026	,		
          ]							
        }							
# Scutum Crux Arm 		
        coordIndex [				
	0	,	# Clips kpc	0
	1	,		
	2	,		
	3	,		
	4	,		
	5	,		
	6	,		
	7	,	# Clips kpc	10
	8	,		
	9	,	# Clips kpc	9
	10	,	# Clips kpc	8
	11	,		
	12	,	# Clips kpc	7
	13	,	# Clips kpc	6
	14	,	# Clips kpc	5
	15	,		
	16	,	# Clips kpc	4
	17	,		
	18	,		
	19	,		
	20	,		
	21	,		
	22	,	# Clips kpc	4
	23	,	# Clips kpc	5
	24	,	# Clips kpc	6
	25	,	# Clips kpc	7
	26	,	# Clips kpc	8
	27	,	# Clips kpc	9
	28	,	# Clips kpc	10
	29	,		
	30	,		
	-1	,	# Inferred extension 
	31	,
	32	,
	-1	,	# Inferred extension 
	33	,
	34	,
	-1	,	# Inferred extension 
	        ]	
	    }	
	}	


# ===========================================
#  Sagittarius Carina Arm 
Shape {
    appearance Appearance {
        material Material {
	diffuseColor 0.8 0.8 0.8 
	transparency 0.6
        }
    }
    geometry IndexedLineSet {
# Sagittarius Carina Arm 'Sagittarius-Carina'!$J$20:$J$54							
        coord Coordinate {							
            point [							
# Sol-centered coordinates 8.5 kpc R							
# x	,	y	,	z	,		
12.346	,	0	,	-0.026	,		
12.431	,	0.693	,	-0.026	,		
12.392	,	1.416	,	-0.026	,		
12.223	,	2.149	,	-0.026	,		
11.917	,	2.867	,	-0.026	,		
11.476	,	3.547	,	-0.026	,		
10.902	,	4.161	,	-0.026	,		
10.205	,	4.686	,	-0.026	,		
9.398	,	5.096	,	-0.026	,	# Clips kpc	10
8.5	,	5.371	,	-0.026	,	# Clips kpc	9
7.532	,	5.489	,	-0.026	,	# Clips kpc	8
6.521	,	5.435	,	-0.026	,	# Clips kpc	7
5.498	,	5.199	,	-0.026	,	# Clips kpc	6
4.495	,	4.772	,	-0.026	,	# Clips kpc	5
3.546	,	4.156	,	-0.026	,	# Clips kpc	5
2.688	,	3.355	,	-0.026	,	# Clips kpc	4
1.956	,	2.381	,	-0.026	,	# Clips kpc	3
1.382	,	1.254	,	-0.026	,	# Clips kpc	2
1	,	0	,	-0.026	,	# Clips kpc	1
0.834	,	-1.352	,	-0.026	,	# Clips kpc	2
0.909	,	-2.763	,	-0.026	,	# Clips kpc	4
1.24	,	-4.192	,	-0.026	,	# Clips kpc	5
1.835	,	-5.593	,	-0.026	,	# Clips kpc	6
2.696	,	-6.917	,	-0.026	,	# Clips kpc	8
3.815	,	-8.115	,	-0.026	,	# Clips kpc	9
5.174	,	-9.138	,	-0.026	,	# Clips kpc	10
6.747	,	-9.939	,	-0.026	,		
8.499	,	-10.473	,	-0.026	,		
10.387	,	-10.704	,	-0.026	,		
12.357	,	-10.6	,	-0.026	,		
14.352	,	-10.138	,	-0.026	,		
          ]							
        }							
# Sagittarius Carina Arm 				Degree angle
        coordIndex [		
	0	,
	1	,
	2	,
	3	,
	4	,
	5	,
	6	,
	7	,
	8	,	# Clips kpc	10	80
	9	,	# Clips kpc	9	
	10	,	# Clips kpc	8
	-1	,	# flattened arm segment 
	11	,	# Clips kpc	7	110
	12	,	# Clips kpc	6	120
	-1	,	# flattened arm segment 
	13	,	# Clips kpc	5	130
	14	,	# Clips kpc	5	140
	-1	,	# flattened arm segment 
	15	,	# Clips kpc	4
	16	,	# Clips kpc	3	
	-1	,	# flattened arm segment 
	18	,	# Clips kpc	1	180
	19	,	
	-1	,	# flattened arm segment 
	20	,	# Clips kpc	4	200
	21	,	# Clips kpc	5	210
	22	,	# Clips kpc	6
	23	,	# Clips kpc	8
	24	,	# Clips kpc	9
	25	,	# Clips kpc	10
	26	,		
	-1	,	# Inferred segments 
	27	,		
	28	,		
	-1	,	# Inferred segments 
	29	,		
	30	,		
	-1	,	# Inferred segments 
	        ]			
	    }			
	}			

# ===========================================
#  Sagittarius Carina Arm flattened arm segment at 120 deg through 200 degrees 
#    Hybird of logarythmic and Taylor model points modelled as a lineset 
Shape {
    appearance Appearance {
        material Material {
	diffuseColor 1.0 0.0 0.0
	emissiveColor 0.0 0.6 0.6
	transparency 0.6
        }
    }
    geometry IndexedLineSet {
        coord Coordinate {							
            point [							
#  Sagittarius Carina Arm flattened arm segment at 120 deg through 200 degrees 
# Sol-centered coordinates 8.5 kpc R							
# x	,	y	,	z	,		
5.498	,	5.199	,	-0.026	,	# Clips kpc	4   Angle	120
2.108	,	1.126	,	-0.026	,	# Taylor Point 		170 
1.549	,	0	,	-0.026	,	# Taylor Point 		180 	
0.909	,	-2.763	,	-0.026	,	# Clips kpc	4   	200 
          ]							
        }							
#  Sagittarius Carina Arm flattened arm segment at 120 deg through 200 degrees 
        coordIndex [				
0	,	# Clips kpc	5	130
1	,	# Taylor point Angle 		170
2	,	# Taylor point Angle 		180
3	,	# Clips kpc	4	200
        ]				
    }				
}				


# ===========================================													
# Sol 

# PO { objName [ "Sol"]						objPosition 	0 0 0 	objSize	0.025 0.025 0.025   	objColor 0.0 0.8 0.8  		}

# ===========================================
#  Orion Cygnus Spur Arm 
Shape {
    appearance Appearance {
        material Material {
	diffuseColor 0.8 0.8 0.8 
	transparency 0.6
        }
    }
    geometry IndexedLineSet {
# Orion Cygnus Spur Orion-Cygnus'!$J$35:$J$41							
        coord Coordinate {							
            point [							
# Sol-centered coordinates 8.5 kpc R							
# x	,	y	,	z	,		
1.714	,	3.917	,	0.042	,	# Clips kpc	4
0.846	,	2.785	,	0.022	,	# Clips kpc	3
0.162	,	1.47	,	-0.001	,	# Clips kpc	2
# Manual change - adjusts position to force Orion-Sol relationship to match ObsOrtho.xls plot
# -0.301	,	0	,	-0.026	,	# Clips kpc	1
-0.220	,	0	,	-0.026	,	# Clips kpc	1
-0.509	,	-1.589	,	-0.054	,	# Clips kpc	2
-0.435	,	-3.252	,	-0.083	,	# Clips kpc	3
-0.06	,	-4.942	,	-0.113	,	# Clips kpc	4
          ]							
        }							
# Orion Cygnus Spur 				
        coordIndex [				
	0	,	# Clips kpc	4
	1	,	# Clips kpc	3
	2	,	# Clips kpc	2
	3	,	# Clips kpc	1
	4	,	# Clips kpc	2
	5	,	# Clips kpc	3
	6	,	# Clips kpc	4
	        ]			
	    }			
	}			

# ===========================================
#  Perseus Arm 
Shape {
    appearance Appearance {
        material Material {
	diffuseColor 0.8 0.8 0.8 
	transparency 0.6
        }
    }
    geometry IndexedLineSet {
# Perseus Arm Perseus!$J$20:$J$45							
        coord Coordinate {							
            point [							
# Sol-centered coordinates 8.5 kpc R							
# x	,	y	,	z	,		
13.818	,	0	,	-0.026	,		
13.935	,	0.958	,	0.024	,		
13.882	,	1.959	,	0.076	,		
13.647	,	2.972	,	0.129	,		
13.225	,	3.965	,	0.181	,		
12.615	,	4.904	,	0.23	,		
11.822	,	5.754	,	0.275	,		
10.858	,	6.479	,	0.313	,		
9.742	,	7.047	,	0.342	,	# Clips kpc	10
8.5	,	7.426	,	0.362	,	# Clips kpc	9
7.161	,	7.589	,	0.371	,	# Clips kpc	8
5.764	,	7.515	,	0.367	,		
4.349	,	7.188	,	0.35	,		
2.962	,	6.598	,	0.319	,	# Clips kpc	7
1.651	,	5.746	,	0.274	,	# Clips kpc	6
0.465	,	4.638	,	0.216	,	# Clips kpc	5
-0.548	,	3.293	,	0.146	,	# Clips kpc	4
-1.341	,	1.735	,	0.064	,	# Clips kpc	2
-1.87	,	0	,	-0.026	,	# Clips kpc	2
-2.099	,	-1.869	,	-0.124	,	# Clips kpc	3
-1.996	,	-3.82	,	-0.226	,	# Clips kpc	5
-1.538	,	-5.796	,	-0.33	,	# Clips kpc	7
-0.715	,	-7.733	,	-0.431	,	# Clips kpc	9
0.475	,	-9.563	,	-0.527	,	# Clips kpc	10
2.022	,	-11.22	,	-0.614	,		
3.901	,	-12.635	,	-0.688	,		
          ]							
        }							
# Perseus Arm 				
        coordIndex [				
	0	,		
	1	,		
	2	,		
	3	,		
	4	,		
	5	,		
	6	,		
	7	,		
	8	,	# Clips kpc	10
	9	,	# Clips kpc	9
	10	,	# Clips kpc	8
	11	,		
	12	,		
	13	,	# Clips kpc	7
	14	,	# Clips kpc	6
	15	,	# Clips kpc	5
	16	,	# Clips kpc	4
	17	,	# Clips kpc	2
	18	,	# Clips kpc	2
	19	,		
	20	,	# Clips kpc	5
	21	,	# Clips kpc	7
	22	,	# Clips kpc	9
	23	,	# Clips kpc	10
	-1	,	# Inferred extension 
	24	,		
	25	,		
	-1	,	# Inferred extension 
	        ]
	    }
	}

# ===========================================
#  Outer Arm (inferred)
Shape {
    appearance Appearance {
        material Material {
	diffuseColor 0.8 0.8 0.8 
	transparency 0.6
        }
    }
    geometry IndexedLineSet {
# Outer Arm '3kpc-Norma'!$J$62:$J$77				z = 'Outer Arm'!P62:P77			
        coord Coordinate {							
            point [							
# Sol-centered coordinates 8.5 kpc R							
# x	,	y	,	z	,		
12.884	,	7.594	,	1.657	,		
11.612	,	8.552	,	1.869	,		
10.14	,	9.301	,	2.035	,		
8.5	,	9.801	,	2.146	,		
6.733	,	10.017	,	2.194	,		
4.889	,	9.92	,	2.172	,	# Clips kpc	10
3.022	,	9.488	,	2.077	,		
1.191	,	8.709	,	1.904	,	# Clips kpc	9
-0.54	,	7.584	,	1.655	,	# Clips kpc	8
-2.106	,	6.122	,	1.331	,	# Clips kpc	7
-3.443	,	4.346	,	0.937	,	# Clips kpc	5
-4.489	,	2.29	,	0.481	,	# Clips kpc	5
-5.188	,	0	,	-0.026	,		
-5.489	,	-2.467	,	-0.573	,		
-5.353	,	-5.042	,	-1.144	,	# Clips kpc	7
-4.749	,	-7.65	,	-1.722	,	# Clips kpc	10
          ]							
        }							
# Outer Arm (inferred)				
        coordIndex [				
	0	,		
	1	,		
	-1	,	#  Dash line for inferred 
	2	,		
	3	,		
	-1	,	#  Dash line for inferred 
	4	,		
	5	,	# Clips kpc	10
	-1	,	#  Dash line for inferred 
	6	,		
	7	,	# Clips kpc	9
	-1	,	#  Dash line for inferred 
	8	,	# Clips kpc	8
	9	,	# Clips kpc	7
	-1	,	#  Dash line for inferred 
	10	,	# Clips kpc	5
	11	,	# Clips kpc	5
	-1	,	#  Dash line for inferred 
	12	,		
	13	,		
	-1	,	#  Dash line for inferred 
	14	,	# Clips kpc	7
	15	,	# Clips kpc	10
	-1	,	#  Dash line for inferred 
	        ]			
	    }			
	}			

# RENDER SPECIAL FEATURES IN ORION ARM

# ===========================================
#  Olano's Ring 
Shape {
    appearance Appearance {
        material Material {
	diffuseColor 0.0 0.0 1.0 
	transparency 0.2
        }
    }
    geometry IndexedLineSet {
# Olano's Ring

        coord Coordinate {							
            point [							
# Sol-centered coordinates 8.5 kpc R							
# x	,	y	,	z	,		
0.492644206 ,	0.926489876 ,	0 ,
0.088029788 ,	0.966369917 ,	0 ,
-0.275445344 ,	0.894999989 ,	0 ,
-0.605174734 ,	0.774988305 ,	0 ,
-0.929488544 ,	0.596023531 ,	0 ,
-1.213806775 ,	0.305392513 ,	0 ,
-1.368576104 ,	-0.1,	0 ,
-1.321600407 ,	-0.544626186 ,	0 ,
-1.071785676 ,	-0.915425002 ,	0 ,
-0.692644206 ,	-1.126489876 ,	0 ,
          ]							
        }							
# Olano's Ring
        coordIndex [				
	0	,	
	1	,	
	2	,	
	3	,	
	4	,	
	5	,	
	6	,	
	7	,	
	8	,	
	9	,	
	        ]			
	    }			
	}			

# ===========================================
#  Gould's Belt as lineset per Grenier (2004) 			
#	At 354 by 232 pc ellipse  with the center at 104 pc antigalactic center at l 180 deg.		
#	Inclined at 17.2 degs to the galactic plane with the ascending node at l= 296.1 deg. 		
#       Radi are 1/2 these sizes 

# First transform orients shape in world 
Transform {
#	rotation 1.0 0.0 0.0  1.570796327
	rotation 0.0 1.0 0.0 -0.300

children [ 

Transform {
	scale 0.177,0.116, 1.0
#	translation -0.104, 0, 0.026 
#  Had to force Belt to correct galatic anticenter position for this World
	translation -0.316, 0, 0.078
#  360 deg - 296.1 = 63.9 degs or 
	rotation 0.0 0.0 1.0  1.115


children [ 


Shape {
    appearance Appearance {
        material Material {
	diffuseColor 0.0 0.0 1.0 
	transparency 0.2
        }
    }
    geometry IndexedLineSet {
# Gould's Belt 
        coord Coordinate {							
            point [							
# A zero-based circle 
#  ortho-x	ortho-y			ortho-z		Degrees object
1.0000	,	0.0000	,		0.0000	,   #	0
0.9397	,	0.3420	,		0.0000	,   #	20
0.7660	,	0.6428	,		0.0000	,   #	40
0.5000	,	0.8660	,		0.0000	,   #	60
0.1736	,	0.9848	,		0.0000	,   #	80
-0.1736	,	0.9848	,		0.0000	,   #	100
-0.5000	,	0.8660	,		0.0000	,   #	120
-0.7660	,	0.6428	,		0.0000	,   #	140
-0.9397	,	0.3420	,		0.0000	,   #	160
-1.0000	,	0.0000	,		0.0000	,   #	180
-0.9397	,	-0.3420	,		0.0000	,   #	200
-0.7660	,	-0.6428	,		0.0000	,   #	220
-0.5000	,	-0.8660	,		0.0000	,   #	240
-0.1736	,	-0.9848	,		0.0000	,   #	260
0.1736	,	-0.9848	,		0.0000	,   #	280
0.5000	,	-0.8660	,		0.0000	,   #	300
0.7660	,	-0.6428	,		0.0000	,   #	320
0.9397	,	-0.3420	,		0.0000	,   #	340
1.0000	,	0.0000	,		0.0000	,   #	360

          ]							
        }							
# Gould's Belt
        coordIndex [				
	0	,	
	1	,	
	2	,	
	3	,	
	4	,	
	5	,	
	6	,	
	7	,	
	8	,	
	9	,	
	10	,	
	11	,	
	12	,	
	13	,	
	14	,	
	15	,	
	16	,	
	17	,	
	18	,	
	        ]			
	    }			
	}			

	] # end second Transform Children Gould's Belt

} # End Transform Gould's Belt 

	] # end first Transform Children Gould's Belt

} # End Transform Gould's Belt 




# END RENDER THE MILKY WAY SHAPE