Hi,
I have a scenario where i need to construct large meshes, then variously output those same meshes with various extra data 'appended' to them them.
If i have a preComputeBasicMeshes() that does something like:
MObject basicMesh_DObj = MFnMeshData().create();
MFnMesh().create(
...,
...,
basicMesh_DObj
);
keptForReuse_DObjs[x] = basicMesh_DObj;
... and those MObjects are not inserted into a MDataBlock, then, can i pick them up at any stage, make a copy, set MFnMesh on to those and blat them out into the DG?
Safely.
I woudln't keep a reference to a DG/dataBlock derived or inserted one, for obvious reasons, ... but if you're just making a 'local instance' of the MObject, and it would seem only your node has reference to it, will it be ok?
... i do have that arrangement working, but have i just been lucky thus far with black-boxed memory configurations, and am simply asking for trouble?
Cheers!
C.