Structure SnapInfo

3DS Max Plug-In SDK

Structure SnapInfo

See Also: List of Snap Flags, Class ViewExp.

This structure describes the snap settings used for an operation.

typedef struct {

int snapType;

One of the following values:

SNAP_2D

2-D Snap.

SNAP_25D

2 1/2-D Snap.

SNAP_3D

3-D Snap.

int strength;

Maximum snap distance.

int vertPriority;

Geometry vertex priority.

int edgePriority;

Geometry edge priority.

int gIntPriority;

Grid intersection priority.

int gLinePriority;

Grid line priority.

DWORD flags;

See List of Snap Flags.

Matrix3 plane;

Plane to use for snap computations.

Point3 bestWorld;

Best snap point in world space.

Point2 bestScreen;

Best snap point in screen space.

int bestDist;

Best snap point distance.

int priority;

Best point's priority.

} SnapInfo;