Well, I had the same sort of "problem" (between complexity and simplicity).... // First you have a geometry TGeometry *MyGeom = TGeometry("mygeom","My Geometry"); MyGeom->cd(); // Lets say you have a Node, containg a shape named BigShape, which // contains // a shape named SmallShape: new TBRIK("BigShape","BigShape","void",20,20,20); new TBRIK("SmallShape","SmallShape","void",5,5,5); TNode *Node1 = new TNode("HMS1","HMS1",MyGeom->GetShape("BigShape"),0,0,0); Node1->cd(); TNode *Node2 = new TNode("HMS2","HMS2",MyGeom->GetShape("SmallShape"),0,0,0); MyGeom->Draw(); // try it out, you will have a small block within Node2 which is in a big // block in Node1 Mike On 28 Jul 1999, Mike Miller wrote: > I'm trying to learn how to build up a moderately complex detector > geometry and have gotten stuck between the simple geometry > tutorial and the very complex na49 example. Can anybody provide > intermediate level geometry examples? > > What I'd like to do is assemble some TShapes into sub-assemblies > and then to place multiple copies of the sub-assemblies in the > geometry. My first impulse was to try to place TNodes in other > TNodes, but that doesn't do it as TNode is not a TShape. Any > hints on how I can do this sort of thing? > > Mike >
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:36 MET