Import Geant4 10.7.0 source tree
This commit is contained in:
@@ -15,7 +15,13 @@ commit in the repository !
|
||||
----------------------------------------------------------
|
||||
* Reverse chronological order (last date on top), please *
|
||||
----------------------------------------------------------
|
||||
May 28, 2019 B.Morgan (geommng-V10-06-04)
|
||||
November 8, 2020 E.Tcherniaev (geommng-V10-06-06)
|
||||
- Bug fix in calculation of normal in G4UAdapter::DistanceToOut()
|
||||
|
||||
October 28, 2020 Ben Morgan (geommng-V10-06-05)
|
||||
- Remove include of obsolete CMake module
|
||||
|
||||
May 28, 2020 B.Morgan (geommng-V10-06-04)
|
||||
- When using new CMake build, add location of generated G4GeomConfig.hh
|
||||
header to public include directories of G4geometrymng module.
|
||||
|
||||
|
||||
@@ -366,19 +366,12 @@ DistanceToOut(const G4ThreeVector& pt, const G4ThreeVector& d,
|
||||
U3Vector v(d.x(), d.y(), d.z());
|
||||
|
||||
G4double dist = UnplacedVolume_t::DistanceToOut(p, v, kInfinity);
|
||||
if(calcNorm) // *norm=n, but only after calcNorm check and if convex volume
|
||||
if(calcNorm)
|
||||
{
|
||||
if (UnplacedVolume_t::IsConvex())
|
||||
{
|
||||
U3Vector n, hitpoint = p + dist * v;
|
||||
UnplacedVolume_t::Normal(hitpoint, n);
|
||||
*validNorm = true;
|
||||
norm->set(n.x(), n.y(), n.z());
|
||||
}
|
||||
else
|
||||
{
|
||||
*validNorm = false;
|
||||
}
|
||||
*validNorm = UnplacedVolume_t::IsConvex();
|
||||
U3Vector n, hitpoint = p + dist * v;
|
||||
UnplacedVolume_t::Normal(hitpoint, n);
|
||||
norm->set(n.x(), n.y(), n.z());
|
||||
}
|
||||
|
||||
// Apply Geant4 distance conventions
|
||||
|
||||
@@ -125,8 +125,6 @@ geant4_define_module(NAME G4geometrymng
|
||||
|
||||
# List any source specific properties here
|
||||
# For new system, must explicitly add path for generated header
|
||||
if(GEANT4_USE_NEW_CMAKE)
|
||||
geant4_module_include_directories(G4geometrymng
|
||||
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>
|
||||
)
|
||||
endif()
|
||||
geant4_module_include_directories(G4geometrymng
|
||||
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>
|
||||
)
|
||||
|
||||
@@ -218,7 +218,7 @@ G4ReflectedSolid::CalculateExtent( const EAxis pAxis,
|
||||
// Separation of transformations. Calculation of the extent is done
|
||||
// in a reflection of the global space. In such way, the voxel is
|
||||
// reflected, but the solid is transformed just by G4AffineTransform.
|
||||
// It allows to use CalculateExtent() of the solid.
|
||||
// It allows one to use CalculateExtent() of the solid.
|
||||
|
||||
// Reflect voxel limits in Z
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user