I need to pass from Java
List< List<MyPoint> > points;
over jni to C++ and convert to
std::vector< std::vector<MyPoint> >
Process this vectors and return
List< List<MyPoint> >
- How correct pass and return list of lists?
- How convert list of lists of objects in vector of vectors of objects and backward?
I solved this problem with standard tools.
Code implement:
On java part:
1 – Create array from list of points
On c++ part:
2 – build input vector
3 – calculation
lines4 – build output array
Java part
5 – Create list of lines from returned array