From bae5e91c7a2d35997336a872647261a5e3474cf4 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Tue, 27 Dec 2022 06:36:34 -0300 Subject: [PATCH] [DOCs] Added render_3d and step sub-PCB examples. --- .../render_3d_sub_pcb_bp.kibot.yaml | 35 +++++++++++++++++++ tests/yaml_samples/step_sub_pcb_bp.kibot.yaml | 17 +++++++++ 2 files changed, 52 insertions(+) create mode 100644 tests/yaml_samples/render_3d_sub_pcb_bp.kibot.yaml create mode 100644 tests/yaml_samples/step_sub_pcb_bp.kibot.yaml diff --git a/tests/yaml_samples/render_3d_sub_pcb_bp.kibot.yaml b/tests/yaml_samples/render_3d_sub_pcb_bp.kibot.yaml new file mode 100644 index 00000000..5f43f428 --- /dev/null +++ b/tests/yaml_samples/render_3d_sub_pcb_bp.kibot.yaml @@ -0,0 +1,35 @@ +# Example KiBot config file +kibot: + version: 1 + +import: + - file: battery_pack_sub_pcbs.kibot.yaml + +outputs: + - name: "base" + type: render_3d + run_by_default: false + options: + width: 2000 + height: 1000 + + - name: "base2" + type: step + run_by_default: false + options: + metric_units: false + + - name: "top" + type: render_3d + extends: "base" + options: + rotate_x: 3 + rotate_z: -2 + + - name: "bottom" + type: render_3d + extends: "top" + run_by_default: false + options: + width: 1920 + view: "bottom" diff --git a/tests/yaml_samples/step_sub_pcb_bp.kibot.yaml b/tests/yaml_samples/step_sub_pcb_bp.kibot.yaml new file mode 100644 index 00000000..730b0a7f --- /dev/null +++ b/tests/yaml_samples/step_sub_pcb_bp.kibot.yaml @@ -0,0 +1,17 @@ +kiplot: + version: 1 + +import: + - file: battery_pack_sub_pcbs.kibot.yaml + +outputs: + - name: Step + comment: "Generate 3D model (STEP)" + type: step + dir: 3D + options: + metric_units: true + origin: drill # "grid" or "drill" o "X,Y" i.e. 3.2,-10 + # no_virtual: false # exclude 3D models for components with 'virtual' attribute + # min_distance: 0.01 # Minimum distance between points to treat them as separate ones (default 0.01 mm) + # output: project.step