s = vrml_surf (x, y, z [, options] ) - code for a VRML surface s = vrml_surf (z [, options] ) Returns vrml97 code for a Shape -> IndexedFaceSet node representing a surface passing through the given points. x : RxC or C : X coordinates of the points on the surface y : RxC or R : Y " " z : RxC : Z " " s : string : The code If x and y are omitted, they are assumed to be linspace(-1,1,C or R). Points presenting one or more 'inf' or 'nan' coordinates are ignored. Options : "col" , col : 3 : RGB Color, default = [0.3,0.4,0.9] or 3x(R*C): Color of vertices (vrml colorPerVertex is TRUE). or 3x((R-1)*(C-1)) : Color of facets or 1 : Reflectivity (equivalent to [col,col,col] in RGB) or R x C : Reflectivity of vertices or 1x(R*C) or (R-1)x(C-1) or (R-1)*(C-1) : Reflectivity of facets. RGB and reflectivity values should be in the [0,1] interval. "checker", c : 1x2 : Color as a checker. If c(1) is positive, checker has c(1) rows. If it is negative, each checker row is c(1) facets high c(2) likewise determines width of checker columns. "checker", c : 1x1 : Same as [c,c]. "zcol", zc : 3xN : Specify a colormap. The color of each vertex is interpolated according to its height (z). "zgray" : Black-to-white colormap. Same as "zcol", [0 1;0 1;0 1]. "zrb" : Red-to-blue. Same as "zcol", [0 7 10;0 0 2;7 19 2]/10. "steps" : Represent surface as a piecewise constant Z = f(X,Y) function "bars" : Represent surface as a bar plot "tran", tran : 1x1 : Transparency, default = 0 "creaseAngle", a : 1 : vrml creaseAngle The browser may smoothe the fold between facets forming an angle less than a. default = 0 "smooth" : same as "creaseAngle",pi. "tex", texFile See also: vmesh(), vrml_faces(), test_moving_surf()
Package: vrml