Message: Re: G4ExtrudedSolid: What are the rules for Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: G4ExtrudedSolid: What are the rules for  

Forum: Geometry
Re: Question G4ExtrudedSolid: What are the rules for "legal" or "illegal" vectors of points? (Forrest Iandola)
Date: 24 May, 2012
From: Ivana Hrivnacova <Ivana Hrivnacova>

Dear Forrest,

The points in the vector have to define an outline polygon, it can be convex or concave, but the lines connecting the points cannot cross each other. In your second test case, the line between P4 and P1 cross the line P2-P3. Moving eg. P4 to eg. (-1.0, 0) makes a legal polygon.

Also the constructor for a shapoe with 2 z-sides requires the offset to be defined via G4TwoVector, so your definition should be rather:
new G4ExtrudedSolid("DrillHole", points, halfWidth, 
                     G4TwoVector(0, 0), 1.0, G4TwoVector(0, 0), 1.0);
than 
new G4ExtrudedSolid("DrillHole", points, halfWidth, 1, 1, 1, 1);
supposing that you do not want to apply the offset.

Best regards,

Ivana

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Question: Re: G4ExtrudedSolid: What are the rules for   (Forrest Iandola - 24 May, 2012)
1 Note: Re: G4ExtrudedSolid: What are the rules for   (Forrest Iandola - 24 May, 2012)
1 None: Re: G4ExtrudedSolid: What are the rules for   (Ivana Hrivnacova - 25 May, 2012)
2 None: Re: G4ExtrudedSolid: What are the rules for   (Ivana Hrivnacova - 25 May, 2012)
1 Ok: Re: G4ExtrudedSolid: What are the rules for   (Forrest Iandola - 25 May, 2012)
 Add Message Add Message
to: "Re: G4ExtrudedSolid: What are the rules for "

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]