MostAwesomeDude / csg

Some constructive solid geometry

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Constructive Solid Geometry

These are example geometry descriptions to be used with my Monte raytracer. To run the raytracer, point it at this directory for the import base, and then the name of the geometry that one wishes to render. For example:

monte eval ~/typhon/mast/games/sdf.mt.md -size 320x200 -supersample 5 ~/csg portraits/sines

Which will take several minutes, printing progress, and eventually yield an uncompressed PNG which looks like:

raytraced geometry

Possible problems:

  • Invalid CSG? The CSG grammar is specified by lib/csg
  • Typhon crashes? Double-check that you don't have undefined names; remember to bring in CSG as a parameter, not an import.

About

Some constructive solid geometry


Languages

Language:Mathematica 100.0%