Open Search
    RayObjectInstanceData Struct Reference

    #include <c4d_raytrace.h>

    Public Attributes

    Int32 instance_of_index
     
    Matrix64 transform
     
    Matrix64 transform_inverse
     
    Matrix64 transform_tensor
     
    BaseObjectlink
     
    Matrix64 _matrix
     
    Int32 _instanceID
     
    maxon::Bool _useColor
     
    maxon::Color64 _color
     

    Member Data Documentation

    ◆ instance_of_index

    Int32 instance_of_index

    Index to the instanced ray object.

    ◆ transform

    Matrix64 transform

    Transformation matrix of the instance.
    Transformation from original object's point to instanced object: new_point = old_point * instanced_rayobject->instance->transform

    ◆ transform_inverse

    Matrix64 transform_inverse

    Inverse transformation matrix of the instance.
    Transformation from instanced object's point to original object: new_point = old_point * instanced_rayobject->instance->transform_inverse

    ◆ transform_tensor

    Matrix64 transform_tensor

    Transformation matrix tensor of the instance.
    Transformation of normal from original object to instanced object: new_normal = !(old_normal^instanced_rayobject->instance->transform_tensor)

    ◆ link

    BaseObject* link

    Link to the virtual instance parent (the "Instance" object).

    ◆ _matrix

    Matrix64 _matrix

    Matrix of the instance.

    Since
    R19

    ◆ _instanceID

    Int32 _instanceID

    ID of the given instance. Used for Multi-Instance for now.

    Since
    R20

    ◆ _useColor

    maxon::Bool _useColor

    request use of color.

    Since
    R20

    ◆ _color

    desired color for the instance.

    Since
    R20