Re: A question about TGeo volumes

From: Andrei Gheata <Andrei.Gheata_at_cern.ch>
Date: Fri, 4 Jul 2008 11:49:47 +0200


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 - 11:49:53 CEST

This archive was generated by hypermail 2.2.0 : Fri Jul 04 2008 - 17:50:01 CEST