SceneKit request: option for -getBoundingBoxMin:max: to ignore hidden nodes

Originator:miles.chris
Number:rdar://14212547 Date Originated:20-Jun-2013 02:10 PM
Status:Open Resolved:
Product:OS X SDK Product Version:10.8.3
Classification:Enhancement Reproducible:Not applicable
 
Summary:

Please add an option for -[SCNBoundingVolume getBoundingBoxMin:max:] to ignore hidden nodes when calculating the bounding box. Similar for –getBoundingSphereCenter:radius:.

Steps to Reproduce:

In the current SDK calling [aNode getBoundingBoxMin:&bboxMin max:&bboxMax] returns the bounding box surrounding the node and all its subnodes, including those subnodes with hidden=YES.

Expected Results:

It would be very convenient to have an option to fetch the bounding box of the node and all its subnodes, ignoring those subnodes with hidden=YES. As these subnodes are not visible in the scene, and I need the bounding box to reflect that.

For example: [aNode getBoundingBoxMin:&bboxMin max:&bboxMax excludeHidden:YES]

Actual Results:

-getBoundingBoxMin:max: currently returns the bounding box surrounding the node and all its subnodes, including those subnodes with hidden=YES.

Regression:

n/a

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!