Changeset 971


Ignore:
Timestamp:
Feb 28, 2005, 5:05:56 PM (20 years ago)
Author:
duncan
Message:

alpha shape interface bugfix

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

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pmesh/mesh.py

    r969 r971  
    12151215            points.append((vertex.x,vertex.y))
    12161216        shape = alpha_shape.alpha_shape.Alpha_Shape(points, alpha = alpha)
     1217        print "mesh boundary_type",boundary_type
    12171218        shape.set_boundary_type(flag = boundary_type)
    12181219        boundary_segs = shape.get_boundary()
  • inundation/ga/storm_surge/pmesh/pmesh.py

    r969 r971  
    627627        if dialog.use_optimum.get() == SET_ALPHA:
    628628            if dialog.alphaValueOk:
     629                print "dialog.boundary_type.get()",dialog.boundary_type.get()
    629630                self.autoSegment(alpha = dialog.alpha,
    630631                                 boundary_type=dialog.boundary_type.get())
     
    633634                      'Bad alpha value.')
    634635        else:
    635             self.autoSegment()
     636            print "pmesh dialog.boundary_type.get()",dialog.boundary_type.get()
     637           
     638            self.autoSegment(boundary_type=dialog.boundary_type.get())
    636639           
    637640       
     
    646649        if len(self.mesh.getUserVertices()) >= 3:
    647650            if alpha == None:
    648                 newsegs, ObjectsToVisuallyDelete, self.meshLastAlpha = self.mesh.autoSegment()
     651                newsegs, ObjectsToVisuallyDelete, self.meshLastAlpha = self.mesh.autoSegment(boundary_type=boundary_type)
    649652            else:
    650                 newsegs, ObjectsToVisuallyDelete, self.meshLastAlpha = self.mesh.autoSegment(alpha)
     653                newsegs, ObjectsToVisuallyDelete, self.meshLastAlpha = self.mesh.autoSegment(alpha=alpha,boundary_type=boundary_type)
    651654               
    652655            #print "newsegs",newsegs
Note: See TracChangeset for help on using the changeset viewer.