File: eval3dp.cat

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (34 lines) | stat: -rw-r--r-- 1,101 bytes parent folder | download
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
eval3dp           Scilab Group           Scilab Function            eval3dp
NAME
   eval3dp - compute facets of a 3D surface
  
CALLING SEQUENCE
 [x,y,z]=eval3dp(fun,p1,p2)
PARAMETERS
 x,y,z   : matrices of size (4,n-1*m-1). x(:,i) ,y(:,i) and z(:,i)  are
         respectively the x-axis, y-axis and z-axis coordinates of the 4
         points of  the ith four sided facet.
         
 fun     : a Scilab function. 
         
 p1      : a vector of size n.
         
 p2      : a vector of size m.
         
DESCRIPTION
   eval3dp computes a four sided facets representation of a 3D surface 
  defined by the function fun. fun(p1,p2) computes the  x-axis ,y-axis and
  z-axis coordinates of the corresponding points on the  surface, as
  [x(i),y(i),z(i)]=fun(p1(i),p2(i)). This is used for efficiency.
  
EXAMPLE
 p1=linspace(0,2*%pi,10);
 p2=linspace(0,2*%pi,10);
 deff("[x,y,z]=scp(p1,p2)",["x=p1.*sin(p1).*cos(p2)";..
                             "y=p1.*cos(p1).*cos(p2)";..
                             "z=p1.*sin(p2)"])
 [x,y,z]=eval3dp(scp,p1,p2);
 plot3d(x,y,z)
SEE ALSO
   genfac3d, plot3d