Object transformation
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/05/2003 at 11:54, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.100
Platform: Windows ;
Language(s) : C++ ;---------
Hi,
I write with the first psotive results on my NPR renderer. But at the moment it is only working for polygons and not for lathe, extrue and hyper nurbs objects etc. The problem is that I need all points and polygons of the object. Is there any possibility to transform this kind of objects to get the polygons and points of the object without make the "editable" because after this command everybody know that you can't change the parameters of this kind objects.
I hope you understand my problem
Thanks
Cathleen -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/05/2003 at 01:08, xxxxxxxx wrote:
You can use SendModelingCommand() to get a temporary "editable" object with MCOMMAND_CURRENTSTATETOOBJECT. There's an example in the docs.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/05/2003 at 05:07, xxxxxxxx wrote:
Hi,
thank you. But after this I need triangles and when I want to triangulate the objects after MCOMMAND_CURRENTSTATETOOBJECT the MCOMMAND for triangulation didn't work. Have anybody a idea?
Thanks
Cathleen -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/05/2003 at 23:48, xxxxxxxx wrote:
Didn't work how? This code worked:
BaseObject* obj = doc->GetFirstObject(); ModelingCommandData d1; d1.doc = doc; d1.op = obj; SendModelingCommand(MCOMMAND_CURRENTSTATETOOBJECT, d1); ModelingCommandData d2; d2.op = d1.result1; SendModelingCommand(MCOMMAND_TRIANGULATE, d2); doc->InsertObject(d2.op, NULL, NULL); EventAdd();
(Note that the triangulation occurs directly on d2.op, so d2.result2 is NULL.)