If you are fortunate your input data sets will have ID's that you can use to establish the correspondance between the two. Using the ID's to find and compare like cells/points would result in a much faster algorithm than would recovering the correspondance manually as Paul suggests.
David E DeMarle Kitware, Inc. R&D Engineer 28 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-371-3971 x109 On Mon, Oct 5, 2009 at 3:17 AM, Paul Edwards <[email protected]>wrote: > Hi Bastil, > > I did something similar where I was calculating the wall distance for a > volume. You can create a filter that takes two inputs. First build a > vtkCellLocator with one input. Then iterator over the points in the other > input and use the FindClosestPoint method. > > Note: this is quite slow. > > Regards, > Paul > > > 2009/10/4 [email protected] <[email protected]> > > True. However, I have no 1:1 correspondance since geometries have >> certain areas where they differ. I guess I need some kind of octree >> tocalculate distance.... >> >> Regards BastiL >> >> [email protected] schrieb: >> > Assuming the topology is the same and a 1:1 correspondance between the >> two, it would be very easy to do with the python programmable filter. >> > >> > Script would: >> > get hold of both input data sets >> > copy either to the output data set >> > make a new point associated double array and add it to the output >> > make the array 3 components wide >> > iterate over points >> > store del x,y,z in output array >> > >> > See the paraview wiki for examples that get0you 90% of the way there. >> > -----Original Message----- >> > >> > From: BastiL2001 <[email protected]> >> > Subj: Re: [Paraview] Distance visualisation >> > Date: Sun Oct 4, 2009 9:12 am >> > Size: 1K >> > To: Berk Geveci <[email protected]> >> > cc: [email protected] >> > >> > Ok it is lets say the "normal distance" between the elements. These two >> meshes represents two geometries which are very simular and I simply want to >> visualise where and how much the geometries differ.... >> > >> > Regards. >> > >> > >> > >> > >> > How do you define distance? >> > >> > On Sun, Oct 4, 2009 at 9:04 AM, BastiL2001 <[email protected]> wrote: >> > >> >> Dear all, >> >> >> >> I am currently looking for a way to visualise the distance between two >> unstructured 2D-grids. This means I would need a scalar field with the >> distance between the two grids which I want to visualise as a contour of one >> of the two grids. >> >> Is there a way in Paraview to create this "distance" scalar field? >> Thanks. >> >> >> >> BastiL >> >> >> >> >> >> __________________________________________________ >> >> Do You Yahoo!? >> >> Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden >> Schutz gegen Massenmails. >> >> http://mail.yahoo.com >> >> _______________________________________________ >> >> 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 >> > >> > --- message truncated --- >> > >> > >> > >> >> _______________________________________________ >> 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
