How to create double sided material by Material class?

I know create double sided material by RenderMaterial,but how to convert it to material?

Why do you need to do this?

– Dale

I want to set brep to the double side material,and set it’s face to another material.When set face material need the material not the RenderMaterial.

tks,I find new material by set rendermaterialid can get the material of the rendermaterial.