problem with setGeom

I have a little problem with the setGeom function.
With the following line of code i want to replace a geom with a new one:


Unfortunately the new geom won’t show up on the screen. Is there something like “” that i have to do before the geom will be rendered?

No, there’s nothing magic. Assuming the old geom was visible, this will make the new geom visible in its stead. If you’re not seeing anything, there may be something else wrong.