Difference between revisions of "Documentation:LaTex Files"

From POV-Wiki
Jump to navigation Jump to search
m (alt text correction)
m (alt text correction)
Line 244: Line 244:
 
\end{document}
 
\end{document}
 
</pre>
 
</pre>
<p>[[Image:TutImgPolyfunc2.png|Polynomial Function 2]]</p>
+
<p>[[Image:TutImgPolyfunc2.png|sphere polynomial]]</p>
  
 
====Polyfunc3====
 
====Polyfunc3====

Revision as of 08:45, 23 March 2010

This document is protected, so submissions, corrections and discussions should be held on this documents talk page.


Introduction

These images were generated using this TeX to GIF or PNG Converter for Web Documents, then resized using ImageMagick, and this is the shell script used to process them in a batch.

textogif -dpi 200 -res 0.1 -png blobdens
convert blobdens.png -resize 385 blobdens.png
textogif -dpi 200 -res 0.1 -png curvmath
convert curvmath.png -resize 450 curvmath.png
textogif -dpi 200 -res 0.1 -png lattenua
convert lattenua.png -resize 395 lattenua.png
textogif -dpi 200 -res 0.1 -png medatten
convert medatten.png -resize 395 medatten.png
textogif -dpi 200 -res 0.1 -png polyfunc1
convert polyfunc1.png -resize 170 polyfunc1.png
textogif -dpi 200 -res 0.1 -png polyfunc2
convert polyfunc2.png -resize 185 polyfunc2.png
textogif -dpi 200 -res 0.1 -png polyfunc3
convert polyfunc3.png -resize 110 polyfunc3.png
textogif -dpi 200 -res 0.1 -png polyfunc4
convert polyfunc4.png -resize 195 polyfunc4.png
textogif -dpi 200 -res 0.1 -png polyfunc5
convert polyfunc5.png -resize 275 polyfunc5.png
textogif -dpi 200 -res 0.1 -png polyfunc6
convert polyfunc6.png -resize 780 polyfunc6.png
textogif -dpi 200 -res 0.1 -png prod
convert prod.png -resize 45 prod.png
textogif -dpi 200 -res 0.1 -png sormath
convert sormath.png -resize 360 sormath.png
textogif -dpi 200 -res 0.1 -png sqemath
convert sqemath.png -resize 445 sqemath.png
textogif -dpi 200 -res 0.1 -png sum
convert sum.png -resize 45 sum.png
mv blobdens.png RefImgBlobdens.png
mv curvmath.png RefImgCurvmath.png
mv lattenua.png RefImgLattenua.png
mv medatten.png RefImgMedatten.png
mv polyfunc1.png TutImgPolyfunc1.png
mv polyfunc2.png TutImgPolyfunc2.png
mv polyfunc3.png TutImgPolyfunc3.png
mv polyfunc4.png TutImgPolyfunc4.png
mv polyfunc5.png TutImgPolyfunc5.png
mv polyfunc6.png TutImgPolyfunc6.png
mv prod.png RefImgProd.png
mv sormath.png RefImgSormath.png
mv sqemath.png RefImgSqemath.png
mv sum.png RefImgSum.png

Reference Section

These images appear in the reference section.

Blob Density

% FILE: blobdens
% --------
% textogif -dpi 200 -res 0.1 -png blobdens
% convert blobdens.png -resize 385 blobdens.png
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
  \mathit{density} =
  \mathit{strength}\cdot
  \left(1-\left(\frac {\min (\textit{distance}, \textit{radius})} {\textit{radius}} \right)^2\right)^2
\end{displaymath}
\end{document}

Blob Density

Curvmath

% FILE: curvmath
% --------
% textogif -dpi 200 -res 0.1 -png curmath
% convert curvmath.png -resize 450 curvmath.png
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
  \begin{array}{l}
    b = M \cdot x, \mathrm{with:}
    \\ \\
    b = \left[
      \begin{array}{c}
        r(j)^2 \\
        r(j+1)^2 \\
        2 \cdot r(j) \cdot (r(j+1)-r(j-1)) \\
        \hline
        h(j+1)-h(j-1) \\
        2 \cdot r(j+1) \cdot (r(j+2)-r(j)) \\
        \hline
        h(j+2)-h(j)
      \end{array}
    \right]
    \\ \\
    M = \left[
      \begin{array}{c c c c}
        h(j)^3 & h(j)^2 & h(j) & 1 \\
        h(j+1)^3 & h(j+1)^2 & h(j+1) & 1 \\
        3\cdot h(j)^2 & 2\cdot h(j) & 1 & 0 \\
        3\cdot h(j+1)^2 & 2\cdot h(j+1) & 1 & 0
      \end{array}
    \right]
    \\ \\
    x = \left[
      \begin{array}{c}
        A(j)\\ B(j)\\ C(j)\\ D(j)
      \end{array}
    \right]
  \end{array}
