From e3c59e39cf9bc64ce9d76c324b82956a65515f16 Mon Sep 17 00:00:00 2001 From: opiopan Date: Sun, 7 Apr 2019 22:22:33 +0900 Subject: expand test and fix many issues --- tests/expects/dxf_rotate.gtl | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 tests/expects/dxf_rotate.gtl (limited to 'tests/expects/dxf_rotate.gtl') diff --git a/tests/expects/dxf_rotate.gtl b/tests/expects/dxf_rotate.gtl new file mode 100644 index 0000000..912ad60 --- /dev/null +++ b/tests/expects/dxf_rotate.gtl @@ -0,0 +1,42 @@ +G75* +%MOMM*% +%OFA0B0*% +%FSLAX34Y34*% +%IPPOS*% +%LPD*% +%ADD10C,0*% +D10* +G01* +X124805Y2611D02* +G75* +G01* +X49630Y-24751D01* +G02* +X36813Y-18774I-3420J9397D01* +G01* +X9451Y56401D01* +G02* +X15428Y69218I9397J3420D01* +G01* +X90603Y96580D01* +G02* +X103420Y90603I3420J-9397D01* +G01* +X130782Y15428D01* +G02* +X124805Y2611I-9397J-3420D01* +G01* +X31930Y20924D02* +G75* +G03* +X31930Y20924I-3000J0D01* +G01* +X23162Y45543D02* +G75* +G02* +X19006Y41831I-2819J-1026D01* +G01* +X20343Y44517D01* +G01* +X23162Y45543D01* +M02* -- cgit From 2b1c751ff76ebd6901633235ee694cc93dabce81 Mon Sep 17 00:00:00 2001 From: Hiroshi Murayama Date: Mon, 9 Sep 2019 09:07:38 +0900 Subject: improve compatibility with RS-274x specification: - can merge multiple files having different file scope modifier, such as AS, MI, OF, SF, and IR - support modal coordinate notation --- tests/expects/dxf_rotate.gtl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/expects/dxf_rotate.gtl') diff --git a/tests/expects/dxf_rotate.gtl b/tests/expects/dxf_rotate.gtl index 912ad60..71f9f83 100644 --- a/tests/expects/dxf_rotate.gtl +++ b/tests/expects/dxf_rotate.gtl @@ -1,10 +1,9 @@ -G75* %MOMM*% -%OFA0B0*% %FSLAX34Y34*% %IPPOS*% -%LPD*% %ADD10C,0*% +G75* +%LPD*% D10* G01* X124805Y2611D02* -- cgit From fc3f1a23b87d9c4e51967abb0ed4107daa2be5cf Mon Sep 17 00:00:00 2001 From: Hiroshi Murayama Date: Sat, 28 Sep 2019 17:40:09 +0900 Subject: improve DXF file handling functions: - DM_LINE mode support to generate Excellon routing sequence - DM_MOUSE_BITES mode support to generate mouse bites along all path also, not only line object --- tests/expects/dxf_rotate.gtl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/expects/dxf_rotate.gtl') diff --git a/tests/expects/dxf_rotate.gtl b/tests/expects/dxf_rotate.gtl index 71f9f83..71e1647 100644 --- a/tests/expects/dxf_rotate.gtl +++ b/tests/expects/dxf_rotate.gtl @@ -25,11 +25,6 @@ X130782Y15428D01* G02* X124805Y2611I-9397J-3420D01* G01* -X31930Y20924D02* -G75* -G03* -X31930Y20924I-3000J0D01* -G01* X23162Y45543D02* G75* G02* @@ -38,4 +33,9 @@ G01* X20343Y44517D01* G01* X23162Y45543D01* +G01* +X31749Y21950D02* +G75* +G02* +X31749Y21950I-2819J-1026D01* M02* -- cgit From 48b35377b1cce897a70d1d037b3e73b616af9be7 Mon Sep 17 00:00:00 2001 From: Hiroshi Murayama Date: Sat, 28 Sep 2019 20:42:11 +0900 Subject: minor refactoring --- tests/expects/dxf_rotate.gtl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/expects/dxf_rotate.gtl') diff --git a/tests/expects/dxf_rotate.gtl b/tests/expects/dxf_rotate.gtl index 71e1647..c6449ca 100644 --- a/tests/expects/dxf_rotate.gtl +++ b/tests/expects/dxf_rotate.gtl @@ -36,6 +36,6 @@ X23162Y45543D01* G01* X31749Y21950D02* G75* -G02* +G03* X31749Y21950I-2819J-1026D01* M02* -- cgit From 244fcaa5346f4fad819cc2b72857cfb2c472944a Mon Sep 17 00:00:00 2001 From: Hiroshi Murayama Date: Sat, 28 Dec 2019 23:45:33 +0900 Subject: add a function that generate filled gerberdata with representing internal shape by fliping polarity --- tests/expects/dxf_rotate.gtl | 82 ++++++++++++++++++++++++++++++++++++-------- 1 file changed, 67 insertions(+), 15 deletions(-) (limited to 'tests/expects/dxf_rotate.gtl') diff --git a/tests/expects/dxf_rotate.gtl b/tests/expects/dxf_rotate.gtl index c6449ca..5c04b64 100644 --- a/tests/expects/dxf_rotate.gtl +++ b/tests/expects/dxf_rotate.gtl @@ -6,36 +6,88 @@ G75* %LPD*% D10* G01* -X124805Y2611D02* +X501270Y1044184D02* G75* G01* -X49630Y-24751D01* +X672280Y574337D01* +G01* +X595239Y1078386D02* +G75* +G01* +X766249Y608539D01* +G01* +X115513Y349758D02* +G75* +G01* +X233752Y392793D01* +G01* +X285379Y250949D01* +G01* +X416110Y108637D02* +G75* +G01* +X134202Y6031D01* G02* -X36813Y-18774I-3420J9397D01* +X6031Y65798I-34202J93969D01* G01* -X9451Y56401D01* +X-96575Y347706D01* G02* -X15428Y69218I9397J3420D01* +X-36808Y475877I93969J34202D01* G01* -X90603Y96580D01* +X245100Y578483D01* G02* -X103420Y90603I3420J-9397D01* +X373271Y518716I34202J-93969D01* G01* -X130782Y15428D01* +X475877Y236808D01* G02* -X124805Y2611I-9397J-3420D01* +X416110Y108637I-93969J-34202D01* G01* -X23162Y45543D02* +X481496Y930988D02* G75* +G01* +X584102Y649080D01* G02* -X19006Y41831I-2819J-1026D01* +X524335Y520909I-93969J-34202D01* G01* -X20343Y44517D01* +X242427Y418303D01* +G02* +X114256Y478070I-34202J93969D01* G01* -X23162Y45543D01* +X11650Y759978D01* +G02* +X71417Y888149I93969J34202D01* +G01* +X353325Y990755D01* +G02* +X481496Y930988I34202J-93969D01* G01* -X31749Y21950D02* +X254877Y499102D02* +G75* +G01* +X22279Y414443D01* +G01* +X120131Y145595D01* +G01* +X352730Y230254D01* +G01* +X254877Y499102D01* +G01* +X868133Y407583D02* +G75* +G03* +X868133Y407583I-117896J-42911D01* +G01* +X384341Y788789D02* G75* G03* -X31749Y21950I-2819J-1026D01* +X384341Y788789I-96575J-35150D01* +G01* +X287766Y753639D02* +G75* +G01* +X265674Y814336D01* +G03* +X352035Y760098I22092J-60697D01* +G01* +X287766Y753639D01* M02* -- cgit