Changeset 1910 for inundation/utilities/polygon.py
- Timestamp:
- Oct 14, 2005, 6:00:56 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/utilities/polygon.py
r1906 r1910 1 2 3 4 5 ##################################### 6 #POLYGON STUFF 7 # 8 #FIXME: All these should be put into new module polygon.py 9 10 1 #!/usr/bin/env python 2 """Polygon manipulations 3 4 """ 5 6 from utilities.numerical_tools import ensure_numeric 11 7 12 8 def point_on_line(x, y, x0, y0, x1, y1): … … 284 280 M = points.shape[0] #Number of points 285 281 286 from util_ext import separate_points_by_polygon282 from polygon_ext import separate_points_by_polygon 287 283 288 284 if verbose: print 'Allocating array for indices' … … 351 347 352 348 def __call__(self, x, y): 353 from util import inside_polygon354 349 from Numeric import ones, Float, concatenate, array, reshape, choose 355 350
Note: See TracChangeset
for help on using the changeset viewer.