Brief Index      Full Index      Events Index      I.M. Reference

Scale_Texture

Functions

void Scale_Texture (double u, double v, double w)
 

Detailed Description

Function Documentation

void Scale_Texture ( double  u,
double  v,
double  w 
)

Gives the appearance of enlarging or reducing the size of a surface's texture map by scaling the referenced (u, v, w) vertex parameters.

Parameters
u- Factor to stretch the texture map image along the U -axis. x < 1 "smaller".
v- Stretch, along the V-axis.
w- Likewise, along W.

DETAILS

All texture maps in the segment are made larger or smaller. A scale factor of 2 will result in a texture image that is twice as big on the surface, while 0.5 yields one of half size. The three scale factors are usually equal, to give uniform scaling in all dimensions. If scale factors are negative, you can obtain mirroring.

Scale_Texture() modifies a segment's "texture matrix" attribute (see Set_Texture_Matrix() ) that is applied to the (u, v, w) vertex parameters of shells and meshes. In order to give the appearance that a texture is being scaled, the vertex parameters (which don't change their geometric locations) are transformed by the opposite scale (the matrix adjoint).

The transform that is supplied to Append_Texture_Matrix() is defined as

scltxtre.gif

NOTES

RESTRICTIONS

See Also
Translate_Texture, Rotate_Texture, Append_Texture_Matrix, Set_Texture_Matrix.

Brief Index      Full Index      Events Index      I.M. Reference