BoundingBox
 
 
 

BoundingBox


Description

Return the Bounding Box for the custom primitive.

Bounding Box is used for scene interaction optimizations. Note that unlike the Draw callback, the Bounding Box values are cached internally and only called when there are updates such as changes to parameter values.


Applies To

Custom Primitive


Syntax

CStatus <plugin-item_name>_BoundingBox( CRef& in_context )
{
        ...
}

<plugin-item-name> is the name specified in the call to PluginRegistrar.RegisterPrimitive with any spaces converted to underscores. For example, if you register a primitive with the name "My Primitive", the callback function names start with "My_Primitive".


Parameters

Parameter Language Type Description
in_context C++ CRef& A reference to the Context object. Context::GetSource returns the CustomPrimitive.

See Also