Re: TH3F with TViewerOpenGL

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Tue, 13 Dec 2005 10:16:30 +0100 (CET)

Hi,

 The new facility "GL in pad" allows to visualize already lego and surfaces, using GL, in a TPad. This work is under development and the iso-surfaces are on the list.

Cheers, Olivier Couet

On Mon, 12 Dec 2005, Ahmet Ayan wrote:

> Hi,
> Thank you for the answer... Actually I am interested in Draw("iso") option .
> I think this option
> is not viewable by 3d or GL. Can this also be implemented?
> Sincerely,
> Ahmety-
>
> On 12/12/05, Olivier Couet <Olivier.Couet_at_cern.ch> wrote:
> >
> >
> > Hi,
> >
> > This option already exist. Try the following macro:
> >
> > void hist3d() {
> > TH3F *h3 = new TH3F("h3","h3",20,-2,2,20,-2,2,20,0,4);
> > Double_t x, y, z;
> > for (Int_t i=0;i<10000;i++) {
> > gRandom->Rannor(x, y);
> > z = x*x + y*y;
> > h3->Fill(x,y,z);
> > }
> > // h3->Draw("box");
> > h3->Draw("");
> > }
> >
> > The Draw() method can be used with the "box" option to produce a 3D box
> > plot, or with no option to produce a 3D scatter plot. Thanks to the canvas
> > menu View/View_with you can display the 3D plot either with x3d or GL.
> >
> > Cheers, Olivier
> >
> >
> > On Sat, 10 Dec 2005, Ahmet Ayan wrote:
> >
> > > Hello,
> > > I am not sure if this is a valid/request question or not, but I am
> > > wondering if it is (would) be possible to view a TH3F object with OpenGL
> > > viewer?
> > > I use TH3F histograms to visualize 3D objects reconstructed by
> > > the Bin-Contents (image reconstruction by counts in pixels in my case)
> > in
> > > x,y,z.
> > >
> > > Thanks,
> > > Ahmet-
> > > --
> > > Ahmet S. Ayan
> > > Univ. of Philadelphia
> > > Dept. of Radiology
> > > Philadelphia, PA, USA
> > >
> >
> > --
> > Org: CERN - European Laboratory for Particle Physics.
> > Mail: 1211 Geneve 23 - Switzerland Mailbox: J25910
> > E-Mail: Olivier.Couet_at_cern.ch Phone: +41 22
> > 7676522
> > WWW: http://cern.ch/Olivier.Couet/ Fax: +41 22
> > 7670300
> >
>

-- 
Org:    CERN - European Laboratory for Particle Physics.
Mail:   1211 Geneve 23 - Switzerland                     Mailbox: J25910      
E-Mail: Olivier.Couet_at_cern.ch                            Phone:   +41 22 7676522
WWW:    http://cern.ch/Olivier.Couet/                    Fax:     +41 22 7670300
Received on Tue Dec 13 2005 - 10:16:37 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:14 MET