<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
<div>Thank you Ken, that was exactly the reply I was hoping for. I used the extraction tool to remove the unwanted cells, but I will also investigate the first two steps too.</div>
<div><br>
</div>
<div>Many thanks,</div>
<div><br>
</div>
<div>Neil<br>
<br>
<div><span style="background-color: rgba(255, 255, 255, 0);">Dr Neil Ashton MEng (hons), PhD CEng MIMechE</span></div>
<div><span style="background-color: rgba(255, 255, 255, 0);"><br>
</span></div>
<div><span style="background-color: rgba(255, 255, 255, 0);">Research Engineer</span></div>
<div><span style="background-color: rgba(255, 255, 255, 0);"><br>
</span></div>
<div><span style="background-color: rgba(255, 255, 255, 0);">Computational Fluid Dynamics Group</span></div>
<div><span style="background-color: rgba(255, 255, 255, 0);">School of Mechanical, Aerospace and Civil Engineering&nbsp;</span></div>
<div><span style="background-color: rgba(255, 255, 255, 0);">University of Manchester</span></div>
<div><span style="background-color: rgba(255, 255, 255, 0);">Manchester</span></div>
<div><span style="background-color: rgba(255, 255, 255, 0);">M60 1QD</span></div>
<div><span style="background-color: rgba(255, 255, 255, 0);">UK</span></div>
</div>
<div><br>
On 6 Nov 2013, at 16:09, &quot;Moreland, Kenneth&quot; &lt;<a href="mailto:kmorel@sandia.gov">kmorel@sandia.gov</a>&gt; wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div>
<div>
<div>The problem you have is that you have no way to define what the outer boundaries of the shape are. As a human looking at the shape, I can reasonably guess that the space in the middle bottom of the data is supposed to be empty. But even then I'm not totally
 sure where the boundary is. I don't think there is any reasonable way a filter can predict where there is or isn't supposed to be data. The Delaunay filter makes the reasonable (but often wrong) assumption that mesh should cover the convex hull. However, the
 convex hull is conservative in that the result will always cover the space that should be covered plus some extra. So perhaps the easiest thing to do is remove the extra. I can think of three possible ways to do this.</div>
</div>
</div>
<div><br>
</div>
<div>First, you mentioned that you have a CFD solver. I presume that means you have a proper mesh for the CFD solver. Bring in that mesh and then run the Resample With Dataset filter with the results of the Delaunay2D as the Input and the CFD mesh as the Source.
 This will give you the CFD grid with the experimental values interpolated on the points.</div>
<div><br>
</div>
<div>The second thing you could try is to remove &quot;bad&quot; triangles. In you image I notice that most if not all of the polygons in the &quot;empty space&quot; region are either unusually large or unusually thin. You can use the Mesh Quality filter to get the area and aspect
 ratio of the triangles and then use the threshold filter to remove the triangles that are unusually large or thin.</div>
<div><br>
</div>
<div>The third thing you could try is to simply use the extract selection filter to get the cells you want. Use the &quot;Select Cells On&quot; tool to select the empty region of the data, then invert the selection, then run the Extract Selection filter.</div>
<div><br>
</div>
<div>I hope that helps.</div>
<div><br>
</div>
<div>-Ken</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Neil Ashton &lt;<a href="mailto:neil.ashton@manchester.ac.uk">neil.ashton@manchester.ac.uk</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Wednesday, November 6, 2013 7:24 AM<br>
<span style="font-weight:bold">To: </span>&quot;<a href="mailto:paraview@paraview.org">paraview@paraview.org</a>&quot; &lt;<a href="mailto:paraview@paraview.org">paraview@paraview.org</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>[EXTERNAL] [Paraview] Delaunay 2D question<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi all,
<div><br>
</div>
<div>I have a query regarding the optimal way of visualising some point data from an experiment &amp; CFD.</div>
<div><br>
</div>
<div>I have several 2D PIV windows from an experiment which have between 100 and 800 points arranged at several x and y locations. In order to compare these against CFD simulations I output the data from the same points in the CFD solver.</div>
<div><br>
</div>
<div>To visualise them I currently use the CSV reader, table to points, and then the Delaunay2D filters to turn this data into 2D slices.&nbsp;</div>
<div><br>
</div>
<div>The problem I have is when I have a gap in the data i.e the shape is not a square but has an empty bit in the middle. The Delaunay 2D filter triangulates all the data and it therefore doesn't constrain to the boundaries of the data.</div>
<div><br>
</div>
<div>I have attached three files which hopefully illustrate my problem.</div>
<div><br>
</div>
<div>I wanted to ask if there is a way to constrain the Delaunay2D filter or use an alternative method to ensure that the shape of the PIV/data window is preserved. I'm sure this type of thing is done fairly regularly but I couldn't figure out how to do this
 in Paraview.</div>
<div><br>
</div>
<div>Many thanks,</div>
<div><br>
</div>
<div>Neil</div>
<div><br>
</div>
<div>&lt;ahmed-surface.png&gt;&lt;ahmed-points.png&gt;&lt;ahmed-wireframe.png&gt;</div>
<div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>
<div style="font-family: Verdana; ">Dr Neil Ashton MEng (hons), PhD CEng MIMechE</div>
<div><br>
</div>
<div style="font-family: Verdana; ">Research Engineer</div>
<div style="font-family: Verdana; "><br>
</div>
<div style="font-family: Verdana; ">Computational Fluid Dynamics Group</div>
<div style="font-family: Verdana; ">School of Mechanical, Aerospace and Civil Engineering&nbsp;</div>
<div style="font-family: Verdana; ">University of Manchester</div>
<div style="font-family: Verdana; ">Manchester</div>
<div style="font-family: Verdana; ">M60 1QD</div>
<div style="font-family: Verdana; ">UK</div>
<div style="font-family: Verdana; "><br>
</div>
</div>
<div><br>
</div>
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br>
</div>
</div>
</span></div>
</blockquote>
<blockquote type="cite">
<div>&lt;ahmed-surface.png&gt;</div>
</blockquote>
<blockquote type="cite">
<div>&lt;ahmed-points.png&gt;</div>
</blockquote>
<blockquote type="cite">
<div>&lt;ahmed-wireframe.png&gt;</div>
</blockquote>
</body>
</html>