Re: A question about TGeo volumes

From: Andrei Gheata <Andrei.Gheata_at_cern.ch>
Date: Fri, 4 Jul 2008 17:34:40 +0200


Hi Alberto,

This is because you see only the leaves (last nodes on a volume branch). Before you draw a volume, you have to call:

volume->SetVisContainers() (by default- SetVisLeaves()) You can still make the volume transparent to get nicer effect.

Cheers,
Andrei

Alberto Pulvirenti wrote:
> Hello,
>
> then another question: when I try to draw those volumes, I don't manage
> to find a visLevel value which allws me to view both, in order to check
> appropriately that they are properly placed. Speaking the truth, this
> composite volume is then a node of another volume. I tried to give a
> transparency to the container, in order to see the content, but it makes
> the whole container transparend and I see what is behind it, but not
> what is INSIDE it. How can I do?
>
> Thanks, best regards
>
> Alberto
>
> Andrei Gheata wrote:

>> Hi Alberto,
>>
>> Please see below:
>>
>> Alberto Pulvirenti wrote:
>>> Dear ROOTers,
>>>
>>> I hope that someone can help me in a subtle question about building 
>>> TGeo volumes.
>>> My question is the following: suppose that I have to implement a box 
>>> of a given material which is surrounded by another box of another 
>>> material.
>>> My first idea would be to build a composite shape given by the 
>>> subtraction of a box with the dimension of the "outer" one, minus the 
>>> shape of the inner one, and then to insert inside it (in the 
>>> remaining empty space), the inner box.
>>
>> No need to do this.
>>
>>> Do I gain the same result if I create the outer box as a "full" box 
>>> and then I insert the inner box as a node of this one?
>>
>> Yes, this is what a node means: the space filled by the node in a 
>> volume always belongs to the node.
>>
>>>
>>> Thanks, best regards
>>>
>>>    Alberto
>>>
>> Cheers,
>> Andrei

>
Received on Fri Jul 04 2008 - 17:34:47 CEST

This archive was generated by hypermail 2.2.0 : Sat Jul 05 2008 - 11:50:02 CEST