THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/10/2008 at 09:34, xxxxxxxx wrote:
User Information:
Cinema 4D Version:
Platform:
Language(s) :
---------
Hi,
im having problems using the sendModellingCommand to split an object which has some poys selected.
here's the code:
> \> ModelingCommandData md1; \> // obj is a clone of the original object with the poy selection \> md1.op = obj; md1.doc = doc; \> //md1.mode = MODIFY_POLYGONSELECTION; \> if(!SendModelingCommand(MCOMMAND_SPLIT, md1)) goto Error; \> \> AtomArray::Free(md1.result); \> AtomArray::Free(md1.arr); \> \> return; \> \> Error: \> GePrint("couldnt split it!"); \> AtomArray::Free(md1.result); \> AtomArray::Free(md1.arr); \>
I cant really see whats wrong there.
I always get 'couldnt split it'.
AFAIK the result is stored in md1.op, and not in md1.result. Thats why 'obj' is a clone of the original object.
in the end md1.op is just a copy, bc the split comand failed.
Setting the md1.mode to polyselection doesnt change anything..
anybody has some experience with the split comamnd ?
im using alignnormals and reverse normals in a similar way, and they wotk just fine..
thx,
Daniel