I think there are problems with the G4GenericPolycone function.
When trying to make a geometric volume with many points – an error occurs:
Input data:
float inch = 2.54 * cm;
constexpr auto nmbRZ = 5;
G4double r[] = {1.3650 * inch, 1.2720 * inch, 0.9420 * inch, 0.6910 * inch, 0.0930 * inch};
G4double z[] = {0. * inch, 0.090 * inch, 0.380 * inch, 0.550 * inch, 1.100 * inch};
Error:
-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : GeomSolids0002
issued by : G4GenericPolycone::Create()
Illegal input parameters - FF
R/Z segments cross !
*** Fatal Error In Argument *** core dump ***
**** Track information is not available at this moment
**** Step information is not available at this moment
-------- EEEE -------- G4Exception-END --------- EEEE -------
Although this error should not be. Because r/z cannot intersect.