Message: Re: Local to Global... again Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Local to Global... again 

Keywords: geometry local to global G4VPhysicalVolume G4LogicalVolume G4Navigator
Forum: Geometry
Re: None Local to Global... again (Nathaniel Tagg)
Date: 31 Mar, 2007
From: John Allison <John Allison>

As I understand it, you have a requirement to know the global transformation of a volume. From this you can get the position and orientation. As you have noticed, starting purely from a pointer to the physical volume, this is not possible in general, since during navigation, the transformation is computed on the fly according to the volume's position in the geometry hierarchy. A given physical volume can be in more than one position.

However, I think visualisation can help. The transformation of the displayed physical volume is known. If it appears more than once in the geometry hierarchy it appears more than once in the viewer, so there is a unique correspondence. I have some working code that dumps the transformation (and other properties) of picked volumes (by clicking on the display). At this moment, it is only implemented in Open Inventor, but I hope to have it in OpenGL in the next few weeks in time for the next release. If this is any help to you I could let you have the development code.

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Local to Global... again   (Nathaniel Tagg - 02 Apr, 2007)
1 None: Re: Local to Global... again   (Vladimir IVANTCHENKO - 02 Apr, 2007)
1 None: Re: Local to Global... again   (Nathaniel Tagg - 02 Apr, 2007)
... 1 Message(s)
2 Feedback: Re: Local to Global... again   (Gabriele Cosmo - 05 Apr, 2007)
 Add Message Add Message
to: "Re: Local to Global... again"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]