[Gate-users] Problem in Visualization of scanner geometry
Ayush Maheshwari
mayush1903 at gmail.com
Tue Mar 3 10:56:24 CET 2015
Hey,
I am using the following code to visualize the scanner geometry. But,
the OGLSX screen coverts from hollow world cube to white once I use
"forceWireframe" command.
I suspect that there is some problem in the material database. Because
when I comment the "setMaterial" command, tough the screen doesn't
turns white but also displays nothing!.
Can anybody please suggest what can be the issue here?
/vis/open OGLSX
/vis/viewer/reset
/vis/viewer/set/viewpointThetaPhi 60 60
/vis/viewer/zoom 1
/vis/viewer/set/style surface
/vis/drawVolume
/tracking/storeTrajectory 1
/vis/scene/endOfEventAction accumulate
/vis/viewer/update
/vis/verbose 2
/gate/geometry/setMaterialDatabase ~/GATE/gate_v7.0/GateMaterials.db
/gate/world/geometry/setXLength 50. cm
/gate/world/geometry/setYLength 50. cm
/gate/world/geometry/setZLength 50. cm
/gate/world/setMaterial Air
/gate/world/daughters/name Volume_Name
/gate/world/daughters/insert box
/gate/Volume_Name/geometry/setXLength 1 cm
/gate/Volume_Name/geometry/setYLength 1 cm
/gate/Volume_Name/geometry/setZLength 1 cm
/gate/Volume_Name/vis/forceWireframe
/gate/Volume_Name/vis/setColor white
Ayush Maheshwari
Dept. of Engineering Design
Indian Institute of Technology Madras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen_1.png
Type: image/png
Size: 19827 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20150303/57fe97ba/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen_2.png
Type: image/png
Size: 21367 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20150303/57fe97ba/attachment-0003.png>
More information about the Gate-users
mailing list