<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
<MAN>
  <LANGUAGE>eng</LANGUAGE>
  <TITLE>eval3dp</TITLE>
  <TYPE>Scilab Function</TYPE>
  <DATE>September 1994</DATE>
  <SHORT_DESCRIPTION name="eval3dp"> compute facets of a 3D parametric surface</SHORT_DESCRIPTION>
  <CALLING_SEQUENCE>
    <CALLING_SEQUENCE_ITEM>[Xf,Yf,Zf]=eval3dp(fun,p1,p2)  </CALLING_SEQUENCE_ITEM>
  </CALLING_SEQUENCE>
  <PARAM>
    <PARAM_INDENT>
      <PARAM_ITEM>
        <PARAM_NAME>Xf,Yf,Zf</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP>: matrices of size (4,n-1*m-1). <VERB>Xf(:,i)</VERB> ,<VERB>Yf(:,i)</VERB> and <VERB>Zf(:,i)</VERB>  are respectively the x-axis, y-axis and z-axis coordinates of the 4 points of  the ith four sided facet.</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
      <PARAM_ITEM>
        <PARAM_NAME>fun</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP>: a Scilab function.</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
      <PARAM_ITEM>
        <PARAM_NAME>p1</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP>: a vector of size <VERB>n</VERB>.</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
      <PARAM_ITEM>
        <PARAM_NAME>p2</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP>: a vector of size <VERB>m</VERB>.</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
    </PARAM_INDENT>
  </PARAM>
  <DESCRIPTION>
    <P><VERB>eval3dp</VERB> computes a four sided facets representation of a 3D parametric surface 
    defined by the function <VERB>fun</VERB>. <VERB>fun(p1,p2)</VERB> 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.</P>
  </DESCRIPTION>
  <EXAMPLE>
<![CDATA[
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)"])
[Xf,Yf,Zf]=eval3dp(scp,p1,p2);
plot3d(Xf,Yf,Zf)
 ]]>
  </EXAMPLE>
  <SEE_ALSO>
    <SEE_ALSO_ITEM>
      <LINK>genfac3d</LINK>
    </SEE_ALSO_ITEM>
    <SEE_ALSO_ITEM>
      <LINK>plot3d</LINK>
    </SEE_ALSO_ITEM>
  </SEE_ALSO>
</MAN>
