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

Can we change colors of SOME selected faces ...

Omar Msaaf's picture
Forums: 

from an interactive object ? What i would love to is to be able to change the color of some selected or processed faces from an interactive object. I know how to change faces' color. But it acts on ALL the faces. I can't get how to change attributes of a limited selection of faces. Any one can help please ? Thanks Omar Msaaf

Omar Msaaf's picture

I would be greatful. Thanks Omar Msaaf

Sergey RUIN's picture

Hi Omar!

There are two possible ways to solve the problem:

1.Simple - to create temporary AIS_Shape for compound of selected faces and display it's with needed color after having displayed the main AIS_InteractiveObject.

2.More sophisticated - create the new AIS_InteractiveObject add to it method for setting of selected faces and their color, and change methods Compute so that they do additional work to color the given selected faces.

Best regards!

Sergey