How to clear a TPolyLine?

Hello All,

It seems that to remove all points from a polyline is not as easy task as it looks like. Neither Clear() nor SetPolyLine(0) does not work. OK, one can use SetPolyLine(0, (Float_t*)0, (Float_t*)0, “”), but that’s not a best solution. Would be great if Clear() would work as expected.

I’m using ROOT 4.00.08 for gcc 3.2 and RH7.3.

Sorry for posting here. :confused: Please move the topic the appropriate sub-forum.

In the CVS version, you can call the Set functions with a number of points=0.