OpenCv + poly2tri + pBox2D
in
Contributed Library Questions
•
2 years ago
Hi
Im developing an tracking app based on kinect, the program does those things rigth:
- obtain a blob with opencv
- delaunay that blob using poly2tri
But now i want to put those triangles inside a pbox2d body and i always get assertionerror creating the shape.
How can i draw a complex body created from triangles in pbox2 ?????
I dont know if the delaunay that i get using poly2tri is usable directly in box2d (vertex order, minimun size,...)
In openframeworks there are methods to do this easy but i can not seems to be capable of doing in processing.
Please, give me some light on that !!!!!!!!!!!!!!!!!
Best regards
Natxo Pedreira Gonzalez
Im developing an tracking app based on kinect, the program does those things rigth:
- obtain a blob with opencv
- delaunay that blob using poly2tri
But now i want to put those triangles inside a pbox2d body and i always get assertionerror creating the shape.
How can i draw a complex body created from triangles in pbox2 ?????
I dont know if the delaunay that i get using poly2tri is usable directly in box2d (vertex order, minimun size,...)
In openframeworks there are methods to do this easy but i can not seems to be capable of doing in processing.
Please, give me some light on that !!!!!!!!!!!!!!!!!
Best regards
Natxo Pedreira Gonzalez
1