Message: Re: Generating random point in volume, not on surface Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Generating random point in volume, not on surface 

Forum: Geometry
Re: None Generating random point in volume, not on surface (Henrik)
Date: 25 Oct, 2007
From: John Apostolakis <John Apostolakis>

Dear Henrik,

Your proposed way is the way that I would also go. At the moment there 
is no dedicated capability that exists in the toolkit for this. 

I note that if one had existed at the solid level (as the random surface 
point), it would provide a point only inside that solid - and not offer 
the ability to exclude points that are inside a daughter volume.

Best regards,
John Apostolakis

Henrik wrote:
> *** Discussion title: Geometry
> Email replies to PublicHyperNews@slac.stanford.edu must include:
>   In-Reply-To: <"/geometry/803"@geant4-hn.slac.stanford.edu>
>   Subject: ...change this to be about your reply.
>
> Is there an easier way to generate a random point in a physical volume
> than to write my own function by adapting the code from the general
> EstimateCubicVolume function and adding checks to verify the point is
> not in a daughter volume?
>   

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

1 None: Re: Generating random point in volume, not on surface   (Henrik - 26 Oct, 2007)
(_ None: Re: Generating random point in volume, not on surface   (John Apostolakis - 26 Oct, 2007)
(_ None: Re: Generating random point in volume, not on surface   (Henrik - 29 Oct, 2007)
(_ None: Re: Generating random point in volume, not on surface   (John Allison - 29 Oct, 2007)
(_ None: Re: Generating random point in volume, not on surface   (Henrik - 30 Oct, 2007)
(_ None: Re: Generating random point in volume, not on surface   (Henrik - 30 Oct, 2007)
 Add Message Add Message
to: "Re: Generating random point in volume, not on surface"

 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 ]