Closed jindili closed 3 years ago
Looks like you could just check the unit_tangent vector just before and just after each segment endpoint to look for big changes.
Thanks @mathandy, it works,
Limit_Delta = 0.5
Delta = abs(cmath.phase(pathele.unit_tangent(0)) - lastPhase)
if Delta > Limit_Delta:
print("Turning Here")
Great! Glad I could help @jindili
Hi, I have a path triangle like path like this:
And I need to split this path into three parts at turning point P1, P2, P3
Now I can find the Min, Max value from all start, end points, And need some help to go further.
Here is the svg file used: tmp_svg_3.zip