I'm having trouble getting an array filled from a DLL.
Here's my DLL code:
DLLEXPORT void get_triangles(int *p)
{
vector<int> ints;
ints.push_back(123);
ints.push_back(456);
p = &ints[0];
}
.... and here's the Python code:
from ctypes import cdll
mydll = cdll.LoadLibrary('mc_dll.dll')
arr = []
mydll.get_triangles(arr)