Octave graphic add-on, Octaviz



česky

1.11 Mesh 3D graph defined by triangles - vtk_trimesh



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


Displays a meshplot 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. trimesh can be called with 2(3) or 4(5) parameters as trimesh(t,[x1 y1 z1; ...; xn, yn, zn],(c)) or trimesh(t,[x1; ...; xn],[y1; ...; yn], [z1; ...; zn],(c)).

Optional parameter fmt:
radius od spheres - parameter BallRadius
radius of lines - parameter LineRadius


Examples:
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_trimesh(tri,x,y,z,'BallRadius',0.1);



Note: deluany: function, which are using for trianglutaion


<<< 1.10 Surf 3D graph with setup color conversion - vtk_surfc 1.12 Surf 3D graph defined by triangles - vtk_trisurf >>>

© 2008 David Prokop