Difference between revisions of "Documentation:LaTex Files"

From POV-Wiki
Jump to navigation Jump to search
m (alt text correction)
m (correction)
 
(7 intermediate revisions by the same user not shown)
Line 55: Line 55:
  
 
===Reference Section===
 
===Reference Section===
These images appear in the reference section.
+
These images appear in the reference section. Just click on the links to find out where they go.
====Blob Density====
+
====[[Documentation:Reference_Section_4#Blob|Blob Density]]====
 
<pre>
 
<pre>
 
% FILE: blobdens
 
% FILE: blobdens
Line 73: Line 73:
 
</pre>
 
</pre>
 
<p>[[Image:RefImgBlobdens.png|Blob Density]]</p>
 
<p>[[Image:RefImgBlobdens.png|Blob Density]]</p>
====Curvmath====
+
====[[Documentation:Reference_Section_4.1#Surface_of_Revolution|Curvmath]]====
 
<pre>
 
<pre>
 
% FILE: curvmath
 
% FILE: curvmath
Line 118: Line 118:
 
</pre>
 
</pre>
 
<p>[[Image:RefImgCurvmath.png|Curve Math]]</p>
 
<p>[[Image:RefImgCurvmath.png|Curve Math]]</p>
====Lattenua====
+
====[[Documentation:Reference_Section_4.4#Light_Fading|Lattenua]]====
 
<pre>
 
<pre>
 
% FILE: lattenua
 
% FILE: lattenua
Line 135: Line 135:
 
</pre>
 
</pre>
 
<p>[[Image:RefImgLattenua.png|Light Attenuation]]</p>
 
<p>[[Image:RefImgLattenua.png|Light Attenuation]]</p>
====Medatten====
+
====[[Documentation:Reference_Section_6#Attenuation|Medatten]]====
 
<pre>
 
<pre>
 
% FILE: medatten
 
% FILE: medatten
Line 152: Line 152:
 
</pre>
 
</pre>
 
<p>[[Image:RefImgMedatten.png|Media Attenuation]]</p>
 
<p>[[Image:RefImgMedatten.png|Media Attenuation]]</p>
====Prod====
+
====[[Documentation:Reference_Section_2.2#Sum_and_Product_functions|Prod]]====
 
<pre>
 
<pre>
 
% FILE: prod
 
% FILE: prod
Line 167: Line 167:
 
</pre>
 
</pre>
 
<p>[[Image:RefImgProd.png|Product Function]]</p>
 
<p>[[Image:RefImgProd.png|Product Function]]</p>
====Sormath====
+
====[[Documentation:Reference_Section_4.1#Surface_of_Revolution|Sormath]]====
 
<pre>
 
<pre>
 
% FILE: sormath
 
% FILE: sormath
Line 182: Line 182:
 
</pre>
 
</pre>
 
<p>[[Image:RefImgSormath.png|Surface of Revolution]]</p>
 
<p>[[Image:RefImgSormath.png|Surface of Revolution]]</p>
====Sqemath====
+
====[[Documentation:Reference_Section_4.1#Superquadric_Ellipsoid|Sqemath]]====
 
<pre>
 
<pre>
 
% FILE: sqemath
 
% FILE: sqemath
Line 197: Line 197:
 
</pre>
 
</pre>
 
<p>[[Image:RefImgSqemath.png|Superquadric Ellipsoid]]</p>
 
<p>[[Image:RefImgSqemath.png|Superquadric Ellipsoid]]</p>
====Sum====
+
====[[Documentation:Reference_Section_2.2#Sum_and_Product_functions|Sum]]====
 
<pre>
 
<pre>
 
% FILE: sum
 
% FILE: sum
Line 213: Line 213:
 
<p>[[Image:RefImgSum.png|Sum Function]]</p>
 
<p>[[Image:RefImgSum.png|Sum Function]]</p>
 
===Tutorial Section===
 
===Tutorial Section===
These images appear in the tutorial section.
+
These images appear in two places in tutorial section.
 +
:* all [[Documentation:Tutorial_Section_3.2#Creating_the_polynomial_function|these]] in the order below
 +
:* and repeats of polyfunc2, 4, and 6 [[Documentation:Tutorial_Section_3.2#Writing_the_polynomial_vector|here]]
 
====Polyfunc1====
 
====Polyfunc1====
 
<pre>
 
<pre>
Line 240: Line 242:
 
\begin{document}
 
\begin{document}
 
\begin{displaymath}
 
\begin{displaymath}
   \displaystyle x^2+y^2+z^2-r = 0
+
   \displaystyle x^2+y^2+z^2-r^2 = 0
 
\end{displaymath}
 
\end{displaymath}
 
\end{document}
 
\end{document}
 
</pre>
 
</pre>
<p>[[Image:TutImgPolyfunc2.png|Polynomial Function 2]]</p>
+
<p>[[Image:TutImgPolyfunc2.png|sphere polynomial]]</p>
  
 
====Polyfunc3====
 
====Polyfunc3====
Line 260: Line 262:
 
\end{document}
 
\end{document}
 
</pre>
 
</pre>
<p>[[Image:TutImgPolyfunc3.png|Polynomial Function 3]]</p>
+
<p>[[Image:TutImgPolyfunc3.png|function]]</p>
  
 
====Polyfunc4====
 
====Polyfunc4====
Line 276: Line 278:
 
\end{document}
 
\end{document}
 
</pre>
 
</pre>
<p>[[Image:TutImgPolyfunc4.png|Polynomial Function 4]]</p>
+
<p>[[Image:TutImgPolyfunc4.png|polynomial]]</p>
 +
 
 
====Polyfunc5====
 
====Polyfunc5====
 
<pre>
 
<pre>
Line 291: Line 294:
 
\end{document}
 
\end{document}
 
</pre>
 
</pre>
<p>[[Image:TutImgPolyfunc5.png|Polynomial Function 5]]</p>
+
<p>[[Image:TutImgPolyfunc5.png|torus function]]</p>
 +
 
 
====Polyfunc6====
 
====Polyfunc6====
 
<pre>
 
<pre>
Line 306: Line 310:
 
\end{document}
 
\end{document}
 
</pre>
 
</pre>
<p>[[Image:TutImgPolyfunc6.png|Polynomial Function 6]]</p>
+
<p>[[Image:TutImgPolyfunc6.png|torus polynomial]]</p>
 
<!--<wikinav>--->
 
<!--<wikinav>--->
 
<br>
 
<br>

Latest revision as of 12:41, 22 January 2011

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. Just click on the links to find out where they go.

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 two places in tutorial section.

  • all these in the order below
  • and repeats of polyfunc2, 4, and 6 here

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^2 = 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}

function

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

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}

torus function

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}

torus polynomial


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.