-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
This folder contains demos of all CSG solids that can be handled by Geant4 text geometry description. A shape, sphere for example, is defined in [sphere.tg](sphere.tg). To visualize it, please run | ||
|
||
```sh | ||
G4VIS_DEFAULT_DRIVER=HepRepFile gears sphere.mac | ||
``` | ||
|
||
The environment variable `G4VIS_DEFAULT_DRIVER` can be used to select a visualization driver other than the default one. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/geometry/source hype.tg | ||
|
||
/control/execute vis.mac | ||
|
||
/control/shell if [ -f G4Data0.heprep ]; then mv G4Data0.heprep hype.heprep; fi | ||
/control/shell if [ -f g4_00.wrl ]; then mv g4_00.wrl hype.wrl; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
:volu hall BOX 50 50 50 G4_Galactic | ||
:vis hall OFF | ||
|
||
:rotm r000 0 0 0 | ||
|
||
// Inner radius , Outer radius , Inner stereo angle , outer stereo angle , Half length in Z | ||
:volu hype HYPE 10 12 25 35 9 G4_AIR | ||
:color hype 0.4 0.3 0.8 | ||
:place hype 1 hall r000 0 0 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/geometry/source sphere.tg | ||
|
||
/control/execute vis.mac | ||
|
||
/control/shell if [ -f G4Data0.heprep ]; then mv G4Data0.heprep sphere.heprep; fi | ||
/control/shell if [ -f g4_00.wrl ]; then mv g4_00.wrl sphere.wrl; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
:volu hall BOX 50 50 50 G4_Galactic | ||
:vis hall OFF | ||
|
||
:rotm r000 0 0 0 | ||
|
||
// inner, outer radius, starting, delta phi, starting, delta theta of the segment | ||
:volu sphere SPHERE 20 40 30 60 45 60 G4_AIR | ||
:color sphere 0.9 0 0 | ||
:place sphere 1 hall r000 0 0 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/run/initialize | ||
|
||
/geometry/test/run | ||
|
||
/vis/open | ||
/vis/drawVolume | ||
|
||
/vis/scene/add/axes 0 0 0 50 mm auto false | ||
/vis/viewer/set/background white | ||
/vis/viewer/set/viewpointThetaPhi 60 120 | ||
/vis/viewer/flush |