How I can use Graphic3d_NOM_UserDefined

Hi, Guys !
I hope this time to me more somebody will carry also will answer. I wish to use the materials. How to appoint Graphic3d_NOM_UserDefined parametres and to include it?

Thanks for your help.

JuryS's picture

It has appeared too simply!

Graphic3d_MaterialAspect MyAspect(Graphic3d_NOM_GOLD);
prs->SetMaterial(Graphic3d_NOM_UserDefined);
prs->GetAIS()->Attributes()->ShadingAspect()->SetMaterial(MyAspect);

And It's working cool !