Hi there!
Put polygons is a good thing for many reasons BUT they will make a bad parasitic capacitance to a chassis which is bad.
One thing which can keep all polygon advantages but low this parasitic effect - make it like a mesh. I saw this frequently on many boards. As I can remember this can be done in old PCAD easy.
Unfortunately I don’t see it being implemented in the near future. On a technical level this is a fairly involved 2D operation in which a solid region must be offset by a negative amount (this produces the constant width perimeter) and a cutout pattern applied within the offset region. If there are islands or cutouts within the solid region then the outlines of those island/cutouts must be offset by a positive number and used as a cutout mask within the negatively offset perimeter.
At the moment kicad does not have adequate offset algorithms and it also uses polygons described by discrete vertices rather than “edges” which may be linear, circular, or rational basis spline. With good offset algorithms then something can be implemented, although it will be very inefficient given our current polygon modeling. However, the task is certainly not impossible - the PostScript page description language implemented these things over 30 years ago.
I have used that DipTrace import/export workaround few times with good results (see below). Generally you want to do that as the last step, work with normal planes/polygons until the board is finished and then do the conversion to hatched zones.
Exactly as in the tutorial i wrote some time go, linked by Ldoiron17.
After all the operations the hatched zones are imported as footprints placed on the top and bottom layers. I have written down their coordinates on one of the Eco layers. The reason for that is due to complex shape of the hatched zone, refilling the normal kicad zones (hotkey B) did take long time or occasionally even crashed kicad. It was one of the earlier nightly builds (around 5050). I haven’t tried it with the more present ones. Anyway, every time i need to change something outside the hatched area, refill the solid zones, i move the hatched ones away, do what i need to do, hit the B key and then move the hatched zone footprints back by using the previously noted coordinates. The solid zones are designed to overlap a little bit with the hatched ones.
As a possible workaround, see attached.
Pcbnew uses separate D codes for Fill hatch and Fill outlines, so you can edit that.
To get this, I made the Fill outline wider (0.4mm) and set Fill Mode = Segment.
The Segment fill paints the Hatch with lines, in a grid. Larger Gerber files result, but here that’s useful.
Then, I load into Gerbview to find the D codes used. (Hatch here is D24)
Then, edit %ADD24C,0.400000*%
to %ADD24C,0.150000*%
To do a strictly correct approach, that may be right.
However looking at the workaround I’ve done above, an idea for a much simpler approach occurs to me.
(it may only appear in Gerber files, but that’s probably tolerable) When you select Segment Hatch mode, add field to allow the user to select a simple skip-value.
1:1 plots every line, for solid segments
1:2 plots every second segment line, for 50% hatch
1:3 plots every 3rd segment line, for 33% hatch
1:4 plots every 4th segment line, for 25% hatch You could also allow allow define of that Hatch line width, (<= outline width) to fine-tune the grid.
(that’s what I did in Gerber file)
So that’s two simple numbers the user enters, and the algorithm is a very simple skip-lines one, nothing complex needed
For those arriving late to the party, hatched zones are now a standard feature in Kicad 6.0 by selecting the fill type “Hatch Pattern” in the copper zone properties.
In general it’s not recommended to drag up old threads on this forum, because KiCad is improving at a quite impressive pace, and old threads often loose their relevance.