Python Forum

Full Version: Vertex(Contour) to mesh conversion
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a list of vertices that represent the contour of a shape in a two-dimensional plane. Where each pair represents an x and y coordinate. The contour was interpreted from an image thorugh the Opencv Module (findContour).

Take for instance a list of vertices:
[130 110][131 110][132 111][130 113][133 116][133 118][131 120][129 118][129 117][128 116][128 114][127 113]

I would like to know if there is a way of procesing this list and creating a mesh ideally an ngon.
Great many returns from duck duck go with query 'how to create a mesh python'
example: https://blender.stackexchange.com/a/61893 (six year old answer)