public void ObjectBoundingBox(int objectID, ref AxisAlignedBox3f box) { StoredCommands sc = new StoredCommands(); uint key = sc.AppendQueryCommand_GetObjectBoundingBox(objectID); ExecuteCommands(sc); floatArray min = new floatArray(3), max = new floatArray(3); sc.GetQueryResult_GetBoundingBox(key, min.cast(), max.cast()); box.Min.Set(min); box.Max.Set(max); }