<div dir="ltr">Filters->Programmable Filter<div><br></div><div>Copy and paste the text into the Script entry field then hit Apply.</div><div><br></div><div>vtkSurfaceReconstruction doesn't have the concave shape limitation that Delaunay has - but it isn't a perfect mesh of the surface either. Perhaps the vtk or paraview mailing lists contain a better alternative to either.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div></div>
<br><div class="gmail_quote">On Mon, Jan 26, 2015 at 10:14 AM, Mark Belan <span dir="ltr"><<a href="mailto:belanma@mcmaster.ca" target="_blank">belanma@mcmaster.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi David,<br><br>Thanks for your suggestion. I was able to successfully render my points in a .csv file into specific points on the model (thanks Alan!), but I'm not sure how to go about the next steps into turning the points into a mesh and thus interpolating.<br><br>Where can I input these python commands in paraview? I'm afraid my skills in programming are minimal.<br><br>Thanks for your help,<br><br>- Mark</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 23, 2015 at 4:24 PM, David E DeMarle <span dir="ltr"><<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">After you<div><br></div><div>1) get the list of points and values in the csv file:<div>x,y,z,val1,val2,…</div><div>2) read into paraview and converted from a table to a vtkpointset as Alan suggested</div><div>3) try the vtkSurfaceReconstruction filter to convert it into a mesh.</div><div>That isn't exposed in ParaView (maybe not parallel aware) so use this python programmable filter to do use it:</div></div><div>
<pre style="margin-top:12px;margin-bottom:0px"><span style="font-family:'Courier New,courier';font-weight:600;color:rgb(0,128,0)">import</span><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';font-weight:600;color:rgb(0,0,255)">vtk</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier'">pdi </span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">=</span><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';color:rgb(0,128,0)">self</span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">.</span><span style="font-family:'Courier New,courier'">GetPolyDataInput()</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px;font-family:'Courier New,courier'">subf1 <span style="color:rgb(102,102,102)">=</span> vtk<span style="color:rgb(102,102,102)">.</span>vtkSurfaceReconstructionFilter()<br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier'">subf1</span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">.</span><span style="font-family:'Courier New,courier'">SetInputData(pdi)</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;font-family:'Courier New,courier'">subf2 <span style="color:rgb(102,102,102)">=</span> vtk<span style="color:rgb(102,102,102)">.</span>vtkContourFilter()<br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier'">subf2</span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">.</span><span style="font-family:'Courier New,courier'">SetInputConnection(subf1</span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">.</span><span style="font-family:'Courier New,courier'">GetOutputPort())</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier'">subf2</span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">.</span><span style="font-family:'Courier New,courier'">SetValue(</span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">0</span><span style="font-family:'Courier New,courier'">, </span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">0.0</span><span style="font-family:'Courier New,courier'">)</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier'">subf2</span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">.</span><span style="font-family:'Courier New,courier'">Update()</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;font-family:'Courier New,courier'"><br></pre><pre style="margin-top:0px;margin-bottom:0px;font-family:'Courier New,courier'"><pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier'">pdo </span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">=</span><span style="font-family:'Courier New,courier'">  </span><span style="font-family:'Courier New,courier';color:rgb(0,128,0)">self</span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">.</span><span style="font-family:'Courier New,courier'">GetPolyDataOutput()</span></pre><div>pdo<span style="color:rgb(102,102,102)">.</span>ShallowCopy(subf2<span style="color:rgb(102,102,102)">.</span>GetOutput())<br></div><div><br></div><div>ParaView will then happily interpolate values across the faces of the mesh</div></pre></div><div><br></div><div class="gmail_extra"><br clear="all"><div><div>David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a></div></div>
<br><div class="gmail_quote"><div><div>On Fri, Jan 23, 2015 at 3:51 PM, Scott, W Alan <span dir="ltr"><<a href="mailto:wascott@sandia.gov" target="_blank">wascott@sandia.gov</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Mark,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I don’t know the answer to your question, but a few years ago I wrote a wiki page on converting .csv file data into points and structured grids.  The write-up
 is here:  <a href="http://www.paraview.org/Wiki/Data_formats" target="_blank">http://www.paraview.org/Wiki/Data_formats</a>.  Hope that helps.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Alan<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> ParaView [mailto:<a href="mailto:paraview-bounces@paraview.org" target="_blank">paraview-bounces@paraview.org</a>]
<b>On Behalf Of </b>Mark Belan<br>
<b>Sent:</b> Thursday, January 22, 2015 9:50 AM<br>
<b>To:</b> <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
<b>Subject:</b> [EXTERNAL] [Paraview] Plotting data to an existing model's surface<u></u><u></u></span></p><div><div>
<p class="MsoNormal" style="margin-left:.5in"><u></u> <u></u></p>
<div>
<p class="MsoNormal" style="margin-left:.5in">Hello all,<br>
<br>
I'm a graduate student in geology trying to do some visual data work, but I'm afraid my inexperience with paraview is making things a bit difficult for me.<br>
<br>
Essentially what I'm trying to create is a 3D model of a rock that has its surface coloured to show spatial distribution of a physical property associated with certain areas on the rock.<br>
<br>
I was able to reproduce the rock I sample from using a 3D scanner but I have no idea how to go about selecting particular areas of the rock's surface, assigning a value to that "area", and having the program interpolate between multiple "areas". Essentially
 I'd like this to produce a color gradient showcasing the changing values.<br>
<br>
Can anyone offer some guidance/direction? I had someone at my campus suggest creating a .csv file with x,y,z coordinates of the particular areas of the model of interest, but after doing that all I've produced are "points"...not sure how to specify the association
 to the model and color and interpolation, etc.<br>
<br>
Thanks for any help,<br>
<br>
- Mark<br>
-- <u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><b>Mark Belan</b>,<b> </b>B. Art Sc.<br>
<i>M. Sc. Candidate - Astrobiology</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><i>Lewis and Ruth Sherman Graduate Fellow</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">McMaster University<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">School of Geography and Earth Sciences<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">GSB 323<br>
1280 Main Street West<br>
<span style="font-family:"Arial","sans-serif"">Hamilton, Ontario<br>
Canada<br>
L8S 4L8<br>
</span><br>
<b>Art</b>: <a href="http://www.markbelan.com" target="_blank">www.markbelan.com</a><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div></div></div>
</div>

<br></div></div>_______________________________________________<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/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" 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" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><b>Mark Belan</b>,<b> </b>B. Art Sc.<br><i>M. Sc. Candidate - Astrobiology</i></div><div><i>Lewis and Ruth Sherman Graduate Fellow</i></div><div>McMaster University</div>
<div>School of Geography and Earth Sciences</div><div>GSB 323<br>1280 Main Street West<br><span style="font-family:arial;font-size:small">Hamilton, Ontario</span><br style="font-family:arial;font-size:small"><span style="font-family:arial;font-size:small">Canada</span><br style="font-family:arial;font-size:small"><span style="font-family:arial;font-size:small">L8S 4L8<br></span><br><b>Art</b>: <a href="http://www.markbelan.com" target="_blank">www.markbelan.com</a></div></div></div>
</div>
</div></div></blockquote></div><br></div>