public interface SCNBoundingVolume
The SCNBoundingVolume protocol is implemented by objects which can compute their bounding boxes.
You can currently use this protocol to get the bounding boxes of nodes and geometries.
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoundingBoxMinMax(SCNVector3 min,
SCNVector3 max)
getBoundingBoxMin:max:
|
boolean |
getBoundingSphereCenterRadius(SCNVector3 center,
org.moe.natj.general.ptr.NFloatPtr radius)
getBoundingSphereCenter:radius:
|
void |
setBoundingBoxMinMax(SCNVector3 min,
SCNVector3 max)
setBoundingBoxMin:max:
|
boolean getBoundingBoxMinMax(SCNVector3 min, SCNVector3 max)
Fill the min and max vectors with the min and max vertex of the bounding box.
the returned bounding box is in local space of the receiver.
min - A pointer to a SCNVector3 to store the min vertex of the bounding box into.max - A pointer to a SCNVector3 to store the max vertex of the bounding box into.boolean getBoundingSphereCenterRadius(SCNVector3 center, org.moe.natj.general.ptr.NFloatPtr radius)
Fill the center vector with the center of the bounding sphere and store the radius of the bounding sphere in 'radius'.
the returned bounding sphere is in local space of the receiver.
center - A pointer to a SCNVector3 to store the center of the bounding sphere into.radius - A pointer to a CGFloat to store the radius of the bounding sphere into.void setBoundingBoxMinMax(SCNVector3 min, SCNVector3 max)
Override the receiver bounding box with the min and max vectors provided (in local space of the receiver).
Passing nil as arguments will recompute the original bounding box of the receiver.
min - A pointer to a SCNVector3 representing the min vertex of the desired bounding box.max - A pointer to a SCNVector3 representing the max vertex of the desired bounding box.