|Message: RE: build geometry using boolean||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
Thanks, Gabriele. I think I figured out the problem. That is G4para. The explanation in the user manual is not clear. Finally, I figured out how to use it by looking at the program by others. YC -----Original Message----- From: Gabriele Cosmo [mailto:Gabriele.Cosmo@cern.ch] Sent: Wednesday, April 28, 2010 8:19 AM To: email@example.com Subject: Re: build geometry using boolean *** Discussion title: Geometry Have you tried using normal placements instead of replicas ? For replications along the Cartesian axis, slices should be perpendicular to the axis of replication (see docs); here it doesn't seem the case. Cheers, Gabriele --------------- On Fri, 23 Apr 2010 20:58:27 GMT, Bill wrote: > Hi, > > I try to make an array of holes in a box (C1RowLog). The axis of the > holes are not perpendicular to the surface of the box, but with a angle > (60 degree). I attached a figure showing what I want to make (there are > 5 holes in the drawing. My code tried to make 48 holes.) > > Here is my code. I don't know why it doesn't work. I couldn't see > anything in C1RowLog when I displayed the geometry in a window. Could > anybody help with it? > > Thanks, YC > > ************************ > slantCube = new G4Para("SlantCube", > 1. * mm, > 5. * mm / tan(60 * deg), > 5. * mm, > 0, > 90 * deg, > 60 * deg); > Hole = new G4Tubs("Hole", > 0, > 0.5 * mm, > 5. * mm * 2, > 0, > 360. * deg); > G4RotationMatrix* rm2 = new G4RotationMatrix(); > rm2->rotateX(-30 * deg); > G4VSolid* CElement = new G4SubtractionSolid("SlantCube-Hole", slantCube, Hole, rm2, G4ThreeVector(0., 0., 0.)); > CElementLog = new G4LogicalVolume(CElement, > tungsten, > "CElementLog", > 0, 0, 0); > CElementPhys = new G4PVReplica("CElementPhys", > CElementLog, > C1RowLog, > kYAxis, > 48, > 1. * mm, > 5. * mm / cos(60 * deg)); ------------------------------------------------------------- Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or unsubscribe) at: http://hypernews.slac.stanford.edu/HyperNews/geant4/get/geometry/1034/1. html