Changeset 4182 for anuga_core/source/anuga/pmesh/mesh.py
- Timestamp:
- Jan 19, 2007, 2:28:26 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/pmesh/mesh.py
r4165 r4182 26 26 27 27 28 import load_mesh28 #import load_mesh 29 29 from anuga.coordinate_transforms.geo_reference import Geo_reference,DEFAULT_ZONE 30 30 from anuga.utilities.polygon import point_in_polygon 31 import anuga.load_mesh.loadASCII 31 from anuga.load_mesh.loadASCII import NOMAXAREA, export_mesh_file, \ 32 import_mesh_file 32 33 import anuga.alpha_shape.alpha_shape 33 34 from anuga.geospatial_data.geospatial_data import Geospatial_data, \ 34 35 ensure_geospatial, ensure_absolute, ensure_numeric 35 36 from anuga.mesh_engine.mesh_engine import generate_mesh 36 37 38 #import anuga.mesh_engine_b.mesh_engine as triang39 37 40 38 try: … … 1999 1997 verts[seg.vertices[1]] = seg.vertices[1] 2000 1998 meshDict = self.Mesh2IOOutlineDict(userVertices=verts.values()) 2001 load_mesh.loadASCII.export_mesh_file(ofile,meshDict)1999 export_mesh_file(ofile,meshDict) 2002 2000 2003 2001 # exportASCIImeshfile - this function is used … … 2008 2006 2009 2007 dict = self.Mesh2IODict() 2010 load_mesh.loadASCII.export_mesh_file(ofile,dict)2008 export_mesh_file(ofile,dict) 2011 2009 2012 2010 # FIXME(DSG-DSG):Break this into two functions. … … 2176 2174 Used to produce .tsh file and output to triangle 2177 2175 """ 2176 2178 2177 if userVertices is None: 2179 2178 userVertices = self.getUserVertices() … … 2223 2222 regionmaxarealist.append(region.getMaxArea()) 2224 2223 else: 2225 regionmaxarealist.append( load_mesh.loadASCII.NOMAXAREA)2224 regionmaxarealist.append(NOMAXAREA) 2226 2225 meshDict['regions'] = regionlist 2227 2226 meshDict['region_tags'] = regiontaglist … … 3005 3004 if (ofile[-4:]== ".xya" or ofile[-4:]== ".pts" or ofile[-4:]== ".txt" or \ 3006 3005 ofile[-4:]== ".csv"): 3007 #dict = load_mesh.loadASCII.import_points_file(ofile)3008 3006 geospatial = Geospatial_data(ofile) 3009 3007 dict = {} … … 3021 3019 print "%i duplicate vertices removed from dataset" % (counter) 3022 3020 elif (ofile[-4:]== ".tsh" or ofile[-4:]== ".msh"): 3023 dict = load_mesh.loadASCII.import_mesh_file(ofile)3021 dict = import_mesh_file(ofile) 3024 3022 #print "********" 3025 3023 #print "zq mesh.dict",dict
Note: See TracChangeset
for help on using the changeset viewer.