function [ face_order, face_num, face_node ] = ... polygonal_surface_face_file_read ( face_file_name ) %% POLYGONAL_SURFACE_FACE_FILE_READ reads faces defining a surface. % % Licensing: % % This code is distributed under the GNU LGPL license. % % Modified: % % 18 January 2007 % % Author: % % John Burkardt % % Reference: % % Edward Angel, % Interactive Computer Graphics, % a Top-Down Approach with OpenGL, % Addison-Wesley, 2000. % % Parameters: % % Input, string FACE_FILE_NAME, the name of the face file. % % Output, integer FACE_ORDER, the order of the face. % % Output, integer FACE_NUM, the number of face defined. % % Output, real FACE_NODE(FACE_ORDER,FACE_NUM), % the nodes making up each face. % [ face_order, face_num ] = itable_header_read ( face_file_name ); face_node = itable_data_read ( face_file_name, face_order, face_num ); return end