triangulation_boundary_nodes ( 'channel.65.nodes.txt', 'channel.65.triangles6.txt' ) 01-Jan-2007 08:52:02 TRIANGULATION_BOUNDARY_NODES MATLAB version Identify triangulation nodes on the boundary. * Read a dataset of NODE_NUM points in 2 dimensions; * Read an associated triangulation dataset of triangles using 3 or 6 nodes; * Determine which nodes are on the boundary; * Print a list of the node coordinates and indices; * Write a file of the node coordinates. Read the header of "channel.65.nodes.txt" . Spatial dimension DIM_NUM = 2 Number of nodes NODE_NUM = 65 Read the data in "channel.65.nodes.txt" Portion of coordinate data from file: Row: 1 2 Col 1 0.000000 0.000000 2 1.000000 0.000000 3 2.000000 0.000000 4 3.000000 0.000000 5 0.000000 1.000000 Read the header of "channel.65.triangles6.txt" Triangle order = 6 Number of triangles = 24 Read the data in "channel.65.triangles6.txt". Portion of triangle file: Row: 1 2 3 4 5 6 Col 1 5 9 11 22 23 24 2 1 10 9 25 26 27 3 2 11 10 28 29 30 4 9 10 11 26 29 23 5 5 11 13 24 31 32 Boundary nodes: New Old Index Index X and Y Coordinates 1 1 0.000000 0.000000 2 2 1.000000 0.000000 3 3 2.000000 0.000000 4 4 3.000000 0.000000 5 5 0.000000 1.000000 6 6 1.000000 1.000000 7 7 2.000000 1.000000 8 8 3.000000 1.000000 9 9 0.000000 0.500000 10 10 0.500000 0.000000 11 13 0.500000 1.000000 12 14 1.500000 0.000000 13 17 1.500000 1.000000 14 18 2.500000 0.000000 15 20 3.000000 0.500000 16 21 2.500000 1.000000 17 22 0.000000 0.750000 18 25 0.250000 0.000000 19 27 0.000000 0.250000 20 30 0.750000 0.000000 21 32 0.250000 1.000000 22 35 0.750000 1.000000 23 40 1.250000 0.000000 24 44 1.750000 0.000000 25 46 1.250000 1.000000 26 49 1.750000 1.000000 27 54 2.250000 0.000000 28 58 2.750000 0.000000 29 60 2.250000 1.000000 30 61 3.000000 0.250000 31 63 2.750000 1.000000 32 65 3.000000 0.750000 Created the boundary node coordinate file "boundary_nodes.txt". TRIANGULATION_BOUNDARY_NODES Normal end of execution. 01-Jan-2007 08:52:03 >>