the face's color in a solid

Can I set different face's color in a solid? Using XDE, can I get the face's color of a solid transfered by IGES or Step?

Tanhk you.

Patrik Mueller's picture

Hi,

check GetColor And SetColor from XCAFDoc_ColorTool.

Greets,

Patrik

gpsunjp's picture

Dear Patrik

Thank you for your answer.

I tried the GetColor of XCAFDoc_ColorTool. Unfortunately I failed to get the face's color using GetColor(faceShape, XCAFDoc_ColorSurf, color). Because the faces in solid have not labels, I can not use GetColor(faceLabel, XCAFDoc_ColorSurf, color). I got the solid's color using it, because the solid has a label.

Sun

gpsunjp's picture

Dear Patrik

I made a mistake.
Now I got the face color of a solid transfered from STEP.

I can not get the face color of a solid transfered from IGES. I think it is IGES Spec.

Thank you very much.

Siddhartha's picture

Hi G.P.
I am trying the same thing a you.Can you give me the code you used to transfer color in IGES or STEP.
TIA

yuanxm0220_152233's picture

Hi,

I now also try to get the surface color of a solid from STEP, could you tell me how to do that ?

using XDE tool, I can the label as follow, but I don't know how to get that color of the relative surface ?

0:1:1:
Name:Shapes

0:1:2:
Name:Colors

0:1:3:
Name:Layers
0:1:4:
Name:D&GTs
0:1:5:
Name:Materials
0:1:7:
Name:Views
0:1:8:
Name:Clipping Planes
0:1:9:
Name:Notes