Changeset 3128
- Timestamp:
- Jun 9, 2006, 12:34:16 PM (19 years ago)
- Location:
- inundation/pyvolution
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pyvolution/general_mesh.py
r3106 r3128 1 1 2 from Numeric import concatenate, reshape, take 2 from Numeric import concatenate, reshape, take, allclose 3 3 from Numeric import array, zeros, Int, Float, sqrt, sum 4 4 … … 213 213 V0 = self.geo_reference.get_absolute(V[:,0:2]) 214 214 V1 = self.geo_reference.get_absolute(V[:,2:4]) 215 V2 = self.geo_reference.get_absolute(V[:,4:6]) 216 217 V = concatenate( (V0, V1, V2), axis=1 ) 218 219 215 V2 = self.geo_reference.get_absolute(V[:,4:6]) 216 217 if not allclose(V0, V[:,0:2]): 218 # Only create new object if necessary (as it takes memory) 219 V = concatenate( (V0, V1, V2), axis=1 ) 220 221 220 222 if obj is True: 221 223 #return concatenate( (V[:,0:2], V[:,2:4], V[:,4:6]), axis=0) -
inundation/pyvolution/neighbour_mesh.py
r3086 r3128 449 449 450 450 451 # Assemble dictionary of boundary segments and choose starting point 451 # Assemble dictionary of boundary segments and choose starting point 452 452 segments = {} 453 453 inverse_segments = {} 454 p0 = None 454 455 mindist = sqrt(sum((pmax-pmin)**2)) #Start value across entire mesh 455 456 for i, edge_id in self.boundary.keys():
Note: See TracChangeset
for help on using the changeset viewer.