Ignore:
Timestamp:
Jan 8, 2010, 11:56:51 AM (14 years ago)
Author:
garnier
Message:

update geant4.9.3 tag

Location:
trunk/source/visualization/externals/gl2ps/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/externals/gl2ps/src/G4OpenGL2PSAction.cc

    r1196 r1228  
    125125     GL2PS_BEST_ROOT | GL2PS_SILENT | GL2PS_DRAW_BACKGROUND;
    126126  int sort = GL2PS_BSP_SORT;
    127   sort = GL2PS_SIMPLE_SORT;
     127  //int sort = GL2PS_SIMPLE_SORT;
    128128  GLint buffsize = 0;
    129129  buffsize += 1024*1024;
  • trunk/source/visualization/externals/gl2ps/src/gl2ps.cc

    r1174 r1228  
    9292#include "Geant4_gl2ps.h"
    9393
    94 #include <math.h>
     94#include <cmath>
    9595#include <string.h>
    9696#include <sys/types.h>
     
    9999#include <float.h>
    100100
    101 #if defined(G4LIB_USE_ZLIB)
    102101#define GL2PS_HAVE_ZLIB
    103102#include <zlib.h>
    104 #endif
    105103
    106104#if defined(GL2PS_HAVE_LIBPNG)
     
    121119#define GL2PS_ZOFFSET       5.0e-2F
    122120#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)
    124122
    125123/* Primitive types */
     
    749747 
    750748  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])
    754752      return GL_FALSE;
    755753  }
Note: See TracChangeset for help on using the changeset viewer.