Changeset 3031
- Timestamp:
- May 31, 2006, 2:24:25 PM (18 years ago)
- Location:
- inundation/mesh_engine
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/mesh_engine/test_triangmodule.py
r3028 r3031 299 299 300 300 301 def Xtest_lone_verts(self):301 def test_lone_verts(self): 302 302 303 303 points = [] … … 312 312 segattlist = [0,0,0,0,0] 313 313 trilist = [] 314 mode = "Q zp"314 mode = "QpznAa2000.1a" 315 315 data = triang.genMesh(points,seglist,holelist,regionlist, 316 316 pointattlist,segattlist,trilist, mode) … … 329 329 #print "", data['lonepointlist'] 330 330 331 def Xtest_lone_vertsII(self):331 def ytest_lone_vertsII(self): 332 332 333 333 points = [] … … 347 347 segattlist.append(0) 348 348 trilist = [] 349 mode = " Qzp"349 mode = "pznAa2000.1a" 350 350 data = triang.genMesh(points,seglist,holelist,regionlist, 351 351 pointattlist,segattlist,trilist, mode) … … 365 365 'lonepointlist is wrong!') 366 366 367 def Xtest_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!')391 367 if __name__ == "__main__": 392 368
Note: See TracChangeset
for help on using the changeset viewer.