Le 12/10/2016 à 15:08, jp charras a écrit :
> Le 12/10/2016 à 14:53, Tomasz Wlostowski a écrit :
>> On 12.10.2016 14:49, jp charras wrote:
>>> Hi Orson and Tomasz,
>>> A few days ago I had a look at this issue, previously reported to the Kicad
>>> Although it happens on 4.04 and not in the current version, I am thinking
>>> it is not fixed (it does
>>> not happen just because there are a few changes which generate a slightly
>>> different zone shape).
>>> It happens because in SHAPE_POLY_SET::fractureSingle( POLYGON& paths ) this
>>> // keep connecting holes to the main outline, until there's no holes
>>> while( num_unconnected > 0 )
>>> num_unconnected -= processEdge( edges, smallestX );
>>> hangs if processEdge returns 0.
>>> processEdge can return 0, and this is the case with the minimal board I
>>> May I ask you to have a look into this suspicious code (I am not familiar
>>> with it)?
>> Hi JP,
>> Does the file outline created by 4.0.4 contain duplicate vertices?
> I don't know (not really easy to say).
> Have a look at (in zones_convert_brd_items_to_polygons_with_Boost.cpp, kicad
> 4.04), line 456:
> It does not use the fast mode, and therefore the polygons are made strictly
> simple before fracturing
> (unless I missed something).
> and it hangs.
> If modified like this
> fractured.Fracture( true );
> It uses the fast mode, and therefore the polygons are not made strictly
> simple before fracturing,
> but Fracture does not hang (perhaps just because the geometry has just
> changed a bit).
> Note also the current code (in master) uses always the fast mode.
"Does the file outline created by 4.0.4 contain duplicate vertices?"
As I said, I don't know, but a corner could be common to 2 different polygons
(I mean: a corner of a
polygon which could have the same coordinate as a corner of a second polygon)
after making polygons
Mailing list: https://launchpad.net/~kicad-developers
Post to : firstname.lastname@example.org
Unsubscribe : https://launchpad.net/~kicad-developers
More help : https://help.launchpad.net/ListHelp