← Back to team overview

kicad-developers team mailing list archive

Re: [RFC] DRAWSEGMENT polygon type vs non-copper zone

 

Le 17/11/2016 à 23:41, Maciej Sumiński a écrit :
> Hi Jean-Pierre,
> 
> On 11/17/2016 06:13 PM, jp charras wrote:
> [snip]
>> ZONE_CONTAINER is suitable for copper layer areas, because it handle the outline polygon (with
>> holes) but also sub-polygons which are the actual copper filled areas, and all info (net, clearance)
>>
>> It looks to me a bit complicated to describe graphic filled (or not filled) polygons
>> So DRAWSEGMENTs of S_POLYGON type is more suitable to handle one basic polygon.
> 
> I am glad that we share the same view.
> 
>> S_POLYGON is used in microwave tools, but also by bitmap2component.
> 
> You are right, I have not noticed bitmap2component before. Polygons
> created by these two tools are always wrapped in a MODULE, but there is
> no code to handle polygon DRAWSEGMENTs and I would like to fix this.

Yes, there is no code to handle them, because it needs a lot of work to write it.
But it will be a valuable enhancement.
Remember these polygons (as any polygon used in Kicad) must be never self intersecting to avoid
breaking Gerber files (and better: must be strictly simple polygons after edition).

> 
>> When you are saying polylines do you mean a usual polyline (a not filled and not closed polygon)
>> or a set of lines with no common end point?
> 
> I mean a common polyline, a piecewise linear curve.

So this is like DRAWSEGMENTs of S_POLYGON but not filled, and can be self intersecting.

> 
> Regards,
> Orson
> 
>> Regards,

Regards,
-- 
Jean-Pierre CHARRAS


References