Changeset 4182


Ignore:
Timestamp:
Jan 19, 2007, 2:28:26 PM (17 years ago)
Author:
duncan
Message:

fixing import problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/pmesh/mesh.py

    r4165 r4182  
    2626
    2727 
    28 import load_mesh
     28#import load_mesh
    2929from anuga.coordinate_transforms.geo_reference import Geo_reference,DEFAULT_ZONE
    3030from anuga.utilities.polygon import point_in_polygon
    31 import anuga.load_mesh.loadASCII
     31from  anuga.load_mesh.loadASCII import NOMAXAREA, export_mesh_file, \
     32     import_mesh_file
    3233import anuga.alpha_shape.alpha_shape
    3334from anuga.geospatial_data.geospatial_data import Geospatial_data, \
    3435     ensure_geospatial, ensure_absolute, ensure_numeric
    3536from anuga.mesh_engine.mesh_engine import generate_mesh
    36 
    37 
    38 #import anuga.mesh_engine_b.mesh_engine as triang
    3937
    4038try: 
     
    19991997            verts[seg.vertices[1]] = seg.vertices[1]
    20001998        meshDict = self.Mesh2IOOutlineDict(userVertices=verts.values())
    2001         load_mesh.loadASCII.export_mesh_file(ofile,meshDict)
     1999        export_mesh_file(ofile,meshDict)
    20022000       
    20032001        # exportASCIImeshfile   - this function is used
     
    20082006       
    20092007        dict = self.Mesh2IODict()
    2010         load_mesh.loadASCII.export_mesh_file(ofile,dict)
     2008        export_mesh_file(ofile,dict)
    20112009
    20122010    # FIXME(DSG-DSG):Break this into two functions.
     
    21762174        Used to produce .tsh file and output to triangle
    21772175        """
     2176       
    21782177        if userVertices is None:
    21792178            userVertices = self.getUserVertices()
     
    22232222                regionmaxarealist.append(region.getMaxArea())
    22242223            else:
    2225                 regionmaxarealist.append( load_mesh.loadASCII.NOMAXAREA)
     2224                regionmaxarealist.append(NOMAXAREA)
    22262225        meshDict['regions'] = regionlist
    22272226        meshDict['region_tags'] = regiontaglist
     
    30053004    if (ofile[-4:]== ".xya" or ofile[-4:]== ".pts" or ofile[-4:]== ".txt" or \
    30063005        ofile[-4:]== ".csv"):
    3007         #dict = load_mesh.loadASCII.import_points_file(ofile)
    30083006        geospatial = Geospatial_data(ofile)
    30093007        dict = {}
     
    30213019            print "%i duplicate vertices removed from dataset" % (counter)
    30223020    elif (ofile[-4:]== ".tsh" or ofile[-4:]== ".msh"):
    3023         dict = load_mesh.loadASCII.import_mesh_file(ofile)
     3021        dict = import_mesh_file(ofile)
    30243022        #print "********"
    30253023        #print "zq mesh.dict",dict
Note: See TracChangeset for help on using the changeset viewer.