Hi Neil, There is nothing that I know of in VTK or ParaView that will convert your CSV file into a vtkPolyData out of the box. You'll need to create a vtkPolyData "manually". Please see
http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadPlainTextTriangles for an example of how to do this in VTK. You can convert this example into Python and then use the script in a Python Source in ParaView. HTH, Cory On Thu, Feb 4, 2016 at 8:30 AM, Neil Srinivasan <[email protected]> wrote: > Hi I am new to Paraview > > Can you help > > I have data in a CSV spreadsheet. > > > It contains the xyz point coordinates of a 3D shape (20,000+ nodes). > > The file also contains the triangulation coordinates in 3 separate columns > for these nodes (40000 + triangulations). These create the faces of the mesh > > I can work out how to plot the points, using > > Filter—Table to points. > > > How do I plot the faces? > Do the 3 columns need to be turned into an array? > > > And how do I colour the faces or contour them by another value (called > "bi" in the spreadsheet) > > > > here is an example of the spreadsheet > > nn = node number > > the 3d coordinates of the points are x, y, z > > and the faces of the mesh are specified by (XYZ) > > I WISH TO PLOT Points (x, y, x) , draw faces (XYZ) colour by “bi" > > > > in matlab > > it would be > > > trisurf(Tri,X,Y,Z,C) > > > where Tri = array(XYX) > > X,Y,Z = (x, y, z) > > c= "bi" > > > > > > nn x y z X Y Z uni bi > 0 39.527 28.202 160.219 3435 19658 2764 3.86942 0.74871 > 1 70.804 -2.966 157.578 3161 17204 9466 6.64361 0.78373 > 2 48.982 -25.674 109.022 18424 17467 16955 5.02491 1.0451 > 3 83.514 -9.096 120.988 13600 19721 2669 4.47977 0.9348 > 4 -16.04 -39.749 188.467 1564 10099 10091 1.90873 0.73286 > 5 74.526 -3.096 174.347 21598 19018 21205 8.4263 0.70594 > 6 54.93 -56.347 151.496 21283 11341 18399 7.53334 2.17128 > 7 56.936 -20.131 186.177 1171 2723 20833 7.16118 1.44875 > 8 -14.627 -47.1 162.185 51 15729 15865 2.13939 0.70887 > 9 38.207 -59.201 147.993 9331 5851 9106 5.83457 4.32971 > 10 50.645 -32.04 110.418 310 3513 9121 5.3741 1.14543 > > > > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview > > -- Cory Quammen R&D Engineer Kitware, Inc.
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
