fac3d(2)

NAME
fac3d - complex 3D surface plotting

CALLING SEQUENCE
fac3d(x,y,z,theta,alpha,leg,flag,ebox)
fac3d(x,y,z,theta,alpha,leg,[flag,ebox)]

PARAMETERS

x,y,z
    : matrices of sizes (nf,n1) (facets coordinates)

theta, alpha
    : real values giving in degree the spherical coordinates of the observation point

leg : string (captions for each axis. this is string with @ as a field separator, for example : "X@Y@Z")

flag
    : is a real vector of size three flag=[mode,type,box] or a list of size three flag=list(color,type,box)

    mode
        : string (treatment of hidden parts)

        mode >=2
            the hidden parts of the surface are removed and the surface is painted in gray (from low gray to black according to the value of mode)

        mode = 1
            the hidden parts of the surface are drawn

        mode <= 0
            only the shadow of the surface is painted with a gray level depending on mode

    type
        : scaling

        if type = 0
            the plot is made using the current 3D scaling ( set by a previous call to param3d, fac3d, contour, plot3d1)

        if type = 1
            the boundaries are specified by the value of the parameter

        ebox=[xmin,xmax,ymin,ymax,zmin,zmax]

        else
            the boundaries are computed with the given datas.

    box : frame display around the plot.

        box=0
            nothing is drawn around the plot

        box=1
            unimplemented ( like box=0 )

        box=2
            only the axes behind the surface are drawn

        box=3
            a box surrounding the surface is drawn and captions are added

        box=4
            a box surrounding the surface is drawn, captions are added and axes too.

color : a n1 vector of color indices

DESCRIPTION
Draw the surface defined by a set of facets of coordinates x(:,i), y(:,i), z(:,i)

EXAMPLE
enter the command fac3d() to see a demo

SEE ALSO
plot3d, eval3dp.