Re: TGeoCompositeShape

From: Andrei Gheata <Andrei.Gheata_at_cern.ch>
Date: Mon, 26 Apr 2010 09:37:41 +0200


Hi Akira,

The Boolean expression is evaluated from left to right and there is no precedence * (intersection) against - (subtraction) as one may suppose. just add extra paranthesys around the * operands:   box - (box*(...))

You may still get some OpenGL artefacts in the picture, but the raytraced image is OK.

Regards,
Andrei

OKUMURA, Akira wrote:
> Hello ROOTers,
>
> I am trying to create a composite shape using TGeoCompositeShape with
> ROOT 5.26.00b on Mac OS X Leopard. The attached are a macro, and screen
> captures of its resultant wireframe and OpenGL canvases.
>
> The wireframe seems that I wrote geometries properly as I expected. I
> put a box of which all 12 edges are chamfered off.
>
> However, when I look the geometry in OpenGL, the image is collapsed. I
> suppose this is due to my wrong usage of boolean operations in a
> TGeoCompositeShape. But I cannot figure out which operation is wrong.
>
> Could anyone kindly point out which part of the macro I should modify,
> please?
>
> $ root
> root [0] .x Chamfer.C(30, 100, 50, 5)
>
> Regards,
>
> OKUMURA, Akira oxon_at_astro.isas.jaxa.jp
> Institute of Space and Astronautical Science (ISAS/JAXA)
> Yoshinodai 3-1-1, Chuo, Sagamihara, Kanagawa 252-5210
> TEL/FAX +81 42-759-8510/8546
> Skype : okumura.akira
>
> ------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>

bgo.gif
Received on Mon Apr 26 2010 - 09:37:45 CEST

This archive was generated by hypermail 2.2.0 : Mon Apr 26 2010 - 17:50:02 CEST