Texture coordinate node. More...
#include <Inventor/VRMLnodes/SoVRMLTextureCoordinate.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoVRMLTextureCoordinate () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoMFVec2f | point |
The SoVRMLTextureCoordinate node specifies a set of 2D texture coordinates used by vertex-based geometry nodes (e.g. SoVRMLIndexedFaceSet and SoVRMLElevationGrid) to map from textures to the vertices. Texture map parameter values range from 0.0 to 1.0 in S and T. The horizontal coordinate, S, is specified first, followed by the vertical coordinate, T.
NOTE: This class does not exist in Open Inventor 10.0 and later.This section may reference portions of the VRML97 specification that are not present in this help file. The complete VRML97 spec is available at http://www.web3d.org .
The SoVRMLTextureCoordinate node specifies a set of 2D texture coordinates used by vertex-based geometry nodes (e.g. SoVRMLIndexedFaceSet and SoVRMLElevationGrid) to map from textures to the vertices. Textures are two dimensional color functions that given an S and T pair return a color value. Texture maps parameter values range from 0.0 to 1.0 in S and T. However, SoVRMLTextureCoordinate values, specified by the point field, can range from - infinity to + infinity . Texture coordinates identify a location (and thus a color value) in the texture map. The horizontal coordinate, S, is specified first, followed by the vertical coordinate, T.
If the texture map is repeated in a given direction (S or T), then a texture coordinate C is mapped into a texture map that has N pixels in the given direction as follows:
Location = (C - floor(C)) * N
If the texture is not repeated:
Location = (C > 1.0 ? 1.0 : (C < 0.0 ? 0.0 : C)) * N
See texture nodes for details on repeating textures (SoVRMLImageTexture, SoVRMLMovieTexture, SoVRMLPixelTexture).
point | [] |
metadata | NULL |
SoMFVec2f | set_point |
SoSFNode | set_metadata |
SoMFVec2f | point_changed |
SoSFNode | metadata_changed |
SoVRMLTextureCoordinate::SoVRMLTextureCoordinate | ( | ) |
Constructor.
static SoType SoVRMLTextureCoordinate::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoVRMLNode.
virtual SoType SoVRMLTextureCoordinate::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoVRMLNode.
Texture coordinate points.