Deprecated: Function split() is deprecated in /home/wiki/public_html/inc/common.php on line 533

Warning: Cannot modify header information - headers already sent by (output started at /home/wiki/public_html/inc/common.php:533) in /home/wiki/public_html/inc/actions.php on line 71
tvmesh:setmaterial [TV3DWiki]
 
Table of Contents

Wiki > TV3D65 Index > TVMesh

SetMaterial

DESCRIPTION

-Applies a new material to the mesh or to a group mesh.

DECLARATION

VB.NET SetMaterial(iMaterial As Integer , iGroup As Integer)
C++ void SetMaterial(int iMaterial , int iGroup )

PARAMETERS

NAMEOPTIONALDESCRIPTION
iMaterialNoMaterial number to be used
iGroupYesindex of the Group on which the material will be applied. Use -1 or 0 to update the whole mesh.

RETURN VALUE

Null Does not return a value.

EXAMPLES

ExampleMesh.SetMaterial(Globals.GetMat(”Default”),-1).

TIPS

  • Use the GetMat method(getmat), in the Global Class, to get a material by its name
 
tvmesh/setmaterial.txt · Last modified: 2010/03/08 02:43 by 192.107.75.158