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
{{ message }}
Repository navigation
Intersection functions sometimes do not provide correct results with relative and absolute tolerance #1320
@jf--- we discussed at length on slack yesterday. the result is because of the tol value used, but that is because we use this value in the wrong way in one of the functions called by the intersection function.
intersection_segment_segment calls intersection_line_line, which in turn uses intersection_line_plane. the problem is with intersection_line_plane.
when users specify a tol value to intersection_segment_segment they would rightly assume it influences the precision of the intersection check. however, intersection_line_plane uses the same value for a parallelity check where it has the opposite effect.
if we no longer pass on the tolerance value to intersection_line_plane (which we actually shouldn't) everything works as expected...
Activity
jf--- commentedon Apr 11, 2024
Hi @romanarust is it possible that the diameter of the sphere representing the tolerance would be larger than the radii of the 2 lines?
tomvanmele commentedon Apr 11, 2024
@jf--- we discussed at length on slack yesterday. the result is because of the
tolvalue used, but that is because we use this value in the wrong way in one of the functions called by the intersection function.intersection_segment_segmentcallsintersection_line_line, which in turn usesintersection_line_plane. the problem is withintersection_line_plane.when users specify a
tolvalue tointersection_segment_segmentthey would rightly assume it influences the precision of the intersection check. however,intersection_line_planeuses the same value for a parallelity check where it has the opposite effect.if we no longer pass on the tolerance value to
intersection_line_plane(which we actually shouldn't) everything works as expected...romanarust commentedon Apr 11, 2024
exactly, thanks @tomvanmele