[GEM-dev] help trying to debug the draw message in curve3d and surface3d

IOhannes m zmölnig zmoelnig at iem.at
Sun Mar 25 22:00:08 CEST 2012


On 03/25/12 14:44, Cyrille Henry wrote:
> hello,

> i don't really understand why this 2 post did not post the same value.
>
> did anyone have any pointer that could help debugging?
>

you are experiencing the joys of inheritance in oop languages:
m_drawType is a member variable of GemShape.
it will get updated whenever you send a "draw" message to a GemShape 
object (and is referred to in GemShape.cpp)

now, in (curve|surface)3d.h you declare _another_ variable "m_drawType", 
which will get referenced whenever you call it in the curve3d class.

i pushed a fix for the problem to the "master" branch.

fgamdsr
IOhannes



More information about the GEM-dev mailing list