ROOT logo
// @(#)root/geom:$Id$
// Author: Andrei Gheata   26/09/05

/*************************************************************************
 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/


#include "Riostream.h"

#include "TGeoManager.h"
#include "TGeoMatrix.h"
#include "TGeoVolume.h"
#include "TGeoNode.h"
#include "TGeoScaledShape.h"
#include "TBuffer3D.h"
#include "TBuffer3DTypes.h"
#include "TMath.h"

//_____________________________________________________________________________
// TGeoScaledShape - A shape scaled by a TGeoScale transformation
//    
//Begin_Html
/*
<img src="gif/TGeoScaledShape.gif">
*/
//End_Html
//_____________________________________________________________________________


ClassImp(TGeoScaledShape)
   
//_____________________________________________________________________________
TGeoScaledShape::TGeoScaledShape()
{
// Default constructor
   fShape = 0;
   fScale = 0;
}   


//_____________________________________________________________________________
TGeoScaledShape::TGeoScaledShape(const char *name, TGeoShape *shape, TGeoScale *scale)
                :TGeoBBox(name,0,0,0)
{
// Constructor
   fShape = shape;
   fScale = scale;
   if (!fScale->IsRegistered()) fScale->RegisterYourself();
   ComputeBBox();
}

//_____________________________________________________________________________
TGeoScaledShape::TGeoScaledShape(TGeoShape *shape, TGeoScale *scale)
{
// Constructor
   fShape = shape;
   fScale = scale;
   if (!fScale->IsRegistered()) fScale->RegisterYourself();
   ComputeBBox();
}

//_____________________________________________________________________________
TGeoScaledShape::~TGeoScaledShape()
{
// destructor
}

//_____________________________________________________________________________
Double_t TGeoScaledShape::Capacity() const
{
// Computes capacity of this shape [length^3]
   Double_t capacity = fShape->Capacity();
   const Double_t *scale = fScale->GetScale();
   capacity *= scale[0]*scale[1]*scale[2];
   return capacity;
}   
   
//_____________________________________________________________________________   
void TGeoScaledShape::ComputeBBox()
{
// Compute bounding box of the scaled shape
   if (!fShape) {
      Error("ComputeBBox", "Scaled shape %s without shape", GetName());
      return;
   } 
   if (fShape->IsAssembly()) fShape->ComputeBBox();
   TGeoBBox *box = (TGeoBBox*)fShape;
   const Double_t *orig = box->GetOrigin();
   Double_t point[3], master[3];
   point[0] = box->GetDX();
   point[1] = box->GetDY();
   point[2] = box->GetDZ();
   
   fScale->LocalToMaster(orig, fOrigin);
   fScale->LocalToMaster(point, master);
   fDX = TMath::Abs(master[0]);
   fDY = TMath::Abs(master[1]);
   fDZ = TMath::Abs(master[2]);
}   

//_____________________________________________________________________________   
void TGeoScaledShape::ComputeNormal(const Double_t *point, const Double_t *dir, Double_t *norm)
{
// Compute normal to closest surface from POINT.
   Double_t local[3], ldir[3], lnorm[3];
   fScale->MasterToLocal(point,local);
   fScale->MasterToLocalVect(dir,ldir);
   TGeoMatrix::Normalize(ldir);
   fShape->ComputeNormal(local,ldir,lnorm);
//   fScale->LocalToMasterVect(lnorm, norm);
   fScale->MasterToLocalVect(lnorm, norm);
   TGeoMatrix::Normalize(norm);
}

//_____________________________________________________________________________
Bool_t TGeoScaledShape::Contains(const Double_t *point) const
{
// Test if point is inside the scaled shape
   Double_t local[3];
   fScale->MasterToLocal(point,local);
   return fShape->Contains(local);
}

//_____________________________________________________________________________
Int_t TGeoScaledShape::DistancetoPrimitive(Int_t px, Int_t py)
{
// compute closest distance from point px,py to each vertex. Should not be called.
   Int_t n = fShape->GetNmeshVertices();
   return ShapeDistancetoPrimitive(n, px, py);
}

