The source project of this merge request has been removed.
Added extent() and contains() methods. Completed implementation of volume calculation for Boolean shapes.
-
A new method
extent()
that finds the bounding box of the shape has been implemented for all classes derived fromGeoShape
. The calculations have been verified by comparison with the corresponding calculations in Geant4. -
A protected method
diskExtent()
has been added intoGeoShape
. This method is used or calculation of the extend of a tube, cone, polycone and torus. -
Added new method
contains(x,y,z)
. This method returnstrue
if the point belongs to the shape,false
otherwise. -
Implemented
GeoShape::volume()
that calculates volume using MC method. It's allows to calculate volume of the Boolean shapes with good precision.
Edited by Evgueni Tcherniaev