[Gate-users] Viewing Geometry in Gate

Victor Cheung racevictor at gmail.com
Mon Aug 13 03:42:25 CEST 2012


Hi Pat,

You can use "/gate/geometry/rebuild" to update the geometry in OpenGL.

Best,
Victor

On Sun, Aug 12, 2012 at 5:35 PM, P. T. <ptpphysics at gmail.com> wrote:

> Dear All
>
> When I ran following simple macro file:
> /gate/geometry/setMaterialDatabase GateMaterials.db
> /vis/open OGLSX
> /vis/viewer/reset
> /vis/viewer/set/viewpointThetaPhi 45 45
> /vis/viewer/zoom 1
> /vis/viewer/set/style surface
> /vis/drawVolume
> /tracking/storeTrajectory 1
> /vis/scene/endOfEventAction accumulate 100000
> /vis/viewer/update
> # W O R L D
> /gate/world/geometry/setXLength 40. cm
> /gate/world/geometry/setYLength 40. cm
> /gate/world/geometry/setZLength 40. cm
> #  S Y S T E M
> /gate/world/daughters/name cylindricalPET
> /gate/world/daughters/insert cylinder
> /gate/cylindricalPET/setMaterial Water
> /gate/cylindricalPET/geometry/setRmax 100 mm
> /gate/cylindricalPET/geometry/setRmin 86 mm
> /gate/cylindricalPET/geometry/setHeight 18 mm
> /gate/cylindricalPET/vis/forceWireframe
> /vis/viewer/zoom 3
>
> World geometry only is shown in OpenGL.
> Totally, I couldn't view my custom geometry.
> Pls. Help Me
> Thanks
>
> Best regards
> Pat
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>


More information about the Gate-users mailing list