Changeset 3193 for inundation/pmesh/mesh_interface.py
- Timestamp:
- Jun 21, 2006, 3:33:49 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pmesh/mesh_interface.py
r3183 r3193 22 22 def create_mesh_from_regions(bounding_polygon, 23 23 boundary_tags, 24 maximum_triangle_area ,24 maximum_triangle_area=None, 25 25 filename=None, 26 26 interior_regions=None, 27 27 poly_geo_reference=None, 28 28 mesh_geo_reference=None, 29 minimum_triangle_angle=28.0): 29 minimum_triangle_angle=28.0, 30 verbose=True): 30 31 """Create mesh from bounding polygons, and resolutions. 31 32 … … 36 37 is a list of indices referring to segments associated with that tag 37 38 38 Resolution is the maximal area per triangle for the bounding polygon39 (excluding interior regions, see later)39 maximum_triangle_area is the maximal area per triangle 40 for the bounding polygon, excluding the interior regions. 40 41 41 42 Interior_regions is a list of tuples consisting of (polygon, resolution) … … 45 46 pmesh functionality for that 46 47 47 poly_geo_reference is the geo_reference of the polygons.48 The bounding polygon and the interior polygons48 poly_geo_reference is the geo_reference of the bounding polygon and 49 the interior polygons. 49 50 If none, assume absolute. Please pass one though, since absolute 50 51 references have a zone. … … 62 63 """ 63 64 #FIXME (OLE-DSG) 64 # To do make maximum_triangle_area optional?65 65 # check the segment indexes - throw an error if they are out of bounds 66 66 #(DSG) Yes! … … 117 117 excluded_polygons = None 118 118 119 from Numeric import array120 121 122 119 # Convert bounding poly to absolute values 123 120 # this sort of thing can be fixed with the geo_points class … … 157 154 else: 158 155 m.generate_mesh(minimum_triangle_angle=minimum_triangle_angle, 159 maximum_triangle_area=maximum_triangle_area)156 verbose=verbose) 160 157 m.export_mesh_file(filename) 161 158
Note: See TracChangeset
for help on using the changeset viewer.