I would go so far as to say that there probably is no easy way to find 
consistent ordering of topology. In fact, I suspect that this is an NP-hard 
problem. (General graph isomorphism certainly is.) 

I would first pursue other resampling methods. You could apply the cell centers 
filter to the grid with cell data. That gives you a cloud of points at the 
center of each cell. The distinction between cell and point data is now in name 
only. Then, resample the point data grid with the cell centers. That will give 
you the point data interpolated to the cell centers.

-Ken

Sent from my iPad so blame autocorrect.

On May 29, 2012, at 4:54 AM, "Utkarsh Ayachit" <[email protected]> 
wrote:

> I don't think such a filter exists in ParaView. You'll have to write a
> custom filter or a Python programmable filter to convert one of the
> datasets to the same point/cell order as the other.
> 
> Utkarsh
> On Tue, May 29, 2012 at 5:15 AM, Felipe Bordeu
> <[email protected]> wrote:
>> Hi,
>> 
>> One of my student is validating his code, and we want to compare the results
>> (point data, cell data).
>> We have two result: one from a commercial code, and the other from our code.
>> 
>> The dicretisation are the same: same number of node, same number of element.
>> But the order of the node and element in the files are not the same, so we
>> cant use append attributes.
>> 
>> For for the point data we use re-sample with dataset. But the problem is
>> than the celldata is automatically converted to point data (I know there is
>> no definition of  re-sample with dataset with cells in the source).
>> 
>> So my question is "Is there an easy way of sorting the point and cells so
>> they have the same order for the two datasets so I can use append
>> attributes?"
>> 
>> A sort of "clean to grid" that also apply a unique order to the point and
>> cells.
>> 
>> Thanks,
>> 
>> --
>> 
>> Felipe Bordeu Weldt
>> Ingénieur de Recherche
>> -------------------------------------
>> Tél. : 33 (0)2 40 37 16 57
>> Fax. : 33 (0)2 40 74 74 06
>> [email protected]
>> Institut GeM - UMR CNRS 6183
>> École Centrale Nantes
>> 1 Rue de La Noë, 44321 Nantes, FRANCE
>> -------------------------------------
>> 
>> _______________________________________________
>> 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
> 

_______________________________________________
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

Reply via email to