Class MeshSubHitRec
See Also: Class Mesh, Class BitArray.
class MeshSubHitRec
Description:
This class allows access to the sub-object hit records used in Mesh hit testing. All methods of this class are implemented by the system.
Data Members:
public:
DWORD dist;
The distance of the hit. If the user is in wireframe mode, this is the distance in pixels to the item that was hit. If the user is in shaded mode, this is the Z depth distance. Smaller numbers indicate a closer hit.
int index;
The index of the sub-object component. For example, if faces were being hit tested, this would be the index of the mesh's BitArray faceSel. For edges, this is the index into the edgeSel BitArray, where the index is 3*faceIndex+edgeIndex.
DWORD flags;
These are not currently used.
Methods:
Prototype:
MeshSubHitRec(DWORD dist, int index, MeshSubHitRec *next);
Remarks:
Constructor. The data members are initialized to the data members passed.
Prototype:
MeshSubHitRec(DWORD dist, int index, DWORD flags, MeshSubHitRec *next)
Remarks:
Constructor. The data members are initialized to the data members passed.
Prototype:
MeshSubHitRec *Next();
Remarks:
Returns the next mesh sub hit record.