revamped geometry3d.py to keep triangles that are too close
did in cpp