Performance / Fuse Shapes


is there a way to display a lot of shapes in e.g. different colors without loosing a lot of performance?
If I create an AIS_Shape for every shape it gets quite slow at rotating and panning, but when I fuse
the shapes into one compound to speed it up I can't see a way to give them different colors.

Is this just a limitation of Opencascade or do I miss something?


Pawel's picture

Hello Linden,

I would try the following tricks:
- when displaying your AIS_Shapes make sure you do not refresh every time you call the Display method from AIS_InteractiveContext (pass Standard_False as parameter)
- if the above doesn't help try implementing your own AIS_InteractiveObject (search the forum for examples)