<div class="gmail_quote">On Tue, Feb 9, 2010 at 8:31 AM, Nico Schlömer <span dir="ltr"><<a href="mailto:nico.schloemer@gmail.com">nico.schloemer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">> 5) anything you want (including pairs such as kappa=3.5) (FIELDDATA)<br>
<br>
</div>Are there examples of how to store "stuff" in FIELDDATA, e.g.,<br>
"kappa=3.5", int-arrays, chars,...<br>
<br>
Cheers,<br>
<font color="#888888">Nico<br></font></blockquote><div><br></div><div>This example showed how to add the center of mass of the data to the FieldData: </div></div><a href="http://www.vtk.org/Wiki/VTK/Examples/FieldData">http://www.vtk.org/Wiki/VTK/Examples/FieldData</a><div>
<br></div><div>I have now added a section to add a single int value.</div><div><br></div><div>You just have to replace vtkIntArray with vtkWhateverTypeArray, add the value into the array, then AddArray the array to the polydata's FieldData.</div>
<div><a href="http://www.vtk.org/Wiki/VTK/Examples/FieldData"></a><br clear="all">Thanks,<br><br>David</div>