|
|
Now the scene I add Povray mesh2
PyObject* textureList = PyList_GetItem(blenderObject,5);
number_of_textures = PyObject_Size(textureList);
if (number_of_textures>0)
{
Textures = reinterpret_cast<TEXTURE
**>(POV_MALLOC(number_of_textures*sizeof(TEXTURE *), "triangle mesh data"));
for(i=0; i<number_of_textures; i++)
{
PyObject* pyName = PyList_GetItem(textureList,i);
PyObject* pyTexture = PyObject_Repr(pyName);
pyTexture = PyUnicode_AsEncodedString(pyTexture,
"ASCII","Error ~");
const char *cTexture = PyBytes_AS_STRING(pyTexture);
Textures[i] = Create_Texture();
Post_Textures(Textures[i]);
}
}
At textures no name. How to initialize?
Post a reply to this message
|
|