<simulation>
<header>
<title>Exemple de surface</title>
<title lang="english">A simple surface example</title>
<title lang="spanish">Ejemplo de superficie</title>
<author>Stéphane Mottelet, Guillaume Barbaud</author>
<keywords lang="french">simulation,scilab,xml</keywords>
<keywords lang="spanish">Simulación, Scilab, XML</keywords>
</header>
<notes>
<p>Un exemple très simple de représentation d'un surface dans l'espace. L'interface dispose
de glissières permettant d'ajuster les angles de visualisation.
</p>
</notes>
<notes lang="english">
<p>A very simple example representing a surface. The interface provides
two sliders allowing to adjust the visualization angles.
</p>
</notes>
<notes lang="spanish">
<p>Un ejemplo sencillo de representación de una superficie en tres dimensiones. La interfaz dispone de deslizadores que permiten ajustar los ángulos de visualización</p>
</notes>
<parameters><section>
<title lang="english">Parameters of the surface</title>
<title>Paramètres de la surface</title>
<title lang="spanish">Parámetros de la superficie</title>
<scalar increment="0.01" label="frequencex" max="10" min="0" scale="1"><name lang="french">Fréquence</name><name lang="spanish">Frecuencia</name><value>0.5</value></scalar>
<scalar increment="0.01" label="frequencey" max="10" min="0" scale="1"><name>Fréquence</name><name lang="english">Frequency</name><name lang="spanish">Frecuencia</name><value>0.5</value></scalar>
<scalar increment="1" label="az" max="90" min="-90" scale="1"><name>Azimuth</name><name lang="english">Azimuth</name><name lang="spanish">Acimut</name><value>45</value></scalar>
<scalar increment="1" label="el" max="90" min="-90" scale="1"><name>Elévation</name><name lang="english">Elevation</name><name lang="spanish">Elevación</name><value>45</value></scalar>
</section></parameters>
<compute>
<defdomain2d label="carre">
<name>Carré unité</name>
<name lang="english">Unit square</name>
<name lang="spanish">Cuadrado unidad</name>
<rectangle>
<defdomain1d label="x">
<name>x</name>
<name lang="english">x</name>
<name lang="spanish">x</name>
<interval discretization="linear" steps="30">
<initialvalue>-1</initialvalue>
<finalvalue>1</finalvalue>
</interval>
</defdomain1d>
<defdomain1d label="y">
<name>y</name>
<name lang="english">y</name>
<name lang="spanish">y</name>
<interval discretization="linear" steps="30">
<initialvalue>-1</initialvalue>
<finalvalue>1</finalvalue>
</interval>
</defdomain1d>
</rectangle>
</defdomain2d>
</compute>
<graphs>
<nonparametricsurface label="mysurf">
<refdomain2d ref="carre" />
<x3 label="z">
<name>Altitude</name>
<name lang="english">Height</name>
<name lang="spanish">Altura</name>
<value>-( tanh(frequencex*x.^2+frequencey*y.^2) )</value>
</x3>
</nonparametricsurface>
</graphs>
<display>
<window splitx="2">
<axis2d iso="yes" xmax="1" xmin="-1" ymax="1" ymin="-1">
<drawsurface mode="level" ref="mysurf" shading="flat" />
</axis2d>
<axis3d azimuth="az" elevation="el" iso="yes">
<drawsurface mode="wireframe" ref="mysurf" />
</axis3d>
</window>
</display>
</simulation>