Class FaceChange

3DS Max Plug-In SDK

Class FaceChange

See Also: Class Mesh, Class Face, Class Point3.

class FaceChange

Description:

This class is available in release 3.0 and later only.

This class represents the notion of a mesh edit Face Change, which changes the visibiliy of the face's edges, its hidden state and/or its material ID.

Data Members:

public:

DWORD f

The face to change. This is a zero based index into the Mesh's faces array.

DWORD flags

Specifies which attributes to change. One or more of the following values:

ATTRIB_EDGE_A - Alter edge between v0 and v1

ATTRIB_EDGE_B - Alter edge between v1 and v2

ATTRIB_EDGE_C - Alter edge between v2 and v0

ATTRIB_EDGE_ALL - Alter all the edges.

ATTRIB_HIDE_FACE - Alter the face hidden state.

ATTRIB_MATID - Alter the material ID.

DWORD val;

The value containing the face change information. Bits 0, 1, 2 hold the edge visibility, bit 3 holds the hidden state, and bits 5-21 hold the material ID.

Methods:

public:

Prototype:

FaceChange();

Remarks:

Constructor. The flags and f are set to 0.

Prototype:

FaceChange(DWORD ff, DWORD fl, DWORD v);

Remarks:

Constructor. The data members are initialized to the values passed.

Parameters:

DWORD ff

The index of the face to change. This is a zero based index into the Mesh's faces array.

DWORD fl

The flags to set.

DWORD v

The value to set.

Prototype:

void Apply(Face &ff);

Remarks:

Applies the face change to the Face passed using the flags of this FaceChange object to contol what's altered.

Parameters:

Face &ff

The face to change.

Prototype:

void Apply(FaceChange &fa);

Remarks:

Updates the flags and val to the FaceChange passed using this FaceChange and its flags.

Parameters:

FaceChange &fa

The FaceChange object to alter.