Fixed bug: When moving vertices in the input area while a color mapping exists, we have a null pointer and it crashes.
Fix bug and potential bugs with painters not being reset between draws.
Fixed error in ordering of mesh vertices
Implemented constraining of vertices in polygons (esp. meshes) to avoid line crossing problems. Working at 99%.
Cosmetic changes