TopoDS_Compound display problem

Dear OCC community,
I'm currently porting a OCC application to Linux and there is a problem with the display of compounds. Where on Windows it looks fine, on Linux only about 30 faces inside a compound are displayed. We are using an algorithm that creates sections (Handle(Geom_BSplineCurve)) on the yz-plane and then surfaces between two of those. All of them are then stored in the compound. No error is thrown at any point of the process. In the attached image, I have created some examples for a simple sphere with different numbers of sections which shows the problem.

When I analyse the shape using a TopExp_Explorer, all faces seem to exist correct there. Also I can create a step export of the broken compound and if I open it in FreeCAD it is fully intact.

Does anyone know what could be the cause of it? Any help is greatly appreciated. We are using OCC 6.5.1

Jendrik Seiler's picture

Upgrading to OCC 6.5.5 did not change anything unfortunately. 6.6 or 6.7 are giving me hundreds of compiler error due to missing classes so I would try to avoid this as long as I'm not certain it would make a difference.

If anyone has even the slightest guess I would be extremely thankful. This is giving me headaches for weeks now, I have no idea where to look and its the only thing keeping me from finishing the program. Thank you very much in advance.