Public Member Functions | Public Attributes

MeshSubHitRec Class Reference

Search for all occurrences

Detailed 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.

See also:
Class Mesh, Class BitArray.

#include <mesh.h>

Inheritance diagram for MeshSubHitRec:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  MeshSubHitRec (DWORD dist, int index, MeshSubHitRec *next)
  Constructor.
  MeshSubHitRec (DWORD dist, int index, DWORD flags, MeshSubHitRec *next)
  Constructor.
MeshSubHitRec Next ()
  Returns the next mesh sub hit record.

Public Attributes

DWORD  dist
  The distance of the hit.
int  index
  The index of the sub-object component.
DWORD  flags

Constructor & Destructor Documentation

MeshSubHitRec ( DWORD  dist,
int  index,
MeshSubHitRec next 
) [inline]

Constructor.

The data members are initialized to the data members passed.

            {this->dist = dist; this->index = index; this->next = next;}
MeshSubHitRec ( DWORD  dist,
int  index,
DWORD  flags,
MeshSubHitRec next 
) [inline]

Constructor.

The data members are initialized to the data members passed.

            {this->dist = dist; this->index = index; this->next = next;this->flags = flags;}

Member Function Documentation

MeshSubHitRec* Next ( ) [inline]

Returns the next mesh sub hit record.

{ return next; }        

Member Data Documentation

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
Deprecated:
These are not currently used.

MeshSubHitRec MeshSubHitRec MeshSubHitRec MeshSubHitRec MeshSubHitRec MeshSubHitRec MeshSubHitRec MeshSubHitRec MeshSubHitRec MeshSubHitRec
MeshSubHitRec MeshSubHitRec MeshSubHitRec MeshSubHitRec MeshSubHitRec MeshSubHitRec MeshSubHitRec MeshSubHitRec MeshSubHitRec MeshSubHitRec