Commit ca77ce89 authored by Jan Koniarik's avatar Jan Koniarik
Browse files

added tile.scad examples

parent 6a9291a7
# inspired based on https://github.com/olikraus/scad/blob/master/train_tube_track/Makefile
SCAD=$(wildcard example/*.scad)
STL=$(addprefix example/, $(notdir $(SCAD:.scad=.stl)))
PNG=$(addprefix example/, $(notdir $(SCAD:.scad=.png)))
example/%.stl: example/%.scad
openscad $< -o $@
example/%.png: example/%.scad
openscad $< --render --autocenter --viewall --imgsize=640,480 -o $@
.PHONY: all
all: $(STL) $(PNG)
include <tile.scad>
//tile(T24, h=2);
//tile(T24, h=5);
//tile(T24, h=5, centered_hole=true);
//tile_H(T24, h=5);
//tile_raw_plate(T24, 2, 3, 2);
![](tile_H_T24_5mm.png)
![](tile_T24_2mm.png)
![](tile_T24_5mm.png)
![](tile_T24_5mm_centered.png)
![](tile_T36_5mm.png)
![](tile_raw_plate_T24_2x3_2mm.png)
include <../tile.scad>
tile(T24, h=5, centered_hole=true);
solid OpenSCAD_Model
facet normal -1 0 0
outer loop
vertex 9.99186 5 3.2
vertex 9.99186 3 3.2
vertex 9.99186 5 3.5
endloop
endfacet
facet normal -1 0 0
outer loop
vertex 9.99186 5 3.5
vertex 9.99186 5.15 5
vertex 9.99186 5.15 3.5
endloop
endfacet
facet normal -1 0 0
outer loop
vertex 9.99186 3 3.5
vertex 9.99186 5 3.5
vertex 9.99186 3 3.2
endloop
endfacet
facet normal -1 0 0
outer loop
vertex 9.99186 5 3.5
vertex 9.99186 3 3.5
vertex 9.99186 5.15 5
endloop
endfacet
facet normal -1 0 0
outer loop
vertex 9.99186 2.85 5
vertex 9.99186 3 3.5
vertex 9.99186 2.85 3.5
endloop
endfacet
facet normal -1 0 0
outer loop
vertex 9.99186 3 3.5
vertex 9.99186 2.85 5
vertex 9.99186 5.15 5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 9.99186 5 3.2
vertex 9 4 3.2
vertex 9.99186 3 3.2
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 9.99186 5 3.2
vertex 8.30902 4.95106 3.2
vertex 9 4 3.2
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 7.19098 4.58778 3.2
vertex 6.00814 5 3.2
vertex 7.19098 3.41222 3.2
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 8.30902 4.95106 3.2
vertex 6.00814 5 3.2
vertex 7.19098 4.58778 3.2
endloop
endfacet
facet normal -0 0 1
outer loop
vertex 6.00814 5 3.2
vertex 8.30902 4.95106 3.2
vertex 9.99186 5 3.2
endloop
endfacet
facet normal -0 0 1
outer loop
vertex 8.30902 3.04894 3.2
vertex 9.99186 3 3.2
vertex 9 4 3.2
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 8.30902 3.04894 3.2
vertex 6.00814 3 3.2
vertex 9.99186 3 3.2
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 7.19098 3.41222 3.2
vertex 6.00814 3 3.2
vertex 8.30902 3.04894 3.2
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 6.00814 3 3.2
vertex 7.19098 3.41222 3.2
vertex 6.00814 5 3.2
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 6.00814 5.15 5
vertex 6.00814 5 3.5
vertex 6.00814 5.15 3.5
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 6.00814 5 3.5
vertex 6.00814 3 3.5
vertex 6.00814 5 3.2
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 6.00814 5.15 5
vertex 6.00814 3 3.5
vertex 6.00814 5 3.5
endloop
endfacet
facet normal 1 -0 0
outer loop
vertex 6.00814 2.85 5
vertex 6.00814 3 3.5
vertex 6.00814 5.15 5
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 6.00814 3 3.5
vertex 6.00814 2.85 5
vertex 6.00814 2.85 3.5
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 6.00814 5 3.2
vertex 6.00814 3 3.5
vertex 6.00814 3 3.2
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 6.00814 5 3.2
vertex 9.99186 5 3.5
vertex 6.00814 5 3.5
endloop
endfacet
facet normal 0 -1 -0
outer loop
vertex 9.99186 5 3.5
vertex 6.00814 5 3.2
vertex 9.99186 5 3.2
endloop
endfacet
facet normal 0 1 -0
outer loop
vertex 9.99186 3 3.2
vertex 6.00814 3 3.5
vertex 9.99186 3 3.5
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 6.00814 3 3.5
vertex 9.99186 3 3.2
vertex 6.00814 3 3.2
endloop
endfacet
facet normal -0.5 0.866026 0
outer loop
vertex 9.99186 2.85 3.5
vertex 8 1.7 5
vertex 9.99186 2.85 5
endloop
endfacet
facet normal -0.5 0.866026 0
outer loop
vertex 8 1.7 5
vertex 9.99186 2.85 3.5
vertex 8 1.7 3.5
endloop
endfacet
facet normal 0.5 -0.866026 0
outer loop
vertex 6.00814 5.15 3.5
vertex 8 6.3 5
vertex 6.00814 5.15 5
endloop
endfacet
facet normal 0.5 -0.866026 0
outer loop
vertex 8 6.3 5
vertex 6.00814 5.15 3.5
vertex 8 6.3 3.5
endloop
endfacet
facet normal -0.5 -0.866026 0
outer loop
vertex 8 6.3 3.5
vertex 9.99186 5.15 5
vertex 8 6.3 5
endloop
endfacet
facet normal -0.5 -0.866026 -0
outer loop
vertex 9.99186 5.15 5
vertex 8 6.3 3.5
vertex 9.99186 5.15 3.5
endloop
endfacet
facet normal 0.5 0.866026 -0
outer loop
vertex 8 1.7 3.5
vertex 6.00814 2.85 5
vertex 8 1.7 5
endloop
endfacet
facet normal 0.5 0.866026 0
outer loop
vertex 6.00814 2.85 5
vertex 8 1.7 3.5
vertex 6.00814 2.85 3.5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 9.99186 3 3.5
vertex 8 1.7 3.5
vertex 9.99186 2.85 3.5
endloop
endfacet
facet normal -0 0 1
outer loop
vertex 6.00814 3 3.5
vertex 8 1.7 3.5
vertex 9.99186 3 3.5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 8 1.7 3.5
vertex 6.00814 3 3.5
vertex 6.00814 2.85 3.5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 8 6.3 3.5
vertex 9.99186 5 3.5
vertex 9.99186 5.15 3.5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 6.00814 5 3.5
vertex 8 6.3 3.5
vertex 6.00814 5.15 3.5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 8 6.3 3.5
vertex 6.00814 5 3.5
vertex 9.99186 5 3.5
endloop
endfacet
facet normal -1 0 0
outer loop
vertex 9.99186 5.15 0
vertex 9.99186 5 1.5
vertex 9.99186 5.15 1.5
endloop
endfacet
facet normal -1 0 0
outer loop
vertex 9.99186 5 1.5
vertex 9.99186 3 1.5
vertex 9.99186 5 1.8
endloop
endfacet
facet normal -1 0 0
outer loop
vertex 9.99186 5.15 0
vertex 9.99186 3 1.5
vertex 9.99186 5 1.5
endloop
endfacet
facet normal -1 0 0
outer loop
vertex 9.99186 2.85 0
vertex 9.99186 3 1.5
vertex 9.99186 5.15 0
endloop
endfacet
facet normal -1 -0 0
outer loop
vertex 9.99186 3 1.5
vertex 9.99186 2.85 0
vertex 9.99186 2.85 1.5
endloop
endfacet
facet normal -1 -0 0
outer loop
vertex 9.99186 5 1.8
vertex 9.99186 3 1.5
vertex 9.99186 3 1.8
endloop
endfacet
facet normal 0 0 -1
outer loop
vertex 9.99186 3 1.8
vertex 9 4 1.8
vertex 9.99186 5 1.8
endloop
endfacet
facet normal 0 0 -1
outer loop
vertex 9.99186 3 1.8
vertex 8.30902 3.04894 1.8
vertex 9 4 1.8
endloop
endfacet
facet normal -0 0 -1
outer loop
vertex 7.19098 3.41222 1.8
vertex 6.00814 3 1.8
vertex 7.19098 4.58778 1.8
endloop
endfacet
facet normal -0 0 -1
outer loop
vertex 8.30902 3.04894 1.8
vertex 6.00814 3 1.8
vertex 7.19098 3.41222 1.8
endloop
endfacet
facet normal 0 0 -1
outer loop
vertex 6.00814 3 1.8
vertex 8.30902 3.04894 1.8
vertex 9.99186 3 1.8
endloop
endfacet
facet normal 0 0 -1
outer loop
vertex 8.30902 4.95106 1.8
vertex 9.99186 5 1.8
vertex 9 4 1.8
endloop
endfacet
facet normal 0 0 -1
outer loop
vertex 8.30902 4.95106 1.8
vertex 6.00814 5 1.8
vertex 9.99186 5 1.8
endloop
endfacet
facet normal 0 0 -1
outer loop
vertex 7.19098 4.58778 1.8
vertex 6.00814 5 1.8
vertex 8.30902 4.95106 1.8
endloop
endfacet
facet normal 0 0 -1
outer loop
vertex 6.00814 5 1.8
vertex 7.19098 4.58778 1.8
vertex 6.00814 3 1.8
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 6.00814 5 1.8
vertex 6.00814 3 1.8
vertex 6.00814 5 1.5
endloop
endfacet
facet normal 1 -0 0
outer loop
vertex 6.00814 5 1.5
vertex 6.00814 5.15 0
vertex 6.00814 5.15 1.5
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 6.00814 3 1.5
vertex 6.00814 5 1.5
vertex 6.00814 3 1.8
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 6.00814 5 1.5
vertex 6.00814 3 1.5
vertex 6.00814 5.15 0
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 6.00814 2.85 0
vertex 6.00814 3 1.5
vertex 6.00814 2.85 1.5
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 6.00814 3 1.5
vertex 6.00814 2.85 0
vertex 6.00814 5.15 0
endloop
endfacet
facet normal 0 1 -0
outer loop
vertex 9.99186 3 1.5
vertex 6.00814 3 1.8
vertex 9.99186 3 1.8
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 6.00814 3 1.8
vertex 9.99186 3 1.5
vertex 6.00814 3 1.5
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 6.00814 5 1.5
vertex 9.99186 5 1.8
vertex 6.00814 5 1.8
endloop
endfacet
facet normal 0 -1 -0
outer loop
vertex 9.99186 5 1.8
vertex 6.00814 5 1.5
vertex 9.99186 5 1.5
endloop
endfacet
facet normal -0.5 -0.866026 0
outer loop
vertex 8 6.3 0
vertex 9.99186 5.15 1.5
vertex 8 6.3 1.5
endloop
endfacet
facet normal -0.5 -0.866026 -0
outer loop
vertex 9.99186 5.15 1.5
vertex 8 6.3 0
vertex 9.99186 5.15 0
endloop
endfacet
facet normal 0.5 0.866026 -0
outer loop
vertex 8 1.7 0
vertex 6.00814 2.85 1.5
vertex 8 1.7 1.5
endloop
endfacet
facet normal 0.5 0.866026 0
outer loop
vertex 6.00814 2.85 1.5
vertex 8 1.7 0
vertex 6.00814 2.85 0
endloop
endfacet
facet normal -0.5 0.866026 0
outer loop
vertex 9.99186 2.85 0
vertex 8 1.7 1.5
vertex 9.99186 2.85 1.5
endloop
endfacet
facet normal -0.5 0.866026 0
outer loop
vertex 8 1.7 1.5
vertex 9.99186 2.85 0
vertex 8 1.7 0
endloop
endfacet
facet normal 0.5 -0.866026 0
outer loop
vertex 6.00814 5.15 0
vertex 8 6.3 1.5
vertex 6.00814 5.15 1.5
endloop
endfacet
facet normal 0.5 -0.866026 0
outer loop
vertex 8 6.3 1.5
vertex 6.00814 5.15 0
vertex 8 6.3 0
endloop
endfacet
facet normal 0 0 -1
outer loop
vertex 9.99186 5 1.5
vertex 8 6.3 1.5
vertex 9.99186 5.15 1.5
endloop
endfacet
facet normal 0 0 -1
outer loop
vertex 6.00814 5 1.5
vertex 8 6.3 1.5
vertex 9.99186 5 1.5
endloop
endfacet
facet normal 0 0 -1
outer loop
vertex 8 6.3 1.5
vertex 6.00814 5 1.5
vertex 6.00814 5.15 1.5
endloop
endfacet
facet normal 0 0 -1
outer loop
vertex 8 1.7 1.5
vertex 9.99186 3 1.5
vertex 9.99186 2.85 1.5
endloop
endfacet
facet normal 0 0 -1
outer loop
vertex 6.00814 3 1.5
vertex 8 1.7 1.5
vertex 6.00814 2.85 1.5
endloop
endfacet
facet normal 0 0 -1
outer loop
vertex 8 1.7 1.5
vertex 6.00814 3 1.5
vertex 9.99186 3 1.5
endloop
endfacet
facet normal 0.309022 0.951055 -0
outer loop
vertex 8.30902 3.04894 1.8
vertex 7.19098 3.41222 3.2
vertex 8.30902 3.04894 3.2
endloop
endfacet
facet normal 0.309022 0.951055 0
outer loop
vertex 7.19098 3.41222 3.2
vertex 8.30902 3.04894 1.8
vertex 7.19098 3.41222 1.8
endloop
endfacet
facet normal 0.309022 -0.951055 0
outer loop
vertex 7.19098 4.58778 1.8
vertex 8.30902 4.95106 3.2
vertex 7.19098 4.58778 3.2
endloop
endfacet
facet normal 0.309022 -0.951055 0
outer loop
vertex 8.30902 4.95106 3.2
vertex 7.19098 4.58778 1.8
vertex 8.30902 4.95106 1.8
endloop
endfacet
facet normal -0.809019 -0.587782 0
outer loop
vertex 9 4 1.8
vertex 8.30902 4.95106 3.2
vertex 8.30902 4.95106 1.8
endloop
endfacet
facet normal -0.809019 -0.587782 0
outer loop
vertex 8.30902 4.95106 3.2
vertex 9 4 1.8
vertex 9 4 3.2
endloop
endfacet
facet normal 1 -0 0
outer loop
vertex 7.19098 3.41222 3.2
vertex 7.19098 4.58778 1.8
vertex 7.19098 4.58778 3.2
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 7.19098 4.58778 1.8
vertex 7.19098 3.41222 3.2
vertex 7.19098 3.41222 1.8
endloop
endfacet
facet normal -0.809019 0.587782 0
outer loop
vertex 8.30902 3.04894 1.8
vertex 9 4 3.2
vertex 9 4 1.8
endloop
endfacet
facet normal -0.809019 0.587782 0
outer loop
vertex 9 4 3.2
vertex 8.30902 3.04894 1.8
vertex 8.30902 3.04894 3.2