MantisBT - ParaView
View Issue Details
0013961ParaView(No Category)public2013-03-22 14:462013-03-22 18:56
Alan Scott 
Alan Scott 
highminorhave not tried
closedfixed 
git-master 
 
Sandia
incorrect functionality
0013961: TableToPoints filter and TableToStructuredGrid scalars broken
Table to Points, and Table to Structured Grid are not converting any scalars correctly. I believe this makes the CSV reader pretty useless...

Master, Linux or Windows, local server.
Put the following into a file named scalarBug.txt:

x coord, y coord, z coord, scalar
   0, 0, 0, 0
   1, 0, 0, 1
   0, 1, 0, 2
   1, 1, 0, 3
-0.5, -0.5, 1, 4
 0.5, -0.5, 1, 5
-0.5, 0.5, 1, 6
 0.5, 0.5, 1, 7

* Now, read this file into ParaView using the Delimited Text reader (default). Take default settings. Apply.
* Filters/ Alphabetical/ Table to Point filter. X Column == x coord, Y Column == y coord, Z Column == z coord. Apply.
* Now, split screen horizontally, and make the new window a 3d window. Turn on visibility of the Table to Point filter.
* Change color to "scalar" (which was in the table above). Add a color legend.

<<Bug>> The points are not colored properly, and the color legend range will go from -inf to inf (actually, -1e299 to 1e299).

The same issue occurs with the Table To Structured Grid filter.

Marking high, since I believe this makes the delimited text reader useless.




No tags attached.
related to 0013962closed Yumin Yuan Delimited text reader not correctly stripping spaces 
Issue History
2013-03-22 14:46Alan ScottNew Issue
2013-03-22 14:47Alan ScottDescription Updatedbug_revision_view_page.php?rev_id=571#r571
2013-03-22 14:48Alan ScottStatusbacklog => todo
2013-03-22 16:35Ken MorelandNote Added: 0030460
2013-03-22 18:54Alan ScottRelationship addedrelated to 0013962
2013-03-22 18:56Alan ScottNote Added: 0030461
2013-03-22 18:56Alan ScottStatustodo => closed
2013-03-22 18:56Alan ScottAssigned To => Alan Scott
2013-03-22 18:56Alan ScottResolutionopen => fixed

Notes
(0030460)
Ken Moreland   
2013-03-22 16:35   
Could you check the information panel data type the scalars are? When I copied your text into an editor and saved it, there was for some reason an extra space after the 7. That space is (for me) causing the scalars to be strings instead of numbers, and when you try to view strings in a data set you get odd results. If you add a space to the delimiters of the reader or you delete this space, the scalars read as integers and they can be colored correctly.

If this is the case, I suggest that there is in fact nothing wrong with the filters. Rather, there are two other problems. (1) The reader is stripping spaces off the beginning of numbers, it should also probably strip spaces off of the end. (2) The 3D view is not behaving properly when you try to view a field of strings (hence the confusion), but I'm not sure what the appropriate behavior is.
(0030461)
Alan Scott   
2013-03-22 18:56   
This bug has been superseded by 13962, which is correctly labeled as an issue with the reader. I am leaving this one linked to 13962, with Ken's excellent comments that pointed out the root cause.