Thanks for testing.
I am about to make an option for safety-handling to avoid, that user will start this script with to much verts. I just do not know how to produce an appropriate alert-message on the Interface.
I have to switch to faces and verts, because otherwise parts of the new verts just vanishes, and i have still not figured out why this happens. Also i do not know, why some of the coordinates of some verts turn to 0 at the end of the script. I got the impression, that assigning new verts and faces should happen as far at the end of the script as possible, and should happen all at once.
The problem with the inside-outside-detection can happen, if the triangulation fails to make all triangles, so that there is a hole in the result. This hole unwinds a proper detection. Putting in some arbitrary points near areas with lot of points sometimes help (and the results look prettier).
Yes, i also have experienced some better result in the physic engine. But for the physic-engine i would like to have a more adaptive triangulation, like the external program you pointed out. One of the main algorithms (delauney-triangulation) will be a big help, but now i need some algorithm to make the internal points, something that make them more dense on parts with a lot of details.
By the way, an improved script is out
i have unraveled two more problems, but still a lot to do…