3ds Max C++ API Reference
Loading...
Searching...
No Matches
snap.h File Reference
#include "maxheap.h"
#include <WTypes.h>
#include "geom/matrix3.h"
#include "geom/point2.h"

Classes

struct  SnapInfo
 Describes the snap settings used for snap operations. More...
 

Macros

#define SNAP_2D   1
 2 dimensional Snap
 
#define SNAP_25D   2
 2.5 dimensional Snap
 
#define SNAP_3D   3
 3 dimensional Snap
 
#define SNAPMODE_RELATIVE   0
 Snap mode values used by Interface::SetSnapMode(), Interface::GetSnapMode().
 
#define SNAPMODE_ABSOLUTE   1
 Absolute snap mode.
 
#define SNAP_IN_3D   (0)
 Snap to all points.
 
#define SNAP_IN_PLANE   (1<<0)
 Snap only to points on the construction (or optionally specified) plane.
 
#define SNAP_UNSEL_OBJS_ONLY   (1<<1)
 Ignore selected nodes when considering snap points.
 
#define SNAP_SEL_OBJS_ONLY   (1<<2)
 Ignore unselected nodes when considering snap points.
 
#define SNAP_UNSEL_SUBOBJ_ONLY   (1<<3)
 Ignore selected sub-object geometry when considering snap points.
 
#define SNAP_SEL_SUBOBJ_ONLY   (1<<4)
 Ignore unselected sub-object geometry when considering snap points.
 
#define SNAP_FORCE_3D_RESULT   (1<<5)
 Override user settings to force snap in 3D.
 
#define SNAP_OFF_PLANE   (1<<6)
 
#define SNAP_TRANSPARENTLY   (1<<7)
 
#define SNAP_APPLY_CONSTRAINTS   (1<<8)
 
#define SNAP_PROJ_XAXIS   (1<<9)
 
#define SNAP_PROJ_YAXIS   (1<<10)
 
#define SNAP_PROJ_ZAXIS   (1<<11)
 
#define SNAP_XFORM_AXIS   (1<<12)
 Informs the osnapmanager to invalidate the com axis.
 
#define SNAP_BEGIN_SEQ   (1<<13)
 
#define SNAP_END_SEQ   (1<<14)
 
#define SNAP_USE_XFORM_AXIS_IF_NO_SNAP_POINT_FOUND   (1<<15)
 If set, the origin of the selection's transform matrix is used as start snap point if no snap point candidates are found.
 
#define SNAP_USE_XFORM_AXIS_AS_START_SNAP_POINT   (1<<16)
 If set, the origin of the selection's transform matrix is used as start snap point.
 
#define SNAP_OVERRIDE_UNSEL_OBJS_ONLY   (1<<17)
 If set, this overrides the SNAP_UNSEL_OBJS_ONLY flag to allow snap to selected objects.
 
#define SNAP_DURING_CREATION   (1<<18)
 If set, this allows snaps to objects while they are being created (A_OBJ_LONG_CREATE flag set).