From 5b40067ece8b5c6d49ff689aed21f6afb8e7bc04 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Wed, 11 Dec 2002 22:41:22 +0000
Subject: [PATCH] Enable occlusion culling by default

---
 Common/DefaultOptions.h | 4 ++--
 Graphics/gl2ps.cpp      | 5 ++++-
 Graphics/gl2ps.h        | 2 +-
 3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/Common/DefaultOptions.h b/Common/DefaultOptions.h
index 3b6f3dfe45..52a654b2db 100644
--- a/Common/DefaultOptions.h
+++ b/Common/DefaultOptions.h
@@ -975,9 +975,9 @@ StringXNumber PrintOptions_Number[] = {
     "Size factor for points in postscript output" },
   { F|O, "EpsQuality" , opt_print_eps_quality , 1 ,
     "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)" },
-  { 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" },
 
   { F|O, "Format" , opt_print_format , FORMAT_AUTO , 
diff --git a/Graphics/gl2ps.cpp b/Graphics/gl2ps.cpp
index 6d09274492..62794fffa1 100644
--- a/Graphics/gl2ps.cpp
+++ b/Graphics/gl2ps.cpp
@@ -2,7 +2,7 @@
  * GL2PS, an OpenGL to PostScript Printing Library
  * 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
  * URL: http://www.geuz.org/gl2ps/
@@ -180,6 +180,9 @@ void gl2psGetNormal(GLfloat *a, GLfloat *b, GLfloat *c){
     c[2] = c[2] / norm;
   }
   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[2] = 1.;
   }
diff --git a/Graphics/gl2ps.h b/Graphics/gl2ps.h
index cfb5ea3053..d902ef54a9 100644
--- a/Graphics/gl2ps.h
+++ b/Graphics/gl2ps.h
@@ -2,7 +2,7 @@
  * GL2PS, an OpenGL to PostScript Printing Library
  * 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
  * URL: http://www.geuz.org/gl2ps/
-- 
GitLab