On 12/05/2015 at 01:37, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 15
Platform: Mac ;
Language(s) : C++ ;
---------
Hello folks,
Is there any way to obtain the geometry (faces and vertices) of a primitive object without making it editable?
If I have a primitive object (a cube) and made it editable (right click + "Make Editable") I can get the geometry of that object with these methods:
const CPolygon* polys = object->GetPolygonR();
const Vector* vertices = object->GetPointR();
const Int32 numPolys = object->GetPolygonCount();
const Int32 numVertices = object->GetPointCount();
They return valid results. I can also see that the type of the object has been changed to OBJECT_POLYGONOBJECT after making it editable.
If I try to access these same values with a primitive object (i.e. a cube) without making it editable I see that the type of the object is OBJECT_GENERATOR but those methods return NULL and 0.
so, does anybody know the correct way to access that information?