3ds Max C++ API Reference
Flags for Sub Object Hit Test

These are the same bits used for object level. More...

Macros

#define SUBHIT_SELONLY   (1<<0)
 Selected only. More...
 
#define SUBHIT_UNSELONLY   (1<<2)
 Unselected only. More...
 
#define SUBHIT_ABORTONHIT   (1<<3)
 Abort hit testing on the first hit found. More...
 
#define SUBHIT_SELSOLID   (1<<4)
 This treats selected items as solid and unselected items as not solid. More...
 
#define SUBHIT_USEFACESEL   (1<<23)
 When this bit is set, the sel only and unsel only tests will use the faces selection when doing a vertex level hit test. More...
 
#define SUBHIT_VERTS   (1<<24)
 Hit test vertices. More...
 
#define SUBHIT_FACES   (1<<25)
 Hit test faces. More...
 
#define SUBHIT_EDGES   (1<<26)
 Hit test edges. More...
 
#define SUBHIT_TYPEMASK   (SUBHIT_VERTS|SUBHIT_FACES|SUBHIT_EDGES)
 
#define SUBHIT_CHECK_ONLY   (1<<28)
 Use this flag for Mesh::SubObjectHitTest or MNMesh::SubObjectHitTest to check if any or all sub-objects are hit. More...
 
#define SUBHIT_IGNOREOCCLUDED   (1 << 30)
 Indicates that occluded sub-objects should be ignored. More...
 

Detailed Description

These are the same bits used for object level.

Macro Definition Documentation

◆ SUBHIT_SELONLY

#define SUBHIT_SELONLY   (1<<0)

Selected only.

◆ SUBHIT_UNSELONLY

#define SUBHIT_UNSELONLY   (1<<2)

Unselected only.

◆ SUBHIT_ABORTONHIT

#define SUBHIT_ABORTONHIT   (1<<3)

Abort hit testing on the first hit found.

◆ SUBHIT_SELSOLID

#define SUBHIT_SELSOLID   (1<<4)

This treats selected items as solid and unselected items as not solid.

Treating an item as solid means the face will be hit if the mouse is anywhere inside the face region and not just over a visible edge.

◆ SUBHIT_USEFACESEL

#define SUBHIT_USEFACESEL   (1<<23)

When this bit is set, the sel only and unsel only tests will use the faces selection when doing a vertex level hit test.

◆ SUBHIT_VERTS

#define SUBHIT_VERTS   (1<<24)

Hit test vertices.

◆ SUBHIT_FACES

#define SUBHIT_FACES   (1<<25)

Hit test faces.

◆ SUBHIT_EDGES

#define SUBHIT_EDGES   (1<<26)

Hit test edges.

◆ SUBHIT_TYPEMASK

#define SUBHIT_TYPEMASK   (SUBHIT_VERTS|SUBHIT_FACES|SUBHIT_EDGES)

◆ SUBHIT_CHECK_ONLY

#define SUBHIT_CHECK_ONLY   (1<<28)

Use this flag for Mesh::SubObjectHitTest or MNMesh::SubObjectHitTest to check if any or all sub-objects are hit.

The system uses this flag to perform per-object selection test.

◆ SUBHIT_IGNOREOCCLUDED

#define SUBHIT_IGNOREOCCLUDED   (1 << 30)

Indicates that occluded sub-objects should be ignored.