← Back to team overview

kicad-developers team mailing list archive

Re: Clarification regarding D_PAD::TransformShapeWithClearanceToPolygon

 

Le 18/06/2015 22:53, Mário Luzeiro a écrit :
> Hello Jean-Pierre || all,
> 
> @file board_items_to_polygon_shape_transform.cpp
> @function D_PAD::TransformShapeWithClearanceToPolygon
> @line 613
> https://github.com/KiCad/kicad-source-mirror/blob/0cab3e47ad8097db7b898b3cef2cf9b235318ca3/pcbnew/board_items_to_polygon_shape_transform.cpp#L613
> 
> Is that equivalent as a simple 4 point polygon + 4 segments with a width=aClearanceValue ?
> 
> Thanks for the clarification!
> 
> Mario Luzeiro
> 

4 point polygon + 4 segments give the same filled shape (with a width =
2*aClearanceValue).

However this is not equivalent when you have to combine this shape with
other polygons (for instance using this shape to make a hole in a ground
plane) or show an outline (sketch mode).
The final result is a single polygon, which can be combined with other
polygons in calculations.
This is not possible with 4 point polygon + 4 segments.


-- 
Jean-Pierre CHARRAS


Follow ups

References