//_____________________________________________________________________________
Double_t TGeoScaledShape::DistFromInside(const Double_t *point, const Double_t *dir, Int_t iact, Double_t step, Double_t *safe) const
{
// Compute distance from inside point to surface of the scaled shape.
   Double_t local[3], ldir[3];
   Double_t lstep;
   fScale->MasterToLocal(point,local);
   lstep = fScale->MasterToLocal(step, dir);
   fScale->MasterToLocalVect(dir,ldir);
   TGeoMatrix::Normalize(ldir);
   Double_t dist = fShape->DistFromInside(local,ldir, iact, lstep, safe);
   if (iact<3 && safe) *safe = fScale->LocalToMaster(*safe);
   dist = fScale->LocalToMaster(dist, ldir);
   return dist;
}


//_____________________________________________________________________________
Double_t TGeoScaledShape::DistFromOutside(const Double_t *point, const Double_t *dir, Int_t iact, Double_t step, Double_t *safe) const
{
// Compute distance from outside point to surface of the scaled shape.
   Double_t local[3], ldir[3];
   Double_t lstep;
//   printf("DistFromOutside(%f,%f,%f,  %f,%f,%f)\n", point[0], point[1], point[2], dir[0], dir[1],dir[2]);
   fScale->MasterToLocal(point,local);
//   printf("local: %f,%f,%f\n", local[0],local[1], local[2]);
   lstep = fScale->MasterToLocal(step, dir);
   fScale->MasterToLocalVect(dir,ldir);
   TGeoMatrix::Normalize(ldir);
//   printf("localdir: %f,%f,%f\n",ldir[0],ldir[1],ldir[2]);
   Double_t dist = fShape->DistFromOutside(local,ldir, iact, lstep, safe);
//   printf("local distance: %f\n", dist);
   if (safe) *safe = fScale->LocalToMaster(*safe);
   dist = fScale->LocalToMaster(dist, ldir);
//   printf("converted distance: %f\n",dist);
   return dist;
}
   
//_____________________________________________________________________________
TGeoVolume *TGeoScaledShape::Divide(TGeoVolume * /*voldiv*/, const char *divname, Int_t /*iaxis*/, Int_t /*ndiv*/, 
                             Double_t /*start*/, Double_t /*step*/) 
{
// Cannot divide assemblies.
   Error("Divide", "Scaled shapes cannot be divided. Division volume %s not created", divname);
   return 0;
}   

//_____________________________________________________________________________
const TBuffer3D & TGeoScaledShape::GetBuffer3D(Int_t reqSections, Bool_t localFrame) const
{
// Fills a static 3D buffer and returns a reference.
   TBuffer3D &buffer = (TBuffer3D &)fShape->GetBuffer3D(reqSections, localFrame);

//   TGeoBBox::FillBuffer3D(buffer, reqSections, localFrame);
   Double_t halfLengths[3] = { fDX, fDY, fDZ };
   buffer.SetAABoundingBox(fOrigin, halfLengths);
   if (!buffer.fLocalFrame) {
      TransformPoints(buffer.fBBVertex[0], 8);
   }

   if ((reqSections & TBuffer3D::kRaw) && buffer.SectionsValid(TBuffer3D::kRawSizes)) {
      SetPoints(buffer.fPnts);
      if (!buffer.fLocalFrame) {
         TransformPoints(buffer.fPnts, buffer.NbPnts());
      }
   }
      
   return buffer;
}
//_____________________________________________________________________________
TGeoShape *TGeoScaledShape::GetMakeRuntimeShape(TGeoShape * /*mother*/, TGeoMatrix * /*mat*/) const
{
// in case shape has some negative parameters, these has to be computed
// in order to fit the mother
   Error("GetMakeRuntimeShape", "Scaled shapes cannot be parametrized.");
   return NULL;
}

