Changeset 3051 for inundation/pmesh


Ignore:
Timestamp:
Jun 2, 2006, 12:33:16 PM (19 years ago)
Author:
duncan
Message:

checking in changes half way thru, so Ole can help

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pmesh/mesh_interface.py

    r3042 r3051  
    88from utilities.numerical_tools import ensure_numeric
    99from Numeric import Float
     10from utilities.polygon import inside_polygon
    1011
    1112# This is due to pmesh being a package and a module and
     
    6970    # converted to relative coordinates (I think). How can we simplify this?
    7071    #
     72    #FIXME (DSG-DSG) this code does not take into account geo-referencing
    7173    #if interior_regions is not None:       
    72     #    from utilities.polygon import inside_polygon
    73     #
    74     #    for interior_polygon, res in interior_regions:
    75     #        indices = inside_polygon(interior_polygon, bounding_polygon,
    76     #                                 closed = True, verbose = False)
    77     #
    78     #        if len(indices) <> len(interior_polygon):
    79     #            msg = 'Interior polygon %s is outside bounding polygon: %s'\
    80     #                  %(str(interior_polygon), str(bounding_polygon))
    81     #            raise msg
     74     
     75     #   for interior_polygon, res in interior_regions:
     76      #      indices = inside_polygon(interior_polygon, bounding_polygon,
     77       #                              closed = True, verbose = False)
     78   
     79       #     if len(indices) <> len(interior_polygon):
     80        #        msg = 'Interior polygon %s is outside bounding polygon: %s'\
     81         #             %(str(interior_polygon), str(bounding_polygon))
     82          #      raise msg
    8283
    8384
Note: See TracChangeset for help on using the changeset viewer.