Building complex geometries using simple 3d primatives

From: William J. Deninger (deninger@uiuc.edu)
Date: Mon Nov 17 1997 - 21:36:03 MET


Hello,

I have a peculiar question concerning implementing 3d graphics primitives inside one another.  Suppose I have a detector composed of a simple block of aluminum with a hole drilled in the middle.  I would suspect we would use TBRIK of material Al and TTUBE of material VACUUM.  How does root know which material takes precedence in a volume shared by two materials such as the TTUBE inside the TBRIK?

Also, suppose those two primitives shared a common origin. Is it possible to have both primitives referenced by the same TNode, or is it necessary to have a TNode duplicated?  I'm guessing that in such an instance, one would want to combine all objects "attached" sharing a node to be represented by a class of type TShape.  But then the question becomes, which virtual functions of TShape are necessary to overload in order to get a correct TShape behavior?

And finally, as the geometry becomes complicated I need to highlight certain primitives preferably without redrawing the entire detector geometry.  Specifically, I need to mark straws in a drift chamber in order to aid debugging my tracking code. 

William J. Deninger
deninger@uiuc.edu




picture



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:22 MET