From 3a69f16e6090407538e00261fb614f7b01868698 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Mon, 20 Mar 2023 14:13:07 -0300 Subject: [PATCH] [Tests] Added configs to test the 3D models for THT resistors --- .../blender_export_tht_r_1.kibot.yaml | 21 +++++++++++++++++++ .../render_3d_simple_1.kibot.yaml | 10 +++++++++ .../render_3d_tht_res_1.kibot.yaml | 20 ++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 tests/yaml_samples/blender_export_tht_r_1.kibot.yaml create mode 100644 tests/yaml_samples/render_3d_simple_1.kibot.yaml create mode 100644 tests/yaml_samples/render_3d_tht_res_1.kibot.yaml diff --git a/tests/yaml_samples/blender_export_tht_r_1.kibot.yaml b/tests/yaml_samples/blender_export_tht_r_1.kibot.yaml new file mode 100644 index 00000000..9551dc62 --- /dev/null +++ b/tests/yaml_samples/blender_export_tht_r_1.kibot.yaml @@ -0,0 +1,21 @@ +# KiBot Blender export test 1 +kibot: + version: 1 + +outputs: + - name: '3d_export' + comment: "Exports the PCB in blender format" + type: blender_export + options: + render_options: + transparent_background: true + samples: 10 + #resolution_x: 1920 + #resolution_y: 1080 + point_of_view: + rotate_x: 50 + rotate_z: -20 + # view: bottom + outputs: + - type: blender + - type: render diff --git a/tests/yaml_samples/render_3d_simple_1.kibot.yaml b/tests/yaml_samples/render_3d_simple_1.kibot.yaml new file mode 100644 index 00000000..0b0b2ffa --- /dev/null +++ b/tests/yaml_samples/render_3d_simple_1.kibot.yaml @@ -0,0 +1,10 @@ +# Example KiBot config file +kibot: + version: 1 + +outputs: + - name: '3d_default' + comment: "3D view" + type: render_3d + options: + ray_tracing: false diff --git a/tests/yaml_samples/render_3d_tht_res_1.kibot.yaml b/tests/yaml_samples/render_3d_tht_res_1.kibot.yaml new file mode 100644 index 00000000..eea209a0 --- /dev/null +++ b/tests/yaml_samples/render_3d_tht_res_1.kibot.yaml @@ -0,0 +1,20 @@ +# Example KiBot config file +kibot: + version: 1 + +outputs: + - name: '3d_default' + comment: "3D view" + type: render_3d + options: + ray_tracing: true + zoom: 8 + rotate_x: 5 + + - name: PcbDraw + comment: "PcbDraw test top" + type: pcbdraw + dir: PcbDraw + options: + format: png + show_components: all