Changeset 1228 for trunk/source/visualization/externals/gl2ps/src
- Timestamp:
- Jan 8, 2010, 11:56:51 AM (14 years ago)
- Location:
- trunk/source/visualization/externals/gl2ps/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.