# 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
TangentCalculatorType Sets/Gets the tangent calculator type, types listed in TangentSpaceMethod.

# 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.
SetTexCoordsSetId The TexCoords field id to use for the tangent calculation. If set to -1, all texture coordinates will get corresponding tangent fields.

# 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

# TangentCalculatorType

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

    # 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.

              # SetTexCoordsSetId

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

                # 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.