3ds Max C++ API Reference
Loading...
Searching...
No Matches
Flags for Sub Object Hit Test

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

Macros

#define SUBHIT_SELONLY   (1<<0)
 Selected only.
 
#define SUBHIT_UNSELONLY   (1<<2)
 Unselected only.
 
#define SUBHIT_ABORTONHIT   (1<<3)
 Abort hit testing on the first hit found.
 
#define SUBHIT_SELSOLID   (1<<4)
 This treats selected items as solid and unselected items as not solid.
 
#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.
 
#define SUBHIT_VERTS   (1<<24)
 Hit test vertices.
 
#define SUBHIT_FACES   (1<<25)
 Hit test faces.
 
#define SUBHIT_EDGES   (1<<26)
 Hit test edges.
 
#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.
 
#define SUBHIT_IGNOREOCCLUDED   (1 << 30)
 Indicates that occluded sub-objects should be ignored.
 

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.