Changeset 2092 in Sophya for trunk/SophyaPI/PI/pisurfdr.cc


Ignore:
Timestamp:
Jul 14, 2002, 7:03:43 PM (23 years ago)
Author:
cmv
Message:

intro PERC_GARDE pour localiser les pb cmv 14/7/2002

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/pisurfdr.cc

    r1904 r2092  
    55#include <math.h>
    66#include "pisurfdr.h"
     7
     8#define PERC_GARDE 0.05
    79
    810//++
     
    6365  double zmin = mZmin;
    6466  double zmax = mZmax;
    65   double dzz = (mZmax-mZmin)*0.05;
     67  double dzz = (mZmax-mZmin)*PERC_GARDE;
    6668  mLut = new LUT(zmin-dzz*2, zmax-dzz, 256);
    6769
     
    9698  x3Min = xmin;   x3Max = xmax;
    9799  y3Min = ymin;   y3Max = ymax;
    98   z3Min = zmin-0.05*(zmax-zmin);   z3Max = zmax+0.05*(zmax-zmin);
     100  z3Min = zmin-PERC_GARDE*(zmax-zmin); z3Max = zmax+PERC_GARDE*(zmax-zmin);
    99101
    100102//  printf("PISurfaceDrawer::UpdateLimits() : %g-%g  %g-%g  %g-%g (%g) \n", xmin,xmax,ymin,ymax,zmin,zmax,D);
     
    128130  PIGraphic3D* g3 = (PIGraphic3D*)(g);
    129131#endif
    130   Draw3DBoxe(g3, XMin3(), XMax3(), YMin3(), YMax3(), ZMin3(), ZMax3(),
    131                  mXmin, mXmax, mYmin, mYmax, mZmin-0.05*(mZmax-mZmin), mZmax+0.05*(mZmax-mZmin));
     132  Draw3DBoxe(g3,XMin3(),XMax3(),YMin3(),YMax3(),ZMin3(),ZMax3(),
     133            mXmin,mXmax,mYmin,mYmax,
     134            mZmin-PERC_GARDE*(mZmax-mZmin),mZmax+PERC_GARDE*(mZmax-mZmin));
    132135}
    133136
Note: See TracChangeset for help on using the changeset viewer.