# class TangentCalculator

TangentCalculator calculates tangent vectors for geometry data objects. One corner field of texture coordinates must exist, as well as normals. The tangents are placed into two corner fields called "Tangents" and "Bitangents". If any of these fields already exists, it is replaced by the new field.

# Properties

Property Description
InvertV Inverts the V component of the texcoords used for tangent calculation. This essentially switches between right- and lefthanded, i.e. TangentCalculatorType = OrthonormalRightHanded and InvertV = true generates equivalent tangents to TangentCalculatorType = OrthonormalLeftHanded.
TangentCalculatorType Sets/Gets the tangent calculator type, types listed in TangentSpaceMethod.
TexCoordsSetId The TexCoords field id to use for the tangent calculation. If set to -1, all texture coordinates will get corresponding tangent fields.

# Methods

Method Description
CalculateTangents Calculates the tangents of a geometry data object.
CalculateTangentsForNodeHierarchy Calculates the tangents of a tree of scene nodes (only the geometry nodes of course).
GetClass Get the name of the TangentCalculator class.
IsA Returns true if TangentCalculator is a or is a descendant of the class named as the type parameter.
IsNull Returns true if the TangentCalculator object is invalid.

# Static methods

Method Description
IsClassA Returns true if the class is a or is a descendant of the class named as the type parameter.
SafeCast SafeCast makes sure the input object is of a class that can be cast into spTangentCalculator, and if this is the case, returns the object cast into spTangentCalculator.

# Properties details

# InvertV

Inverts the V component of the texcoords used for tangent calculation. This essentially switches between right- and lefthanded, i.e. TangentCalculatorType = OrthonormalRightHanded and InvertV = true generates equivalent tangents to TangentCalculatorType = OrthonormalLeftHanded.

    # TangentCalculatorType

    Sets/Gets the tangent calculator type, types listed in TangentSpaceMethod.

      # TexCoordsSetId

      The TexCoords field id to use for the tangent calculation. If set to -1, all texture coordinates will get corresponding tangent fields.

        # Methods details

        # CalculateTangents

        Calculates the tangents of a geometry data object.

          # CalculateTangentsForNodeHierarchy

          Calculates the tangents of a tree of scene nodes (only the geometry nodes of course).

            # GetClass

            Get the name of the TangentCalculator class.

              # IsA

              Returns true if TangentCalculator is a or is a descendant of the class named as the type parameter.

                # IsNull

                Returns true if the TangentCalculator object is invalid.

                  # Static methods details

                  # IsClassA

                  Returns true if the class is a or is a descendant of the class named as the type parameter.

                    # SafeCast

                    SafeCast makes sure the input object is of a class that can be cast into spTangentCalculator, and if this is the case, returns the object cast into spTangentCalculator.