pcb

unexpected polygon clip behavior

Bug #699313 reported by Mark Rages
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pcb
New
Undecided
Unassigned

Bug Description

If the attached pcb file is loaded, and a trace is drawn through the polygon (solder side), unexpected clipping happens.

If the trace is drawn in two segments, then the cursor is positioned over the segments' junction and "delete" is pressed, the polygon disappears entirely and "Error while clipping PBO_ISECT: 3" is printed on the terminal. Undo is also broken at this point.

This is with recent git with patch "arcarc.05xii.diff" applied.

Revision history for this message
Mark Rages (markrages) wrote :
Revision history for this message
Ineiev (ineiev) wrote :

Hi,

The polygon intersects itself many times (which can be seen in thinline mode).
the results of bisecting of such polygons with a line are not obvious at any rate,
though it is possible that PCB polygon routines don't handle them correctly.

If you need a polygon with holes, you can split it into several intersecting
polygons without holes or use recent "polygon hole" feature.

I think possible fixes might include
* throwing a warning when the polygon loaded from the file intersects itself
* modifying polygon tool to not permit intersecting polygons

Kind regards,
Ineiev

Traumflug (mah-jump-ing)
Changed in geda-project:
importance: Undecided → Medium
tags: added: polygons
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.