Eyeshot 10 WPF API Reference
ApplyMaterial(String,textureMappingType,Double,Double,Point3D,Point3D) Method

WPF Assembly > devDept.Eyeshot.Entities Namespace > Solid Class > ApplyMaterial Method : ApplyMaterial(String,textureMappingType,Double,Double,Point3D,Point3D) Method
Material name
Indicates the way Material texture is wrapped on the object
Material texture scale along the X axis
Material texture scale along the Y axis
Bounding box min point
Bounding box max point
Maps the specified material to this solid. Before using this method you need to define a material and add it to the devDept.Eyeshot.ViewportLayout.Materials collection.
Syntax
'Declaration
 
Public Overloads Sub ApplyMaterial( _
   ByVal matName As String, _
   ByVal mappingMode As textureMappingType, _
   ByVal scaleX As Double, _
   ByVal scaleY As Double, _
   ByVal boxMin As Point3D, _
   ByVal boxMax As Point3D _
) 
public void ApplyMaterial( 
   string matName,
   textureMappingType mappingMode,
   double scaleX,
   double scaleY,
   Point3D boxMin,
   Point3D boxMax
)

Parameters

matName
Material name
mappingMode
Indicates the way Material texture is wrapped on the object
scaleX
Material texture scale along the X axis
scaleY
Material texture scale along the Y axis
boxMin
Bounding box min point
boxMax
Bounding box max point
Remarks
You may need to call viewport.Entities.Regen() to see the effect of this command.
See Also

Reference

Solid Class
Solid Members
Overload List