Given a label and a shape...

How can I change the color of the shape.

I have a step file loaded with XCAF and am able to select solids and faces in local context.
if the shape is a solid I can change its material with its ascociated TPrsStd_AISPresentation
not its color, if it's a face I can't change its material nor its color with the ascociated TPrsStd_AISPresentation. Does anybody have a clue or some simple example?



Dennis G.'s picture

Hello Arjan,

I think you should use the XCAFDoc_ColorTool to assign a color to a label (and herewith to the shape).
This might be helpful:



Arjan Schouten's picture

Hello Dennis,

You are right, I tried myself also but had mixed results.
I will try again tonight, I think I better understand XDE now.