Skip to content

mkretlow/Asteroids-MDSM

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

Asteroids-MDSM

I am sharing here a collection of tools and scripts for my own Asteroid Multi-Data (3D) Shape Modeling work.

3dshape_viewer.py

Displays simple 3D (asteroid, comets, etc.) shape files. Following packages are required: numpy and pyglet.

screenshot_small

Three file formats are supported: Wavefront .obj file, DAMIT (and ADAM) shape files, Occult4 shape files (which are similar to DAMIT shape files, but comma seperated and with a blank line between the vertices and facet section).

Usage: 3dshape_viewer.py -w,-d,-o shape_file
-w: Wavefront .obj file
-d: DAMIT shape file
-o: Occult4 shape file (CSV)

The visualization does not consider the aspect angle from the Earth nor the pole orientation wrt to the Ecliptic. Possibly this feature will be added in the future.

Sample shape files are in the folder 'shapes'.

shape2obj.py

Converts a DAMIT/ADAM shape file (shape.txt) to a Wavefront .obj file.

Usage ./shape2obj.py <shape_file> <obj_file>

Shape model files

About

Some Tools and Scripts for Multi-Data (3D) Shape Modeling of Asteroids

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages