Feature Addition: Apparent Intersection point between two polylines2d #770
imrankhan1212
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
If you mean virtual intersections that don't lie on either line, this is supported and is the default for from ezdxf.math import Vec2, intersection_line_line_2d
line0 = Vec2(0, 0), Vec2(1, 0)
line1 = Vec2(2, 1), Vec2(2, 2)
print(intersection_line_line_2d(line0, line1)) prints:
Virtual intersections between arbitrary 2D polylines don't seem to be very useful. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The current features ezdxf.math.intersection_line_line_2d and ezdxf.math.intersect_polylines_2d
are good but they give intersection points only if the lines or polylines are intersecting each other.
In case, when the lines / polylines are not intersecting or appear to be intersecting, the function does not give you any result. So it is requested to add this feature. I am currently using intersection from "Sympy".
This feature is available in pyautocad and is excellent.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions