Commit bd5a3642 authored by Helene Ruffieux's avatar Helene Ruffieux Committed by Simone Deparis
Browse files

New versions of the examples for the tutorial

parent 77f566fe
\def\filedate{2003/10/29}
\def\fileversion{1}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{lifestyle}[2003/10/29]
\message{`lifestyle v\fileversion, \filedate\space (Christophe Prud'homme <christophe.prudhomme@epfl.ch>)}
\RequirePackage{ifthen}
\newboolean{life@article} \setboolean{life@article}{true}
\newboolean{life@report} \setboolean{life@report}{false}
\newboolean{life@toc} \setboolean{life@toc}{false}
\newboolean{life@stretch} \setboolean{life@stretch}{false}
\DeclareOption{article} {\setboolean{life@article}{true}\setboolean{life@report}{false}}
\DeclareOption{report} {\setboolean{life@report}{true}\setboolean{life@article}{false}}
\DeclareOption{toc} {\setboolean{life@toc}{true}}
\DeclareOption{stretch} {\setboolean{life@stretch}{true}}
\ifthenelse{\boolean{life@article}}
{
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
}{
\ifthenelse{\boolean{life@report}}
{
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}
}{
%% default is article
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
}
}
%%
%% Execution of Options
%%
\ProcessOptions
\ifthenelse{\boolean{life@article}}
{
\LoadClass[titlepage]{article}
}{
\ifthenelse{\boolean{life@report}}
{
\LoadClass[titlepage]{report}
}{
%% default is article
\LoadClass[titlepage]{article}
}
}
\RequirePackage{a4wide}
\RequirePackage{fancyhdr}
\RequirePackage{fancybox}
\RequirePackage{xspace}
\RequirePackage{multicol}
\RequirePackage{makeidx}
\RequirePackage{subfigure}
\RequirePackage{verbatim}
\RequirePackage{rcs}
\RequirePackage{colortbl}
\RequirePackage[english]{babel}
\RequirePackage{tabularx}
\RequirePackage[pdftex,colorlinks]{hyperref}
% Graphics rules
%
\RequirePackage[pdftex]{color}
\RequirePackage[pdftex]{graphicx}
\DeclareGraphicsExtensions{.jpg,.png,.pdf}
\DeclareGraphicsRule{*}{mps}{*}{}
% Some maths
%
\RequirePackage{amsmath,amsfonts,amssymb,amscd,amsthm,amsbsy}
\newcommand{\lifedraftdate}{\small Revision: \RCSRevision, \RCSDate, \RCSTime\ UTC Printed: \today}
\newenvironment{rationale}{\renewcommand{\labelitemi}{\textit{Rationale:}}
\begin{itemize}
\item
}{ \end{itemize}}
%%
%% Index
%%
\newcommand{\ix}[1]{#1\index{#1}}
\newcommand{\ixn}[1]{\index{#1}}
\newcommand{\ixv}[1]{{\tt #1}\index{#1}}
\newcommand{\ixs}[2]{#1\index{#1|see{#2}}\index{#2!#1}}
\newcommand{\ixns}[2]{\index{#1|see{#2}}\index{#2!#1}}
\newcommand{\ixvs}[2]{{\tt #1}\index{#1|see{#2}}\index{#2!#1}}
\newcommand{\nindex}[1]{\textit{#1}\index[name]{#1}}
\newcommand{\cppobj}[1]{\index{C++ Objects!#1}}
\newcommand{\lifetitle}[2]{\raggedright{\Huge #1}\\
\rule[2ex]{\linewidth}{1mm}\\
{\hfill\lifedraftdate}\\
\vfill{\Large #2}\\
\rule[2ex]{\linewidth}{.5mm}}
\newcommand{\thelibrary}{\textsl{LIFE V}\xspace}
\newcommand{\lifev}{\textsl{LifeV}\xspace}
%%
%% generate hints
%%
\usepackage{fancybox,framed}
\newcommand{\hinttitle}[1]{\mbox{#1}\xspace}
\definecolor{hintcolor}{rgb}{.95,1,.95}
% \newenvironment{\hint}[1]{
% \begin{framed}
% \colorbox{hintcolor}{\parbox{.65\linewidth}{
% % \begin{tabular}[.65\linewidth]{l}
% % \hinttitle{#1}\\
% % \rule[2ex]{\linewidth}{1mm}\\
% }{\end{framed}}
\makeatletter
\newenvironment{hint}[1]{%
\def\FrameCommand{%
% \setlength{\fboxrule}{\FrameRule}%
% \setlength{\fboxsep}{\FrameSep}%
\shadowbox
}%
\fram@d{\advance\hsize-\width}%
#1 Hint\\
\rule[2ex]{\linewidth}{.5mm}\\
}{%
\endfram@d
}
\makeatother
\makeglossary
\makeindex
\AtBeginDocument{
\maketitle
\ifthenelse{\boolean{life@stretch}}{\baselineskip 0.33in}{}
\ifthenelse{\boolean{life@toc}}{
\setlength{\columnseprule}{0.6pt}
\begin{multicols}{2}
\tableofcontents
\end{multicols}
}
}
\ No newline at end of file
MeshVersionFormatted 1
Dimension 3
Vertices
183
-1 -1 1 6
-1 -1 -1 5
-1 -1 0.5 3
-1 -1 0 3
-1 -1 -0.5 3
1 -1 -1 5
0.5 -1 -1 5
0 -1 -1 5
-0.5 -1 -1 5
1 -1 1 6
1 -1 0.5 3
1 -1 0 3
1 -1 -0.5 3
-0.5 -1 1 6
0 -1 1 6
0.5 -1 1 6
0.599121 -1 0.594476 3
-0.240992 -1 0.694562 3
-0.618003 -1 0.623323 3
-0.562441 -1 -0.593482 3
0.657509 -1 -0.669258 3
0.151124 -1 0.617423 3
-0.582826 -1 -0.147279 3
0.238134 -1 -0.62775 3
-0.682683 -1 0.2455 3
0.526245 -1 -0.235596 3
-0.0742803 -1 -0.250254 3
-0.181551 -1 -0.685279 3
0.673293 -1 0.202935 3
0.258266 -1 0.187695 3
-0.245795 -1 0.266802 3
0 0 0 0
-0.333333 -0.333333 0.333333 0
-0.666667 -0.666667 0.666667 0
-0.333333 -0.333333 -0.333333 0
-0.666667 -0.666667 -0.666667 0
-0.668667 -0.668667 -0.148366 0
-0.724983 -0.724983 0.267565 0
0.666667 -0.666667 -0.666667 0
0.333333 -0.333333 -0.333333 0
0.148366 -0.668666 -0.668666 0
-0.267565 -0.724982 -0.724982 0
0.333333 -0.333333 0.333333 0
0.666667 -0.666667 0.666667 0
0.668666 -0.668666 0.148366 0
0.724982 -0.724982 -0.267565 0
-0.148366 -0.668667 0.668667 0
0.267565 -0.724983 0.724983 0
0 -0.551108 0 0
1 1 -1 5
1 0.5 -1 5
1 0 -1 5
1 -0.5 -1 5
1 1 1 6
1 1 0.5 4
1 1 0 4
1 1 -0.5 4
1 -0.5 1 6
1 0 1 6
1 0.5 1 6
1 0.599121 0.594476 2
1 -0.240992 0.694562 2
1 -0.618003 0.623323 2
1 -0.562441 -0.593482 2
1 0.657509 -0.669258 2
1 0.151124 0.617423 2
1 -0.582826 -0.147279 2
1 0.238134 -0.62775 2
1 -0.682683 0.2455 2
1 0.526245 -0.235596 2
1 -0.0742803 -0.250254 2
1 -0.181551 -0.685279 2
1 0.673293 0.202935 2
1 0.258266 0.187695 2
1 -0.245795 0.266802 2
0.666667 0.666667 -0.666667 0
0.333333 0.333333 -0.333333 0
0.668666 0.148366 -0.668666 0
0.724982 -0.267565 -0.724982 0
0.666667 0.666667 0.666667 0
0.333333 0.333333 0.333333 0
0.668667 0.668667 -0.148366 0
0.724983 0.724983 0.267565 0
0.668667 -0.148366 0.668667 0
0.724983 0.267565 0.724983 0
0.551108 0 0 0
-1 1 -1 5
-0.666667 0.666667 -0.666667 0
-0.333333 0.333333 -0.333333 0
-0.5 1 -1 5
0 1 -1 5
0.5 1 -1 5
0.148366 0.668666 -0.668666 0
-0.267565 0.724982 -0.724982 0
-1 -0.5 -1 5
-1 0 -1 5
-1 0.5 -1 5
0.598992 0.588646 -1 5
-0.685733 -0.211667 -1 5
-0.599003 -0.588648 -1 5
0.606914 -0.626762 -1 5
-0.606902 0.626772 -1 5
0.620334 -0.188415 -1 5
0.163523 0.626379 -1 5
-0.163515 -0.626387 -1 5
-0.62033 0.188414 -1 5
0.209402 -0.343943 -1 5
0.685741 0.211677 -1 5
0.230386 -0.718062 -1 5
-0.230388 0.718064 -1 5
-0.248404 -0.15189 -1 5
0.2484 0.151889 -1 5
-0.209398 0.343943 -1 5
-0.668666 0.148366 -0.668666 0
-0.724982 -0.267565 -0.724982 0
0 0 -0.56358 0
-1 1 1 6
0.5 1 1 6
0 1 1 6
-0.5 1 1 6
-1 0.5 1 6
-1 0 1 6
-1 -0.5 1 6
0.598992 -0.588646 1 6
-0.685733 0.211667 1 6
-0.599003 0.588648 1 6
0.606914 0.626762 1 6
-0.606902 -0.626772 1 6
0.620334 0.188415 1 6
0.163523 -0.626379 1 6
-0.163515 0.626387 1 6
-0.62033 -0.188414 1 6
0.209402 0.343943 1 6
0.685741 -0.211677 1 6
0.230386 0.718062 1 6
-0.230388 -0.718064 1 6
-0.248404 0.15189 1 6
0.2484 -0.151889 1 6
-0.209398 -0.343943 1 6
-0.333333 0.333333 0.333333 0
-0.666667 0.666667 0.666667 0
-0.148366 0.668667 0.668667 0
0.267565 0.724983 0.724983 0
-0.668667 -0.148366 0.668667 0
-0.724983 0.267565 0.724983 0
-2.15336e-06 0 0.563581 0
-1 1 0.5 4
-1 1 0 4
-1 1 -0.5 4
-0.599121 1 0.594476 4
0.240992 1 0.694562 4
0.618003 1 0.623323 4
0.562441 1 -0.593482 4
-0.657509 1 -0.669258 4
-0.151124 1 0.617423 4
0.582826 1 -0.147279 4
-0.238134 1 -0.62775 4
0.682683 1 0.2455 4
-0.526245 1 -0.235596 4
0.0742803 1 -0.250254 4
0.181551 1 -0.685279 4
-0.673293 1 0.202935 4
-0.258266 1 0.187695 4
0.245795 1 0.266802 4
-0.668666 0.668666 0.148366 0
-0.724982 0.724982 -0.267565 0
-1.07065e-18 0.551108 -1.07065e-18 0
-1 -0.599121 0.594476 1
-1 0.240992 0.694562 1
-1 0.618003 0.623323 1
-1 0.562441 -0.593482 1
-1 -0.657509 -0.669258 1
-1 -0.151124 0.617423 1
-1 0.582826 -0.147279 1
-1 -0.238134 -0.62775 1
-1 0.682683 0.2455 1
-1 -0.526245 -0.235596 1
-1 0.0742803 -0.250254 1
-1 0.181551 -0.685279 1
-1 -0.673293 0.202935 1
-1 -0.258266 0.187695 1
-1 0.245795 0.266802 1
-0.551108 0 0 0
Tetrahedra
602
7 8 24 41 1
7 41 24 39 1
7 24 21 39 1
7 39 21 6 1
33 31 38 37 1
40 45 26 46 1
35 41 27 42 1
35 42 27 37 1
35 42 37 36 1
8 24 41 28 1
8 28 42 9 1
8 41 42 28 1
18 14 15 47 1
18 19 47 31 1
18 31 47 22 1
18 47 15 22 1
21 6 39 13 1
21 39 24 26 1
24 26 39 41 1
24 27 26 41 1
24 27 41 28 1
27 28 20 42 1
27 42 41 28 1
30 47 31 22 1
30 22 48 47 1
30 45 17 29 1
30 17 45 48 1
30 17 48 22 1
30 48 45 43 1
30 26 45 29 1
38 37 25 4 1
38 3 4 25 1
38 34 19 31 1
38 25 31 19 1
38 34 3 19 1
38 3 25 19 1
45 44 48 17 1
45 44 43 48 1
45 29 12 11 1
48 44 16 17 1
48 16 22 17 1
48 16 15 22 1
48 15 47 22 1
5 20 36 37 1
5 20 37 23 1
5 4 23 37 1
5 20 2 36 1
11 10 44 17 1
34 1 19 14 1
34 1 3 19 1
34 47 19 31 1
16 44 10 17 1
2 36 20 9 1
20 42 28 9 1
20 36 42 9 1
20 37 42 36 1
23 25 37 4 1
26 46 12 13 1
49 32 40 35 1
49 32 35 33 1
49 31 33 37 1
49 37 33 35 1
49 30 31 27 1
49 47 43 33 1
49 47 33 31 1
49 30 47 31 1
49 37 35 27 1
49 27 35 41 1
49 41 35 40 1
49 26 27 41 1
49 40 26 41 1
49 26 30 27 1
49 45 30 26 1
49 40 45 26 1
49 43 30 45 1
49 45 40 43 1
49 32 43 40 1
49 32 33 43 1
31 47 33 34 1
31 34 33 38 1
39 40 26 46 1
39 26 40 41 1
19 14 47 34 1
19 14 18 47 1
13 46 39 26 1
13 39 21 26 1
37 27 23 20 1
37 42 27 20 1
25 23 37 31 1
25 38 31 37 1
12 45 26 29 1
12 26 45 46 1
11 44 45 17 1
11 17 45 29 1
30 43 47 48 1
30 43 49 47 1
27 37 23 31 1
27 31 49 37 1
40 79 71 46 1
40 78 71 79 1
40 46 39 79 1
81 85 74 83 1
81 74 82 83 1
81 80 85 83 1
57 65 76 50 1
57 82 70 56 1
51 76 65 50 1
51 68 76 78 1
51 68 78 52 1
51 65 76 68 1
54 60 80 61 1
54 55 61 80 1
62 75 84 66 1
62 58 84 44 1
62 58 44 63 1
62 58 59 84 1
62 84 59 66 1
65 68 70 76 1
68 78 71 70 1
68 72 71 78 1
68 76 78 70 1
68 52 72 78 1
71 72 79 78 1
71 64 79 72 1
71 64 46 79 1
71 67 46 64 1
74 73 82 83 1
74 61 73 83 1
74 61 85 66 1
74 83 85 61 1
74 66 85 84 1
74 84 75 66 1
74 70 82 73 1
46 64 39 79 1
46 64 13 39 1
46 64 67 13 1
46 67 12 13 1
46 12 67 45 1
82 73 56 83 1
82 56 73 70 1
85 80 61 83 1
85 60 66 61 1
85 80 60 61 1
85 60 59 66 1
85 59 84 66 1
13 64 6 39 1
53 79 64 72 1
53 52 79 72 1
53 6 64 39 1
53 39 64 79 1
56 83 73 55 1
44 10 63 58 1
44 10 11 63 1
44 63 45 75 1
61 73 83 55 1
61 55 83 80 1
67 69 45 12 1
67 45 69 75 1
45 69 75 63 1
45 11 12 69 1
79 72 52 78 1
86 32 43 81 1
86 40 43 32 1
86 81 77 32 1
86 32 77 40 1
86 40 78 71 1
86 78 40 77 1
86 77 70 78 1
86 71 78 70 1
86 74 71 70 1
86 82 70 77 1
86 82 74 70 1
86 77 81 82 1
86 82 81 74 1
86 43 45 75 1
86 43 40 45 1
86 45 46 67 1
86 46 45 40 1
86 67 75 45 1
86 71 75 67 1
86 75 71 74 1
86 84 81 43 1
86 43 75 84 1
86 74 84 75 1
86 46 71 67 1
86 40 71 46 1
44 75 43 84 1
44 45 43 75 1
70 76 82 57 1
70 57 65 76 1
44 84 62 75 1
44 75 62 63 1
77 78 76 70 1
77 76 82 70 1
63 45 69 11 1
63 44 45 11 1
81 84 74 85 1
81 86 74 84 1
89 94 93 113 1
87 97 102 88 1
87 88 102 90 1
107 101 79 39 1
107 101 103 79 1
107 41 111 105 1
107 109 41 105 1
77 78 112 93 1
77 76 78 93 1
92 76 93 98 1
92 98 93 104 1
92 93 91 104 1
92 50 76 98 1
9 36 100 2 1
9 42 100 36 1
9 105 100 42 1
9 8 105 42 1
53 101 6 39 1
53 79 101 39 1
53 103 101 79 1
53 52 103 79 1
41 105 42 111 1
41 109 39 7 1
41 7 8 109 1
41 8 105 109 1
41 105 8 42 1
94 90 110 102 1
94 102 88 90 1
94 88 102 113 1
94 110 113 102 1
94 110 91 93 1
94 90 91 110 1
100 95 115 99 1
100 36 115 95 1
100 42 115 36 1
100 115 42 111 1
100 42 105 111 1
100 115 111 99 1
100 36 95 2 1
103 52 108 78 1
103 52 78 79 1
103 108 112 78 1
106 114 99 111 1
106 111 113 114 1
106 102 97 88 1
106 97 114 88 1
106 97 96 114 1
106 96 99 114 1
109 7 101 39 1
112 113 93 104 1
112 98 93 78 1
112 93 98 104 1
112 78 108 98 1
115 99 96 114 1
115 95 96 99 1
115 111 35 42 1
115 42 35 36 1
115 99 114 111 1
115 111 114 35 1
76 50 51 98 1
76 93 98 78 1
91 104 93 110 1
52 108 78 51 1
6 101 7 39 1
116 35 40 32 1
116 32 89 35 1
116 40 77 32 1
116 32 77 89 1
116 89 93 113 1
116 93 89 77 1
116 113 112 111 1
116 113 111 114 1
116 89 113 114 1
116 114 111 35 1
116 114 35 89 1
116 93 112 113 1
116 93 77 112 1
116 112 77 78 1
116 77 40 78 1
116 111 112 107 1
116 40 35 41 1
116 107 40 41 1
116 107 41 111 1
116 79 78 40 1
116 40 107 79 1
116 107 112 103 1
116 79 107 103 1
116 103 78 79 1
116 78 103 112 1
113 114 89 88 1
113 88 89 94 1