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.
Fri, 02/27/2004 - 15:28
Hi,
check GetColor And SetColor from XCAFDoc_ColorTool.
Greets,
Patrik
Tue, 03/02/2004 - 10:01
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
Tue, 03/02/2004 - 12:15
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.
Fri, 09/09/2005 - 14:14
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
Tue, 10/15/2019 - 06:28
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>s
0:1:5:
Name:Materials
0:1:7:
Name:Views
0:1:8:
Name:Clipping Planes
0:1:9:
Name:Notes