CS::Geometry::DensityTextureMapper Class Reference
Density based texture mapper. More...
Public Member Functions
|DensityTextureMapper (float density)|
|Create a density texture mapper with the given density. |
|virtual csVector2||Map (const csVector3 &, const csVector3 &, size_t idx)|
|Map a 3D coordinate and a triangle plane to 2D UV space. |
Density based texture mapper.
This mapper tries to achieve a constant texture density on the surface. This texture mapper is really only useful on non-smoothed surfaces. So for GenerateBox(), GenerateQuad(), and GenerateTesselatedQuad().
Constructor & Destructor Documentation
Member Function Documentation
|virtual csVector2 CS::Geometry::DensityTextureMapper::Map||(||const csVector3 &||point,|
|const csVector3 &||normal,|
Map a 3D coordinate and a triangle plane to 2D UV space.
point is the point in 3D space. normal is the normal of the point that we're mapping. idx is the index in the model.
- the resulting uv mapping.
The documentation for this class was generated from the following file:
Generated for Crystal Space 2.1 by doxygen 1.6.1