Author Topic: Polyline join issue  (Read 8210 times)

Offline airnocker

  • CNC Jedi
  • *****
  • Posts: 656
    • View Profile
Polyline join issue
« on: November 17, 2021, 03:48:09 am »
I know I've run into this before (and I've tried all remedies I can this of to no avail), but why won't these two open polylines join.

I started with two overlapping poly-rectangles.  One of them I converted to be Filleted by half the width.  This created the semi-circular rounded ends.
I then drew a horizontal polyline wider that the two and across both overlapping objects mid-way up their height, then with all three objects selected, the rectangle, the filleted rectangle and the horizontal line, I did a break at intersection.  I deleted the horizontal line segments, the top of the filleted rectangle and the bottom of the polyline rectangle.

When selecting the two open polylines and doing an Edit >Join they refuse to join.  I think I know why (the problem is in the open filleted objected in that it's end-points are not at the beginning and end of the point list.

What is the solution?

Many thanks.
airnocker

Everything depends on everything else

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1892
    • View Profile
Re: Polyline join issue
« Reply #1 on: November 17, 2021, 06:47:15 am »
Here you go

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5322
  • Made in England
    • View Profile
Re: Polyline join issue
« Reply #2 on: November 17, 2021, 10:29:20 am »
Dave's plugin does the job but what is the reason behind the problem.

Looking at the attached image, double clicking on polyline 89 appears to show it has 3 segments but the properties panel on the left says it has 5.
By bringing up the Points (Collection) it can be seen there are duplicate points.

The way to remove those is menu item, Edit->Polyline->Remove Overlaps.

This will produce a new polyline (Polyline 1) with 3 segments and this will now join with polyline 101, polyline 89 should now be deleted.
Filmed in Supermarionation

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1892
    • View Profile
Re: Polyline join issue
« Reply #3 on: November 17, 2021, 12:44:29 pm »
Eddy I left a explanation in the  Internal/external cut mismatch on CB V1.0 thread
on how to change what points and or segments appear in the working layer.

Offline airnocker

  • CNC Jedi
  • *****
  • Posts: 656
    • View Profile
Re: Polyline join issue
« Reply #4 on: November 17, 2021, 20:24:36 pm »
Thanks Dave and Eddy for your replies and insights.

I had noticed the difference Eddy mentioned while troubleshooting this problem.  There were duplicate points in both open polylines.  I removed the duplicated in the open rectangular shape but did not know the downside to editing the point list in the u-shape filleted one.  I still don't quite understand why there would be overlaps and would appreciate insight into this "Break at Intersections" anomaly.

I also noticed that when I copied and pasted the u-shaped filleted one into another cb file it always showed one more point in the point list that in the number of segments.  If there were 5 seqments and 6 points in the point list in the "copied" polyline, there were 6 seqments and 7 points in the point list in the pasted copy.

The  Edit->Polyline->Remove Overlaps with a value of 1 did fix the Join issue.

Many thanks!
airnocker

Everything depends on everything else

Offline airnocker

  • CNC Jedi
  • *****
  • Posts: 656
    • View Profile
Re: Polyline join issue
« Reply #5 on: November 22, 2021, 21:51:35 pm »
I still don't quite understand why there would be overlaps and would appreciate insight into this "Break at Intersections" anomaly.

Any comments?

Thanks again,
airnocker

Everything depends on everything else