FILLGRAPHFACES Fill faces of a graph with specified color. fillGraphFaces(NODES, FACES) draw the faces of a graph / mesh defined by a sef of vertices and a set of faces. The array NODES is a NV-by-2 or NV-by-3 array containing vertex coordinates. The array FACES is either a NF-by-3 or NF-by-4 array of integers, or a 1-by-Nf array of cells, and contains indices of each face vertices. fillGraphFaces(NODES, EDGES, FACES) also specifies the edges ofthe graph. fillGraphFaces(GRAPH) passes argument in a srtucture with at least 3 fields named 'nodes', 'edges', and 'faces', corresponding to previously described parameters. GRAPH can also be a cell array, whose first element is node array, second element is edges array, and third element, if present, is faces array. fillGraphFaces(..., SFACES) specifes the draw mode for each element, as in the classical 'plot' function. To not display some elements, uses 'none'. H = fillGraphFaces(...) return handle to the set of faces. See also graphs, drawGraph, drawGraphEdges
Package: matgeom