[vtkusers] Cylinder Anti-Aliasing

Jon Payne jpayne at hgl-dynamics.com
Tue May 24 10:13:02 EDT 2011


On 24/05/2011 14:12, Thiago Macedo wrote:
> HI All,
>
> I've tried to find a way to make a cylinder as smooth as lines when
> LineSmoothingOn(), but it seems nothing is really working.
> Attached I'm sending a screenshot.
> Could someone help me?
>
> Regards
Hi Thiago ,

I think you'll need the following for a cylinder if not a wire-frame:
PolygonSmoothingOn();

I generally do:

     renderWindow->LineSmoothingOn();
     renderWindow->PointSmoothingOn();
     renderWindow->PolygonSmoothingOn();
     glHint(GL_POINT_SMOOTH_HINT, GL_NICEST);

Cheers,
Jon




More information about the vtkusers mailing list