[Gate-users] see axes in world!

Jérôme Suhard jerome at suhard.fr
Mon Apr 29 09:24:38 CEST 2013


Hi,

/vis/scene/add/axes 0 0 0 30 cm should do the trick.

Best regards,

2013/4/29 Hermann Fuchs <hermann.fuchs at meduniwien.ac.at>

> **
> Hello
>
> The command does not work any more.
> Here is a workaround
>
> # axes settings
> /control/alias axesWidth 2
> /control/alias axesLength 50
> /control/alias axesLengthHalf 25
>
> # x-axis
> /gate/world/daughters/name xBox
> /gate/world/daughters/insert box
> /gate/xBox/setMaterial                            Air
> /gate/xBox/vis/forceWireframe
> /gate/xBox/vis/setColor red
> /gate/xBox/geometry/setXLength {axesLength} cm
> /gate/xBox/geometry/setYLength {axesWidth} cm
> /gate/xBox/geometry/setZLength {axesWidth} cm
> /gate/xBox/placement/setTranslation -{axesLengthHalf} 0 0 cm
>
>
> # y-axis
> /gate/world/daughters/name yBox
> /gate/world/daughters/insert box
> /gate/yBox/setMaterial                            Air
> /gate/yBox/vis/forceWireframe
> /gate/yBox/vis/setColor green
> /gate/yBox/geometry/setXLength {axesWidth} cm
> /gate/yBox/geometry/setYLength {axesLength} cm
> /gate/yBox/geometry/setZLength {axesWidth} cm
> /gate/yBox/placement/setTranslation 0 -{axesLengthHalf} 0 cm
>
>
> # z-axis
> /gate/world/daughters/name zBox
> /gate/world/daughters/insert box
> /gate/zBox/setMaterial                            Air
> /gate/zBox/vis/forceWireframe
> /gate/zBox/vis/setColor blue
> /gate/zBox/geometry/setXLength {axesWidth} cm
> /gate/zBox/geometry/setYLength {axesWidth} cm
> /gate/zBox/geometry/setZLength {axesLength} cm
> /gate/zBox/placement/setTranslation 0 0 -{axesLengthHalf} cm
>
> Cheers,
> Hermann
>
> On Fri, 2013-04-26 at 12:11 -0700, Ba Es wrote:
>
> Hello GATE user
>
>  In user guide v6.2, for inserting x, y  & z axes in world, write this
> command:
>
>  /gate/world/daughters/insert 3 axes
>
>
> http://wiki.opengatecollaboration.org/index.php/Users_Guide_V6.2:Defining_a_geometry
>
>  but when i write this command,  can't see any thing in my world!!
>
>  anyone know how can i see axes in word?
>
>
>
>  Thank you
>
>  Babak
>
>  _______________________________________________
> Gate-users mailing listGate-users at lists.opengatecollaboration.orghttp://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>
>
>   --
> -------------
> DI Hermann Fuchs
> Christian Doppler Laboratory for Medical Radiation Research for Radiation Oncology
> Department of Radiation Oncology
> Medical University Vienna
> Währinger Gürtel 18-20
> A-1090 Wien
>
> Tel.  + 43 / 1 / 40 400 7271
> Mail. hermann.fuchs at meduniwien.ac.at
>
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>



-- 
Jérôme Suhard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20130429/7aed3385/attachment.html>


More information about the Gate-users mailing list