logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SoTextureCoordinatePlane — node that specifies texture coordinates by projection from a plane

Action Behavior

SoGLRenderAction,SoCallbackAction,SoRayPickAction
          Sets the current texture function in the state.

Description

       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)

Fields

SoSFVec3fdirectionSSoSFVec3fdirectionT
          Directions of projection for S and T coordinates.

File Format/Defaults

TextureCoordinatePlane{directionS100directionT010}

Inherits From

       SoBase > SoFieldContainer > SoNode > SoTextureCoordinateFunction > SoTextureCoordinatePlane

Methods

SoTextureCoordinatePlane()
          Creates a texture function node with default settings.

     staticSoTypegetClassTypeId()
          Returns type identifier for this class.

Name

       SoTextureCoordinatePlane — node that specifies texture coordinates by projection from a plane

See Also

SoTexture2,SoTexture2Transform,SoTextureCoordinateDefault,SoTextureCoordinateEnvironmentSoTextureCoordinatePlane(3IV)()

Synopsis

#include<Inventor/nodes/SoTextureCoordinatePlane.h>

          Fields from class SoTextureCoordinatePlane:

     SoSFVec3fdirectionSSoSFVec3fdirectionT

          Methods from class SoTextureCoordinatePlane:

                         SoTextureCoordinatePlane()staticSoTypegetClassTypeId()

          Methods from class SoNode:

     voidsetOverride(SbBoolstate)SbBoolisOverride()constSoNode*copy(SbBoolcopyConnections=FALSE)constvirtualSbBoolaffectsState()conststaticSoNode*getByName(constSbName&name)staticintgetByName(constSbName&name,SoNodeList&list)

          Methods from class SoFieldContainer:

     voidsetToDefaults()SbBoolhasDefaultValues()constSbBoolfieldsAreEqual(constSoFieldContainer*fc)constvoidcopyFieldValues(constSoFieldContainer*fc,SbBoolcopyConnections=FALSE)SbBoolset(constchar*fieldDataString)voidget(SbString&fieldDataString)virtualintgetFields(SoFieldList&resultList)constvirtualSoField*getField(constSbName&fieldName)constSbBoolgetFieldName(constSoField*field,SbName&fieldName)constSbBoolisNotifyEnabled()constSbBoolenableNotify(SbBoolflag)

          Methods from class SoBase:

     voidref()voidunref()constvoidunrefNoDelete()constvoidtouch()virtualSoTypegetTypeId()constSbBoolisOfType(SoTypetype)constvirtualvoidsetName(constSbName&name)virtualSbNamegetName()const

See Also