You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The segment_segment_distance_and_normal routine fails the KKT conditions in certain degenerate cases. This occurs only when the closest points are vertices of both segments, since the normal computed by segment_point_distance_and_normal is not consistent with the other segment.
Unit tests that catch this case are already written: to reproduce remove the
// TODO: Make stronger assertions unconditional once the code is fixed` conditions in `segment_tests
Segment-point, segment-segment, line-point, and line-line distance
computation should be now be as numerically stable as possible,
including optional computation of weights and normals (normalized
vectors between closest points). The current segment-segment normal
computation is slightly flawed, and occasionally violates the KKT
conditions (see otherlab#42).
The segment_segment_distance_and_normal routine fails the KKT conditions in certain degenerate cases. This occurs only when the closest points are vertices of both segments, since the normal computed by segment_point_distance_and_normal is not consistent with the other segment.
Unit tests that catch this case are already written: to reproduce remove the
in
Segment.cpp
introduced by 22287e9.The text was updated successfully, but these errors were encountered: