Closed michaelleerilee closed 4 years ago
I've added code that checks to see if a new point is colinear with two others. If the new point is in between the other two, it is discarded. If it is outside, it is retained and another point is removed.
setPolyCorner is somewhat sensitive to error with colinear points. I've added a hard-coded tolerance which seems to help. I wonder how others handle this problem.
Added several unit tests for this.
htmInterface::setPolyCorner has trouble handling adding points to a hull that lie on an existing edge.