[vtkusers] Cylinder Anti-Aliasing

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


On 24/05/2011 15:13, Jon Payne wrote:
> 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
>
Sorry, and also:
     renderWindow->SetMultiSamples(0);

-- 
*Jon Payne*
Senior Developer
HGL Dynamics Ltd <http://hgl-dynamics.com>
Tel: +44 (0)1483 415177
Registered in England No 3844513
Registered Office: Little Barsden, Field Lane, Godalming, GU7 3JT, UK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110524/62ccdb02/attachment.htm>


More information about the vtkusers mailing list