How to plot any equation using a limiting value of coordinate

ROOT Version: 6.22
Platform: Root

I want to plot a cylinder of equation x^2+y^2 = 25 for the value of -10 < z < 10.
and at other value of z(along the axis), there will not be any cylindrical structure.
but when I put f1 = new TF3(“name”, “x^2+y^2 = 25”, -10,10,-10,10,-10,10), I got a fully infinite cylinder.
What parameter should I use to fix this? Withouot generating datapoints will be more efficient.
Thank you. Regards.


Could you send your macro with the TF3 code? From the snippet I cannot reproduce what you see.