Smooth display

Hi All,
When I zoom a circle, it will be displayed as a polygon. Is there any function like refresh to make it smooth?
regards,
Akbari

Roman Lygin's picture

Hi Akbari,

If you are using AIS_Shape (based on TopoDS_Edge built on your circle) or AIS_Circle then you can control accuracy with drawer attached to the shape. See how
Prs3d_Drawer::TypeOfDeflection()
Prs3d_Drawer::ChordialDeviation()
Prs3d_Drawer::MaximalChordialDeviation()
are used in StdPrs_DeflectionCurve.

But since any object is visualized with the help of tessellation (triangulation or polygons) then you may always see polygon at some degree of zooming.

HTH.
Roman

akbari1358_31365's picture

Hi Roman,
Thank you for your response.
I am using AIS_Shape,but I dont know how to use that functions you said.
How can I use these functions in OCC samples?
Regards,
Akbari

Stephane Routelous's picture

check the AIS_Shape.cdl file for documentation of the SetOwnDeviation* methods

Stephane
http://www.exotk.org