← Back to team overview

kicad-developers team mailing list archive

Re: [RFC] New dxf library and better Bezier Curve support.

 

Le 22/07/2018 à 23:53, Jeff Young a écrit :
> Hi JP,
> 
> I get an exception when trying to import the various BoardOnly_* files from https://bugs.launchpad.net/kicad/+bug/1594607.
> 
> Cheers,
> Jeff.

Thanks Jeff, for your test.

I tested these imports both on W7 32 and Linux 64bits (Ubuntu 14 LTS), and I do not have any assert
or exception.

Could it be a OSX specific issue?
Have you a backtrace?

> 
> 
>> On 22 Jul 2018, at 19:32, jp charras <jp.charras@xxxxxxxxxx> wrote:
>>
>> Hi All,
>>
>> I just committed a large change related to DXF import:
>>
>> - The old DXF library is replaced by a new library. It is 8 times smaller and when running a static
>> analyzer (cppcheck) I have only minor warnings (not initialized vars and shadowed vars) I have fixed
>> (The previous DXF lib had a lot of serious warnings/errors).
>> - I added the import of b-splines, used in "recent" dxf files.
>> - They are converted to Bezier Curves, supported by Pcbnew since a long time, but not really used.
>> - I fixed many bugs related to Bezier Curves in Kicad (especially when a Bezier Curve was used in
>> footprints).
>> - I added the missing code related to Bezier Curves support (optimization, bounding box, Hit test,
>> plot, editing ...)
>> - AFAIK, Bezier curves can be also created from Eagle files import (can someone who know Eagle
>> confirm that?)
>>
>> Now, I need volunteers to test the DXF file import both in board editor and footprint editor, before
>> committing these changes in 5.1 branch.
>>
>> Remember only basic dxf items are imported, because the purpose of dxf import is to allow user to
>> draw a board/footprint outline, and Pcbnew is not a MCAD tool.
>>
>> Note:
>> - The board file format is not modified, because Bezier curves exist since a long time in Pcbnew.
>> - One cannot create a Bezier curve inside Pcbnew: they can be only imported.
>> - Currently, Bezier curves cannot be used to create a custom shaped pad.
>>
>> Thanks.
>>
>> -- 
>> Jean-Pierre CHARRAS
>>


-- 
Jean-Pierre CHARRAS


Follow ups

References