Ignore:
Timestamp:
Jun 19, 2006, 5:08:05 PM (18 years ago)
Author:
duncan
Message:

quick hack to fix bug..maybe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pmesh/mesh_interface.py

    r3056 r3182  
    55
    66from coordinate_transforms.geo_reference import Geo_reference,DEFAULT_ZONE
    7 from utilities.polygon import populate_polygon
     7from utilities.polygon import  point_in_polygon ,populate_polygon
    88from utilities.numerical_tools import ensure_numeric
    99from Numeric import Float
     
    127127    else:
    128128        bounding_polygon_absolute = bounding_polygon
    129        
    130     [inner_point] = populate_polygon(bounding_polygon_absolute,
    131                                      1, exclude = excluded_polygons)
     129    # This isn't working it seems   
     130    #[inner_point] = populate_polygon(bounding_polygon_absolute,
     131    #                                 1, exclude = excluded_polygons)
     132   
     133    inner_point = point_in_polygon(bounding_polygon_absolute)
    132134    inner = m.add_region(inner_point[0], inner_point[1])
    133135    inner.setMaxArea(maximum_triangle_area)
Note: See TracChangeset for help on using the changeset viewer.