```std::numeric_limits<double>``` is on most machines to small. Sometime in models it happens, that line segements almost intersect. The value ```std::numeric_limits<float>``` I found by experimenting. I dont know if there is a better value.