← Back to team overview

kicad-developers team mailing list archive

Re: S_POLYGON in TransformShapeWithClearanceToPolygon

 

Le 29/08/2015 20:04, Mário Luzeiro a écrit :
> Hello Jean-Pierre,
> 
> In the board_items_to_polygon_shape_transform.cpp line 423
> in function TransformShapeWithClearanceToPolygon
> 
> https://github.com/KiCad/kicad-source-mirror/blob/44b5d19d3b917e4336fff64b5a00313167838fd3/pcbnew/board_items_to_polygon_shape_transform.cpp#L423
> 
> Do you know /are you able to explain the use of the S_POLYGON in the switch case?
> How can I draw a segment that is a polygon? (Is that really implemented in kicad?)
> 
> Thanks!
> Mario Luzeiro
> 

Yes is it implemented (bitmap2component and microwave tools use it).
class DRAWSEGMENT is a very bad name (should be now something like
GRAPHIC_ITEM_BASE).
It covers a basic draw item (segment, arc, circle and simple polygon
with no hole).
Only S_CURVE (a Bezier curve, in fact) is not yet supported.

-- 
Jean-Pierre CHARRAS


References