Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
An html5+coffeescript tool to construct and explore polyhedra.
JavaScript CoffeeScript CSS
branch: master
Failed to load latest commit information.
libs Switched away from ad-hoc parser to PEG.js encoded parser for handlin…
media Added stroke/fill drawing mode controls. Increased canvas size slightly.
Cakefile Switched away from ad-hoc parser to PEG.js encoded parser for handlin…
canvas_ui.coffee lots of random cleanup, trying to fix face-classification
geo.coffee lots of random cleanup, trying to fix face-classification
geo_operators.coffee
parser.coffee lots of random cleanup, trying to fix face-classification
polyhedron.coffee
polyhedronisme.css Added crude palette control with a textbox.
polyhedronisme.html Added crude palette control with a textbox.
polyhedronisme.js lots of random cleanup, trying to fix face-classification
polyhedronisme.min.js lots of random cleanup, trying to fix face-classification
readme.md
testing.coffee
topo_operators.coffee lots of random cleanup, trying to fix face-classification
triangulate.coffee small fix to triangulation color handling

readme.md

polyHédronisme

This is a project built to demonstrate the Conway Polyhedral Operators and their extensions by George W. Hart. It was heavily inspired by some old code of George Hart's that did much the same in VRML. Additional operators are being added to increase the range of procedurally generated forms possible.

One derives any of a vast family of polyhedral shapes by specifying a core geometric 'seed' and then modifying it with topological and geometrical operators that derive more complex shapes from this base set.

It should runs on any modern canvas-enabled browser.

This project was also inspired by the renaissance tome Perspectiva Corporum Regularium featuring engravings by Jost Amman after designs and drawings by Wenzel Jamnitzer.

It is written in coffeescript. Uses jQuery, underscore, PEG.js parser for parsing recipes, and Eli Grey's BlobBuilder, FileSaver, canvas-toBlob for saving files.

Future

  • Switch rendering to Three.JS
  • WebGL frontend to replace the hand-rolled, slow canvas renderer, for those browsers that can use it.
  • 2d vector export to SVG
  • integration of csg.js lib for complex mesh joins
  • geometric distortion operators, i.e.:
G x**2,y**2,z**2 => poly.xyz = _.map(poly.xyz, ([x,y,z]) -> [x*x,y*y,z*z])
  • Simple boolean operations on like-numbered faces: "cut and glue"
  • proper touch event handling for mobile

Text CC-BY, Code MIT License 2011 Anselm Levskaya

Something went wrong with that request. Please try again.