Ignore:
Timestamp:
Oct 6, 2004, 5:39:01 PM (20 years ago)
Author:
duncan
Message:

adding title info in .tsh files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pmesh/load_mesh/loadASCII.py

    r360 r363  
    6565            apointattributes.append(float(fragment))
    6666        pointattributes.append(apointattributes)
     67       
     68    ######### loading the point title info
     69    vertTitle = []
     70    for index in range(int(NumOfVertAttributes)):       
     71        #print index
     72        fragments = fd.readline()
     73        vertTitle.append(fragment)
    6774       
    6875    ######### loading the triangle info
     
    299306    vertices = gen_dict['generatedpointlist']
    300307    vertices_attributes = gen_dict['generatedpointattributelist']
     308    vertices_attribute_titles = gen_dict['generatedpointattributetitlelist']
    301309    triangles = gen_dict['generatedtrianglelist']
    302310    triangles_attributes = gen_dict['generatedtriangleattributelist']
     
    325333                 + attlist + "\n")
    326334        index += 1
     335
     336    # write comments for title
     337    fd.write(" # attribute column titles ...Triangulation Vertex Titles..." + "\n")
     338    for title in vertices_attribute_titles:
     339        fd.write(title + "\n")
    327340       
    328341    #<# of triangles>
Note: See TracChangeset for help on using the changeset viewer.