Open attie opened 5 years ago
Thanks for the report! I gave this file a look over, and here are some initial thoughts:
In tracespace, I can get this outline to render properly if I do the following:
It looks like the way Altium encodes text into Gerber breaks the SVG outline clipping tracespace uses. Until we can address that somehow, I recommend that you don't put anything other than the outline itself in your outline layer
Oh, I didn't even think about that! Thanks very much for looking in to the issue - I'll keep that in mind.
I'll leave the ticket open (I feel it's something worth addressing - lots / all of my boards have text outside to identify the layer), but if you disagree, please feel free to close it.
Did some more investigating, and this is a very interesting pair of issues! I really appreciate you taking the time to write them up.
There is probably some interaction with #302 going on here, but the most pressing issue I can find here is that in Firefox (my browser of choice), clear masks in the outline <clipPath>
break the outline entirely, whereas in Chrome the clipPath
still works. I agree that this ticket should stay open for that reason.
In terms of the other stuff:
Hey, no problem - thanks for such a great response!
Just to clarify, I've tried removing the text / layer label from the gerber, and I'm seeing the same issue. I edited the gerber, rather than editing the source document and re-exporting.
bad_outline.gm2
bad_outline_no_text.gm2
bad_outline.gm2
bad_outline_no_text.gm2
@attie, sorry I should've been more clear, because there's a few things going on:
The fill is funny because the lines and arcs, as described in the Gerber file (and possibly as drawn in Altium), have tiny gaps. For example, here's an extreme zoom with the tool size modified:
tracespace can fill gaps to a point, but at the end of the day (and for the v4 release line) I don't think you can expect it to work in all cases of "bad" data.
In this case, I would recommend:
In the v5 release line, I'd like to play with teaching tracespace how to recognize that an outline it has isn't likely to fill properly, and enable/disable the board outline render accordingly. I have no idea how that's going to happen, though, and it will likely involve me writing at least one or two new issues. I also have no idea when v5 will be ready
Hi @mcous, I understand now - thanks very much for the additional information... I'll review my outline placement!
I've got a couple of boards that have a somewhat complex outline, and unfortunately they don't render well...
.txt
extension)I suspect that this is an issue with drawing filled SVG Paths, and the fact that this outline is actually rendered as a number of
<path>
elements, but I'm not fully sure. I imagine that rendering the board outline as a single path would resolve this issue.Extract from
top.svg
: (lines are truncated)These gerbers are produced using Altium Designer.