@r_gigante
Thanks for this info.
In two of my plugins I am already handling the TagData::Message
to check for point and polygon changes (and other things as well).
To my understanding, all this would be performed on the object remaining after the merge.
What happens to the objects being merged "into" the remaining object, and especially the tags assigned to them.
I am still wondering how to actually be able to merge the data from the other tags.
Say you have 3 objects: cube. sphere, cylinder. Each has a custom tag assigned.
To keep it simple let's say that the tag stores a user specified value.
User has entered value 10 for the cube, 15 for the sphere, 12 for the cylinder.
Now, when the 3 objects get merged (via connect
or connect + delete
or SendModelingCommand(MCOMMAND_JOIN ...
, ...) the end result is the cube object receiving all the polygons and points, etc ... from all 3 objects. Internally the UVW tag
is merged, etc ...
The custom tag from the original cube remains as is, with value 10, and could react to i.e. MSG_POLYGONS_CHANGED
in the TagData::Message
.
But ... how and where would I be able to handle the merging of values 15 and 12 into the custom tag ?
Only when perform a SendModelingCommand(MCOMMAND_JOIN ...
am I able to actively merge the values, as I know which objects will be merged, and thus can obtain the values from their tags before the joining is performed.
With a connect or connect + delete, how to know about the other objects, and especially their custom tags? I don't expect this to be available inside a TagData::Message