Mesh.ApplyTextureMapping (textureMappingType, Double, Double, Point3D, Point3D) Method

Maps the specified material to this mesh using a custom bounding box. Before using this method you need to define a material and add it to the Model.Materials collection.
Public Sub ApplyTextureMapping( _ 
ByVal mappingMode As textureMappingType, _ 
ByVal scaleX As Double, _ 
ByVal scaleY As Double, _ 
ByVal boxMin As Point3D, _ 
ByVal boxMax As Point3D
)
This language is not supported or no code example is available.
public void ApplyTextureMapping( 
textureMappingType mappingMode
double scaleX
double scaleY
Point3D boxMin
Point3D boxMax 
)
This language is not supported or no code example is available.

Parameters

mappingMode
textureMappingType

Indicates the way Material texture is wrapped on the object

scaleX
double

Material texture scale along the X axis

scaleY
double

Material texture scale along the Y axis

boxMin
Point3D

Bounding box min point

boxMax
Point3D

Bounding box max point

Remarks
 

The mesh nature is set to RichPlain or RichSmooth from this command.

You may need to call viewport.Entities.Regen() to see the effect of this command.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition