Changeset 8167 for trunk/anuga_core/source/anuga/visualiser
- Timestamp:
- Mar 25, 2011, 5:55:00 PM (14 years ago)
- Location:
- trunk/anuga_core/source/anuga/visualiser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/visualiser/realtime.py
r7452 r8167 61 61 vertex_values, _ = self.source.get_quantity(quantityName).get_vertex_values(xy=False, smooth=False) 62 62 63 63 64 for n in range(N_vert): 64 65 qty_index[n] = vertex_values[n] … … 94 95 quantities = {} 95 96 for q in self.source.get_quantity_names(): 96 quantities[q], _ = self.source.get_quantity(q).get_vertex_values(xy=False) 97 #quantities[q], _ = self.source.get_quantity(q).get_vertex_values(xy=False) 98 quantities[q] = self.source.get_quantity(q).vertex_values.flatten() 97 99 return quantities 98 100 -
trunk/anuga_core/source/anuga/visualiser/visualiser.py
r6113 r8167 174 174 # range. 175 175 scalars = vtkFloatArray() 176 176 177 map(scalars.InsertNextValue, colour[0](self.build_quantity_dict())) 177 178 self.vtk_polyData[quantityName].GetPointData().SetScalars(scalars) 178 mapper.SetScalarRange(colour[1:])179 #mapper.SetScalarRange(colour[1:]) 179 180 mapper.Update() 180 181 else:
Note: See TracChangeset
for help on using the changeset viewer.