Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.0 - English

Change language to:
Français - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab Help >> Graphics > 3d_plot > genfac3d

genfac3d

Compute facets of a 3D surface

Syntax

[xx,yy,zz]=genfac3d(x,y,z,[mask])

Arguments

xx,yy,zz

matrices of size (4,n-1xm-1). xx(:,i) ,yy(:,i) and zz(:,i) are respectively the x-axis, y-axis and z-axis coordinates of the 4 points of the ith four sided facet.

x

x-axis coordinates vector of size m.

y

y-axis coordinates vector of size n.

z

matrix of size (m,n). z(i,j) is the value of the surface at the point (x(i),y(j)).

mask

boolean optional matrix with same size as z used to select the entries of z to be represented by facets.

Description

genfac3d computes a four sided facets representation of a 3D surface z=f(x,y) defined by x, y and z.

Examples

t=[0:0.3:2*%pi]';
z=sin(t)*cos(t');
[xx,yy,zz]=genfac3d(t,t,z);
plot3d(xx,yy,zz)

See also

  • eval3dp — compute facets of a 3D parametric surface
  • plot3d — 3D plot of a surface
Report an issue
<< fplot3d1 3d_plot geom3d >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Feb 25 08:49:20 CET 2020