Hi!
So I’ve been trying to make a code that cuts polylines at specific points based on the angle between consecutive lines. Meaning, I can define that everything below 15 degrees stays connected, but everything above gets split into separate joined polylines.
Now I found this: Polyline.BreakAtAngles Method and it does exactly that:
for crv in crvs:
break_pl = rg.Polyline.BreakAtAngles(crv, math.radians(t))
The problem is that it specifically looks for a single number as the angle, and not a range/deviation or any if >= t statements etc.
Is there a way to make the same thing happen, but define that the polyline breaks when ever the angle >= t ?
This would solve the problem and make a much longer code obsolete.
Thank you!
Lev
3 posts - 3 participants