I was wondering if it's possible to set the material(Graphic3d_MaterialAspect) of each individual subShape of a AIS_ColoredShape object.
Best regards
gkv311 n Tue, 01/09/2024 - 11:56
Sure, you may use AIS_ColoredShape::CustomAspects() to customize drawer for a subshape in desired way, including material aspect (like XCAFPrs_AISObject does to dispatch materials from XCAF document).
Tue, 01/09/2024 - 11:56
Sure, you may use
AIS_ColoredShape::CustomAspects()
to customize drawer for a subshape in desired way, including material aspect (likeXCAFPrs_AISObject
does to dispatch materials from XCAF document).Wed, 01/10/2024 - 17:55
Yes, i checked the source code of XCAFPrs_AISObject and fixed it like this: