Uploaded image for project: 'VecGeom'
  1. VecGeom
  2. VECGEOM-205

Convexity returns true for carefully constructed non-convex polycones

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      Inspection of new method CheckContinuityInSlopes() suggested that polycones with zPlane[j]==zPlane[j+1] could exit out of a loop and immediately return true. A carefully constructed non-convex polycone was used to demonstrate the problem:

          int nZ = 5;
          double rmin[5] = {0.,0.,0.,0.,0.};
          //double rmax[5] = {5.,10.,10.,20.,20.};   // bad
          double rmax[5] = {15.,20.,20.,10.,5.};   // bad
          double z[5]    = {0.,10.,20.,20.,40.};

      This problem was originally reported by Philippe Canal.

      Attachments

        Activity

          People

            rasehgal Raman Sehgal (Inactive)
            jlima Guilherme Lima
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: