Import Geant4 11.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2021-12-10 14:46:44 +01:00
committed by Ben Morgan
parent 6399a014b6
commit 80e2389dd8
3932 changed files with 202519 additions and 246221 deletions
@@ -100,7 +100,8 @@ G4ViewParameters::G4ViewParameters ():
fDisplayLightFrontT(0.),
fDisplayLightFrontRed(0.),
fDisplayLightFrontGreen(1.),
fDisplayLightFrontBlue(0.)
fDisplayLightFrontBlue(0.),
fSpecialMeshRendering(false)
{
// Pick up default no of sides from G4Polyhedron.
// Note that this parameter is variously called:
@@ -451,6 +452,18 @@ G4String G4ViewParameters::DrawingStyleCommands() const
oss << "\n/vis/viewer/set/numberOfCloudPoints "
<< fNumberOfCloudPoints;
oss << "\n/vis/viewer/set/specialMeshRendering ";
if (fSpecialMeshRendering) {
oss << "true";
} else {
oss << "false";
}
oss << "\n/vis/viewer/set/specialMeshVolumes";
for (const auto& volume : fSpecialMeshVolumes) {
oss << ' ' << volume.GetName() << ' ' << volume.GetCopyNo();
}
oss << std::endl;
return oss.str();