Hello Brandon,
----- Original Message -----
From: "Reddell, Brandon D" <brandon.d.reddell@boeing.com>
To: <roottalk@pcroot.cern.ch>
Sent: Monday, September 22, 2003 4:13 PM
Subject: [ROOT] simple geometry display question
>
> I have a basic geometry question that I need help on.
>
> Essentially I am trying to create a geometry that consists of a box inside
of a box (using TBRIK) such as:
>
> {
> brik = new TBRIK("BRIK","BRIK","void",200,150,150);
> brik->SetFillColor(2);
> brik->Draw();
> }
>
Please have a llok $ROOTSYS/tutorials/shapes.C
example.
http://root.cern.ch/root/html/examples/shapes.C.html
Pay your attention, to set the color the example applies
brik->SetLineColor(1);
This is what one is supposed to use.
> 1) The SetFillColor doesn't seem to work on the canvas figure. I also
tried setting the style (SetFillStyle) to 1001 which is the code for a
solid. Is it not possible to fill a 3d object in on the canvas?
>
> 2) When I go to the X3D viewer, and hit the 'r' key to make the objects
solid, the outer box hides the inner box. Is it possible to make the outer
box a wire frame---i.e., only show the hollow box edges at the same time of
viewing the inner box as a solid?
No it is not possible. The rendering algorithm defines this attribute for
the entire picture.
What you can do is to create the bold black "polyline"
http://root.cern.ch/root/htmldoc/TPolyLine3D.html yourself :-(((( .
Sorry but this the best thing I can advice at the moment. The method
http://root.cern.ch/root/htmldoc/TShape.html#TShape:SetPoints may help to
get the coordinates for that polyline.
>
> Any help would be greatly appreciated.
>
Hope this helps.
> Brandon
>
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:15 MET