Import Geant4 1.1.0 source tree
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4LogicalVolumeModel.cc,v 1.1.6.1 1999/12/07 20:54:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4LogicalVolumeModel.cc,v 1.4 2000/01/17 10:34:48 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// John Allison 26th July 1999.
|
||||
@@ -18,7 +18,7 @@
|
||||
#include "G4PVPlacement.hh"
|
||||
#include "G4ModelingParameters.hh"
|
||||
#include "G4VGraphicsScene.hh"
|
||||
////////////////#include "G4DrawVoxels.hh"
|
||||
#include "G4DrawVoxels.hh"
|
||||
|
||||
G4LogicalVolumeModel::G4LogicalVolumeModel
|
||||
(G4LogicalVolume* pLV,
|
||||
@@ -63,23 +63,21 @@ void G4LogicalVolumeModel::DescribeYourselfTo
|
||||
G4ModelingParameters nonCulledMP (*fpMP);
|
||||
nonCulledMP.SetCulling (false);
|
||||
fpMP = &nonCulledMP;
|
||||
|
||||
G4PhysicalVolumeModel::DescribeYourselfTo (sceneHandler);
|
||||
|
||||
fpMP = tpMP;
|
||||
|
||||
/*****************************
|
||||
// Add Voxels.
|
||||
G4DrawVoxels dv;
|
||||
G4PlacedPolyhedronList* pPPL =
|
||||
dv.CreatePlacedPolyhedra (fpTopPV -> GetLogicalVolume ());
|
||||
for (int i = 0; i < pPPL -> entries (); i++) {
|
||||
const G4Transform3D& transform = (*pPPL)[i].GetTransform ();
|
||||
const G4Polyhedron& polyhedron = (*pPPL)[i].GetPolyhedron ();
|
||||
sceneHandler.BeginPrimitives (transform);
|
||||
sceneHandler.AddPrimitive (polyhedron);
|
||||
sceneHandler.EndPrimitives ();
|
||||
if (fpTopPV -> GetLogicalVolume () -> GetVoxelHeader ()) {
|
||||
// Add Voxels.
|
||||
G4DrawVoxels dv;
|
||||
G4PlacedPolyhedronList* pPPL =
|
||||
dv.CreatePlacedPolyhedra (fpTopPV -> GetLogicalVolume ());
|
||||
for (int i = 0; i < pPPL -> entries (); i++) {
|
||||
const G4Transform3D& transform = (*pPPL)[i].GetTransform ();
|
||||
const G4Polyhedron& polyhedron = (*pPPL)[i].GetPolyhedron ();
|
||||
sceneHandler.BeginPrimitives (transform);
|
||||
sceneHandler.AddPrimitive (polyhedron);
|
||||
sceneHandler.EndPrimitives ();
|
||||
}
|
||||
delete pPPL;
|
||||
}
|
||||
delete pPPL;
|
||||
*********************************/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user