From 9bdcd36d1a1397d08db98760a1ca48be29fa9e25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1n=20D=C3=A9nes?= Date: Sun, 18 Jul 2021 16:04:01 +0200 Subject: [PATCH] Some outline testing --- .../{001_basic_outline.yaml => basic.yaml} | 0 ...f.dxf => basic___outlines_outline_dxf.dxf} | 0 test/outlines/circles.yaml | 26 ++ .../circles___outlines_outline_dxf.dxf | 178 +++++++++++ .../outlines/{002_gluing.yaml => gluing.yaml} | 0 ....dxf => gluing___outlines_outline_dxf.dxf} | 0 test/outlines/polygons.yaml | 29 ++ .../polygons___outlines_outline_dxf.dxf | 278 +++++++++++++++++ test/outlines/rectangles.yaml | 27 ++ .../rectangles___outlines_outline_dxf.dxf | 290 ++++++++++++++++++ 10 files changed, 828 insertions(+) rename test/outlines/{001_basic_outline.yaml => basic.yaml} (100%) rename test/outlines/{001_basic_outline___outlines_outline_dxf.dxf => basic___outlines_outline_dxf.dxf} (100%) create mode 100644 test/outlines/circles.yaml create mode 100644 test/outlines/circles___outlines_outline_dxf.dxf rename test/outlines/{002_gluing.yaml => gluing.yaml} (100%) rename test/outlines/{002_gluing___outlines_outline_dxf.dxf => gluing___outlines_outline_dxf.dxf} (100%) create mode 100644 test/outlines/polygons.yaml create mode 100644 test/outlines/polygons___outlines_outline_dxf.dxf create mode 100644 test/outlines/rectangles.yaml create mode 100644 test/outlines/rectangles___outlines_outline_dxf.dxf diff --git a/test/outlines/001_basic_outline.yaml b/test/outlines/basic.yaml similarity index 100% rename from test/outlines/001_basic_outline.yaml rename to test/outlines/basic.yaml diff --git a/test/outlines/001_basic_outline___outlines_outline_dxf.dxf b/test/outlines/basic___outlines_outline_dxf.dxf similarity index 100% rename from test/outlines/001_basic_outline___outlines_outline_dxf.dxf rename to test/outlines/basic___outlines_outline_dxf.dxf diff --git a/test/outlines/circles.yaml b/test/outlines/circles.yaml new file mode 100644 index 0000000..fe8d572 --- /dev/null +++ b/test/outlines/circles.yaml @@ -0,0 +1,26 @@ +points: + zones: + matrix: {} + mirror: 20 +outlines: + exports: + outline: + main: + type: keys + side: both + size: 20 + bound: false + middle_circle: + type: circle + anchor: + ref: + - matrix_default_default + - mirror_matrix_default_default + radius: 15 + outside_circles: + type: circle + anchor: + ref: matrix_default_default + shift: [-10, 10] + radius: 5 + mirror: true \ No newline at end of file diff --git a/test/outlines/circles___outlines_outline_dxf.dxf b/test/outlines/circles___outlines_outline_dxf.dxf new file mode 100644 index 0000000..5559b40 --- /dev/null +++ b/test/outlines/circles___outlines_outline_dxf.dxf @@ -0,0 +1,178 @@ +0 +SECTION +2 +HEADER +9 +$INSUNITS +70 +4 +0 +ENDSEC +0 +SECTION +2 +TABLES +0 +TABLE +2 +LTYPE +0 +LTYPE +72 +65 +70 +64 +2 +CONTINUOUS +3 +______ +73 +0 +40 +0 +0 +ENDTAB +0 +TABLE +2 +LAYER +0 +ENDTAB +0 +ENDSEC +0 +SECTION +2 +ENTITIES +0 +LINE +8 +0 +10 +-10 +20 +-10 +11 +8.8196601 +21 +-10 +0 +LINE +8 +0 +10 +8.8196601 +20 +10 +11 +-5 +21 +10 +0 +LINE +8 +0 +10 +-10 +20 +5 +11 +-10 +21 +-10 +0 +LINE +8 +0 +10 +31.1803399 +20 +-10 +11 +50 +21 +-10 +0 +LINE +8 +0 +10 +50 +20 +-10 +11 +50 +21 +5 +0 +LINE +8 +0 +10 +45 +20 +10 +11 +31.1803399 +21 +10 +0 +ARC +8 +0 +10 +20 +20 +0 +40 +15 +50 +221.8103149 +51 +318.1896851 +0 +ARC +8 +0 +10 +20 +20 +0 +40 +15 +50 +401.8103149 +51 +498.1896851 +0 +ARC +8 +0 +10 +-10 +20 +10 +40 +5 +50 +0 +51 +270 +0 +ARC +8 +0 +10 +50 +20 +10 +40 +5 +50 +270 +51 +540 +0 +ENDSEC +0 +EOF \ No newline at end of file diff --git a/test/outlines/002_gluing.yaml b/test/outlines/gluing.yaml similarity index 100% rename from test/outlines/002_gluing.yaml rename to test/outlines/gluing.yaml diff --git a/test/outlines/002_gluing___outlines_outline_dxf.dxf b/test/outlines/gluing___outlines_outline_dxf.dxf similarity index 100% rename from test/outlines/002_gluing___outlines_outline_dxf.dxf rename to test/outlines/gluing___outlines_outline_dxf.dxf diff --git a/test/outlines/polygons.yaml b/test/outlines/polygons.yaml new file mode 100644 index 0000000..d22f109 --- /dev/null +++ b/test/outlines/polygons.yaml @@ -0,0 +1,29 @@ +points: + zones: + matrix: {} + mirror: 20 +outlines: + exports: + outline: + main: + type: keys + side: both + size: 20 + bound: false + middle_poly: + type: polygon + points: + - ref: + - matrix_default_default + - mirror_matrix_default_default + shift: [0, 20] + - shift: [20, -40] + - shift: [-40, 0] + outside_polys: + type: polygon + points: + - ref: matrix_default_default + shift: [-10, 15] + - shift: [5, -10] + - shift: [-10, 0] + mirror: true \ No newline at end of file diff --git a/test/outlines/polygons___outlines_outline_dxf.dxf b/test/outlines/polygons___outlines_outline_dxf.dxf new file mode 100644 index 0000000..6380e46 --- /dev/null +++ b/test/outlines/polygons___outlines_outline_dxf.dxf @@ -0,0 +1,278 @@ +0 +SECTION +2 +HEADER +9 +$INSUNITS +70 +4 +0 +ENDSEC +0 +SECTION +2 +TABLES +0 +TABLE +2 +LTYPE +0 +LTYPE +72 +65 +70 +64 +2 +CONTINUOUS +3 +______ +73 +0 +40 +0 +0 +ENDTAB +0 +TABLE +2 +LAYER +0 +ENDTAB +0 +ENDSEC +0 +SECTION +2 +ENTITIES +0 +LINE +8 +0 +10 +-10 +20 +-10 +11 +5 +21 +-10 +0 +LINE +8 +0 +10 +10 +20 +0 +11 +10 +21 +10 +0 +LINE +8 +0 +10 +10 +20 +10 +11 +-7.5 +21 +10 +0 +LINE +8 +0 +10 +-10 +20 +5 +11 +-10 +21 +-10 +0 +LINE +8 +0 +10 +35 +20 +-10 +11 +50 +21 +-10 +0 +LINE +8 +0 +10 +50 +20 +-10 +11 +50 +21 +5 +0 +LINE +8 +0 +10 +47.5 +20 +10 +11 +30 +21 +10 +0 +LINE +8 +0 +10 +30 +20 +10 +11 +30 +21 +0 +0 +LINE +8 +0 +10 +0 +20 +-20 +11 +5 +21 +-10 +0 +LINE +8 +0 +10 +10 +20 +0 +11 +20 +21 +20 +0 +LINE +8 +0 +10 +20 +20 +20 +11 +30 +21 +0 +0 +LINE +8 +0 +10 +35 +20 +-10 +11 +40 +21 +-20 +0 +LINE +8 +0 +10 +40 +20 +-20 +11 +0 +21 +-20 +0 +LINE +8 +0 +10 +-15 +20 +5 +11 +-10 +21 +15 +0 +LINE +8 +0 +10 +-10 +20 +15 +11 +-7.5 +21 +10 +0 +LINE +8 +0 +10 +-10 +20 +5 +11 +-15 +21 +5 +0 +LINE +8 +0 +10 +55 +20 +5 +11 +50 +21 +15 +0 +LINE +8 +0 +10 +50 +20 +15 +11 +47.5 +21 +10 +0 +LINE +8 +0 +10 +50 +20 +5 +11 +55 +21 +5 +0 +ENDSEC +0 +EOF \ No newline at end of file diff --git a/test/outlines/rectangles.yaml b/test/outlines/rectangles.yaml new file mode 100644 index 0000000..01410ec --- /dev/null +++ b/test/outlines/rectangles.yaml @@ -0,0 +1,27 @@ +points: + zones: + matrix: {} + mirror: 20 +outlines: + exports: + outline: + main: + type: keys + side: both + size: 20 + bound: false + middle_rect: + type: rectangle + anchor: + ref: + - matrix_default_default + - mirror_matrix_default_default + shift: [-sx/2, 0] + size: [20, 40] + outside_rects: + type: rectangle + anchor: + ref: matrix_default_default + shift: [-15, 5] + size: 10 + mirror: true \ No newline at end of file diff --git a/test/outlines/rectangles___outlines_outline_dxf.dxf b/test/outlines/rectangles___outlines_outline_dxf.dxf new file mode 100644 index 0000000..8de0346 --- /dev/null +++ b/test/outlines/rectangles___outlines_outline_dxf.dxf @@ -0,0 +1,290 @@ +0 +SECTION +2 +HEADER +9 +$INSUNITS +70 +4 +0 +ENDSEC +0 +SECTION +2 +TABLES +0 +TABLE +2 +LTYPE +0 +LTYPE +72 +65 +70 +64 +2 +CONTINUOUS +3 +______ +73 +0 +40 +0 +0 +ENDTAB +0 +TABLE +2 +LAYER +0 +ENDTAB +0 +ENDSEC +0 +SECTION +2 +ENTITIES +0 +LINE +8 +0 +10 +-10 +20 +-10 +11 +10 +21 +-10 +0 +LINE +8 +0 +10 +10 +20 +-10 +11 +10 +21 +0 +0 +LINE +8 +0 +10 +10 +20 +10 +11 +-5 +21 +10 +0 +LINE +8 +0 +10 +-10 +20 +5 +11 +-10 +21 +-10 +0 +LINE +8 +0 +10 +30 +20 +-10 +11 +50 +21 +-10 +0 +LINE +8 +0 +10 +50 +20 +-10 +11 +50 +21 +5 +0 +LINE +8 +0 +10 +45 +20 +10 +11 +30 +21 +10 +0 +LINE +8 +0 +10 +30 +20 +0 +11 +30 +21 +-10 +0 +LINE +8 +0 +10 +10 +20 +0 +11 +30 +21 +0 +0 +LINE +8 +0 +10 +30 +20 +10 +11 +30 +21 +40 +0 +LINE +8 +0 +10 +30 +20 +40 +11 +10 +21 +40 +0 +LINE +8 +0 +10 +10 +20 +40 +11 +10 +21 +10 +0 +LINE +8 +0 +10 +-15 +20 +5 +11 +-10 +21 +5 +0 +LINE +8 +0 +10 +-5 +20 +10 +11 +-5 +21 +15 +0 +LINE +8 +0 +10 +-5 +20 +15 +11 +-15 +21 +15 +0 +LINE +8 +0 +10 +-15 +20 +15 +11 +-15 +21 +5 +0 +LINE +8 +0 +10 +50 +20 +5 +11 +55 +21 +5 +0 +LINE +8 +0 +10 +55 +20 +5 +11 +55 +21 +15 +0 +LINE +8 +0 +10 +55 +20 +15 +11 +45 +21 +15 +0 +LINE +8 +0 +10 +45 +20 +15 +11 +45 +21 +10 +0 +ENDSEC +0 +EOF \ No newline at end of file