[vtkusers] Mixing CopyData() and InterpolatePoint() for vtkDataSetAttributes?

Gunther H. Weber ghweber at lbl.gov
Mon Oct 17 21:39:52 EDT 2011


Hi,

is there way to mix CopyData() and InterpolatePoint() calls to fill vtkDataSetAttributes? I have a situation, where I mainly want to copy attribute values from one set of vtkDataSetAttributes to another one. However, in some, relatively rare cases I may need to add attribute values that are interpolated. Looking at the documentation, mixing the calls seems not possible since CopyData() requires calling CopyAllocate() and InterpolatePoint() requires InterpolateAllocate(). Or am I overlooking something? I guess I could just copy data by "interpolating" from a single attribute value with a weight of one. However, this approach seems rather inefficient, particularly since I expect that in many cases all values are copied. (Only a rare boundary case requires interpolation.)

Best regards,

Gunther



More information about the vtkusers mailing list