Changeset 1228 for trunk/source/visualization/externals/gl2ps
- Timestamp:
- Jan 8, 2010, 11:56:51 AM (16 years ago)
- Location:
- trunk/source/visualization/externals/gl2ps
- Files:
-
- 4 edited
-
GNUmakefile (modified) (3 diffs)
-
History (modified) (2 diffs)
-
src/G4OpenGL2PSAction.cc (modified) (1 diff)
-
src/gl2ps.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/externals/gl2ps/GNUmakefile
r1169 r1228 1 # $Id: GNUmakefile,v 1. 2 2009/11/02 14:54:31 lgarnierExp $1 # $Id: GNUmakefile,v 1.5 2009/11/18 17:15:11 gcosmo Exp $ 2 2 # ------------------------------------------------------------- 3 3 # GNUmakefile for gl2ps. Laurent Garnier, 6/2/09. … … 12 12 endif 13 13 14 ifdef G4LIB_BUILD_ZLIB 15 CPPFLAGS += -I$(G4BASE)/visualization/externals/zlib/include 16 endif 14 GLOBLIBS = libG4zlib.lib 17 15 18 16 include $(G4INSTALL)/config/architecture.gmk … … 20 18 include $(G4INSTALL)/config/interactivity.gmk 21 19 20 ifdef G4LIB_BUILD_ZLIB 21 CPPFLAGS += -I$(G4BASE)/visualization/externals/zlib/include 22 endif 23 22 24 include $(G4INSTALL)/config/common.gmk -
trunk/source/visualization/externals/gl2ps/History
r1140 r1228 1 $Id: History,v 1.1 0 2009/11/02 14:54:31 lgarnierExp $1 $Id: History,v 1.15 2009/11/18 17:23:36 gcosmo Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 17 17 * Reverse chronological order (last date on top), please * 18 18 ---------------------------------------------------------- 19 20 18 Nov 2009, Gabriele Cosmo (visexternal-V09-02-06) 21 - Added GLOBLIBS dependencies to GNUmakefile to allow for building 22 DLLs on Windows. Removed redundant CPPFLAGS addition. 23 - Re-instated fix to gl2ps.cc. 24 25 17 Nov 2009, John Allison, Gabriele Cosmo (visexternal-V09-02-05) 26 - Added dependency on zlib if G4LIB_BUILD_ZLIB is set and corrected 27 inclusion of zlib.h in gl2ps.cc 19 28 20 29 2 Nov 2009, Laurent Garnier -
trunk/source/visualization/externals/gl2ps/src/G4OpenGL2PSAction.cc
r1196 r1228 125 125 GL2PS_BEST_ROOT | GL2PS_SILENT | GL2PS_DRAW_BACKGROUND; 126 126 int sort = GL2PS_BSP_SORT; 127 sort = GL2PS_SIMPLE_SORT;127 //int sort = GL2PS_SIMPLE_SORT; 128 128 GLint buffsize = 0; 129 129 buffsize += 1024*1024; -
trunk/source/visualization/externals/gl2ps/src/gl2ps.cc
r1174 r1228 92 92 #include "Geant4_gl2ps.h" 93 93 94 #include < math.h>94 #include <cmath> 95 95 #include <string.h> 96 96 #include <sys/types.h> … … 99 99 #include <float.h> 100 100 101 #if defined(G4LIB_USE_ZLIB)102 101 #define GL2PS_HAVE_ZLIB 103 102 #include <zlib.h> 104 #endif105 103 106 104 #if defined(GL2PS_HAVE_LIBPNG) … … 121 119 #define GL2PS_ZOFFSET 5.0e-2F 122 120 #define GL2PS_ZOFFSET_LARGE 20.0F 123 #define GL2PS_ZERO(arg) ( fabs(arg) < 1.e-20)121 #define GL2PS_ZERO(arg) (std::fabs(arg) < 1.e-20) 124 122 125 123 /* Primitive types */ … … 749 747 750 748 for(i = 1; i < n; i++){ 751 if( fabs(rgba[0][0] - rgba[i][0]) > threshold[0] ||752 fabs(rgba[0][1] - rgba[i][1]) > threshold[1] ||753 fabs(rgba[0][2] - rgba[i][2]) > threshold[2])749 if(std::fabs(rgba[0][0] - rgba[i][0]) > threshold[0] || 750 std::fabs(rgba[0][1] - rgba[i][1]) > threshold[1] || 751 std::fabs(rgba[0][2] - rgba[i][2]) > threshold[2]) 754 752 return GL_FALSE; 755 753 }
Note:
See TracChangeset
for help on using the changeset viewer.
