Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10166

Error when adding a TGLVertex3 and a TGLVector3

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Low
    • Resolution: Fixed
    • 6.19/01
    • 6.22/00
    • PyROOT
    • Python2, Centos7

    Description

      The following reproducer:

       
      from ROOT import TGLVertex3, TGLVector3
       
      scatteringPoint = TGLVertex3(2., 3., 0.2)
      glvec3 = TGLVector3(1,2,3)
       
      vertexEnd = scatteringPoint + glvec3
      vertexEnd = scatteringPoint + glvec3
      
      

      throws the following error:

      Traceback (most recent call last):
        File "gl.py", line 7, in <module>
          vertexEnd = scatteringPoint + glvec3
      TypeError: TGLVertex3 ::operator+(const TGLVertex3& vertex1, const TGLVector3& vertex2) =>
          could not convert argument 2
      

      I.e. while the first addition works correctly, the second addition fails to convert the TGLVector3 argument.

      The issue can be reproduced in the current PyROOT, but is not there anymore in the experimental PyROOT.

      Attachments

        Activity

          People

            etejedor Enric Tejedor Saavedra
            etejedor Enric Tejedor Saavedra
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: