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:
Cinema 4D Version: 8.100
Platform: Windows ;
Language(s) : C++ ;
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
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.
On 27/05/2003 at 05:07, xxxxxxxx wrote:
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?
On 27/05/2003 at 23:48, xxxxxxxx wrote:
Didn't work how? This code worked:
BaseObject* obj = doc->GetFirstObject();
d1.doc = doc;
d1.op = obj;
d2.op = d1.result1;
doc->InsertObject(d2.op, NULL, NULL);
(Note that the triangulation occurs directly on d2.op, so d2.result2 is NULL.)