DRAWPOLYHEDRON Draw polyhedron defined by vertices and faces. drawPolyhedron(NODES, FACES) Draws the polyhedron defined by vertices NODES and the faces FACES. NODES is a NV-by-3 array containing coordinates of vertices, and FACES is either a NF-by3 or NF-by-4 array containing indices of vertices of the triangular or rectangular faces. FACES can also be a cell array, in the content of each cell is an array of indices to the nodes of the current face. Faces can have different number of vertices. H = drawPolyhedron(...); Also returns a handle to the created patche. Example: [n f] = createSoccerBall; drawPolyhedron(n, f); See also: polyhedra, drawMesh, drawPolygon --------- author : David Legland INRA - TPV URPOI - BIA IMASTE created the 10/02/2005.
Package: matgeom