Hi,<br><br>You can probably ignore marking arrays as scalars, vectors, or any of the other "active" arrays as they are not required. Marking an array with the scalar attribute just means that a filter that is looking for a scalar array will use the one that is marked. In your VTK code (or ParaView) you can still mark that array later on as being the scalar array. Also, there will be at most one scalar point data array and at most one scalar cell data array (similar for other attributes). This attribute marking sometimes gets confused with thinking about scalar or vector physical quantities (e.g. temperature or velocity, respectively) but it is independent of that. Thus you could have a temperature array and a pressure array along with other physically scalar arrays but only one would be marked as being a VTK scalar array and that's the one a filter would look for to do its work with respect to.<br>
<br>Andy<br><br><div class="gmail_quote">On Sat, Mar 16, 2013 at 10:11 PM, Prof. Dr. Karl-Heinz Kunzelmann <span dir="ltr"><<a href="mailto:karl-heinz@kunzelmann.de" target="_blank">karl-heinz@kunzelmann.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all,<br>
<br>
I am in the process to write an VTU-writer for octave.<br>
<br>
Thanks to some already available examples and the <a href="http://www.vtk.org/VTK/img/file-formats.pdf" target="_blank">http://www.vtk.org/VTK/img/<u></u>file-formats.pdf</a> most details are clear and the raw version of my writer works so far.<br>
<br>
I have just one or two minor questions:<br>
<br>
In the documentation it is written:<br>
<br>
The following attributes of PointData and CellData are used to specify the active arrays by name: Scalars, Vectors etc.<br>
<br>
Question No. 1: What is meant by "active arrays"?<br>
<br>
What is especially confusing for me are the two examples:<br>
<br>
<VTKFile type=”UnstructuredGrid” ...><br>
<UnstructuredGrid><br>
<Piece NumberOfPoints=”#” NumberOfCells=”#”><br>
<PointData>...</PointData><br>
<CellData>...</CellData><br>
<Points>...</Points><br>
<Cells>...</Cells><br>
</Piece><br>
</UnstructuredGrid><br>
</VTKFile><br>
<br>
Here the XML-Element/Node "PointData" and "CellData" do not have any attributes.<br>
<br>
On the other hand in the following example attributes are used:<br>
<br>
<PointData Scalars=”Temperature” Vectors=”Velocity”><br>
<DataArray Name=”Velocity” .../><br>
<DataArray Name=”Temperature” .../><br>
<DataArray Name=”Pressure” .../><br>
</PointData><br>
<br>
What makes it so unclear for me is that the attribute "Scalars" lists only the name of one DataArray, but I can clearly identify two scalar dataarrays.<br>
<br>
Question No.2a and b: Why is only one scalar listed? And what would be the syntax for adding Pressure as well (if necessary/possible at all)?<br>
<br>
I have seen for example in the output file of the FEM program Elmer, that they just use the PointData element/node without any attribute.<br>
<br>
Thank you for the explanation already in advance.<br>
<br>
Sincerely<br>
<br>
Karl-Heinz Kunzelmann<br>
<br>
-- <br>
Prof. Dr. Karl-Heinz Kunzelmann<br>
Poliklinik für Zahnerhaltung und Parodontologie<br>
Ludwig-Maximilians-Universität München<br>
Goethestr. 70<br>
D-80336 München<br>
Germany<br>
<br>
Tel.: <a href="tel:%2B49%20-%2089%20-%2051609346" value="+498951609346" target="_blank">+49 - 89 - 51609346</a><br>
homepage: <a href="http://www.kunzelmann.de" target="_blank">www.kunzelmann.de</a><br>
email: <a href="mailto:karl-heinz@kunzelmann.de" target="_blank">karl-heinz@kunzelmann.de</a><br>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_<u></u>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/<u></u>listinfo/vtkusers</a><br>
</blockquote></div><br>