\end{displaymath}
\end{document}

Curve Math

Lattenua

% FILE: lattenua
% --------
% textogif -dpi 200 -res 0.1 -png lattenua
% convert lattenua.png -resize 395 lattenua.png
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
  \mathit{attenuation} =
  \frac{2}
  {1+\left(\frac{\textit d}{\textit{fade\_distance}}\right)^\textit{fade\_power}}
\end{displaymath}
\end{document}

Light Attenuation

Medatten

% FILE: medatten
% --------
% textogif -dpi 200 -res 0.1 -png medatten
% convert medatten.png -resize 395 medatten.png
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
  \mathit{attenuation} =
  \frac{1}
  {1+\left(\frac{d}{\mathit{fade\_distance}}\right)^\mathit{fade\_power}}
\end{displaymath}
\end{document}

Media Attenuation

Prod

% FILE: prod
% --------
% textogif -dpi 200 -res 0.1 -png prod
% convert prod.png -resize 45 prod.png
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
  \prod_{i=b}^n a
\end{displaymath}
\end{document}

Product Function

Sormath

% FILE: sormath
% --------
% textogif -dpi 200 -res 0.1 -png sormath
% convert sormath.png -resize 360 sormath.png
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
  r^2 = f(h) = A\cdot h^3 + B\cdot h^2 + C\cdot h + D
\end{displaymath}
\end{document}

Surface of Revolution

Sqemath

% FILE: sqemath
% -------
% textogif -dpi 200 -res 0.1 -png sqemath
% convert sqemath.png -resize 445 sqemath.png
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
  f(x,y,z) = (|x|^{(\frac{2}{e})} + |y|^{(\frac{2}{e})})^{(\frac{e}{n})} + |z|^{(\frac{2}{n})} - 1 = 0
\end{displaymath}
\end{document}

Superquadric Ellipsoid

Sum

% FILE: sum
% ---
% textogif -dpi 200 -res 0.1 -png sum
% convert sum.png -resize 45 sum.png
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
  \sum^{\textit n}_{\textit i \textit = \textit b}\textit a
\end{displaymath}
\end{document}

Sum Function

Tutorial Section

These images appear in the tutorial section.

Polyfunc1

% FILE: polyfunc1
% ---------
% textogif -dpi 200 -res 0.1 -png polyfunc1
% convert polyfunc1.png -resize 170 polyfunc1.png
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
  {\sqrt{x^2+y^2+z^2}} = r
\end{displaymath}
\end{document}

sphere function

Polyfunc2

% FILE: polyfunc2
% ---------
% textogif -dpi 200 -res 0.1 -png polyfunc2
% convert polyfunc2.png -resize 185 polyfunc2.png
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
  \displaystyle x^2+y^2+z^2-r = 0
\end{displaymath}
\end{document}

sphere polynomial

Polyfunc3

% FILE: polyfunc3
% ---------
% textogif -dpi 200 -res 0.1 -png polyfunc3
% convert polyfunc3.png -resize 110 polyfunc3.png
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
  z = \frac{2xy^2}{x^2+y^4}
\end{displaymath}
\end{document}

Polynomial Function 3

Polyfunc4

% FILE: polyfunc4
% ---------
% textogif -dpi 200 -res 0.1 -png polyfunc4
% convert polyfunc4.png -resize 195 polyfunc4.png
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
  \displaystyle x^2z + y^4z - 2xy^2 = 0
\end{displaymath}
\end{document}

Polynomial Function 4

Polyfunc5

% FILE: polyfunc5
% ---------
% textogif -dpi 200 -res 0.1 -png polyfunc5
% convert polyfunc5.png -resize 275 polyfunc5.png
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
  {\sqrt{(\sqrt{x^2+z^2}-r_1)^2+y^2}} = r_2
\end{displaymath}
\end{document}

Polynomial Function 5

Polyfunc6

% FILE: polyfunc6
% ---------
% textogif -dpi 200 -res 0.1 -png polyfunc6
% convert polyfunc6.png -resize 780 polyfunc6.png
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
  x^4+2x^2y^2+2x^2z^2-2(r_1^2+r_2^2)x^2+y^4+2y^2z^2+2(r_1^2-r_2^2)y^2+z^4-2(r_1^2+r_2^2)z^2+(r_1^2-r_2^2)^2 = 0
\end{displaymath}
\end{document}

Polynomial Function 6


Main Table of Contents Main Table of Contents


This document is protected, so submissions, corrections and discussions should be held on this documents talk page.