
Beispiel
Tetraeder mit dedizierter Verknüpfung der Kanten und Flächen.
VERT 0,0,0 ! Ecke 1
VERT 1,0,0 ! Ecke 2
VERT 0.5,1*SIN(60),0 ! Ecke 3
VERT 0.5,0.5*TAN(30),1*sin(60) ! Ecke 4
VECT 0,0,-1 ! Normalenvektor 1
EDGE 1,2, 1,2, 0 ! Kante 1
EDGE 2,3, 1,3, 0 ! Kante 2
EDGE 3,1, 1,4, 0 ! Kante 3
EDGE 1,4, 2,4, 0 ! Kante 4
EDGE 2,4, 2,3, 0 ! Kante 5
EDGE 3,4, 3,4, 0 ! Kante 6
PGON 3, 1, 0, -1,-3,-2 ! Fläche 1
PGON 3, 0, 0, 1, 5,-4 ! Fläche 2
PGON 3, 0, 0, 2, 6,-5 ! Fläche 3
PGON 3, 0, 0, 3, 4,-6 ! Fläche 4
BODY 1 !Tetraeder darstellen
Der gleiche Tetraeder mit automatischer (berechneter) Zuordnung der Kanten und Flächen zueinander.
VERT 0,0,0 ! Ecke 1
VERT 1,0,0 ! Ecke 2
VERT 0.5,1*SIN(60),0 ! Ecke 3
VERT 0.5,0.5*TAN(30),1*sin(60) ! Ecke 4
VECT 0,0,-1 ! Normalenvektor 1
EDGE 1,2, -1,-1, 0 ! Kante 1
EDGE 2,3, -1,-1, 0 ! Kante 2
EDGE 3,1, -1,-1, 0 ! Kante 3
EDGE 1,4, -1,-1, 0 ! Kante 4
EDGE 2,4, -1,-1, 0 ! Kante 5
EDGE 3,4, -1,-1, 0 ! Kante 6
PGON 3, 1, -1, -1,-3,-2 ! Fläche 1
PGON 3, 0, -1, 1, 5,-4 ! Fläche 2
PGON 3, 0, -1, 2, 6,-5 ! Fläche 3
PGON 3, 0, -1, 3, 4,-6 ! Fläche 4
BODY 1 !Tetraeder darstellen
Siehe auch Abbildungen zu dem Beispiel. |