Coder Social home page Coder Social logo

carmie / planetarium Goto Github PK

View Code? Open in Web Editor NEW

This project forked from infernoembedded/planetarium

0.0 1.0 0.0 118 KB

Some scripts to generate a 3D printable planetarium from the HYG Star Database

License: GNU General Public License v3.0

Python 1.22% OpenSCAD 98.61% Shell 0.17%

planetarium's Introduction

planetarium

Some scripts to generate a 3D printable planetarium from the HYG Star Database http://www.astronexus.com/hyg

OpenSCAD is a bit of a pig for this task, it's single threaded & memory intensive. For this reason, the work is broken up into separate steps.

Star_rods.sh generates the star rods for later subtraction. It breaks the work in 32 chunks, and spawns an OpenSCAD instance for each chunk. This takes about 15 minutes on a Threadripper 1950x. The script then concatenates the result into a single ASCII STL file.

Star_sphere.sh creates a spherical shell, and subtracts the rods from it. This runs as a single thread, and took about 2 hours. You maf need to build the latest LibCSG from source in order to complete in a reasonable amount of time.

Prerequisites

  • OpenSCAD Nightly (Generates the STLs. Nightly possibly isn't necessary, but in what in hardcoded in the scripts, you could use the GUI instead)
  • Python3 (Generates the star map OpenSCAD array. This is already in the repository, so this is only necessary if you want to alter the array)

Usage

OpenSCAD-Converter.py  # this are already done, but may be used to regenerate starmap.scad from the HYG Star Database
star_rods.sh   # Generates rods for each star
star_sphere.sh  # Subtracts rods from a spherical shell

License

All code is licensed under the Gnu Public License 3.0 https://www.gnu.org/licenses/gpl-3.0.en.html

planetarium's People

Contributors

deece avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.