horizon-eda/horizon

Arc-and-line drawing can't make polygon/outline rendered in 3D view.

cortices opened this issue · 6 comments

I'm working on a PCB that's 'D-flatted' -- it has one arc and a straight line joining the two arc points.
I can't seem to get Horizon v2.5.0 to either turn this arc and line into a polygon, or to recognise the line and arc with shared junctions as an outline for the 3D view.
Attached image has both the full PCB, with rectangular internal cutout (erroneously rendered positive instead of negative) and a simplest proof of bug, where I drew an arc on outline layer, and joined the two points with a line. As you can see, it doesn't register as an outline in 3D view.
It seems to be valid as far as generating Gerbers goes.
image

Board outlines need to be explicitly drawn as polygons rather than line loops. Use the 'line loop to polygon' tool to convert them to polygons.

Sorry thought I mentioned — the issue is at least partially that “line loop to polygon” feature refuses to accept these shapes, and says “can’t find line loop”. I’ve double checked that the junctions are correct and merged.

Can you attach a minimum example that exhibits this behavior?

Ok, the bug is that the line loop to polygon doesn't like paths that only have two edges.

As a workaround, you could split the line into two and then delete the extra vertex from the resulting polygon.

I used the workaround, thanks.