tet format

As used to represent tetrahedra by the Danzer Atlas of 3D non periodic tiles
At the Computer Science department of Williams College.

Compiled by Paul Bourke


The tet file format consists of one line per tetrahedron. Each line is of the form

T:x0 y0 z0:x1 y1 z1:x2 y2 z2:x3 y3 z3:Tn 

where the x-y-z triplets are the coordinates of the three corners of the tetrahedron. The last field on the line is a letter and a number naming the type of tile and the number of the vertex at the center of the configuration.

Example

T:0 0 0:-0.178413 0.30902 0.467083:-0.288676 0.118036 0.220526:-0.110264 -0.190982 0.288676:a1
T:0 0 0:-0.178413 0.30902 0.467083:0 0 0.330792:-0.110264 -0.190982 0.288676:b2
T:0 0 0:-0.178413 0.30902 0.467083:0 0 0.330792:0.220528 0 0.288675:B2
T:0 0 0:-0.178413 0.30902 0.467083:0.0421179 0.309019 0.220526:0.220528 0 0.288675:A1
T:0 0 0:-0.178413 0.30902 0.467083:0.0421179 0.309019 0.220526:-0.178411 0.309016 -0.0681508:a1
T:0 0 0:-0.178413 0.30902 0.467083:-0.288676 0.118036 0.220526:-0.178411 0.309016 -0.0681508:A1
T:0 0 0:0 0 0.330792:-0.110264 -0.190982 0.288676:0.0551305 -0.0954892 0.288676:k2
T:0 0 0:-0.110264 -0.190982 0.288676:0.0551305 -0.0954892 0.288676:0.110263 -0.190981 0.24656:K2
T:0 0 0:-0.110264 -0.190982 0.288676:0.0340725 -0.249998 0.178414:0.110263 -0.190981 0.24656:k2
T:0 0 0:-0.110264 -0.190982 0.288676:-0.0421209 -0.309016 0.110267:0.0340725 -0.249998 0.178414:K2
T:0 0 0:-0.110264 -0.190982 0.288676:-0.0421209 -0.309016 0.110267:-0.144337 -0.249999 0.110267:k2
T:0 0 0:-0.110264 -0.190982 0.288676:-0.246558 -0.190982 0.110265:-0.144337 -0.249999 0.110267:K2
T:0 0 0:-0.110264 -0.190982 0.288676:-0.577351 0 0.11026:-0.246558 -0.190982 0.110265:B2
T:0 0 0:-0.288676 0.118036 0.220526:-0.110264 -0.190982 0.288676:-0.577351 0 0.11026:A1
T:0 0 0:0.0421179 0.309019 0.220526:0.220528 0 0.288675:0.288676 0.5 0.110264:a1
T:0 0 0:0.220528 0 0.288675:0.288676 0.5 0.110264:0.330792 0.190983 0:A1
T:0 0 0:0.220528 0 0.288675:0.330792 0.190983 0:0.577351 0 -0.110261:a1
T:0 0 0:0.220528 0 0.288675:0.288673 -0.118035 0.110268:0.577351 0 -0.110261:b2
T:0 0 0:0.220528 0 0.288675:0.199469 -0.154507 0.178413:0.288673 -0.118035 0.110268:k2
T:0 0 0:0.220528 0 0.288675:0.110263 -0.190981 0.24656:0.199469 -0.154507 0.178413:K2
T:0 0 0:0.0551305 -0.0954892 0.288676:0.220528 0 0.288675:0.110263 -0.190981 0.24656:k2
T:0 0 0:0 0 0.330792:0.0551305 -0.0954892 0.288676:0.220528 0 0.288675:K2
T:0 0 0:0.0421179 0.309019 0.220526:0.288676 0.5 0.110264:-0.178411 0.309016 -0.0681508:A1
T:0 0 0:0.288676 0.5 0.110264:-0.178411 0.309016 -0.0681508:0.0421226 0.309017 -0.110263:B2
T:0 0 0:0.288676 0.5 0.110264:0.0421226 0.309017 -0.110263:0.110269 0.190978 -0.288677:b2
T:0 0 0:0.288676 0.5 0.110264:0.330792 0.190983 0:0.110269 0.190978 -0.288677:a1
T:0 0 0:-0.288676 0.118036 0.220526:-0.178411 0.309016 -0.0681508:-0.577351 0 0.11026:a1
T:0 0 0:-0.178411 0.309016 -0.0681508:-0.577351 0 0.11026:-0.356822 0 -0.136293:A1
T:0 0 0:-0.178411 0.309016 -0.0681508:-0.356822 0 -0.136293:-0.356819 0 -0.467088:a1
T:0 0 0:-0.178411 0.309016 -0.0681508:-0.110263 0.190982 -0.246559:-0.356819 0 -0.467088:b2
T:0 0 0:-0.178411 0.309016 -0.0681508:-0.0340701 0.249998 -0.178414:-0.110263 0.190982 -0.246559:k2
T:0 0 0:-0.178411 0.309016 -0.0681508:0.0421226 0.309017 -0.110263:-0.0340701 0.249998 -0.178414:K2
T:0 0 0:-0.577351 0 0.11026:-0.246558 -0.190982 0.110265:-0.178411 -0.309017 -0.0681451:b2
T:0 0 0:-0.577351 0 0.11026:-0.356822 0 -0.136293:-0.178411 -0.309017 -0.0681451:a1
T:0 0 0:0.110269 0.190978 -0.288677:-0.068148 -0.11804 -0.35682:0.178413 -0.309021 -0.467083:a1
T:0 0 0:0.110269 0.190978 -0.288677:0.288676 -0.118036 -0.220526:0.178413 -0.309021 -0.467083:A1
T:0 0 0:0.178411 -0.309016 0.0681508:0.288676 -0.118036 -0.220526:0.178413 -0.309021 -0.467083:a1
T:0 0 0:0.178411 -0.309016 0.0681508:0.0421156 -0.309018 -0.110263:0.178413 -0.309021 -0.467083:b2
T:0 0 0:-0.178411 -0.309017 -0.0681451:0.0421156 -0.309018 -0.110263:0.178413 -0.309021 -0.467083:B2
T:0 0 0:-0.178411 -0.309017 -0.0681451:-0.068148 -0.11804 -0.35682:0.178413 -0.309021 -0.467083:A1
T:0 0 0:0 -0.309017 0:0.178411 -0.309016 0.0681508:0.0421156 -0.309018 -0.110263:k2
T:0 0 0:-0.0421209 -0.309016 0.110267:0 -0.309017 0:0.178411 -0.309016 0.0681508:K2
T:0 0 0:-0.0421209 -0.309016 0.110267:0.0340725 -0.249998 0.178414:0.178411 -0.309016 0.0681508:k2
T:0 0 0:0.0340725 -0.249998 0.178414:0.110263 -0.190981 0.24656:0.178411 -0.309016 0.0681508:K2
T:0 0 0:0.110263 -0.190981 0.24656:0.199469 -0.154507 0.178413:0.178411 -0.309016 0.0681508:k2
T:0 0 0:0.199469 -0.154507 0.178413:0.288673 -0.118035 0.110268:0.178411 -0.309016 0.0681508:K2
T:0 0 0:0.288673 -0.118035 0.110268:0.178411 -0.309016 0.0681508:0.577351 0 -0.110261:B2
T:0 0 0:0.178411 -0.309016 0.0681508:0.577351 0 -0.110261:0.288676 -0.118036 -0.220526:A1
T:0 0 0:0.577351 0 -0.110261:0.110269 0.190978 -0.288677:0.288676 -0.118036 -0.220526:a1
T:0 0 0:0.330792 0.190983 0:0.577351 0 -0.110261:0.110269 0.190978 -0.288677:A1
T:0 0 0:0.0421226 0.309017 -0.110263:-0.0340701 0.249998 -0.178414:0.110269 0.190978 -0.288677:k2
T:0 0 0:-0.0340701 0.249998 -0.178414:-0.110263 0.190982 -0.246559:0.110269 0.190978 -0.288677:K2
T:0 0 0:-0.110263 0.190982 -0.246559:0.110269 0.190978 -0.288677:-0.356819 0 -0.467088:B2
T:0 0 0:0.110269 0.190978 -0.288677:-0.356819 0 -0.467088:-0.068148 -0.11804 -0.35682:A1
T:0 0 0:-0.356819 0 -0.467088:-0.178411 -0.309017 -0.0681451:-0.068148 -0.11804 -0.35682:a1
T:0 0 0:-0.356822 0 -0.136293:-0.356819 0 -0.467088:-0.178411 -0.309017 -0.0681451:A1
T:0 0 0:-0.246558 -0.190982 0.110265:-0.144337 -0.249999 0.110267:-0.178411 -0.309017 -0.0681451:k2
T:0 0 0:-0.0421209 -0.309016 0.110267:-0.144337 -0.249999 0.110267:-0.178411 -0.309017 -0.0681451:K2
T:0 0 0:-0.0421209 -0.309016 0.110267:0 -0.309017 0:-0.178411 -0.309017 -0.0681451:k2
T:0 0 0:0 -0.309017 0:-0.178411 -0.309017 -0.0681451:0.0421156 -0.309018 -0.110263:K2