Message: Re: Turn off overlap warning Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: Turn off overlap warning 

Forum: Geometry
Re: Idea Turn off overlap warning (Kareem Kazkaz)
Re: More Re: Turn off overlap warning (Gabriele Cosmo)
Date: 28 Aug, 2009
From: Kareem Kazkaz <Kareem Kazkaz>

On Fri, 28 Aug 2009 15:50:03 GMT, Gabriele Cosmo wrote:

> We could introduce an additional level of verbosity to satisfy your needs,
> however, let me point out that the technique you use for determining the
> smallest bounding box is certainly not efficient.
> It would be more appropriate to compute (with some coding) the extent
> of the solid, perhaps by adopting the CalculateExtent() method that each
> one of the shapes already provides...

Hi, Gabriele. Thanks for the response.

An additional level of verbosity would indeed be welcome. In general, it would be nice to have the option to turn off any, or even all, warning messages (something like the gcc "-Wall" flag). Could this don't-print-warnings-flag be written into the G4Exception class?

The technique I'm suggesting may not be terribly efficient, but all that matters in the end is the time it takes to actually run. I've already put together a very simple (and inefficient) algorithm for finding the smallest bounding sphere on any arbitrary physical volume, and looping over roughly 300 volumes takes a small amount of time, about 4 seconds.

It may be that using CalculateExtent() gives better and faster results, but the difference between 4 seconds and 0 seconds is negligible. If my bounding volume routines grow unwieldy, I'll take a look at CalculateExtent().


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

1 Note: Re: Turn off overlap warning   (Kareem Kazkaz - 28 Aug, 2009)
(_ None: Re: Turn off overlap warning   (John Allison - 29 Aug, 2009)
 Add Message Add Message
to: "Re: Turn off overlap warning"

 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 ]