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

update geant4.9.3 tag

Location:
trunk/source/visualization/externals/gl2ps
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/externals/gl2ps/GNUmakefile

    r1169 r1228  
    1 # $Id: GNUmakefile,v 1.2 2009/11/02 14:54:31 lgarnier Exp $
     1# $Id: GNUmakefile,v 1.5 2009/11/18 17:15:11 gcosmo Exp $
    22# -------------------------------------------------------------
    33# GNUmakefile for gl2ps.  Laurent Garnier, 6/2/09.
     
    1212endif
    1313
    14 ifdef G4LIB_BUILD_ZLIB
    15   CPPFLAGS += -I$(G4BASE)/visualization/externals/zlib/include
    16 endif
     14GLOBLIBS = libG4zlib.lib
    1715
    1816include $(G4INSTALL)/config/architecture.gmk
     
    2018include $(G4INSTALL)/config/interactivity.gmk
    2119
     20ifdef G4LIB_BUILD_ZLIB
     21  CPPFLAGS += -I$(G4BASE)/visualization/externals/zlib/include
     22endif
     23
    2224include $(G4INSTALL)/config/common.gmk
  • trunk/source/visualization/externals/gl2ps/History

    r1140 r1228  
    1 $Id: History,v 1.10 2009/11/02 14:54:31 lgarnier Exp $
     1$Id: History,v 1.15 2009/11/18 17:23:36 gcosmo Exp $
    22-------------------------------------------------------------------
    33
     
    1717     * Reverse chronological order (last date on top), please *
    1818     ----------------------------------------------------------
     19
     2018 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
     2517 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
    1928
    20292 Nov 2009, Laurent Garnier
  • 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.