Package apple.scenekit.protocol
Interface SCNBoundingVolume
-
- All Known Implementing Classes:
ARSCNFaceGeometry,ARSCNPlaneGeometry,SCNBox,SCNCapsule,SCNCone,SCNCylinder,SCNFloor,SCNGeometry,SCNNode,SCNPlane,SCNPyramid,SCNReferenceNode,SCNShape,SCNSphere,SCNText,SCNTorus,SCNTube
public interface SCNBoundingVolume[@protocol] 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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleangetBoundingBoxMinMax(SCNVector3 min, SCNVector3 max)getBoundingBoxMin:max: Fill the min and max vectors with the min and max vertex of the bounding box.booleangetBoundingSphereCenterRadius(SCNVector3 center, org.moe.natj.general.ptr.NFloatPtr radius)getBoundingSphereCenter:radius: Fill the center vector with the center of the bounding sphere and store the radius of the bounding sphere in 'radius'.voidsetBoundingBoxMinMax(SCNVector3 min, SCNVector3 max)setBoundingBoxMin:max: Override the receiver bounding box with the min and max vectors provided (in local space of the receiver).
-
-
-
Method Detail
-
getBoundingBoxMinMax
boolean getBoundingBoxMinMax(SCNVector3 min, SCNVector3 max)
getBoundingBoxMin: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.- Parameters:
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.
-
getBoundingSphereCenterRadius
boolean getBoundingSphereCenterRadius(SCNVector3 center, org.moe.natj.general.ptr.NFloatPtr radius)
getBoundingSphereCenter: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.- Parameters:
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.
-
setBoundingBoxMinMax
void setBoundingBoxMinMax(SCNVector3 min, SCNVector3 max)
setBoundingBoxMin: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.- Parameters:
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.
-
-