//_____________________________________________________________________________
void TGeoScaledShape::GetMeshNumbers(Int_t &nvert, Int_t &nsegs, Int_t &npols) const
{
// Returns numbers of vertices, segments and polygons composing the shape mesh.
   fShape->GetMeshNumbers(nvert, nsegs, npols);
}

//_____________________________________________________________________________
void TGeoScaledShape::InspectShape() const
{
// print shape parameters
   printf("*** Shape %s: TGeoScaledShape ***\n", GetName());
   fScale->Print();
   fShape->InspectShape();
   TGeoBBox::InspectShape();
}

//_____________________________________________________________________________
Bool_t TGeoScaledShape::IsAssembly() const
{
 // Returns true if the scaled shape is an assembly.
   return fShape->IsAssembly(); 
}
   
//_____________________________________________________________________________
Bool_t TGeoScaledShape::IsReflected() const
{
// Check if the scale transformation is a reflection.
   return fScale->IsReflection();
}

//_____________________________________________________________________________
TBuffer3D *TGeoScaledShape::MakeBuffer3D() const
{ 
   // Creates a TBuffer3D describing *this* shape.
   // Coordinates are in local reference frame.

   TBuffer3D *buff = fShape->MakeBuffer3D();
   if (buff) SetPoints(buff->fPnts);   
   return buff; 
}

//_____________________________________________________________________________
TGeoShape *TGeoScaledShape::MakeScaledShape(const char *name, TGeoShape *shape, TGeoScale *scale)
{
// Create a scaled shape starting from a non-scaled one.
   TGeoShape *new_shape;
   if (shape->IsA() == TGeoScaledShape::Class()) {
      TGeoScaledShape *sshape = (TGeoScaledShape*)shape;
      TGeoScale *old_scale = sshape->GetScale();
      TGeoShape *old_shape = sshape->GetShape();
      scale->SetScale(scale->GetScale()[0]*old_scale->GetScale()[0],
                      scale->GetScale()[1]*old_scale->GetScale()[1],
                      scale->GetScale()[2]*old_scale->GetScale()[2]);
      new_shape = new TGeoScaledShape(name, old_shape, scale);
      return new_shape;
   }   
   new_shape = new TGeoScaledShape(name, shape, scale);
   return new_shape;
}   

//_____________________________________________________________________________
void TGeoScaledShape::SetSegsAndPols(TBuffer3D &buff) const
{
// Fill TBuffer3D structure for segments and polygons.
   fShape->SetSegsAndPols(buff);
}

//_____________________________________________________________________________
Double_t TGeoScaledShape::Safety(const Double_t *point, Bool_t in) const
{
// computes the closest distance from given point to this shape, according
// to option. The matching point on the shape is stored in spoint.
   Double_t local[3];
   fScale->MasterToLocal(point,local);
   Double_t safe = fShape->Safety(local,in);
   safe = fScale->LocalToMaster(safe);
   return safe;
}

//_____________________________________________________________________________
void TGeoScaledShape::SavePrimitive(std::ostream &out, Option_t *option)
{
// Save a primitive as a C++ statement(s) on output stream "out".
   if (TObject::TestBit(kGeoSavePrimitive)) return;
   out << "   // Shape: " << GetName() << " type: " << ClassName() << std::endl;
   if (!fShape || !fScale) {
      out << "##### Invalid shape or scale !. Aborting. #####" << std::endl;
      return;
   }
   fShape->SavePrimitive(out, option);
   TString sname = fShape->GetPointerName();
   const Double_t *sc = fScale->GetScale();
   out << "   // Scale factor:" << std::endl;
   out << "   TGeoScale *pScale = new TGeoScale(\"" << fScale->GetName() 
       << "\"," << sc[0] << "," << sc[1] << "," << sc[2] << ");" << std::endl;
   out << "   TGeoScaledShape *" << GetPointerName() << " = new TGeoScaledShape(\"" 
       << GetName() << "\"," << sname << ", pScale);" << std::endl;
}

