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

[BUG] AIS_InteractiveContext::UnsetColor

Timo Roth's picture

After unsetting the color of some interactive objects and setting new colors, they are all drawn with the same color when their transparency is changed.

To reproduce the problem you can use the following Draw commands:

restore p.brep p
explode p
vdisplay p_1
vdisplay p_2
vsetdispmode p_1 1
vsetdispmode p_2 1
vsetcolor p_1 red
vsetcolor p_2 green
vunsetcolor p_1
vunsetcolor p_2
vsetcolor p_1 red
vsetcolor p_2 green
vsettransparency p_1 0.5
vsettransparency p_1 0

In our application, the same problem occured when the number of iso lines of the context is changed (via AIS_InteractiveContext::SetIsoNumber) instead of the transparency.

It seems that the shapes use the default drawer in some cases after unsetting the color.

Timo Roth's picture

The problem exists in OCC 6.3.1, 6.5.1 and 6.5.2.
I didn't test other versions.

Forum supervisor's picture

Dear Timo,
I would like to inform you that the posted problem has been checked and reproduced.
As you probably know the website dedicated to contributors is available now:
We suggest you to make a contribution via the Collaborative portal.
For bugs registration Mantis Bugtracker is available now.

Timo Roth's picture

OK, I reported the bug in Mantis but I won't fix it.

Timo Roth's picture


Forum supervisor's picture

OK, thanks for your contribution.
As you understand direct use of the tracker makes the bug advancement process faster
and provides necessary features to track its progress.
Using the tracker, you will get immediate mail notifications about progress with the issue.

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.