Menu

#9 gluTessCallback, # of args for vertex

v2.0
closed-fixed
GLU (21)
4
2001-07-11
2001-07-11
No

The vertex callback setup with gluTessCallback(
tesObject, GLU_TESS_VERTEX, callback) is supposed to
be handed one argument (the vertex data). Instead,
it's handed back 4 arguments, with the 2, 3 and 4th
being None in all cases I've tested.

Workaround is to just define garbage params, but it
should be fixed.

Discussion

  • Mike C. Fletcher

    Logged In: YES
    user_id=34901

    Additional notes: Behaviour depends on the data passed to
    gluTessVertex, a tuple of length x passed in gets unpacked
    into x args, so in the original report, I'd passed in a 4-
    element tuple, thus getting 4 arguments. Workarounds
    possible in any given case, but should still be fixed.

     
  • Tarn Weisner Burton

    Logged In: YES
    user_id=21784

    Was due to incorrect usage of PyObject_CallFunction. Now
    fixed in build 28.

    Tarn

     
  • Tarn Weisner Burton

    • status: open --> closed-fixed
     

Log in to post a comment.