Skip to content
Snippets Groups Projects
Commit 5b40067e authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

Enable occlusion culling by default
parent a35bf32f
No related branches found
No related tags found
No related merge requests found
...@@ -975,9 +975,9 @@ StringXNumber PrintOptions_Number[] = { ...@@ -975,9 +975,9 @@ StringXNumber PrintOptions_Number[] = {
"Size factor for points in postscript output" }, "Size factor for points in postscript output" },
{ F|O, "EpsQuality" , opt_print_eps_quality , 1 , { F|O, "EpsQuality" , opt_print_eps_quality , 1 ,
"Postscript quality (1=simple sort, 2=recursive sort)" }, "Postscript quality (1=simple sort, 2=recursive sort)" },
{ F|O, "EpsOcclusionCulling" , opt_print_eps_occlusion_culling , 0 , { F|O, "EpsOcclusionCulling" , opt_print_eps_occlusion_culling , 1 ,
"Cull occluded primitives (to reduce PostScript file size)" }, "Cull occluded primitives (to reduce PostScript file size)" },
{ F|O, "EpsBestRoot" , opt_print_eps_best_root , 0 , { F|O, "EpsBestRoot" , opt_print_eps_best_root , 1 ,
"Try to minimize primitive splitting in recursive sort" }, "Try to minimize primitive splitting in recursive sort" },
{ F|O, "Format" , opt_print_format , FORMAT_AUTO , { F|O, "Format" , opt_print_format , FORMAT_AUTO ,
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* GL2PS, an OpenGL to PostScript Printing Library * GL2PS, an OpenGL to PostScript Printing Library
* Copyright (C) 1999-2002 Christophe Geuzaine * Copyright (C) 1999-2002 Christophe Geuzaine
* *
* $Id: gl2ps.cpp,v 1.53 2002-12-11 17:37:17 geuzaine Exp $ * $Id: gl2ps.cpp,v 1.54 2002-12-11 22:41:22 geuzaine Exp $
* *
* E-mail: geuz@geuz.org * E-mail: geuz@geuz.org
* URL: http://www.geuz.org/gl2ps/ * URL: http://www.geuz.org/gl2ps/
...@@ -180,6 +180,9 @@ void gl2psGetNormal(GLfloat *a, GLfloat *b, GLfloat *c){ ...@@ -180,6 +180,9 @@ void gl2psGetNormal(GLfloat *a, GLfloat *b, GLfloat *c){
c[2] = c[2] / norm; c[2] = c[2] / norm;
} }
else{ else{
/* The plane is still wrong, despite our tests in
gl2psGetPlane... Let's return a dummy value (this is a hack: we
should do more tests in GetPlane): */
c[0] = c[1] = 0.; c[0] = c[1] = 0.;
c[2] = 1.; c[2] = 1.;
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* GL2PS, an OpenGL to PostScript Printing Library * GL2PS, an OpenGL to PostScript Printing Library
* Copyright (C) 1999-2002 Christophe Geuzaine * Copyright (C) 1999-2002 Christophe Geuzaine
* *
* $Id: gl2ps.h,v 1.30 2002-12-11 17:37:17 geuzaine Exp $ * $Id: gl2ps.h,v 1.31 2002-12-11 22:41:22 geuzaine Exp $
* *
* E-mail: geuz@geuz.org * E-mail: geuz@geuz.org
* URL: http://www.geuz.org/gl2ps/ * URL: http://www.geuz.org/gl2ps/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment