Index: topoly.c =================================================================== --- topoly.c (revision 32415) +++ topoly.c (revision 32416) @@ -334,7 +334,7 @@ } #undef check -pcb_poly_t *pcb_topoly_1st_outline(pcb_board_t *pcb, pcb_topoly_t how) +pcb_poly_t *pcb_topoly_1st_outline_with(pcb_board_t *pcb, pcb_topoly_t how, pcb_dynf_t df) { pcb_poly_t *poly; pcb_any_obj_t *start = pcb_topoly_find_1st_outline(pcb); @@ -347,11 +347,16 @@ pcb_poly_point_new(poly, 0, pcb->hidlib.size_y); } else - poly = pcb_topoly_conn(pcb, start, how); + poly = pcb_topoly_conn_with(pcb, start, how, df); return poly; } +pcb_poly_t *pcb_topoly_1st_outline(pcb_board_t *pcb, pcb_topoly_t how) +{ + return pcb_topoly_1st_outline_with(pcb, how, 0); +} + const char pcb_acts_topoly[] = "ToPoly()\nToPoly(outline)\n"; const char pcb_acth_topoly[] = "convert a closed loop of lines and arcs into a polygon"; fgw_error_t pcb_act_topoly(fgw_arg_t *res, int argc, fgw_arg_t *argv) Index: topoly.h =================================================================== --- topoly.h (revision 32415) +++ topoly.h (revision 32416) @@ -45,6 +45,7 @@ /* Find the first line/arc on the outline layer from top-left */ pcb_any_obj_t *pcb_topoly_find_1st_outline(pcb_board_t *pcb); +pcb_poly_t *pcb_topoly_1st_outline_with(pcb_board_t *pcb, pcb_topoly_t how, pcb_dynf_t df); /* Construct apolygon of the first line/arc on the outline layer from top-left */ pcb_poly_t *pcb_topoly_1st_outline(pcb_board_t *pcb, pcb_topoly_t how);