DiscussionsIssue archiveOther usage issues

Archived discussion

Smooth display

Other usage issuesFri, 02/18/2005 - 19:593 replies

Browse this forum
QuestionAuthor

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

Discussion

3 archived replies

Posts are displayed in their archived order.

01Commenter-1

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.
Commenter-1

02Author

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

03Commenter-2

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

Commenter-2
http://www.exotk.org