Octave graphic add-on, Octaviz



česky

1.12 Surf 3D graph defined by triangles - vtk_trisurf


Function file: f = vtk_trisurf (x,y,z,c [prop, val])

Displays a surface defined by specified triangles. t gives a list of vertex indexes forming the triangles. x,y,z are vectors defining the vertices. c is a vector of color scalar values for the vertices and may be omitted. The vtk_figure object is returned in f, if desired. trisurf can be called with 2(3) or 4(5) parameters as trisurf(t,[x1 y1 z1; ...; xn, yn, zn],(c)) or trisurf(t,[x1; ...; xn],[y1; ...; yn], [z1; ...; zn],(c)).

Parameter fmt:
color of surface - parameter Color
transparency(opacity) - parameter Opacity


Example:
x=[1.5 2.1 1.4 3.6 2.8];
y=[2.5 4.1 1.9 3.1 3.8];
z=[3.1 6.4 1.3 2.8 4.1];
tri = delaunay(x,y);
vtk_trisurf(tri,x,y,z,'Color',[0 1 1]);



<<< 1.11 Mesh 3D graph defined by triangles - vtk_trimesh 1.13 Addition in graphs in vtk_figure >>>

© 2008 David Prokop