Skip to content

Commit

Permalink
#28 - add make assembly blender test to github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kittlerm authored and kaklik committed Aug 1, 2023
1 parent b8c9a87 commit f03f256
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/render_previews.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,21 @@ jobs:
rm CAD/stl/*.stl ||:
rm CAD/amf/*.amf ||:
- name: Make
- name: Make -d CAD/src
run: |
cd CAD/src
make
- name: Make
- name: Make -d CAD/src/assembly (position)
run: |
cd CAD/src/assembly
make
- name: Make -d CAD/src/assembly (test blender)
run: |
cd CAD/src/assembly/test
make
- name: Upload a PNG Artifact
uses: actions/[email protected]
with:
Expand Down
13 changes: 13 additions & 0 deletions CAD/src/assembly/test/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
STL_DIR=../../../stl
AMF_DIR=../../../amf
IMG_DIR=png
SRC_DIR=../../../src/assembly/test
# DEP_DIR=../../../dep
# GCD_DIR=../../../gcode
# INI_DIR=../../../slicing
GIT_ROOT=../../../../
OUTPUT_FOLDER=.
NAME_PREFIX=TF-G2_assembly
PROCESSOR3D_PARAM=--no_gcode --no_amf

include ../../../../utils/Makefile
71 changes: 71 additions & 0 deletions CAD/src/assembly/test/assembly_888_test.scad
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
//@set_type(solid)
include <../../../parameters.scad>
//@blender_template(../../build_manual/blender/build_manual_template.blend)
//@blender_updater= ../../build_manual/update_render_src.py
$fn=10;
// TODO: render viewport to position of camera
// e.g. see ../../build_manual/src/buildmanual_0001_c.json
//# @blender_config(../../build_manual/src/buildmanual_0001_c.json)
//$vpt=[-400,-500,300];
//$vpr=[70,0,-45];

// include <yasim.scad>

////import_stl("stl/buildmanual_motor.stl", convexity = 5);
//import("../build_manual/stl/buildmanual_motor.stl");

//include <../position/position_888_1001.scad> // podlozka
//include <position/position_888_1002.scad> // Motorova pricka
//include <position/position_888_1003.scad> // Bocnice
include <../position/position_888_1006.scad> // Policka na payload
//include <position/position_888_1007.scad> // spodni pricka pylonu
//include <position/position_888_1008.scad> // horni pricka pylonu
//include <position/position_888_1009.scad> //
//include <position/position_888_1010.scad> // TFSLOT
//include <position/position_888_1011.scad>
//include <position/position_888_1012.scad>
//include <position/position_888_1009.scad>
//include <position/position_888_1013.scad>
//include <position/position_888_1018.scad>
//include <position/position_rotor.scad>
//include <../888_1016.scad>
// include <position/position_888_2002.scad> // podvozek
//include <position/position_888_3000.scad>
//include <position/position_888_3006.scad>
//include <position/position_screw_01.scad>
//include <position/position_screw_02.scad>
//include <position/position_screw_03.scad>
//include <position/position_motor.scad>
//include <position/position_tailPipe.scad>
//include <position/position_rotorhead.scad>

use <../../888_1004.scad>
color([0.3,0.3,0.3])
888_1004();
//use <../888_1004.scad>
//use <../888_1005.scad>
//use <../888_1005.scad>


// include <position/position_888_1016_rear_difference.scad>

/*
for(x = [1, 0])
mirror([0, x, 0])
translate([0, -base_width/2, 0])
rotate([90, 0, 0])
888_1003(); */
/*
translate([250, 0, 0])
translate([0, 30, 0])
rotate([90, 0, 90])
translate([0, 0, -18/2])
888_2002();
translate([250, 0, 0])
rotate([0, 0, 180])
translate([0, 30, 0])
rotate([90, 0, 90])
translate([0, 0, -18/2])
888_2002(); */

0 comments on commit f03f256

Please sign in to comment.