Giter Club home page Giter Club logo

scratchholograms's Introduction

About:

This is a program designed to make it easier to create scratch holograms (see http://www.eskimo.com/~billb/amateur/holo1.html). It allows the user to create a 3D model in Google SketchUp, and then convert that model into a pattern to generate a hologram of the model. I've blogged about it here:

http://blog.robindeits.com/2011/09/26/scratch-holograms/

http://blog.robindeits.com/2012/02/20/more-scratch-holograms/

Requirements:

python 2.6 or 2.7 with Matplotlib and Numpy Google SketchUp (tested on version 8)

Installation:

Currently, this is only tested on OS X 10.6 and 10.7. It can probably be made to work on other systems relatively easily, but I haven't done so yet.

Install SDXF from http://www.kellbot.com/sdxf-python-library-for-dxf/

Open up solid_pattern.rb: change the value of SCRIPTS_DIR to point to the directory containing draw_pattern.py, and change PYTHON_PATH to point to your python executable. Next, copy (or symlink) solid_pattern.rb to your Google Sketchup Plugins folder (/Library/Application\ Support/Google\ SketchUp
8/SketchUp/plugins/ on OS X).

Usage:

Create a new model in SketchUp (or open up one of the samples provided with this distribution), and save it somewhere convenient. Then click Plugins -> Make Solid Scratch Pattern... and save the *.pattern file in whatever folder you want the pattern files to appear in. Shortly thereafter, the printable pattern file (.pdf), the drawing file for CNC milling (.dxf), and simulated views at three viewing angles (view+5.pdf, etc.) will appear in the same folder.

A few notes on usage: The X and Y coordinates of the generated hologram correspond to the Y and Z axes, respectively, of the SketchUp model, and the depth of the hologram corresponds to the X axis of the model. A SketchUp model which is entirely in the X < 0 region will form a hologram below the surface of the material, while a model in the X > 0 region will form a hologram above the surface.

scratchholograms's People

Contributors

rdeits avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.