GithubHelp home page GithubHelp logo

relief-carver's Introduction

Relief-Carver: Convert elevation data into G-code

Simple and slow, just using Ruby. Generates a big file with lots of G-code codes.

This version allows the carving direction to be flipped, so that the cutting tool "bites" into the material. This should make for a better cut.

This version also outputs the various slices into individual files (is this really useful?).

Installation:

First, make sure you have a decent ruby:

$ ruby --version

You should see something around 1.9.3 or higher.

Get Bundler:

$ gem install bundler

Let Bundler get the required gems

$ bundle install

And finally, edit carver.rb top section and adjust the parameters as needed:

$ emacs carver.rb

Generate the data by running the script:

$ ./carver.rb

There we go, Bob's your uncle.

Things to do:

Use less global variables and write better Ruby code (this code is far from 'nice').

The images

In the 'ned' subdirectory, you'll find a Rakefile, which can be used to create the PNGs of San Francisco and Yosemite.

To create them, use the following command line:

rake yosemite

and

rake sanfrancisco

The rakefile requires a bunch of dependencies, amongst others:

  • Data is downloaded using curl.

  • The zipped data is unpacked using the rubyzip gem.

  • The unzipped data is converted and processed using the Gdal suite. (see http://www.gdal.org)

relief-carver's People

Contributors

etissotdupont avatar rolandbosa avatar

Watchers

 avatar  avatar

Forkers

etissotdupont

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.