Changeset 3020


Ignore:
Timestamp:
May 30, 2006, 4:03:11 PM (18 years ago)
Author:
duncan
Message:

sync'ing across platforms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/triangle/test_triangmodule.py

    r3013 r3020  
    365365                        'lonepointlist is wrong!')
    366366
     367    def test_lone_vertsIII(self):
     368
     369        points = []
     370        seglist = []
     371        holelist = []
     372        regionlist = []
     373
     374        points = [(0.0,0.0),(0.0,0.0),(0.0,10.0),(0.0,10.0),(10.0,10.0),
     375                  (10.0,10.0),(0.0,10.0),(10.0,0.0)]
     376       
     377        pointattlist = []
     378        for point in points:
     379            pointattlist.append([])
     380        seglist = []       
     381        segattlist = []
     382        for seg in seglist:
     383            segattlist.append(0)
     384        trilist = []
     385        mode = "Qzp"
     386        data = triang.genMesh(points,seglist,holelist,regionlist,
     387                              pointattlist,segattlist,trilist, mode)
     388       
     389        self.failUnless(data['lonepointlist'] ==[0,1,2,3,4,5,6,7],
     390                        'lonepointlist is wrong!')
    367391if __name__ == "__main__":
    368392
Note: See TracChangeset for help on using the changeset viewer.