You can apply the 'Generate Surface Normals' filter to your Delaunay2D output to compute normals for each point in the dataset. If you look at the output of 'Generate Surface Normals' in the Spreadsheet view, you can see the computed normal values. I'd expect each point to have the same normal, right? Using the normal, and the position of one of the points, you can define a plane. Now you can compute the distance to the plane using the paraview python console:
from paraview import vtk plane = vtk.vtkPlane() plane.SetOrigin(origin) plane.SetNormal(normal) print plane.DistanceToPlane(myPoint) Hope this helps! Pat On Sat, Nov 26, 2011 at 9:37 PM, Ian Leslie <lesl4...@vandals.uidaho.edu> wrote: > Hi All, > I would like to calculate the distance between a xyz point and a > non-uniform 2D plane within ParaView 3.12.0. The 2d plane was generated > using xyz point data and the Delaunay2D filter. The problem is that I need > the difference in z normal between the plane and the point. > > When I examine the plane from the 2D filter the xyz point information is the > same as that of the points used to make the plane. > > Is there any way make the plane have nearly continuous or at least a whole > lot more points so that there would exist a point in the plane very close to > normal above the individual point I want to measure from? > > Using the Ruler tool would work, but there are about a thousand points I > would like to measure from, so it would also be very time consuming, tedious > and potentially impossible to reproduce the same exact results. > I also have an 3D unstructured grid that could be manipulated, it has the > same topology as the 2D plane, the same xyz points went into creating it > using an outside program. > > Open to any ideas and suggestions on ways to approach the problem. > > Ian > > > > > > _______________________________________________ > 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 > > Follow this link to subscribe/unsubscribe: > http://www.paraview.org/mailman/listinfo/paraview > > _______________________________________________ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview