<div dir="ltr"><div><div><div><div><div>Hi Nico,<br><br></div>Unfortunately, #3 is wrong (even though it's in some of the VTK publications) and the only way to really determine that is by looking at the wedge cell. I believe that it renders properly because the cell faces are still the same, just the normals are wrong. Doing analytical operations may or may not be incorrect (e.g. Jacobian is negative for #3 as you noticed but maybe slicing may be correct).<br><br></div>In my opinion this is an inconsistency with the cell specification since every other 3D cell type has ordering such that the normal will point outward from the cell when using the right-hand rule to determine normals. <br><br></div>As a side note on this, you can see nearly all cell types (not polygons or polyhedra) using the vtkCellTypeSource (VTK) or the Unstructured Cell Types source (PV). See <a href="https://blog.kitware.com/new-vtk-source-for-generating-different-cell-types/">https://blog.kitware.com/new-vtk-source-for-generating-different-cell-types/</a> for more details.<br><br></div>Cheers,<br></div>Andy<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 19, 2018 at 3:53 AM, Nico Schlömer <span dir="ltr"><<a href="mailto:nico.schloemer@gmail.com" target="_blank">nico.schloemer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi everyone,<div><br></div><div>Recently, a meshio user came up with an interesting problem in wedge node ordering when reading VTK files. The VTK specification [2] lists this [3] ordering, but a file in the wild had that [4]. They look almost identical at first sight, and in fact they both list wo triangles, where the `k`th node of the first is connected to the `k`th node of the second. In the ordering in the specification, however, the second triangle normal points towards the first triangle, while in the the other, the first triangle normal points towards the second triangle.</div><div><br></div><div>ParaView will happily display both variants, but I'm wondering if the second case if formally covered by the specification.</div><div><br></div><div>(The issue was discovered when doing FEM computations where the second variant led to negative Jacobians.)</div><div><br></div><div>Cheers,</div><div>Nico</div><div><br></div><div>[1] <a href="https://github.com/nschloe/meshio/issues/185" target="_blank">https://github.com/<wbr>nschloe/meshio/issues/185</a></div><div>[2] <a href="https://www.vtk.org/wp-content/uploads/2015/04/file-formats.pdf" target="_blank">https://www.vtk.org/wp-<wbr>content/uploads/2015/04/file-<wbr>formats.pdf</a></div><div>[3] <a href="https://user-images.githubusercontent.com/9031253/35021239-dbb37d7a-fae4-11e7-8534-167726495bd8.png" target="_blank">https://user-images.<wbr>githubusercontent.com/9031253/<wbr>35021239-dbb37d7a-fae4-11e7-<wbr>8534-167726495bd8.png</a></div><div>[4] <a href="https://user-images.githubusercontent.com/181628/35061681-40a8ee76-fbc2-11e7-9fe3-caeff268738a.png" target="_blank">https://user-images.<wbr>githubusercontent.com/181628/<wbr>35061681-40a8ee76-fbc2-11e7-<wbr>9fe3-caeff268738a.png</a></div></div>
<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/<wbr>listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>