~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to man/graphics/eval3dp.cat

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
eval3dp           Scilab Group           Scilab Function            eval3dp
 
2
NAME
 
3
   eval3dp - compute facets of a 3D surface
 
4
  
 
5
CALLING SEQUENCE
 
6
 [x,y,z]=eval3dp(fun,p1,p2)
 
7
PARAMETERS
 
8
 x,y,z   : matrices of size (4,n-1*m-1). x(:,i) ,y(:,i) and z(:,i)  are
 
9
         respectively the x-axis, y-axis and z-axis coordinates of the 4
 
10
         points of  the ith four sided facet.
 
11
         
 
12
 fun     : a Scilab function. 
 
13
         
 
14
 p1      : a vector of size n.
 
15
         
 
16
 p2      : a vector of size m.
 
17
         
 
18
DESCRIPTION
 
19
   eval3dp computes a four sided facets representation of a 3D surface 
 
20
  defined by the function fun. fun(p1,p2) computes the  x-axis ,y-axis and
 
21
  z-axis coordinates of the corresponding points on the  surface, as
 
22
  [x(i),y(i),z(i)]=fun(p1(i),p2(i)). This is used for efficiency.
 
23
  
 
24
EXAMPLE
 
25
 p1=linspace(0,2*%pi,10);
 
26
 p2=linspace(0,2*%pi,10);
 
27
 deff("[x,y,z]=scp(p1,p2)",["x=p1.*sin(p1).*cos(p2)";..
 
28
                             "y=p1.*cos(p1).*cos(p2)";..
 
29
                             "z=p1.*sin(p2)"])
 
30
 [x,y,z]=eval3dp(scp,p1,p2);
 
31
 plot3d(x,y,z)
 
32
SEE ALSO
 
33
   genfac3d, plot3d
 
34