- Timestamp:
- Jun 18, 2010, 11:42:07 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/geometry/solids/specific/src/G4TessellatedSolid.cc
r1228 r1315 25 25 // ******************************************************************** 26 26 // 27 // $Id: G4TessellatedSolid.cc,v 1. 19 2009/04/27 08:06:27 gcosmoExp $28 // GEANT4 tag $Name: geant4-09-0 3$27 // $Id: G4TessellatedSolid.cc,v 1.20 2010/04/28 16:21:21 flei Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 29 // 30 30 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% … … 42 42 // CHANGE HISTORY 43 43 // -------------- 44 // 45 // 12 April 2010 P R Truscott, QinetiQ, bug fixes to treat optical 46 // photon transport, in particular internal reflection 47 // at surface. 44 48 // 45 49 // 14 November 2007 P R Truscott, QinetiQ & Stan Seibert, U Texas … … 670 674 if ((*f)->Intersect(p,v,false,dist,distFromSurface,normal)) 671 675 { 676 // 677 // 678 // Set minDist to the new distance to current facet if distFromSurface is in 679 // positive direction and point is not at surface. If the point is within 680 // 0.5*kCarTolerance of the surface, then force distance to be zero and 681 // leave member function immediately (for efficiency), as proposed by & credit 682 // to Akira Okumura. 683 // 672 684 if (distFromSurface > 0.5*kCarTolerance && dist >= 0.0 && dist < minDist) 673 685 { 674 686 minDist = dist; 687 } 688 else if (-0.5*kCarTolerance <= dist && dist <= 0.5*kCarTolerance) 689 { 690 return 0.0; 675 691 } 676 692 }
Note: See TracChangeset
for help on using the changeset viewer.