This page contains reference documentation for the GetSelectBounds function. This function returns the geometric extent of a node-select along X, Y, and Z.
int GetSelectBounds( Vec Min, Vec Max )
Function parameters are as follows:
Examples are as follows:
Vec aVec1 = new Vec; Vec aVec2 = new Vec; Matrix RootTransform = new Matrix; node.Parent().GetTransformToGroup( Model, RootTransform ); Model.GetSelectedNode( 0 ).GetSelectBounds( aVec1, aVec2 ); node.Parent().TransformPointToGroup( Model, aVec1); RootTransform.Position[0] = aVec1.X; RootTransform.Position[1] = aVec1.Y; RootTransform.Position[2] = aVec1.Z; Model.Grid.SetManipulatorTransform( RootTransform ); delete RootTransform; delete aVec1; delete aVec2;
For sample code: