Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Public Attributes | List of all members
TextureSpace Struct Reference
Inheritance diagram for TextureSpace:
TextureOutput

Public Types

enum  Projection {
  PROJECTION_DEFAULT = -1,
  PROJECTION_OBJECT_BASE = 0,
  PROJECTION_OBJECT_DEFORMED = 3,
  PROJECTION_INSTANCE = 1,
  PROJECTION_WORLD = 2
}
 
enum  ComputationMode {
  COMPUTE_PROJECTION = 0,
  COMPUTE_TRANSFORM = 1,
  COMPUTE_NONE = 2
}
 

Public Member Functions

 TextureSpace (const Projection &p=PROJECTION_DEFAULT)
 
 TextureSpace (const ComputationMode &c)
 
 TextureSpace (const Projection &p, const ComputationMode &c)
 
double compute_parametric_differentials (GMathVec2d &duvdt_1, GMathVec2d &duvdt_2) const
 Get the parametric differentials resulting of UVW space differentials.
 
double compute_parametric_differentials (GMathVec2d &duvdt_1, GMathVec2d &duvdt_2, unsigned int &axis_1_index, unsigned int &axis_2_index) const
 Get the parametric differentials resulting of UVW space differentials.
 

Public Attributes

GMathVec3d coord
 
GMathVec3d dtdu
 
GMathVec3d dtdv
 
GMathVec3d dtdw
 
GMathVec3d dtdx
 
GMathVec3d dtdy
 
Projection proj
 
ComputationMode comp
 
bool is_spatial
 

Member Enumeration Documentation

Enumerator:
COMPUTE_PROJECTION 

Compute coordinates and then uv tranformation with these coordinates.

COMPUTE_TRANSFORM 

Compute uv transformation with input coordinates.

COMPUTE_NONE 

Skip all transformations.

Member Function Documentation

double TextureSpace::compute_parametric_differentials ( GMathVec2d &  duvdt_1,
GMathVec2d &  duvdt_2 
) const
inline

Get the parametric differentials resulting of UVW space differentials.

Parameters
[out]duvdt_1the resulting parametric partial derivative along a first texture axis
[out]duvdt_2the resulting parametric partial derivative along a second texture axis
Returns
the determinant value of [dtdu dtdv]
double TextureSpace::compute_parametric_differentials ( GMathVec2d &  duvdt_1,
GMathVec2d &  duvdt_2,
unsigned int &  axis_1_index,
unsigned int &  axis_2_index 
) const
inline

Get the parametric differentials resulting of UVW space differentials.

Parameters
[out]duvdt_1the resulting parametric partial derivative along a first texture axis
[out]duvdt_2the resulting parametric partial derivative along a second texture axis
[out]axis_1_indexthe index of the first axis
[out]axis_2_indexthe index of the second axis
Returns
the determinant value of [dtdu dtdv]