[vtk-developers] Possible bug in vtkDataSetMapper?
Prabhu Ramachandran
prabhu_r at users.sf.net
Mon Sep 3 09:14:04 EDT 2007
>>>>> "Berk" == Berk Geveci <berk.geveci at kitware.com> writes:
Berk> No problem. The reason for this behavior is that the
Berk> pipeline does not look at the modification time of the data
Berk> objects when computing pipeline modification
Berk> time. Therefore, modifying a data object has no effect. The
Berk> only exception to this is when a data object without a
Berk> producer is assigned as an input to an algorithm. In that
Berk> case, the data object's mtime is taken into account. There
Berk> is also an API (I can't remember the names of the methods)
Berk> in the mapper (and many algorithms) that allow you to use an
Berk> array other than scalars. So, if all you want is to color by
Berk> an array, you don't need to use the vtkAssignAttribute
Berk> filter. For an example, grep for ColorBy in
Berk> VTK/Graphics/Testing/Tcl. Algorithms have the
Berk> SetInputArrayToProcess() method.
Many thanks for the additional clarifications! The vtkAssignAttribute
class is used in the FinancialField example. However, outside of that
it is not really documented as the best way to deal with multiple
attributes in a dataset. AFAIK the VTK book (4th edition) does not
have an indexed entry for the class at all.
Anyway, thanks again.
Regards,
Prabhu
More information about the vtk-developers
mailing list