Polygone parameters that are legal in G3: // PGON params // 10.3429 360 35 2 -56.85 37.7 40 -58.35 37.7 40 result in "Illegal input parameters" exception in G4: G4Polyhedra (Solid): Illegal input parameters: R/Z values must be specified cloc kwise *** G4Exception: Aborting execution *** I have put in /afs/cern.ch/user/i/ivana/public/g4bug the modified ExN02DetectorConstruction and the output.
Problem reported to author.
Problem is fixed in tag geometry-V00-01-02. Fixes will be included in release Geant4 1.0. ----------------- Original messages by D.Williams (davidw@scipp.ucsc.edu): Wed, 10 Nov 1999 ---------------- The problem with G4Polyhedra is that, using the G3 style constructor, it requires the z planes in such simple polyhedras to be in accending order. This funny quirk actually has a reason: it is possible to use z values that are not strickly monotonically increasing in order to define more complex solids. In this case it seems a bit of a liability, though. I'll put together a reasonable fix and submit it to the repository as fast as I can test it. Wed, 10 Nov 1999 ---------------- I've submitted the following to the G4 repository: CSG/include/G4ReduciblePolygon.hh rev 1.4 CSG/src/G4ReduciblePolygon.cc rev 1.4 CSG/src/G4Polyhedra.cc rev 1.8 CSG/src/G4Polycone.cc rev 1.6 These should fix the bug reported. New code is only invoked at the point were there used to be an exception. I therefore don't expect this change to have much of an impact on already working code.