Hello Li,

Here is the relevant code:

                private function initObjects():void {
                        
                        textCenter = new TextField3D("Arial", {textAlpha:1, 
text:"test",
size:150, textWidth:2000});
                        textCenter.x = 0;
                        textCenter.y = 0;                       
                        setMeshMaterial(textCenter, new 
WireColorMaterial(0xffffff,
{wirecolor:0x000000,width:2}));
                        extrudeMesh(textCenter, 0, 0, true);
                        _scene.addChild(textCenter);

                }
                
                private function extrudeMesh(mesh:Mesh, subdivisionsXY:uint = 1,
subdivisionsZ:uint = 1, bothsides:Boolean = false):void {
                        sendMeshToFront(mesh);
                        extrusion = new TextExtrude(mesh, 
{subdivisionsXY:subdivisionsXY,
subdivisionsZ:subdivisionsZ});
                        // I think it is here                   
                        _scene.addChild(extrusion);
                }

I could not figure out how to set a new material to extrusion, and how
to set its height. I have gone tru the API documents, but I am a
newbie, so I could not see anything that is related to height of
material, nor how to set it.

Any recomendations/help would be greatly appreciated.

BestRegards,

Reply via email to