<div dir="ltr">My vote is definitelly (b), but I may be influenced by the fact I'm working on VTK mostly trough ParaView where this kind of behavior is most of the time not expected.</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mathieu Westphal<br></div></div></div>
<br><div class="gmail_quote">On Tue, Jul 10, 2018 at 4:08 PM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Folks,<br>
<br>
I have a philosophical question. Suppose I am writing a filter that<br>
takes in an input dataset and generates a new vector field for the<br>
input. Such a filter will do something like the following in its<br>
RequestData:<br>
<br>
output->ShallowCopy(input);<br>
output->GetPointData()-><wbr>SetVectors(newVectors);<br>
<br>
Now the question is this: if the input had an active vectors array<br>
set, what should the output look like? Should it (a) drop the input<br>
vectors array entirely or should it (b) pass the input vectors array,<br>
just not flag it as active vectors and instead mark my "newVectors" as<br>
the active vectors.<br>
<br>
My vote is (b), currently most filters do (a). The curious side effect<br>
of A is that if I apply a filter like vtkGlyph3D to a dataset, the<br>
output will have arrays passed on from the input based on whether or<br>
not they were marked as active attributes on the input!<br>
<br>
The change to fix this is quite non-intrusive. We simply change the<br>
behavior of SetAttribute/SetVector etc. in vtkDataSetAttributes.<br>
<br>
Thanks in advance<br>
<br>
Utkarsh<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">https://public.kitware.com/<wbr>mailman/listinfo/vtk-<wbr>developers</a><br>
<br>
</blockquote></div><br></div>