Ignore:
Timestamp:
Jun 21, 2006, 3:33:49 PM (18 years ago)
Author:
duncan
Message:

bug fixing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pmesh/mesh_interface.py

    r3183 r3193  
    2222def create_mesh_from_regions(bounding_polygon,
    2323                             boundary_tags,
    24                              maximum_triangle_area,
     24                             maximum_triangle_area=None,
    2525                             filename=None,
    2626                             interior_regions=None,
    2727                             poly_geo_reference=None,
    2828                             mesh_geo_reference=None,
    29                              minimum_triangle_angle=28.0):
     29                             minimum_triangle_angle=28.0,
     30                             verbose=True):
    3031    """Create mesh from bounding polygons, and resolutions.
    3132
     
    3637    is a list of indices referring to segments associated with that tag
    3738
    38     Resolution is the maximal area per triangle for the bounding polygon
    39     (excluding interior regions, see later)
     39    maximum_triangle_area is the maximal area per triangle
     40    for the bounding polygon, excluding the  interior regions.
    4041
    4142    Interior_regions is a list of tuples consisting of (polygon, resolution)
     
    4546    pmesh functionality for that
    4647
    47     poly_geo_reference is the geo_reference of the polygons.
    48     The bounding polygon and the interior polygons
     48    poly_geo_reference is the geo_reference of the bounding polygon and
     49    the interior polygons.
    4950    If none, assume absolute.  Please pass one though, since absolute
    5051    references have a zone.
     
    6263    """
    6364    #FIXME (OLE-DSG)
    64     # To do make maximum_triangle_area optional?
    6565    # check the segment indexes - throw an error if they are out of bounds
    6666    #(DSG) Yes!
     
    117117        excluded_polygons = None
    118118
    119     from Numeric import array
    120 
    121 
    122119    # Convert bounding poly to absolute values
    123120    # this sort of thing can be fixed with the geo_points class
     
    157154    else:
    158155        m.generate_mesh(minimum_triangle_angle=minimum_triangle_angle,
    159                         maximum_triangle_area=maximum_triangle_area)       
     156                             verbose=verbose)
    160157        m.export_mesh_file(filename)
    161158
Note: See TracChangeset for help on using the changeset viewer.