Thu, 01/05/2023 - 22:48
I have an AP 214 file with a single part that contains a color for the solid and one of the faces - see attached BlueCylinderRedTop.txt.
I have successfully retrieved the colors using the XCAFDoc_ColorTool.
I then created an assembly that consists of two instances of the cylinder. However in this case I'm not able to retrieve the colors for
either instance. I am calling XCAFDoc_ColorTool::IsSet with the TopoDS_Shape for the instance. I have attached my assembly model as
well (TwoBlueCylinders.txt).
Is there an example that demonstrates how to retrieve colors from the instances in the STEP file.
Thank you.
Attachments: