#include <c4d_baselist.h>
The VariableChanged structure is essential for changing point/polygon counts in objects to allocate or remove multiple elements with a single C4DAtom::Message() call.
It can be used for example when sending MSG_POINTS_CHANGED and MSG_POLYGONS_CHANGED messages to objects, tags and keys.
The structure contains the number of elements (points or polygons) before and after the change, and optionally a translation map array.
Each element in the map represents an element before the change, and its value decides what element this corresponds to after the change. This is used to keep for example point selections and vertex maps valid.
Example: Adding a point to a point object.
Example: Inserting a point in a point object.
Public Member Functions | |
VariableChanged () | |
Public Attributes | |
Int32 | old_cnt |
Int32 | new_cnt |
Int32 * | map |
Int32 | vc_flags |
VariableChanged | ( | ) |
Default constructor.
Int32 old_cnt |
The number of elements before the change.
Int32 new_cnt |
The new number of elements.