I have created a low poly mesh with the script and unfortunately I get an invalid mesh which I cannot use for further processing.
Can someone help me how to fix this problem?
Thanks in advance
P.S.: Then I would like to edit the mesh so that I get bars/curves of relatively equal length or edit the script so that I can limit the length. Thank you for any tips.
or you can try reduce mesh. in your previous script, the closest point outputs 55 unique vertices. (you can test that by passing it into a set, which removes duplicate]