Ignore:
Timestamp:
Mar 13, 2006, 12:37:36 PM (18 years ago)
Author:
ole
Message:

Added mesh statistics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/general_mesh.py

    r2528 r2532  
    8787        self.number_of_elements = N = self.triangles.shape[0]
    8888
     89        #FIXME: Maybe move to statistics?
    8990        xy_extent = [ min(self.coordinates[:,0]), min(self.coordinates[:,1]) ,
    9091                      max(self.coordinates[:,0]), max(self.coordinates[:,1]) ]
     
    152153        self.build_vertexlist()
    153154
     155           
     156
    154157    def __len__(self):
    155158        return self.number_of_elements
     
    325328
    326329        return sum(self.areas)
     330
     331       
Note: See TracChangeset for help on using the changeset viewer.