Changeset 407


Ignore:
Timestamp:
Oct 15, 2004, 12:14:48 PM (20 years ago)
Author:
duncan
Message:

removed default region tag bug

Location:
inundation/ga/storm_surge/pmesh
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pmesh/documentation/issues.txt

    r392 r407  
    2222Using a 100 * 100 domain, a max triangle area of 0.01 produced
    23231,048,576 triangles.
    24 
    25 Issue: The default region button cannot be selected after loading a file.
    26 Reason: Unknown. 
    27 Importance: Low
    2824
    2925Issue: The mesh produced by triangle isn't of high quality near a low
     
    117113CLOSED - issues that have  beeen resolved
    118114************
     115
     116Issue: The default region button cannot be selected after loading a file.
     117Reason: Unknown. 
     118Importance: Low
     119
    119120Issue: The vertices were being sorted when loading .xya files
    120121Time to complete : 5hrs
  • inundation/ga/storm_surge/pmesh/mesh.py

    r404 r407  
    962962        #segment marker list: [S1Marker, S2Marker, ...] (list of ints)
    963963        """
    964 
    965         print "@#@#@#"
    966         print outlineDict
    967         print "@#@#@#"
    968964
    969965        localUserVertices = []
  • inundation/ga/storm_surge/pmesh/meshHarness.py

    r406 r407  
    840840
    841841
    842     def test_removeDuplicatedVertices(self):
     842    def test_ungenerateFileLoading(self):
    843843       
    844844        fileName = tempfile.mktemp(".txt")
     
    873873        m = Mesh(userVertices=[a,b,c,d], userSegments=[s1,s2,s3,s4])
    874874        dict = importUngenerateFile(fileName)
     875
     876        tag = "DSG"
     877        Segment.set_default_tag(tag)
    875878        m.addVertsSegs(dict)
     879
     880        # have to reset this , since it's a class attribute
     881        Segment.set_default_tag("")
    876882           
    877883        self.failUnless(len(m.userSegments) ==11,
    878                         'Segments not deleted.')
     884                        'Wrong segment list length.')
    879885        self.failUnless(len(m.userVertices) == 11,
    880                         'Vertex deleted, instead of segment.')
     886                        'Wrong vertex list length.')
    881887        self.failUnless(m.userSegments[10].vertices[0] == m.userVertices[10],
    882                         'Vertex deleted, instead of segment.')
     888                        'bad vertex on segment.')
    883889        self.failUnless(m.userSegments[10].vertices[1] == m.userVertices[8],
    884                         'Vertex deleted, instead of segment.')
     890                        'Bad segment.')
     891        self.failUnless(m.userSegments[10].marker == tag,
     892                        'wrong tag.')
    885893       
    886894#-------------------------------------------------------------
  • inundation/ga/storm_surge/pmesh/pmesh.py

    r404 r407  
    55import mesh
    66from Tkinter import  FALSE,TRUE, Frame,X, LEFT,YES,BOTH,ALL,Widget,CURRENT, Label,W, Entry, E, StringVar, END
    7 from cursornames import TLC,TRC, BLC, BRC, TS, RS, LS, BS
     7#from cursornames import TLC,TRC, BLC, BRC, TS, RS, LS, BS
    88from tkMessageBox import showerror, _show, QUESTION,YESNOCANCEL
    99import types
     
    154154                               statushelp='')
    155155            t.cycle("DrawMode")
    156             if key == 'pointer': #FIXME - this is specified in line 925 as well
     156            if key == 'pointer': #FIXME- this is specified in line 1062 as well
     157                                 # self.selectFunc('pointer')
    157158                self.curFunc  = self.drawVertex
    158159                t.setInitialSunkenButton("DrawMode")
     
    885886            self.currentFilePathName = ofile
    886887            self.clearMesh()
    887             self.initData()
    888888            self.mesh = newmesh
    889889            self.visualiseMesh(self.mesh)
     
    10011001        Initialise various lists and flags
    10021002        """
    1003         self.curModeClass=  None  #mesh.Vertex?
    10041003        self.serial      = 1000
    10051004        self.currentFilePathName = 'untitled'
  • inundation/ga/storm_surge/pmesh/visualmesh.py

    r349 r407  
    6868        return VMesh([self,other])
    6969
     70    def __repr__(self):
     71        return str(self.__class__)
    7072   
    7173class vPoints(vAbstract):
Note: See TracChangeset for help on using the changeset viewer.