Ignore:
Timestamp:
Mar 25, 2011, 5:55:00 PM (14 years ago)
Author:
steve
Message:

Found an error in vtk visualiser

Location:
trunk/anuga_core/source/anuga/visualiser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/visualiser/realtime.py

    r7452 r8167  
    6161        vertex_values, _ = self.source.get_quantity(quantityName).get_vertex_values(xy=False, smooth=False)
    6262
     63       
    6364        for n in range(N_vert):
    6465            qty_index[n] = vertex_values[n]
     
    9495        quantities = {}
    9596        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()
    9799        return quantities
    98100
  • trunk/anuga_core/source/anuga/visualiser/visualiser.py

    r6113 r8167  
    174174                    # range.
    175175                    scalars = vtkFloatArray()
     176
    176177                    map(scalars.InsertNextValue, colour[0](self.build_quantity_dict()))
    177178                    self.vtk_polyData[quantityName].GetPointData().SetScalars(scalars)
    178                     mapper.SetScalarRange(colour[1:])
     179                    #mapper.SetScalarRange(colour[1:])
    179180                    mapper.Update()
    180181                else:
Note: See TracChangeset for help on using the changeset viewer.