Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Usage issues / circle draw with visible "polygons" if set in a TopoDS_Compound

circle draw with visible "polygons" if set in a TopoDS_Compound

circle draw with visible "polygons" if set in a TopoDS_Compound
PeterZ 2011/07/05 17:13
Hello,
I'm using OCC 6.3 with the 3D Viewer and AIS_InteractiveContext.

I have set the SetDeviationCoefficient to 1e-4, so that the "polygon" of a circle is not visible.

If I draw a circle (TopoDS_Edge) direct in the viewer the "polygon" is not visible. -ok.

But:
If I put the same circle in a Compound, the circle is drawn with a visible polygon. -strange! It seems that the SetDeviationCoefficient, SetDeviationAngle and SetHLRDeviationCoefficient has no effect on AIS_InteractiveContext.

Is there another parameter were I can obtain a smooth circle (wrapped in a compound)?
Any hints are welcome.

Peter
Forum supervisor 2011/07/06 10:09
Dear PeterZ,
There are a lot of changes since OCCT 6.3 to 6.5.1 that can take effect on result.
We didn't detect any difference between presentation of a circle as a single edge and the edge wrapped in a compound (see the attached picture with presentation of both cases and Draw script below):

pload ALL;
circle ccurve 0 0 0 1;
mkedge ce ccurve;
compound ce cc;
vinit;
vdisplay ce;
vdisplay cc;
vfit;
vsetshading cc 0.0001;
vsetshading ce 0.0001;
vsetshading cc 10;
vsetshading ce 10;

Both shapes are shown bit-exact in OCCT6.5.1 DRAWEXE viewer when deflection parameters are equal.
So, the problem is not reproduced in OCCT 6.5.1.
I suggest you to you the recent version of OCCT.
Regards
Forum supervisor 2011/07/06 10:18
Sorry,
now the picture is attached.
Regards
You have to be logged in to download the attached file
PeterZ 2011/07/06 13:28
Hello supervisor,
Thank you for your script test. The same test running on OCC 6.3 gave the attached picture. The polygon is only visible if you increase the window. Could you please verify if this effect is not visible on 6.5.1. Thank you very much.

Regards
Peter
You have to be logged in to download the attached file
Forum supervisor 2011/07/06 15:05
Hi PeterZ,
As I noticed before the problem is not reproduced in OCCT 6.5.1.
We didn't detect differences in presentation of both cases in Viewer3d including full screen window.
I hope you can easy check it by yourself using recent distribution of OCCT (6.5.1),
which you can find at the page http://www.opencascade.org/support/customer/
Regards
PeterZ 2011/07/06 15:17
Hi supervisor

Thank you very much for your support.
Regards
Peter
PeterZ 2012/07/04 13:44
I have changed now to 6.5.3 but the polygons in TopoDS_Compound are still visible!
Same as in version 6.3.

Regards Peter
 
 
Latest news
  • New features to enhance the development process
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map