File: tet_node.tex

package info (click to toggle)
trilinos 12.18.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 825,604 kB
  • sloc: cpp: 3,352,065; ansic: 432,926; fortran: 169,495; xml: 61,903; python: 40,836; sh: 32,697; makefile: 26,612; javascript: 8,535; perl: 7,136; f90: 6,372; csh: 4,183; objc: 2,620; lex: 1,469; lisp: 810; yacc: 497; awk: 364; ml: 281; php: 145
file content (97 lines) | stat: -rw-r--r-- 4,371 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
\documentclass[11pt]{article}
\usepackage{geometry}                % See geometry.pdf to learn the layout options. There are lots.
\geometry{letterpaper}                   % ... or a4paper or a5paper or ... 
%\geometry{landscape}                % Activate for for rotated page geometry
%\usepackage[parfill]{parskip}    % Activate to begin paragraphs with an empty line rather than an indent
\usepackage{graphicx}
\usepackage{amssymb,amsmath}
\usepackage{epstopdf}
\usepackage{pgf}
\usepackage{pgfpages}
\usepackage{tikz}
\usetikzlibrary{arrows,backgrounds}
\usepgflibrary{shapes}
\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}
\pagestyle{empty}


\begin{document}

% Tetrahedron Node Numbering
  \begin{center}
    \begin{tikzpicture}[join=round] % tet with 4 nodes
        \filldraw[fill=black!20](1.748,.561)--(-2.205,.272)--(.456,-.833)--cycle;
        \filldraw[fill=blue!10,fill opacity=0.4](0,2.6)--(-2.205,.272)--(1.748,.561)--(0,2.6)--cycle;
        \filldraw[fill=blue!10,fill opacity=0.4](0,2.6)--(1.748,.561)--(.456,-.833)--(0,2.6)--cycle;
        \filldraw[fill=blue!10,fill opacity=0.4](0,2.6)--(.456,-.833)--(-2.205,.272)--(0,2.6)--cycle;
        \filldraw(1.748,.561) circle (2pt);
        \filldraw(-2.205,.272) circle (2pt);
        \filldraw(0,2.6) circle (2pt);
        \filldraw(.456,-.833) circle (2pt);
        \fill[black]
                (-2.205,.272) node [left] {0}
                (.456,-.833) node [below] {1}
                (1.748,.561) node [right] {2}
                (0,2.6) node [above] {3};
    \end{tikzpicture}
     \hspace{1cm}
    \begin{tikzpicture}[join=round] % tet with 8 nodes
       \filldraw[fill=black!20](1.748,.561)--(-2.205,.272)--(.456,-.833)--cycle;
       \filldraw[fill=blue!10,fill opacity=0.4](0,2.6)--(-2.205,.272)--(1.748,.561)--(0,2.6)--cycle;
       \filldraw(0,0) circle (2pt);
       \filldraw[fill=blue!10,fill opacity=0.4](0,2.6)--(1.748,.561)--(.456,-.833)--(0,2.6)--cycle;
       \filldraw(-.152,1.144) circle (2pt);
       \filldraw[fill=blue!10,fill opacity=0.4](0,2.6)--(.456,-.833)--(-2.205,.272)--(0,2.6)--cycle;
       \filldraw(1.748,.561) circle (2pt);
       \filldraw(.735,.776) circle (2pt);
       \filldraw(-2.205,.272) circle (2pt);
       \filldraw(-.583,.68) circle (2pt);
       \filldraw(0,2.6) circle (2pt);
       \filldraw(.456,-.833) circle (2pt);
       \fill[black,font=\footnotesize]
                (-2.205,.272) node [left] {0}
                (.456,-.833) node [below] {1}
                (1.748,.561) node [right] {2}
                (0,2.6) node [above] {3}
                (-.583,.68) node [left] {4}
                (.735,.776) node [right] {5}
                (-.152,1.144) node [above] {7}
                (0,0) node [above] {6};
     \end{tikzpicture}
   \end{center}
   \begin{center} {(a) \hspace{5cm} (b)}  \end{center}
   \begin{center}
    \begin{tikzpicture}[join=round]% tet with 10 nodes
        \filldraw[fill=black!20](1.748,.561)--(-2.205,.272)--(.456,-.833)--cycle;
        \filldraw(1.748,.561) circle (2pt);
        \filldraw[fill=blue!10,fill opacity=0.4](0,2.6)--(-2.205,.272)--(1.748,.561)--(0,2.6)--cycle;
        \filldraw[fill=blue!10,fill opacity=0.4](0,2.6)--(1.748,.561)--(.456,-.833)--(0,2.6)--cycle;
        \filldraw[fill=blue!10,fill opacity=0.4](0,2.6)--(.456,-.833)--(-2.205,.272)--(0,2.6)--cycle;
        \filldraw(-.228,.417) circle (2pt);
        \filldraw(-2.205,.272) circle (2pt);
        \filldraw(.874,1.581) circle (2pt);
        \filldraw(-1.102,1.436) circle (2pt);
        \filldraw(1.102,-.136) circle (2pt);
        \filldraw(-.874,-.281) circle (2pt);
        \filldraw(0,2.6) circle (2pt);
        \filldraw(.228,.883) circle (2pt);
        \filldraw(.456,-.833) circle (2pt);
        \fill[black,font=\footnotesize]
                (-2.205,.272) node [left] {0}
                (.456,-.833) node [below] {1}
                (1.748,.561) node [right] {2}
                (0,2.6) node [above] {3}
                (-.874,-.281) node [below] {4}
                (1.102,-.136) node [below] {5}
                (-.228,.417) node [above] {6}
                (-1.102,1.436) node [left] {7}
                (.228,.883) node [left] {8}
                (.874,1.581) node [right] {9};
     \end{tikzpicture}
    \end{center}
  \begin{center}
             (c) 
   \end{center}


\end{document}