THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 15/07/2010 at 08:45, xxxxxxxx wrote:
Cinema 4D Version: 11.5
Platform: Windows ;
Language(s) : C++ ;
I am new in this forum, and i am a beginner with c4d SDK.
I want to convert some simple BaseObjects like cubes or sphere into mesh, that is to say into a list of vertex and edges and triangles, or something like that. How can I do that? Is there a simple function to do that?
On 15/07/2010 at 11:05, xxxxxxxx wrote:
Take a look in the SDK documentation for SendModelingCommand()- you could use MCOMMAND_MAKEEDITABLE to convert a primitive into a polygon object.
On 16/07/2010 at 11:02, xxxxxxxx wrote:
thank you, it works. Is there a way to do this without destroying the original primitive? in fact I just need to get the infos of vertex, edges, faces, of the primitive. (sorry my first question wasn't correctly formulated, I don't really need to "convert")
On 16/07/2010 at 14:36, xxxxxxxx wrote:
You should create a clone of the object first and make the clone editable.
You could also try to use MCOMMAND_CURRENTSTATETOOBJECT for that.