Ignore:
Timestamp:
Jan 3, 2008, 9:58:32 PM (17 years ago)
Author:
duncan
Message:

Using a numeric array to store mesh triangulation info. The old way is also in place.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/mesh_engine/mesh_engine.py

    r4900 r4901  
    148148    #print "mesh eng generatedtrianglelist", trianglelist
    149149    #print "mesh eng mesh_dict['triangleattributelist'] ",mesh_dict['triangleattributelist']
    150     #print "mesh eng mesh_dict['generatedtriangleattributelist'] ", mesh_dict['generatedtriangleattributelist']   
    151    
     150    #print "mesh eng mesh_dict['generatedtriangleattributelist'] ", mesh_dict['generatedtriangleattributelist']   
    152151    if True:
    153152        mesh_dict['generatedtriangleattributelist'] = triangleattributelist
     
    155154        if mesh_dict['generatedtriangleattributelist'].shape[1] == 0:
    156155            mesh_dict['generatedtriangleattributelist'] = None
     156           
    157157        if trianglelist.shape[0] == 0:
    158158            # There are no triangles.
    159159            # this is used by urs_ungridded2sww
    160160            raise NoTrianglesError
    161     #print "mesh eng mesh_dict['generatedtriangleattributelist'] ", mesh_dict['generatedtriangleattributelist']   
     161    #print "mesh eng mesh_dict['generatedtriangleattributelist'] ", mesh_dict['generatedtriangleattributelist'] 
     162   
     163    # the structure of generatedtriangleattributelist is an list of
     164    # list of integers.  It is transformed into a list of list of
     165    # strings later on.  This is then inputted into an triangle
     166    # object.  The triangle object outputs a list of strings.  Note
     167    # the subtle change!  How should I handle this?  For my code, when
     168    # the list of list of integers is transformed, transform it into a
     169    # list of strings, not a list of list of strings.
    162170   
    163171    return mesh_dict
Note: See TracChangeset for help on using the changeset viewer.