Changeset 530
- Timestamp:
- Nov 12, 2004, 3:54:45 PM (20 years ago)
- Location:
- inundation/ga/storm_surge/pyvolution
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/general_mesh.py
r529 r530 187 187 return vertex_coordinates 188 188 189 def get_vertices(self, element_ids=None):189 def get_vertices(self, indexes=None): 190 190 """Get connectivity 191 element_ids is a191 indexes is a 192 192 If unique is True give them only once as stored internally. 193 193 If unique is False return connectivity of all elements … … 196 196 from Numeric import take 197 197 198 # Don't check in yet. unique and index must work together 199 if (element_ids == None): 200 isindexes = False 201 element_ids = range(len(self)) 202 else: 203 isindexes = True 204 205 return take(self.triangles, element_ids) 198 if (indexes == None): 199 indexes = range(len(self)) 200 201 return take(self.triangles, indexes) 206 202 207 203 def build_vertexlist(self):
Note: See TracChangeset
for help on using the changeset viewer.