File: surfl.xml

package info (click to toggle)
scilab-plotlib 0.41-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,196 kB
  • sloc: xml: 3,308; makefile: 15
file content (116 lines) | stat: -rw-r--r-- 3,285 bytes parent folder | download | duplicates (2)
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
 * Ajouter ici d'ventuels commentaires sur le fichier XML
-->
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="surfl" xml:lang="en">
  <info>
    <pubdate>$LastChangedDate: 26-05-2009 $</pubdate>
  </info>
  <refnamediv>
    <refname>surfl</refname>
    <refpurpose>Display 3-D color surface wih lighting</refpurpose>
  </refnamediv>
  <refsynopsisdiv>
    <title>Calling Sequence</title>
    <synopsis>hdl = surf(X,Y,Z,S)</synopsis>
  </refsynopsisdiv>
  <refsection>
    <title>Parameter</title>
    <variablelist>
      <varlistentry>
        <term>X</term>
        <listitem>
          <para>1 by m matrix or n by m matrix</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>Y</term>
        <listitem>
          <para>1 by n matrix or n by m matrix</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>Z</term>
        <listitem>
          <para>n by m matrix</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>S</term>
        <listitem>
          <para>3 elements vector</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>hdl</term>
        <listitem>
          <para>Handle of the created Fac3d entity</para>
        </listitem>
      </varlistentry>
    </variablelist>
  </refsection>
  <refsection>
    <title>Description</title>
    <para>surfl(x,y,Z,S) plots the surface with default color data computed as the reflectance with respect of a light source whose direction
    is given by parameter S. The default direction of the light source is [1 1 1].</para>
  </refsection>  
    
  <refsection>
    <title>Example</title>
<programlisting role="example">[u,v]=meshgrid(linspace(0,2*%pi,50),linspace(0,%pi,25));
x=sin(v).*cos(u);
y=sin(v).*sin(u);
z=cos(v);
surfl(x,y,z,[1 1 -1]);
hold on
surfl(x+1,y,z,[1 1 -1]);
surfl(x+.5,y,z+1,[1 1 -1]);
hold off
axis equal
shading interp
colormap gray
</programlisting>
  </refsection>
  <refsection>
    <title>Screenshot</title>
    <screenshot>
      <mediaobject>
        <imageobject>
          <imagedata fileref="surfl.png"/>
        </imageobject>
      </mediaobject>
    </screenshot>
  </refsection>
  <refsection>
    <title>See Also</title>
    <simplelist type="inline">
      <member>
        <link linkend="plot">plot</link>
      </member>
      <member>
        <link linkend="plot3">plot3</link>
      </member>
      <member>
        <link linkend="surf">surf</link>
      </member>
      <member>
        <link linkend="trisurfl">trisurfl</link>
      </member>
      <member>
        <link linkend="colormap">colormap</link>
      </member>
      <member>
        <link linkend="shading">shading</link>
      </member>
      <member>
        <link linkend="caxis">caxis</link>
      </member>
    </simplelist>
  </refsection>
  <refsection>
    <title>Authors</title>
    <simplelist type="vert">
      <member>Stphane Mottelet</member>
    </simplelist>
  </refsection>
</refentry>