I'm digging in scikits image toolbox and similars in order to manipulate image data in python.
When we have a binary (x,y) image how could we use it as mask to generate a mesh inside the image limits? I want to export this mesh to a CAE program. So, I need to collect the mesh coordinates and also the element list
I found out some tools such as meshpy, but I didn't figure it out how can I solve this.
Thank you
The following solution is based on MeshLib python package.
Let us have a binary image with 3 coins:
Then one can convert it in triangular mesh as follows:
At this moment we got
To construct a mesh with not that much degenerate triangles, long edges can be subdivided:
Our final result: