1
eval3dp Scilab Group Scilab Function eval3dp
3
eval3dp - compute facets of a 3D surface
6
[x,y,z]=eval3dp(fun,p1,p2)
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.
12
fun : a Scilab function.
14
p1 : a vector of size n.
16
p2 : a vector of size m.
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.
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)";..
30
[x,y,z]=eval3dp(scp,p1,p2);