SoTextureCoordinatePlane Class Reference
[Textures]

Node that specifies texture coordinates by projection from a plane. More...

#include <Inventor/nodes/SoTextureCoordinatePlane.h>

Inheritance diagram for SoTextureCoordinatePlane:
SoTextureCoordinateFunction SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoTextureCoordinatePlane ()

Static Public Member Functions

static SoType getClassTypeId ()

Public Attributes

SoSFVec3f directionS
SoSFVec3f directionT

Detailed Description

Node that specifies texture coordinates by projection from a plane.

This node creates texture coordinates for points on an object's surface by projecting them onto a plane. The directionS and directionT fields define the plane. The S coordinate is computed as the distance from the object-space origin along the vector specified in the directionS field. The T coordinate is computed similarly, using the directionT field.

The length of the direction vector is also taken into account. For example, assume directionS is (0.5, 0, 0) and directionT is (0, 1, 0). The square defined by the (x, y, z) vertices:

      (-1, -1, 0) (1, -1, 0) (1, 1, 0) (-1, 1, 0)
     

will be assigned the (s, t) texture coordinates:

      (-2, -1) (2, -1) (2, 1) (-2, 1)
     

FILE FORMAT/DEFAULT

ACTION BEHAVIOR

SEE ALSO

SoTexture2, SoTexture2Transform, SoTextureCoordinateDefault, SoTextureCoordinateEnvironment


Constructor & Destructor Documentation

SoTextureCoordinatePlane::SoTextureCoordinatePlane (  ) 

Creates a texture function node with default settings.


Member Function Documentation

static SoType SoTextureCoordinatePlane::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoTextureCoordinateFunction.

virtual SoType SoTextureCoordinatePlane::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Reimplemented from SoTextureCoordinateFunction.


Member Data Documentation

Directions of projection for S and T coordinates.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/