One more attempt to implement min segment angle