<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<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 "bad" triangles. In you image I notice that most if not all of the polygons in the "empty space" 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 "Select Cells On" 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 <<a href="mailto:neil.ashton@manchester.ac.uk">neil.ashton@manchester.ac.uk</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, November 6, 2013 7:24 AM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:paraview@paraview.org">paraview@paraview.org</a>" <<a href="mailto:paraview@paraview.org">paraview@paraview.org</a>><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 & 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. </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><img height="349" width="591" apple-width="yes" apple-height="yes" id="e1d7a275-0408-4c43-96db-f5a014741afd" src="cid:3D9195D7-F2E8-491F-9DF8-01FCD09C213C@telpol.net.pl"><img height="486" width="851" apple-width="yes" apple-height="yes" id="a496cceb-c351-4447-b4d1-5bd11e768fef" src="cid:D1DE831F-C375-42C8-A89B-DC7256042F36@telpol.net.pl"><img height="296" width="492" apple-width="yes" apple-height="yes" id="c0e06954-8fa4-4c4c-bc73-e665d6fac8c3" src="cid:5E61420C-D394-4582-8178-5C4D62B1F8E5@telpol.net.pl"></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 </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>
</body>
</html>