Ignore:
Timestamp:
Jul 3, 2007, 1:30:49 PM (18 years ago)
Author:
ole
Message:

Thoughts towards allowing 'polygon' to be specified in set_quantity.
This is far from done.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/utilities/polygon.py

    r4574 r4579  
    622622        return z
    623623
    624 def read_polygon(filename,split=','):
     624
     625def read_polygon(filename, split=','):
    625626    """Read points assumed to form a polygon.
    626627       There must be exactly two numbers in each line separated by a comma.
     
    639640    return polygon
    640641
    641 def populate_polygon(polygon, number_of_points, seed = None, exclude = None):
     642
     643def populate_polygon(polygon, number_of_points, seed=None, exclude=None):
    642644    """Populate given polygon with uniformly distributed points.
    643645
     
    694696
    695697    return points
     698
    696699
    697700def point_in_polygon(polygon, delta=1e-8):
     
    739742    return point
    740743
     744
    741745def number_mesh_triangles(interior_regions, bounding_poly, remainder_res):
    742     """Calcalutes the approximate number of triangles inside the bounding polygon
    743     and the other interior regions
     746    """Calcalutes the approximate number of triangles inside the
     747    bounding polygon and the other interior regions
    744748
    745749    Polygon areas are converted to square Kms
Note: See TracChangeset for help on using the changeset viewer.