Import Geant4 0.1.0 source tree
This commit is contained in:
@@ -98,7 +98,7 @@ G4SurfaceBoundary* G4SurfaceBoundary::Project(const G4Transform3D& tr)
|
||||
return lof;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
void G4SurfaceBoundary::IntersectRay2D(const G4Ray& ray,
|
||||
G4CurveRayIntersection& is)
|
||||
{
|
||||
@@ -116,6 +116,26 @@ void G4SurfaceBoundary::IntersectRay2D(const G4Ray& ray,
|
||||
|
||||
lastIntersection= is;
|
||||
}
|
||||
*/
|
||||
|
||||
G4int G4SurfaceBoundary::IntersectRay2D(const G4Ray& ray)
|
||||
{
|
||||
G4int nbinter = 0, temp = 0;
|
||||
|
||||
for (G4int i=0; i < bounds.entries(); i++)
|
||||
{
|
||||
G4Curve& c = *bounds.at(i);
|
||||
temp = c.IntersectRay2D(ray);
|
||||
|
||||
// test if the point is on the surface boundary
|
||||
if( temp==999 )
|
||||
return 1;
|
||||
else
|
||||
nbinter +=temp;
|
||||
}
|
||||
|
||||
return nbinter;
|
||||
}
|
||||
|
||||
|
||||
G4bool G4SurfaceBoundary::Tangent(G4CurvePoint& cp, G4Vector3D& v)
|
||||
|
||||
Reference in New Issue
Block a user