Ignore:
Timestamp:
Feb 16, 2009, 10:14:30 AM (16 years ago)
Author:
garnier
Message:

en test de gl2ps. Problemes de libraries

Location:
trunk/source/geometry/solids/specific/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/geometry/solids/specific/src/G4ExtrudedSolid.cc

    r850 r921  
    2525//
    2626//
    27 // $Id: G4ExtrudedSolid.cc,v 1.17 2008/08/12 08:54:57 gcosmo Exp $
    28 // GEANT4 tag $Name: HEAD $
     27// $Id: G4ExtrudedSolid.cc,v 1.18 2008/10/30 11:47:45 ivana Exp $
     28// GEANT4 tag $Name: geant4-09-02-cand-01 $
    2929//
    3030//
     
    562562
    563563    good = AddFacet( new G4QuadrangularFacet( GetVertex(fNz-1, 3), GetVertex(fNz-1, 2),
    564                                               GetVertex(fNz-1, 1), GetVertex(1, 0),
     564                                              GetVertex(fNz-1, 1), GetVertex(fNz-1, 0),
    565565                                              ABSOLUTE) );
    566566    if ( ! good ) { return false; }
  • trunk/source/geometry/solids/specific/src/G4TriangularFacet.cc

    r850 r921  
    2525// ********************************************************************
    2626//
    27 // $Id: G4TriangularFacet.cc,v 1.10 2007/12/10 16:30:35 gunter Exp $
    28 // GEANT4 tag $Name: HEAD $
     27// $Id: G4TriangularFacet.cc,v 1.12 2008/11/13 08:25:07 gcosmo Exp $
     28// GEANT4 tag $Name: geant4-09-02-cand-01 $
    2929//
    3030// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     
    7575  : G4VFacet()
    7676{
    77   if (!tGeomAlg) { tGeomAlg = G4TessellatedGeometryAlgorithms::GetInstance(); }
     77  tGeomAlg  = G4TessellatedGeometryAlgorithms::GetInstance();
    7878  P0        = Pt0;
    7979  nVertices = 3;
     
    710710G4ThreeVector G4TriangularFacet::GetPointOnFace() const
    711711{
    712   G4double lambda0 = CLHEP::RandFlat::shoot(0.,1.);
    713   G4double lambda1 = CLHEP::RandFlat::shoot(0.,lambda0);
    714 
     712  G4double alpha = CLHEP::RandFlat::shoot(0.,1.);
     713  G4double beta = CLHEP::RandFlat::shoot(0.,1);
     714  G4double lambda1=alpha*beta;
     715  G4double lambda0=alpha-lambda1;
     716 
    715717  return (P0 + lambda0*E[0] + lambda1*E[1]);
    716718}
  • trunk/source/geometry/solids/specific/src/G4VFacet.cc

    r850 r921  
    2525// ********************************************************************
    2626//
    27 // $Id: G4VFacet.cc,v 1.6 2007/08/23 14:45:03 gcosmo Exp $
    28 // GEANT4 tag $Name: HEAD $
     27// $Id: G4VFacet.cc,v 1.7 2008/09/12 07:16:22 gcosmo Exp $
     28// GEANT4 tag $Name: geant4-09-02-cand-01 $
    2929//
    3030// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     
    9696    {
    9797      coincident = (GetVertex(i)-right.GetVertex(j)).mag2() < tolerance;
    98     } while (!coincident && j++ < nVertices);
    99   } while (coincident && i++ < nVertices);
     98    } while (!coincident && ++j < nVertices);
     99  } while (coincident && ++i < nVertices);
    100100 
    101101  return coincident;
     
    117117std::ostream &G4VFacet::StreamInfo(std::ostream &os) const
    118118{
    119   os <<G4endl;
    120   os <<"***********************************************************************"
    121      <<G4endl;
    122   os <<"FACET TYPE       = " <<geometryType <<G4endl;
    123   os <<"ABSOLUTE VECTORS = " <<G4endl;
    124   os <<"P0               = " <<P0 <<G4endl;
     119  os << G4endl;
     120  os << "*********************************************************************"
     121     << G4endl;
     122  os << "FACET TYPE       = " << geometryType << G4endl;
     123  os << "ABSOLUTE VECTORS = " << G4endl;
     124  os << "P0               = " << P0 << G4endl;
    125125  for (G4ThreeVectorList::const_iterator it=P.begin(); it!=P.end(); it++)
    126     os <<"P[" <<it-P.begin()+1 <<"]      = " <<*it <<G4endl;
    127    
    128   os <<"RELATIVE VECTORS = " <<G4endl;
     126    { os << "P[" << it-P.begin()+1 << "]      = " << *it << G4endl; }
     127
     128  os << "RELATIVE VECTORS = " << G4endl;
    129129  for (G4ThreeVectorList::const_iterator it=E.begin(); it!=E.end(); it++)
    130     os <<"E[" <<it-E.begin()+1 <<"]      = " <<*it <<G4endl;
    131  
    132   os <<"***********************************************************************"
    133      <<G4endl;
     130    { os << "E[" << it-E.begin()+1 << "]      = " << *it << G4endl; }
     131
     132  os << "*********************************************************************"
     133     << G4endl;
    134134 
    135135  return os;
Note: See TracChangeset for help on using the changeset viewer.