//_____________________________________________________________________________
void TGeoScaledShape::SetPoints(Double_t *points) const
{
// Mesh points for scaled shapes.
   Int_t npts = fShape->GetNmeshVertices();
   fShape->SetPoints(points);
   Double_t master[3];
   for (Int_t i=0; i<npts; i++) {
      fScale->LocalToMaster(&points[3*i], master);
      memcpy(&points[3*i], master, 3*sizeof(Double_t));
   }   
}

//_____________________________________________________________________________
void TGeoScaledShape::SetPoints(Float_t *points) const
{
// Mesh points for scaled shapes.
   Int_t npts = fShape->GetNmeshVertices();
   fShape->SetPoints(points);
   Double_t master[3];
   Double_t local[3];
   Int_t index;
   for (Int_t i=0; i<npts; i++) {
      index = 3*i;
      local[0] = points[index];
      local[1] = points[index+1];
      local[2] = points[index+2];
      fScale->LocalToMaster(local, master);
      points[index] = master[0];
      points[index+1] = master[1];
      points[index+2] = master[2];
   }   
}

//_____________________________________________________________________________
void TGeoScaledShape::Contains_v(const Double_t *points, Bool_t *inside, Int_t vecsize) const
{
// Check the inside status for each of the points in the array.
// Input: Array of point coordinates + vector size
// Output: Array of Booleans for the inside of each point
   for (Int_t i=0; i<vecsize; i++) inside[i] = Contains(&points[3*i]);
}

//_____________________________________________________________________________
void TGeoScaledShape::ComputeNormal_v(const Double_t *points, const Double_t *dirs, Double_t *norms, Int_t vecsize)
{
// Compute the normal for an array o points so that norm.dot.dir is positive
// Input: Arrays of point coordinates and directions + vector size
// Output: Array of normal directions
   for (Int_t i=0; i<vecsize; i++) ComputeNormal(&points[3*i], &dirs[3*i], &norms[3*i]);
}

//_____________________________________________________________________________
void TGeoScaledShape::DistFromInside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize, Double_t* step) const
{
// Compute distance from array of input points having directions specisied by dirs. Store output in dists
   for (Int_t i=0; i<vecsize; i++) dists[i] = DistFromInside(&points[3*i], &dirs[3*i], 3, step[i]);
}

//_____________________________________________________________________________
void TGeoScaledShape::DistFromOutside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize, Double_t* step) const
{
// Compute distance from array of input points having directions specisied by dirs. Store output in dists
   for (Int_t i=0; i<vecsize; i++) dists[i] = DistFromOutside(&points[3*i], &dirs[3*i], 3, step[i]);
}

