openscad/openscad — pull request #136 by donbright (2012-07-04 17:27:25+00:00)
Title: Issue11

implement issue #11

enable output of .png rendered file from command line. currently uses CGAL renderer only.

usage:

openscad -o example001.png example001.scad

major changes:

- refactor openscad.cc into 3 separate functions.
- replace QT path code with boost::filesystem code in openscad.cc
- copy bits of cgalpngtest.cc into export.cc
- modify openscad.pro to add OffscreenContext rendering

tested on:

linux build only

what is required to get OpenCSG rendering:

a. figure a command line syntax that is easy and obvious
b. copy chunks of csgtestcore.cc into export.cc

sorry it took so long!