function [ node_num, node_xyz ] = polygonal_surface_node_file_read ( ... node_file_name ) %% POLYGONAL_SURFACE_NODE_FILE_READ reads node information from a polygonal surface node file. % % Licensing: % % This code is distributed under the GNU LGPL license. % % Modified: % % 13 June 2006 % % Author: % % John Burkardt % % Reference: % % Edward Angel, % Interactive Computer Graphics, % a Top-Down Approach with OpenGL, % Addison-Wesley, 2000. % % Parameters: % % Input, string NODE_FILE_NAME, the name of the node file. % % Output, integer NODE_NUM, the number of nodes defined. % % Output, real NODE_XYZ(3,NODE_NUM), the coordinates of nodes. % [ dim_num, node_num ] = dtable_header_read ( node_file_name ); node_xyz = dtable_data_read ( node_file_name, dim_num, node_num ); return end