Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
mark-lg.celx
Package: celestia-1.6.0.tar.gz [view]
Upload User: center1979
Upload Date: 2022-07-26
Package Size: 50633k
Code Size: 1k
Category:
OpenGL program
Development Platform:
Visual C++
- -- Title: Mark Local Group Galaxies
- function mark_LG_galaxies()
- --
- -- tables with the member galaxies of the Local Group
- --
- local LG_big_galaxies = {"Milky Way", "M 31", "M 33"}
- local LG_members = {"LMC","SMC","IC 10","NGC 6822","M 32","M 110","NGC 3109","NGC 185","IC 1613","NGC 147","Sextans A","Sextans B","WLM","Sagittarius dSph","Fornax dSph","Pegasus DIG","And VII","Leo I","Leo A","And II","And I","And VI","Sagittarius DIG","Aquarius Dwarf","Antlia Dwarf","Sculptor dSph","And III","Leo II","Cetus Dwarf","Sextans dSph","Phoenix Dwarf","LGS 3","Tucana Dwarf","Carina Dwarf","And V","UrsaMinor Dwarf","Draco Dwarf"}
- for dso in celestia:dsos() do
- for i,v in ipairs(LG_big_galaxies) do
- if dso:name() == v then
- dso:mark( "green", "disk",10, 1 )
- end
- end
- for j,w in ipairs(LG_members) do
- if dso:name() == w then
- dso:mark( "red", "disk",5, 0.7 )
- end
- end
- end
- end
- ----------
- -- main --
- ----------
- celestia:unmarkall()
- celestia:setrenderflags { markers = true }
- km2Mpc = 1/3.08568025e19
- MW = celestia:find("Milky Way")
- celestia:select(MW)
- --
- -- move observer to a distance of 5 Mpc from Milky Way
- --
- observer = celestia:getobserver()
- observer:gotodistance(MW, 5/km2Mpc,5)
- mark_LG_galaxies()
- wait(0)