cocos3d
2.0.0
|
#import <CC3BoundingVolumes.h>
Class Methods | |
(id) | + boundingVolume |
(id) | + boundingVolumeCircumscribingBox: |
(id) | + boundingVolumeFromSphere:andBox: |
(id) | + boundingVolumeWithSphereVolume:andBoxVolume: |
(id) | + DEPRECATED_ATTRIBUTE |
Properties | |
CC3NodeBoxBoundingVolume * | boxBoundingVolume |
CC3NodeSphericalBoundingVolume * | sphericalBoundingVolume |
Properties inherited from CC3NodeTighteningBoundingVolumeSequence | |
NSArray * | boundingVolumes |
Properties inherited from CC3NodeBoundingVolume | |
CC3Vector | centerOfGeometry |
CC3Vector | globalCenterOfGeometry |
BOOL | isTransformDirty |
CC3Node * | node |
BOOL | shouldBuildFromMesh |
BOOL | shouldDraw |
BOOL | shouldMaximize |
Properties inherited from CC3BoundingVolume | |
BOOL | isDirty |
GLuint | planeCount |
CC3Plane * | planes |
BOOL | shouldIgnoreRayIntersection |
BOOL | shouldLogIntersectionMisses |
BOOL | shouldLogIntersections |
GLuint | vertexCount |
CC3Vector * | vertices |
Additional Inherited Members | |
Instance Methods inherited from CC3NodeTighteningBoundingVolumeSequence | |
(void) | - addBoundingVolume: |
(BOOL) | - doesIntersect: |
(BOOL) | - doesIntersectConvexHullOf:planes:from: |
(BOOL) | - doesIntersectLocation: |
(BOOL) | - doesIntersectRay: |
(BOOL) | - doesIntersectSphere:from: |
(BOOL) | - isInFrontOfPlane: |
CC3NodeSphereThenBoxBoundingVolume is a CC3NodeTighteningBoundingVolumeSequence that contains a single CC3NodeSphericalBoundingVolume and a single CC3NodeBoxBoundingVolume, in that order.
The spherical bounding volume is tested first, and if it passes, the bounding box volume is tested next. This combination benefits from the fast testing capabilities of the spherical bounding volume to reject obvious intersection failures, and benefits from the bounding box's more accurate volume coverage on most meshes.
+ (id) boundingVolume |
Allocates and initializes an autoreleased instance containing a standard CC3NodeSphericalBoundingVolume and a standard CC3NodeBoxBoundingVolume.
Implements CC3BoundingVolume.
+ (id) boundingVolumeCircumscribingBox: | (CC3Box) | box |
Allocates and returns an autoreleased instance containing spherical and box bounding volumes created from the specified box.
The spherical bounding volume is created by circumscribine the box.
Allocates and returns an autoreleased instance containing spherical and box bounding volumes created from the specified sphere and box, respectively.
+ (id) boundingVolumeWithSphereVolume: | (CC3NodeSphericalBoundingVolume *) | sphereBV | |
andBoxVolume: | (CC3NodeBoxBoundingVolume *) | boxBV | |
Allocates and returns an autoreleased instance containing the specified bounding volumes.
+ (id) DEPRECATED_ATTRIBUTE |
|
readnonatomicstrong |
The box bounding volume that is tested only if the test against the spherical bounding volume passes.
|
readnonatomicstrong |
The spherical bounding volume that is tested first.