Changeset 4579 for anuga_core/source/anuga/utilities
- Timestamp:
- Jul 3, 2007, 1:30:49 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/polygon.py
r4574 r4579 622 622 return z 623 623 624 def read_polygon(filename,split=','): 624 625 def read_polygon(filename, split=','): 625 626 """Read points assumed to form a polygon. 626 627 There must be exactly two numbers in each line separated by a comma. … … 639 640 return polygon 640 641 641 def populate_polygon(polygon, number_of_points, seed = None, exclude = None): 642 643 def populate_polygon(polygon, number_of_points, seed=None, exclude=None): 642 644 """Populate given polygon with uniformly distributed points. 643 645 … … 694 696 695 697 return points 698 696 699 697 700 def point_in_polygon(polygon, delta=1e-8): … … 739 742 return point 740 743 744 741 745 def number_mesh_triangles(interior_regions, bounding_poly, remainder_res): 742 """Calcalutes the approximate number of triangles inside the bounding polygon743 and the other interior regions746 """Calcalutes the approximate number of triangles inside the 747 bounding polygon and the other interior regions 744 748 745 749 Polygon areas are converted to square Kms
Note: See TracChangeset
for help on using the changeset viewer.