cocos3d  2.0.0
Class Methods | Properties | List of all members
CC3NodeSphereThenBoxBoundingVolume Class Reference

#import <CC3BoundingVolumes.h>

Inheritance diagram for CC3NodeSphereThenBoxBoundingVolume:
Inheritance graph
[legend]

Class Methods

(id) + boundingVolume
 
(id) + boundingVolumeCircumscribingBox:
 
(id) + boundingVolumeFromSphere:andBox:
 
(id) + boundingVolumeWithSphereVolume:andBoxVolume:
 
(id) + DEPRECATED_ATTRIBUTE
 

Properties

CC3NodeBoxBoundingVolumeboxBoundingVolume
 
CC3NodeSphericalBoundingVolumesphericalBoundingVolume
 
- Properties inherited from CC3NodeTighteningBoundingVolumeSequence
NSArray * boundingVolumes
 
- Properties inherited from CC3NodeBoundingVolume
CC3Vector centerOfGeometry
 
CC3Vector globalCenterOfGeometry
 
BOOL isTransformDirty
 
CC3Nodenode
 
BOOL shouldBuildFromMesh
 
BOOL shouldDraw
 
BOOL shouldMaximize
 
- Properties inherited from CC3BoundingVolume
BOOL isDirty
 
GLuint planeCount
 
CC3Planeplanes
 
BOOL shouldIgnoreRayIntersection
 
BOOL shouldLogIntersectionMisses
 
BOOL shouldLogIntersections
 
GLuint vertexCount
 
CC3Vectorvertices
 

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:
 

Detailed Description

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.

Method Documentation

+ (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.

+ (id) boundingVolumeFromSphere: (CC3Sphere sphere
andBox: (CC3Box 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.

Deprecated:
Use boundingVolume instead.

Property Documentation

- (CC3NodeBoxBoundingVolume*) boxBoundingVolume
readnonatomicstrong

The box bounding volume that is tested only if the test against the spherical bounding volume passes.

- (CC3NodeSphericalBoundingVolume*) sphericalBoundingVolume
readnonatomicstrong

The spherical bounding volume that is tested first.


The documentation for this class was generated from the following file: