Class MNVert

3DS Max Plug-In SDK

Class MNVert

See Also: Class FlagUser, Class MNMesh, Template Class Tab.

class MNVert : public FlagUser

Description:

This class is available in release 2.0 and later only.

MNVert is the vertex class used with the MNMesh mesh. MNVerts have not only a Point3 location, but also some flags.

All methods of this class are implemented by the system.

Data Members:

public:

Point3 p

The location of this MNVert.

int orig

This data member is obsolete and should not be used.

Flags:

For more information on flags, see Class FlagUser.

MN_SEL

Indicates that the vertex is selected.

MN_TARG

Indicates that the vertex is targeted. (See the MNMesh methods starting with the words TargetBy.)

MN_DEAD

Indicates that the vertex is not used and should be ignored. Vertices with the MN_DEAD flag are deleted in the next MNMesh call to CollapseDeadVerts ().

MN_BACKFACING

Indicates that the vertex faces "backwards" in the current viewport. (Changes often.)

MN_WHATEVER

Developers should not use this flag and should restrict themselves to MN_USER and higher bits.

MN_VERT_DONE

Set in algorithms that may accidentally revisit the same vertex twice, to keep them from processing it the second time.

MN_VERT_HIDDEN

Different from MN_HIDDEN - means a vert is on a face's hvtx list, rather than existing independently of faces.

MN_USER(1<<16)

Flag bits at or above MN_USER are reserved in all MNMesh components for the plug-in developer, if needed. Since FlagUser-derived classes have 32 flag bits, this allows for up to 16 user-defined flags.

Methods:

Prototype:

MNVert();

Remarks:

Constructor.

This method initializes the MNVert.

Prototype:

MNVert & operator=(MNVert & from);

Remarks:

Assignment operator. Copies over all data from "from".