<div dir="ltr">Hi Neil,<div><br></div><div>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</div><div><br></div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadPlainTextTriangles">http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadPlainTextTriangles</a><br></div><div><br></div><div>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.</div><div><br></div><div>HTH,</div><div>Cory</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 4, 2016 at 8:30 AM, Neil Srinivasan <span dir="ltr"><<a href="mailto:neilsrini@gmail.com" target="_blank">neilsrini@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 style="word-wrap:break-word">Hi I am new to Paraview<div><br></div><div>Can you help<br><div><div style="word-wrap:break-word"><div><br></div><div>I have data in a CSV spreadsheet. </div><div><br></div><div><br></div><div>It contains the xyz point coordinates of a 3D shape (20,000+ nodes). </div><div><br></div><div>The file also contains the triangulation coordinates in 3 separate columns for these nodes (40000 + triangulations). These create the faces of the mesh</div><div><br></div><div>I can work out how to plot the points, using </div><div><br></div><div>Filter—Table to points. </div><div><br></div><div><br></div><div>How do I plot the faces?</div></div>Do the 3 columns need to be turned into an array?</div><div><br></div><div><br></div><div>And how do I colour the faces or contour them by another value (called "bi" in the spreadsheet)</div><div><br></div><div><br></div><div><br></div><div>here is an example of the spreadsheet</div><div><br></div><div>nn = node number</div><div><br></div><div>the 3d coordinates of the points are x, y, z</div><div><br></div><div>and the faces of the mesh are specified by (XYZ)</div><div><br></div><div>I WISH TO PLOT Points (x, y, x) , draw faces (XYZ) colour by “bi"</div><div><br></div><div><br></div><div><br></div><div>in matlab</div><div><br></div><div>it would be</div><div><br></div><div><br></div><div><span style="color:rgb(64,64,64);font-family:'DejaVu Sans Mono','Bitstream Vera Sans Mono',Menlo,Monaco,Consolas,'Courier New',monospace;white-space:nowrap;background-color:rgb(255,255,255)">trisurf(Tri,X,Y,Z,C) </span></div><div><span style="color:rgb(64,64,64);font-family:'DejaVu Sans Mono','Bitstream Vera Sans Mono',Menlo,Monaco,Consolas,'Courier New',monospace;white-space:nowrap;background-color:rgb(255,255,255)"><br></span></div><div><span style="color:rgb(64,64,64);font-family:'DejaVu Sans Mono','Bitstream Vera Sans Mono',Menlo,Monaco,Consolas,'Courier New',monospace;white-space:nowrap;background-color:rgb(255,255,255)"><br></span></div><div><span style="color:rgb(64,64,64);font-family:'DejaVu Sans Mono','Bitstream Vera Sans Mono',Menlo,Monaco,Consolas,'Courier New',monospace;white-space:nowrap;background-color:rgb(255,255,255)">where Tri = array(XYX)</span></div><div><span style="color:rgb(64,64,64);font-family:'DejaVu Sans Mono','Bitstream Vera Sans Mono',Menlo,Monaco,Consolas,'Courier New',monospace;white-space:nowrap;background-color:rgb(255,255,255)"><br></span></div><div><span style="color:rgb(64,64,64);font-family:'DejaVu Sans Mono','Bitstream Vera Sans Mono',Menlo,Monaco,Consolas,'Courier New',monospace;white-space:nowrap;background-color:rgb(255,255,255)">X,Y,Z = (x, y, z)</span></div><div><span style="color:rgb(64,64,64);font-family:'DejaVu Sans Mono','Bitstream Vera Sans Mono',Menlo,Monaco,Consolas,'Courier New',monospace;white-space:nowrap;background-color:rgb(255,255,255)"><br></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#404040" face="DejaVu Sans Mono, Bitstream Vera Sans Mono, Menlo, Monaco, Consolas, Courier New, monospace"><span style="white-space:nowrap">c= "bi"</span></font></span></div><div><span style="color:rgb(64,64,64);font-family:'DejaVu Sans Mono','Bitstream Vera Sans Mono',Menlo,Monaco,Consolas,'Courier New',monospace;white-space:nowrap;background-color:rgb(255,255,255)"><br></span></div><div><span style="color:rgb(64,64,64);font-family:'DejaVu Sans Mono','Bitstream Vera Sans Mono',Menlo,Monaco,Consolas,'Courier New',monospace;white-space:nowrap;background-color:rgb(255,255,255)"><br></span></div><div><span style="color:rgb(64,64,64);font-family:'DejaVu Sans Mono','Bitstream Vera Sans Mono',Menlo,Monaco,Consolas,'Courier New',monospace;white-space:nowrap;background-color:rgb(255,255,255)"><br></span></div><div><br></div><div><br><table border="0" cellpadding="0" cellspacing="0" width="585" style="border-collapse:collapse;width:585pt"><colgroup><col width="65" span="9" style="width:65pt"></colgroup><tbody><tr height="15" style="height:15pt"><td height="15" width="65" style="height:15pt;width:65pt">nn</td><td width="65" style="width:65pt">x</td><td width="65" style="width:65pt">y</td><td width="65" style="width:65pt">z</td><td width="65" style="width:65pt">X</td><td width="65" style="width:65pt">Y</td><td width="65" style="width:65pt">Z</td><td width="65" style="width:65pt">uni</td><td width="65" style="width:65pt">bi</td></tr><tr height="15" style="height:15pt"><td height="15" align="right" style="height:15pt">0</td><td align="right">39.527</td><td align="right">28.202</td><td align="right">160.219</td><td align="right">3435</td><td align="right">19658</td><td align="right">2764</td><td align="right">3.86942</td><td align="right">0.74871</td></tr><tr height="15" style="height:15pt"><td height="15" align="right" style="height:15pt">1</td><td align="right">70.804</td><td align="right">-2.966</td><td align="right">157.578</td><td align="right">3161</td><td align="right">17204</td><td align="right">9466</td><td align="right">6.64361</td><td align="right">0.78373</td></tr><tr height="15" style="height:15pt"><td height="15" align="right" style="height:15pt">2</td><td align="right">48.982</td><td align="right">-25.674</td><td align="right">109.022</td><td align="right">18424</td><td align="right">17467</td><td align="right">16955</td><td align="right">5.02491</td><td align="right">1.0451</td></tr><tr height="15" style="height:15pt"><td height="15" align="right" style="height:15pt">3</td><td align="right">83.514</td><td align="right">-9.096</td><td align="right">120.988</td><td align="right">13600</td><td align="right">19721</td><td align="right">2669</td><td align="right">4.47977</td><td align="right">0.9348</td></tr><tr height="15" style="height:15pt"><td height="15" align="right" style="height:15pt">4</td><td align="right">-16.04</td><td align="right">-39.749</td><td align="right">188.467</td><td align="right">1564</td><td align="right">10099</td><td align="right">10091</td><td align="right">1.90873</td><td align="right">0.73286</td></tr><tr height="15" style="height:15pt"><td height="15" align="right" style="height:15pt">5</td><td align="right">74.526</td><td align="right">-3.096</td><td align="right">174.347</td><td align="right">21598</td><td align="right">19018</td><td align="right">21205</td><td align="right">8.4263</td><td align="right">0.70594</td></tr><tr height="15" style="height:15pt"><td height="15" align="right" style="height:15pt">6</td><td align="right">54.93</td><td align="right">-56.347</td><td align="right">151.496</td><td align="right">21283</td><td align="right">11341</td><td align="right">18399</td><td align="right">7.53334</td><td align="right">2.17128</td></tr><tr height="15" style="height:15pt"><td height="15" align="right" style="height:15pt">7</td><td align="right">56.936</td><td align="right">-20.131</td><td align="right">186.177</td><td align="right">1171</td><td align="right">2723</td><td align="right">20833</td><td align="right">7.16118</td><td align="right">1.44875</td></tr><tr height="15" style="height:15pt"><td height="15" align="right" style="height:15pt">8</td><td align="right">-14.627</td><td align="right">-47.1</td><td align="right">162.185</td><td align="right">51</td><td align="right">15729</td><td align="right">15865</td><td align="right">2.13939</td><td align="right">0.70887</td></tr><tr height="15" style="height:15pt"><td height="15" align="right" style="height:15pt">9</td><td align="right">38.207</td><td align="right">-59.201</td><td align="right">147.993</td><td align="right">9331</td><td align="right">5851</td><td align="right">9106</td><td align="right">5.83457</td><td align="right">4.32971</td></tr><tr height="15" style="height:15pt"><td height="15" align="right" style="height:15pt">10</td><td align="right">50.645</td><td align="right">-32.04</td><td align="right">110.418</td><td align="right">310</td><td align="right">3513</td><td align="right">9121</td><td align="right">5.3741</td><td align="right">1.14543</td></tr><tr height="15" style="height:15pt"></tr></tbody></table></div></div><div><br></div><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div><br></div></div><br><br>
</div>
<br></div><br>_______________________________________________<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/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>