kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #39954
Re: Zone hatch filling patch
-
To:
kicad-developers@xxxxxxxxxxxxxxxxxxx
-
From:
Wayne Stambaugh <stambaughw@xxxxxxxxx>
-
Date:
Sat, 30 Mar 2019 16:27:30 -0400
-
Autocrypt:
addr=stambaughw@xxxxxxxxx; prefer-encrypt=mutual; keydata= mQGiBEM0hxQRBAC2fNh3YOVLu1d5GZ0SbrTNldGiGnCJPLqzEnqFX9v6jmf33TMt6EmSLkl6 Wtfkoj0nVwKxcYmJkA8DX0QAokBkwNIzhSsBzQvthBLIk/5LnPVVKrEXOcL4mUyH1doKlkaE slgJozNa6Av+oavcvD02o1zJOloBbaHlNlyRt7fKswCgtIFlVjWggVH/15KfWk+Qo5JVPbME AIUBAQyL2OAx0n60AWec2WHnO9buHuG0ibtICgUMkE+2MRmYyKwYRdyVwGoIUemFuOyHp0AJ InX4T+vy2E7vkwODqjtMLfIoRkokW74Fi4nrvjlhOAw/vdq/twLbAmR9MOfPTpR4y7kQy1O2 /n+RkkRvh26vTzfbQmrH7cBJhk6aA/9Uwvu3E4zNJgHVZeS0HyWtmR1eOPPRbnkPgJTToX5O KMKzTJI/FX6kT7cFoCamitHrW3BJP4Dx+cMMsa47EGxqVTdbVJ4LjogsXTXxb+0Fn1u4zBdx x3Cer6O7+hqWy7zvpzeC6nSREjqDKa5CgHtv/GLm5uFPOmsjAsnHj2tlBrQmV2F5bmUgU3Rh bWJhdWdoIDxzdGFtYmF1Z2h3QGdtYWlsLmNvbT6IeAQTEQIAOBYhBOffs6CbblRzBkv33BtR cWlZ+CReBQJbFBS2AhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEBtRcWlZ+CReMI8A nRbrLkzp7+c2f0vX7sfg4ICX8LAKAJ9uClo4uJajmZa5zZrL2nKdZlUwIrkCDQRDNIcxEAgA gCru+3/aOC6RCjpvYC72wY+d5SmHphC6yeiV2/mOumyt5MLo/Ps2GznZr11JspqFk5K/Zpvp MMLqqjDZ39+50a2iKRQFJ6NlK+hJWMmj6eJygQrCwYo3Gjc6CqfrqUv+8VSnf/i5sIZmtOVA 4ZjML18MuBvMSsNdVLFJd5HNnYb1iOECpvqdPVh/21LLCEw7MUUGGnHBhCrmk2aJe5hFmcSN g4ldBcXrgMQBwf7aMVoobXBMFDb/IENByXn0llB7Gr2IFMRmNS9/p8s/II1Yl2bTqyX4FSz8 cfn7C9KEz7faZ7wzAcpwHFC/zs3JoAjJ0IEKdNUpIwAlKMzT3CzctwADBQf/cxpG28MKyrqk nNmq/8LQLy+x6FSYXBLjxQz9BiBNYeesDZQ6J5UbL1mjpJzMa5tLZypPYo4bbGyR22hrbyDF K7m6AcVaMIJKl98g4ukMutFfAJyRDaREH5Zl/X1P4u1Z/yaAIy9mKaNbaK1/5djNJ5wCTFen TUgAp9xdc30kGkFDdLJFp5uxDY4P0vaZiZdjUCvDM3Zjv5IzpNOfxVqTUBQNUP/BnnKhkk0p DTD6s3X8S+D0rOtEBQ8K0cwERI/E8EFa8nj0TNw4e2MYGR8wg+SxqJ7z5f0zPY0bO6G9DDFB wYCqzzPWGqdAh9vA5971TAbPERtdFybhkurozp2SfYhJBBgRAgAJBQJDNIcxAhsMAAoJEBtR cWlZ+CResHUAniULLCWiT26ieRTl7N2vS6vBo/DuAJ4m7Ss/gyiW6ybTn1ctDXAUgm2QVQ==
-
In-reply-to:
<80c9c422-302a-a550-326a-5dc03129e4f4@wanadoo.fr>
-
Openpgp:
preference=signencrypt
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1
Hey JP,
On 3/30/19 10:39 AM, jp charras wrote:
> Le 29/03/2019 à 14:54, Wayne Stambaugh a écrit :
>> JP,
>>
>> On 3/27/19 4:12 PM, jp charras wrote:
>>> Le 20/03/2019 à 19:27, Wayne Stambaugh a écrit :
>>>> Hi JP,
>>>>
>>>> Rather than pollute the bug report[1] with feedback about your zone
>>>> hatch filling patch, I moved the conversation to the mailing list. If
>>>> anyone else would like to test and comment on this patch, the patch can
>>>> be found in the bug report.
>>>>
>>>> I did some testing and the results look pretty good although it can be a
>>>> bit time consuming filling complex zones. This is to be expected. One
>>>> thing I did notice was that the hatched zone filling appears to leave
>>>> really small cutouts in some cases (see attached image). I know there
>>>> is no setting for this but maybe we should use the "Minimum width"
>>>> setting to removed excessively small cutouts as well as copper areas.
>>>> I'm not sure what users are going to expect here but it's something to
>>>> think about.
>>>>
>>>> I also would like you to change the terminology from "grid pattern" to
>>>> "hatch" for UI strings, source code naming, and file formatting. In
>>>> other words, the file format token "pattern_thickness" should be
>>>> "hatch_thickness", the source code name "m_GridPatternThickness" should
>>>> be "m_HatchThickness", and the dialog fill type string type "Grid
>>>> Pattern" should be "Hatch". I think "hatch" is more descriptive when
>>>> describing this type of zone fill.
>>>>
>>>> Cheers,
>>>>
>>>> Wayne
>>>
>>> Hi Wayne and All,
>>>
>>> Attached, a new patch for hatched zones.
>>>
>>> I replaced the terminology "grid pattern" by "hatch" in dialog and files.
>>>
>>> The hatch pattern is now filtered to avoid creation of small and very
>>> small holes due to the holes added by the hatch: all truncated hatch
>>> holes having an area smaller than half of the basic hatch hole area are
>>> removed.
>>>
>>> The hatch patter filled should now generate better shapes.
>>>
>>> Please test.
>>>
>>
>> The fill looks much better. I did find two minor issues.
>>
>> The file format indentation is incorrect. The hatch tokens should be
>> indented two spaces from the "fill" token. In other words, remove the
>> space from the beginning of the output string and set the indent level
>> to aNestLevel+2.
>>
>> The "Smooth value" edit control in the zone properties dialog does not
>> allow me to enter non-integer values on linux (I didn't test it on
>> windows) and the spinner controls are not incrementing or decrementing
>> by 0.1 or at least it's not being displayed correctly. Once those two
>> issues are resolved, I think its ready to merge unless there any other
>> objections.
>>
>> Cheers,
>>
>> Wayne
>>
>
> Wayne,
>
> I now fixed these 2 issues (The second was only visible on Linux).
> Do you want me to push this feature?
>
Go ahead and push the changes so we can get some wider testing.
Thanks,
Wayne
Follow ups
References