This is not a bugfix but just changes the behavior of the example to be more in line what a user would expect. Basically it makes sure that all labels are loaded, colors are extracted and then the visible parts are displayed. The base parts of instances are omited and not rendered.
Nice catch @Rayfoundry 👍
One way this might be further advanced is by adding an assert statement.
By adding assert to a demo, we can think of these as integration tests.
Note: Use a complex stp files using references to see difference. This should fix https://github.com/tpaviot/pythonocc-core/issues/412
This is not a bugfix but just changes the behavior of the example to be more in line what a user would expect. Basically it makes sure that all labels are loaded, colors are extracted and then the visible parts are displayed. The base parts of instances are omited and not rendered.