Changeset 3051 for inundation/pmesh
- Timestamp:
- Jun 2, 2006, 12:33:16 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pmesh/mesh_interface.py
r3042 r3051 8 8 from utilities.numerical_tools import ensure_numeric 9 9 from Numeric import Float 10 from utilities.polygon import inside_polygon 10 11 11 12 # This is due to pmesh being a package and a module and … … 69 70 # converted to relative coordinates (I think). How can we simplify this? 70 71 # 72 #FIXME (DSG-DSG) this code does not take into account geo-referencing 71 73 #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 82 83 83 84
Note: See TracChangeset
for help on using the changeset viewer.