summaryrefslogtreecommitdiff
path: root/src/export_png.cc
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-03-04 01:47:07 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-03-04 01:47:07 (GMT)
commit42ca2151b1f671169ac51bac77ee45c676c1b967 (patch)
tree535d151c9928e6ac515ddedff733d334aaad5686 /src/export_png.cc
parentdaf695b089be237fea1028621554b714ffe1872a (diff)
cleanups
Diffstat (limited to 'src/export_png.cc')
-rw-r--r--src/export_png.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/export_png.cc b/src/export_png.cc
index 33fb85b..5c11b9f 100644
--- a/src/export_png.cc
+++ b/src/export_png.cc
@@ -59,7 +59,7 @@ void export_png_with_opencsg(Tree &tree, Camera &cam, std::ostream &output)
{
#ifdef ENABLE_OPENCSG
CsgInfo csgInfo = CsgInfo();
- if ( !csgInfo.prep_chains( tree ) ) {
+ if ( !csgInfo.compile_chains( tree ) ) {
fprintf(stderr,"Couldn't initialize OpenCSG chains\n");
return;
}
@@ -75,7 +75,6 @@ void export_png_with_opencsg(Tree &tree, Camera &cam, std::ostream &output)
if (cam.type == Camera::NONE) {
cam.type = Camera::VECTOR;
- cam.center << 0,0,0;
double radius = 1.0;
if (csgInfo.root_chain) {
BoundingBox bbox = csgInfo.root_chain->getBoundingBox();
contact: Jan Huwald // Impressum