RE: Sphere

From: Faine, Valeri <fine_at_bnl.gov>
Date: Tue, 9 Aug 2005 13:00:28 -0400


Try to run "shapes.C" example from $ROOTSYS/tutorials

  > root.exe $ROOTSYS/tutorials/shapes.C

This example draws the wired view of the several different spheres with "regular "parallel" and orthographic projection.

The coordinate of the mesh point can be accesses via http://root.cern.ch/root/htmldoc/src/TSPHE.cxx.html#TSPHE:SetPoints

But this method is "protected". This means to access it you need either some "trick" or you have to derive your class from the TSPHE to apply your own custom transformation.

The same approach can be applied to TGeoSphere class.  



Best regards
                   Valeri


> -----Original Message-----
> From: owner-roottalk_at_pcroot.cern.ch

[mailto:owner-roottalk_at_pcroot.cern.ch] On
> Behalf Of zaldy
> Sent: Tuesday, August 09, 2005 12:20 PM
> To: roottalk_at_pcroot.cern.ch
> Subject: [ROOT] Sphere
>
>
> Dear Folks,
>
> I would like to draw a Sphere.
> In the sphere I want to draw also the grid/curve/linemarker similar to
the
> lattitude and longitude lines of the globe.
>
> Then I want to project these grids/curves onto a plane that divides
the
> sphere half. This plane divides the sphere or globe along its axis.
> The figures that would appear on the plane is like a "net".
>
>
> There is a class "TGeoSphere and SPHE" but
>
> how to start this one? Is this possible?
>
> What about the projection on the plane?
>
>
> Thanks a lot.
> --
> Zaldy A. Nawang
>
> Using root version: Version 4.04/02 6 June 2005
> Linux with gcc version: gcc version 3.4.2 20041017 (Red Hat
3.4.2-6.fc3) Received on Tue Aug 09 2005 - 19:08:00 MEST

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