Utility 01 - buildRegionSTL
Following code has to be copied into your ./bashrc on linux system to merge toghether several STL files saved into cad/stl folder.
For more details, have a look to this screen cast
https://www.youtube.com/watch?v=CZvU...OvvbOv&index=1
thanks Tobi
For more details, have a look to this screen cast
https://www.youtube.com/watch?v=CZvU...OvvbOv&index=1
thanks Tobi
Code:
function buildRegionSTL() { if [ -d "cad/stl" ] then if [ "$#" -ne 1 ] then mkdir -p constant/triSurface cd cad/stl for i in $(ls *.stl) do sed -e 1c"solid ${i%.*}" $i -i done rm ../../constant/triSurface/regionSTL.stl -f cat * > ../../constant/triSurface/regionSTL.stl cd ../../ fi else echo "folder cad/stl does not exist" fi }
Total Comments 0