Re: TShape problem

From: Valeri Fine (Faine) (fine@bnl.gov)
Date: Thu Mar 30 2000 - 17:49:55 MEST


> Dear rooters,
> 
> I have some questions about the GEANT 3 volumes in ROOT.
> It is possible to create volumes like TTRAP, BRIK, PGON etc and to draw
> them on a ROOT canvas or in a nice X3d view.
> - Is it possible to give the corner coordinates of the different shapes
> directly instead of using the constructors of the shape classes ? 

  Hmmm. It is not possible even with the TShape class contractors 
  TShape's has no coordinates at all but the parameters 
  describing that shape (like a radius of the sphere etc).

 The shape position is defined by another class called TNode
 see: tutorials/shapes.C

  Can you send us an example of that macro after your corrections.
  This give us an chance to reproduce what you are speaking about.


> The function SetPoints seems only to compute and fill an array with the
> coordintes of the corners that were indirectly supplied before by
> providing complicated angles and rotations and the like ...
> Unfortunately, SetPoints does not actually set the points ... ??!!

  What did you mean? It does what it should do. In fact this is the internal 
  method  of the class shape and the "end_user" should use it at all. 

> 
> - Are there some problems with the SetLineColor function for the shape
> classes ??
>   I have tried to provide a defined color for my shape (4 = blue e.g.),
> but I only see black !
>   I have tried to change the colors in the example from the Tutorials,
> but it has no effect !!!

 
> - Is it possible to change the attributes of the shapes while being in
> the X3d view ?? We would like to use it for a fancy 3D event display !
 
  No it is no possible. It is possible for OpenGL and TPad views only.

> Tom

  With my regards,
                          Valery



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:22 MET