Changeset 1100
- Timestamp:
- Mar 17, 2005, 2:36:37 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pmesh/load_mesh/loadASCII.py
r1099 r1100 31 31 segment_tags : [tag,tag,...] list of strings 32 32 triangles : [(v1,v2,v3), (v4,v5,v6),....] lists of points 33 triangle 34 triangle 33 triangle_tags: [[s1],[s2],...] A list of list of strings (probably not neccecary. a list of string should be ok) 34 triangle_neighbors: [[t1,t2,t3], [t4,t5,t6],..] lists of triangles 35 35 36 36 (the outline) … … 419 419 420 420 numVert = str(len(vertices)) 421 if (numVert == "0") :421 if (numVert == "0") or len(vertices_attributes) == 0: 422 422 numVertAttrib = "0" 423 423 else: … … 519 519 mesh_dict['region_max_areas'] = [] 520 520 521 522 if not mesh_dict.has_key('vertices'): 523 mesh_dict['vertices'] = [] 524 if not mesh_dict.has_key('vertex_attributes'): 525 mesh_dict['vertex_attributes'] = [] 526 if not mesh_dict.has_key('vertex_attribute_titles'): 527 mesh_dict['vertex_attribute_titles'] = [] 528 if not mesh_dict.has_key('segments'): 529 mesh_dict['segments'] = [] 530 if not mesh_dict.has_key('segment_tags'): 531 mesh_dict['segment_tags'] = [] 532 if not mesh_dict.has_key('triangles'): 533 mesh_dict['triangles'] = [] 534 if not mesh_dict.has_key('triangle_tags'): 535 mesh_dict['triangle_tags'] = [] 536 if not mesh_dict.has_key('triangle_neighbors'): 537 mesh_dict['triangle_neighbors'] = [] 521 538 #print "DSG************" 522 539 #print "mesh_dict",mesh_dict … … 963 980 if y > max_y: max_y = y 964 981 if y < min_y: min_y = y 965 extent = array([[min_x,min_y],[max_x,min_y],[m in_x,max_y],[max_x,max_y]])982 extent = array([[min_x,min_y],[max_x,min_y],[max_x,max_y],[min_x,max_y]]) 966 983 #print "extent",extent 967 984 return extent
Note: See TracChangeset
for help on using the changeset viewer.