Specialized transforming visitor that measures the bounding box of a node and all its descendants, by traversing each descendant node, ensuring each transformMatrix is up to date, and accumulating a bounding box that encompasses the local content of the startingNode and all of its descendants. More...
#import <CC3NodeVisitor.h>
Properties | |
CC3BoundingBox | boundingBox |
Specialized transforming visitor that measures the bounding box of a node and all its descendants, by traversing each descendant node, ensuring each transformMatrix is up to date, and accumulating a bounding box that encompasses the local content of the startingNode and all of its descendants.
If the value of the shouldLocalizeToStartingNode property is YES, the bounding box will be in the local coordinate system of the startingNode, otherwise it will be in the global coordinate system of the 3D scene.
- (CC3BoundingBox) boundingBox [read, assign] |
Returns the bounding box accumulated during the visitation run.
If the value of the shouldLocalizeToStartingNode property is YES, the bounding box will be in the local coordinate system of the startingNode, otherwise it will be in the global coordinate system of the 3D scene.
If none of the startingNode or its descendants have any local content, this property will return kCC3BoundingBoxNull.
The initial value of this property will be kCC3BoundingBoxNull.