For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

rubber banding

Gerhard Hofmann's picture
Forums: 

Hi, I use a AIS_InteractiveContext to display AIS_InteractiveObjects (method Display). And I use Redraw to redraw a modified AIS_InteractiveObject. This works fine, as long as there are only a few AIS_InteractiveObjects in the AIS_InteractiveContext. When there are many objects (e.g. 500) the redraw gets very slow.

Maybe I should use a Graphic3d_Group, but then it looks like I am limited to Polygons and Polylines (or is there a way to break down a AIS_InteractiveObject to Polylines/Polygons?). In 2D there is a Graphic2d_Buffer, but in 3D? What would be the best (fastest) way to dynamically and visually display a modified AIS_InteractiveObject (like a rubber band of a line, or rotating a wirerframe shape)?

thanks in advance for any hint!

Gerhard

Jean-Claude Demosthenidy's picture

Hello Gerhard,

Would you please share the portion of your code that deals with this? I am a beginner in OCC and I have no idea how to get started with this.

Thanks for any help! Jean-Claude jcd@webcom.com

Jean-Claude Demosthenidy's picture

Hi! have you used this method to draw a line with rubberbanding for example? What if you needed to create the line from scratch, with mouse clicks? Any hints? Thanks for sharing..

Jean-Claude

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.