<div dir="ltr">I believe in this case the intent was to get the edge'th edge out of the face'th face out of the cell'th cell.<div><br><div>So in your example we get four edges out.</div><div><br></div><div>cell 0's 0'th face's 0'th edge, </div><div>cell 0's 1'st face's 1'st edge,</div><div>cell 1's 2'nd face's 0'th edge,</div><div>and</div><div>cell 1's 3'rd face's 2'nd edge.</div><div>The ordering in each case is defined by VTK.<br></div><div><br></div><div>However, in the code (specifically vtkXdmfHeavyData.cxx:1507) it looks like it does exactly as you say. </div><div>This appears to be a bug.</div><div><br></div><div>In the Xdmf3 version  we do it properly (see vtkXdmf3DataSet.cxx:2205).<br></div><div><br></div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div></div>
<br><div class="gmail_quote">On Fri, Apr 17, 2015 at 5:39 AM, Chris Richardson <span dir="ltr"><<a href="mailto:chris@bpi.cam.ac.uk" target="_blank">chris@bpi.cam.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I would like to be able to specify data, or subsets of data in the XDMF<br>
format with Edge or Facet sets.<br>
<br>
According to the header file of XdmfSet.h:<br>
<br>
XdmfSet is a Class that handles sets of nodes,cells,faces, and edges<br>
        on an XdmfGrid. They may be centered on the Node, Edge,<br>
        Face, Cell. An XdmfSet can have from 1 to 3 DataItems. The last DataItem<br>
        is always the "Ids" or the indexes into Nodes, Cells, etc. If SetType is<br>
        "Face" or "Edge", the First DataItem defines the CellIds. If SetType is<br>
        "Edge" second DataItem defines FaceIds<br>
<br>
I have two questions:<br>
<br>
1) What is the purpose of the FaceIds for a set of Edges?<br>
<br>
>From what I can tell, using ParaView, the three dataitems provide:<br>
global CellIDs, unused FaceIDs, cell-local EdgeIds<br>
<br>
e.g. in this case, the first DataItem "0 0 1 1" lists the cells,<br>
     the second DataItem "0 1 2 3" is ignored, and the third DataItem "0 1 0 2"<br>
     lists the cell-local Edges which have data attached?<br>
<br>
 <Set SetType="Edge" Name="edgeSet"><br>
          <DataItem NumberType="Int" Dimensions="4" Format="XML"><br>
              0 0 1 1<br>
          </DataItem><br>
          <DataItem NumberType="Int" Dimensions="4" Format="XML"><br>
              0 1 2 3<br>
          </DataItem><br>
          <DataItem NumberType="Int" Dimensions="4" Format="XML"><br>
              0 1 0 2<br>
          </DataItem><br>
          <Attribute Name="Set Values" Center="Edge"><br>
              <DataItem Format="XML" Dimensions="4"><br>
              100 200 400 600<br>
              </DataItem><br>
          </Attribute><br>
      </Set><br>
<br>
Is that correct?<br>
<br>
2) How can I specify an Edge set in 2D? Nothing seems to work in this case,<br>
   as ParaView complains that the cells have invalid Faces.<br>
<br>
<br>
-- <br>
Chris Richardson<br>
BP Institute<br>
Madingley Road<br>
Cambridge CB3 0EZ<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
</blockquote></div><br></div>