//_____________________________________________________________________________
void TGeoScaledShape::Safety_v(const Double_t *points, const Bool_t *inside, Double_t *safe, Int_t vecsize) const
{
// Compute safe distance from each of the points in the input array.
// Input: Array of point coordinates, array of statuses for these points, size of the arrays
// Output: Safety values
   for (Int_t i=0; i<vecsize; i++) safe[i] = Safety(&points[3*i], inside[i]);
}
 TGeoScaledShape.cxx:1
 TGeoScaledShape.cxx:2
 TGeoScaledShape.cxx:3
 TGeoScaledShape.cxx:4
 TGeoScaledShape.cxx:5
 TGeoScaledShape.cxx:6
 TGeoScaledShape.cxx:7
 TGeoScaledShape.cxx:8
 TGeoScaledShape.cxx:9
 TGeoScaledShape.cxx:10
 TGeoScaledShape.cxx:11
 TGeoScaledShape.cxx:12
 TGeoScaledShape.cxx:13
 TGeoScaledShape.cxx:14
 TGeoScaledShape.cxx:15
 TGeoScaledShape.cxx:16
 TGeoScaledShape.cxx:17
 TGeoScaledShape.cxx:18
 TGeoScaledShape.cxx:19
 TGeoScaledShape.cxx:20
 TGeoScaledShape.cxx:21
 TGeoScaledShape.cxx:22
 TGeoScaledShape.cxx:23
 TGeoScaledShape.cxx:24
 TGeoScaledShape.cxx:25
 TGeoScaledShape.cxx:26
 TGeoScaledShape.cxx:27
 TGeoScaledShape.cxx:28
 TGeoScaledShape.cxx:29
 TGeoScaledShape.cxx:30
 TGeoScaledShape.cxx:31
 TGeoScaledShape.cxx:32
 TGeoScaledShape.cxx:33
 TGeoScaledShape.cxx:34
 TGeoScaledShape.cxx:35
 TGeoScaledShape.cxx:36
 TGeoScaledShape.cxx:37
 TGeoScaledShape.cxx:38
 TGeoScaledShape.cxx:39
 TGeoScaledShape.cxx:40
 TGeoScaledShape.cxx:41
 TGeoScaledShape.cxx:42
 TGeoScaledShape.cxx:43
 TGeoScaledShape.cxx:44
 TGeoScaledShape.cxx:45
 TGeoScaledShape.cxx:46
 TGeoScaledShape.cxx:47
 TGeoScaledShape.cxx:48
 TGeoScaledShape.cxx:49
 TGeoScaledShape.cxx:50
 TGeoScaledShape.cxx:51
 TGeoScaledShape.cxx:52
 TGeoScaledShape.cxx:53
 TGeoScaledShape.cxx:54
 TGeoScaledShape.cxx:55
 TGeoScaledShape.cxx:56
 TGeoScaledShape.cxx:57
 TGeoScaledShape.cxx:58
 TGeoScaledShape.cxx:59
 TGeoScaledShape.cxx:60
 TGeoScaledShape.cxx:61
 TGeoScaledShape.cxx:62
 TGeoScaledShape.cxx:63
 TGeoScaledShape.cxx:64
 TGeoScaledShape.cxx:65
 TGeoScaledShape.cxx:66
 TGeoScaledShape.cxx:67
 TGeoScaledShape.cxx:68
 TGeoScaledShape.cxx:69
 TGeoScaledShape.cxx:70
 TGeoScaledShape.cxx:71
 TGeoScaledShape.cxx:72
 TGeoScaledShape.cxx:73
 TGeoScaledShape.cxx:74
 TGeoScaledShape.cxx:75
 TGeoScaledShape.cxx:76
 TGeoScaledShape.cxx:77
 TGeoScaledShape.cxx:78
 TGeoScaledShape.cxx:79
 TGeoScaledShape.cxx:80
 TGeoScaledShape.cxx:81
 TGeoScaledShape.cxx:82
 TGeoScaledShape.cxx:83
 TGeoScaledShape.cxx:84
 TGeoScaledShape.cxx:85
 TGeoScaledShape.cxx:86
 TGeoScaledShape.cxx:87
 TGeoScaledShape.cxx:88
 TGeoScaledShape.cxx:89
 TGeoScaledShape.cxx:90
 TGeoScaledShape.cxx:91
 TGeoScaledShape.cxx:92
 TGeoScaledShape.cxx:93
 TGeoScaledShape.cxx:94
 TGeoScaledShape.cxx:95
 TGeoScaledShape.cxx:96
 TGeoScaledShape.cxx:97
 TGeoScaledShape.cxx:98
 TGeoScaledShape.cxx:99
 TGeoScaledShape.cxx:100
 TGeoScaledShape.cxx:101
 TGeoScaledShape.cxx:102
 TGeoScaledShape.cxx:103
 TGeoScaledShape.cxx:104
 TGeoScaledShape.cxx:105
 TGeoScaledShape.cxx:106
 TGeoScaledShape.cxx:107
 TGeoScaledShape.cxx:108
 TGeoScaledShape.cxx:109
 TGeoScaledShape.cxx:110
 TGeoScaledShape.cxx:111
 TGeoScaledShape.cxx:112
 TGeoScaledShape.cxx:113
 TGeoScaledShape.cxx:114
 TGeoScaledShape.cxx:115
 TGeoScaledShape.cxx:116
 TGeoScaledShape.cxx:117
 TGeoScaledShape.cxx:118
 TGeoScaledShape.cxx:119
 TGeoScaledShape.cxx:120
 TGeoScaledShape.cxx:121
 TGeoScaledShape.cxx:122
 TGeoScaledShape.cxx:123
 TGeoScaledShape.cxx:124
 TGeoScaledShape.cxx:125
 TGeoScaledShape.cxx:126
 TGeoScaledShape.cxx:127
 TGeoScaledShape.cxx:128
 TGeoScaledShape.cxx:129
 TGeoScaledShape.cxx:130
 TGeoScaledShape.cxx:131
 TGeoScaledShape.cxx:132
 TGeoScaledShape.cxx:133
 TGeoScaledShape.cxx:134
 TGeoScaledShape.cxx:135
 TGeoScaledShape.cxx:136
 TGeoScaledShape.cxx:137
 TGeoScaledShape.cxx:138
 TGeoScaledShape.cxx:139
 TGeoScaledShape.cxx:140
 TGeoScaledShape.cxx:141
 TGeoScaledShape.cxx:142
 TGeoScaledShape.cxx:143
 TGeoScaledShape.cxx:144
 TGeoScaledShape.cxx:145
 TGeoScaledShape.cxx:146
 TGeoScaledShape.cxx:147
 TGeoScaledShape.cxx:148
 TGeoScaledShape.cxx:149
 TGeoScaledShape.cxx:150
 TGeoScaledShape.cxx:151
 TGeoScaledShape.cxx:152
 TGeoScaledShape.cxx:153
 TGeoScaledShape.cxx:154
 TGeoScaledShape.cxx:155
 TGeoScaledShape.cxx:156
 TGeoScaledShape.cxx:157
 TGeoScaledShape.cxx:158
 TGeoScaledShape.cxx:159
 TGeoScaledShape.cxx:160
 TGeoScaledShape.cxx:161
 TGeoScaledShape.cxx:162
 TGeoScaledShape.cxx:163
 TGeoScaledShape.cxx:164
 TGeoScaledShape.cxx:165
 TGeoScaledShape.cxx:166
 TGeoScaledShape.cxx:167
 TGeoScaledShape.cxx:168
 TGeoScaledShape.cxx:169
 TGeoScaledShape.cxx:170
 TGeoScaledShape.cxx:171
 TGeoScaledShape.cxx:172
 TGeoScaledShape.cxx:173
 TGeoScaledShape.cxx:174
 TGeoScaledShape.cxx:175
 TGeoScaledShape.cxx:176
 TGeoScaledShape.cxx:177
 TGeoScaledShape.cxx:178
 TGeoScaledShape.cxx:179
 TGeoScaledShape.cxx:180
 TGeoScaledShape.cxx:181
 TGeoScaledShape.cxx:182
 TGeoScaledShape.cxx:183
 TGeoScaledShape.cxx:184
 TGeoScaledShape.cxx:185
 TGeoScaledShape.cxx:186
 TGeoScaledShape.cxx:187
 TGeoScaledShape.cxx:188
 TGeoScaledShape.cxx:189
 TGeoScaledShape.cxx:190
 TGeoScaledShape.cxx:191
 TGeoScaledShape.cxx:192
 TGeoScaledShape.cxx:193
 TGeoScaledShape.cxx:194
 TGeoScaledShape.cxx:195
 TGeoScaledShape.cxx:196
 TGeoScaledShape.cxx:197
 TGeoScaledShape.cxx:198
 TGeoScaledShape.cxx:199
 TGeoScaledShape.cxx:200
 TGeoScaledShape.cxx:201
 TGeoScaledShape.cxx:202
 TGeoScaledShape.cxx:203
 TGeoScaledShape.cxx:204
 TGeoScaledShape.cxx:205
 TGeoScaledShape.cxx:206
 TGeoScaledShape.cxx:207
 TGeoScaledShape.cxx:208
 TGeoScaledShape.cxx:209
 TGeoScaledShape.cxx:210
 TGeoScaledShape.cxx:211
 TGeoScaledShape.cxx:212
 TGeoScaledShape.cxx:213
 TGeoScaledShape.cxx:214
 TGeoScaledShape.cxx:215
 TGeoScaledShape.cxx:216
 TGeoScaledShape.cxx:217
 TGeoScaledShape.cxx:218
 TGeoScaledShape.cxx:219
 TGeoScaledShape.cxx:220
 TGeoScaledShape.cxx:221
 TGeoScaledShape.cxx:222
 TGeoScaledShape.cxx:223
 TGeoScaledShape.cxx:224
 TGeoScaledShape.cxx:225
 TGeoScaledShape.cxx:226
 TGeoScaledShape.cxx:227
 TGeoScaledShape.cxx:228
 TGeoScaledShape.cxx:229
 TGeoScaledShape.cxx:230
 TGeoScaledShape.cxx:231
 TGeoScaledShape.cxx:232
 TGeoScaledShape.cxx:233
 TGeoScaledShape.cxx:234
 TGeoScaledShape.cxx:235
 TGeoScaledShape.cxx:236
 TGeoScaledShape.cxx:237
 TGeoScaledShape.cxx:238
 TGeoScaledShape.cxx:239
 TGeoScaledShape.cxx:240
 TGeoScaledShape.cxx:241
 TGeoScaledShape.cxx:242
 TGeoScaledShape.cxx:243
 TGeoScaledShape.cxx:244
 TGeoScaledShape.cxx:245
 TGeoScaledShape.cxx:246
 TGeoScaledShape.cxx:247
 TGeoScaledShape.cxx:248
 TGeoScaledShape.cxx:249
 TGeoScaledShape.cxx:250
 TGeoScaledShape.cxx:251
 TGeoScaledShape.cxx:252
 TGeoScaledShape.cxx:253
 TGeoScaledShape.cxx:254
 TGeoScaledShape.cxx:255
 TGeoScaledShape.cxx:256
 TGeoScaledShape.cxx:257
 TGeoScaledShape.cxx:258
 TGeoScaledShape.cxx:259
 TGeoScaledShape.cxx:260
 TGeoScaledShape.cxx:261
 TGeoScaledShape.cxx:262
 TGeoScaledShape.cxx:263
 TGeoScaledShape.cxx:264
 TGeoScaledShape.cxx:265
 TGeoScaledShape.cxx:266
 TGeoScaledShape.cxx:267
 TGeoScaledShape.cxx:268
 TGeoScaledShape.cxx:269
 TGeoScaledShape.cxx:270
 TGeoScaledShape.cxx:271
 TGeoScaledShape.cxx:272
 TGeoScaledShape.cxx:273
 TGeoScaledShape.cxx:274
 TGeoScaledShape.cxx:275
 TGeoScaledShape.cxx:276
 TGeoScaledShape.cxx:277
 TGeoScaledShape.cxx:278
 TGeoScaledShape.cxx:279
 TGeoScaledShape.cxx:280
 TGeoScaledShape.cxx:281
 TGeoScaledShape.cxx:282
 TGeoScaledShape.cxx:283
 TGeoScaledShape.cxx:284
 TGeoScaledShape.cxx:285
 TGeoScaledShape.cxx:286
 TGeoScaledShape.cxx:287
 TGeoScaledShape.cxx:288
 TGeoScaledShape.cxx:289
 TGeoScaledShape.cxx:290
 TGeoScaledShape.cxx:291
 TGeoScaledShape.cxx:292
 TGeoScaledShape.cxx:293
 TGeoScaledShape.cxx:294
 TGeoScaledShape.cxx:295
 TGeoScaledShape.cxx:296
 TGeoScaledShape.cxx:297
 TGeoScaledShape.cxx:298
 TGeoScaledShape.cxx:299
 TGeoScaledShape.cxx:300
 TGeoScaledShape.cxx:301
 TGeoScaledShape.cxx:302
 TGeoScaledShape.cxx:303
 TGeoScaledShape.cxx:304
 TGeoScaledShape.cxx:305
 TGeoScaledShape.cxx:306
 TGeoScaledShape.cxx:307
 TGeoScaledShape.cxx:308
 TGeoScaledShape.cxx:309
 TGeoScaledShape.cxx:310
 TGeoScaledShape.cxx:311
 TGeoScaledShape.cxx:312
 TGeoScaledShape.cxx:313
 TGeoScaledShape.cxx:314
 TGeoScaledShape.cxx:315
 TGeoScaledShape.cxx:316
 TGeoScaledShape.cxx:317
 TGeoScaledShape.cxx:318
 TGeoScaledShape.cxx:319
 TGeoScaledShape.cxx:320
 TGeoScaledShape.cxx:321
 TGeoScaledShape.cxx:322
 TGeoScaledShape.cxx:323
 TGeoScaledShape.cxx:324
 TGeoScaledShape.cxx:325
 TGeoScaledShape.cxx:326
 TGeoScaledShape.cxx:327
 TGeoScaledShape.cxx:328
 TGeoScaledShape.cxx:329
 TGeoScaledShape.cxx:330
 TGeoScaledShape.cxx:331
 TGeoScaledShape.cxx:332
 TGeoScaledShape.cxx:333
 TGeoScaledShape.cxx:334
 TGeoScaledShape.cxx:335
 TGeoScaledShape.cxx:336
 TGeoScaledShape.cxx:337
 TGeoScaledShape.cxx:338
 TGeoScaledShape.cxx:339
 TGeoScaledShape.cxx:340
 TGeoScaledShape.cxx:341
 TGeoScaledShape.cxx:342
 TGeoScaledShape.cxx:343
 TGeoScaledShape.cxx:344
 TGeoScaledShape.cxx:345
 TGeoScaledShape.cxx:346
 TGeoScaledShape.cxx:347
 TGeoScaledShape.cxx:348
 TGeoScaledShape.cxx:349
 TGeoScaledShape.cxx:350
 TGeoScaledShape.cxx:351
 TGeoScaledShape.cxx:352
 TGeoScaledShape.cxx:353
 TGeoScaledShape.cxx:354
 TGeoScaledShape.cxx:355
 TGeoScaledShape.cxx:356
 TGeoScaledShape.cxx:357
 TGeoScaledShape.cxx:358
 TGeoScaledShape.cxx:359
 TGeoScaledShape.cxx:360
 TGeoScaledShape.cxx:361
 TGeoScaledShape.cxx:362
 TGeoScaledShape.cxx:363
 TGeoScaledShape.cxx:364
 TGeoScaledShape.cxx:365
 TGeoScaledShape.cxx:366
 TGeoScaledShape.cxx:367
 TGeoScaledShape.cxx:368
 TGeoScaledShape.cxx:369
 TGeoScaledShape.cxx:370
 TGeoScaledShape.cxx:371
 TGeoScaledShape.cxx:372
 TGeoScaledShape.cxx:373
 TGeoScaledShape.cxx:374
 TGeoScaledShape.cxx:375
 TGeoScaledShape.cxx:376
 TGeoScaledShape.cxx:377
 TGeoScaledShape.cxx:378
 TGeoScaledShape.cxx:379
 TGeoScaledShape.cxx:380
 TGeoScaledShape.cxx:381
 TGeoScaledShape.cxx:382
 TGeoScaledShape.cxx:383
 TGeoScaledShape.cxx:384
 TGeoScaledShape.cxx:385
 TGeoScaledShape.cxx:386
 TGeoScaledShape.cxx:387
 TGeoScaledShape.cxx:388