We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello: I am trying to create a surface mesh ultimately, from OpenCV detected contours using ToxicLibs. I first want to create the Voronoi2D points, then convert them to 3D and add them to a mesh. Or Simply Triangulate the contour as a plane using the Voronoi class, then add that plane as faces to a mesh.
However I am getting stuck on the best way to add the voronoi points, my program is slow and keeps crashing. This is because the contour and bounding box change every frame, so operations have to occur every frame. Using nested for loops seems like a bad idea given that, but I am not sure how else to do it. Please let me know if you have advice.
If I use only the PolygonApproximation Contour, I can get the voronoi points and not compromise speed (yet), but i am wondering what the best way to convert these to 3D faces would be next. Thanks.