<div dir="ltr"><div>Andy,</div><div><br></div><div>ParaView uses <span style="font-family:monospace,monospace">vtkPolyhdron</span> data-structure to store polyhedron.</div><div>As you can read <a href="https://www.vtk.org/doc/nightly/html/classvtkPolyhedron.html#details">on this page</a>, <span style="font-family:monospace,monospace">vtkPolyhdron</span> requires:</div><div><i>"The polyhedron should be watertight, non-self-intersecting and manifold (each edge is used twice)."</i></div><div><br></div><div>Clearly, your cell here is not watertight (see attached picture), so I fear you won't be able to</div><div>process it correctly with VTK based tools.</div><div><br></div><div>Best,</div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><b> Joachim Pouderoux</b><font size="2">, <font size="1">Ph.D.</font></font><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font size="1"><i>Technical Lead - Scientific Visualization Team</i></font><br><b><font size="1"><a href="http://www.kitware.fr" target="_blank">Kitware SAS</a></font></b><br></blockquote>
</div></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr">Le jeu. 7 juin 2018 à 17:36, Andrew Parker via ParaView <<a href="mailto:paraview@public.kitware.com">paraview@public.kitware.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">Hi,<div><br></div><div>I have attached two files. One is a single-cell complex polyhedron which I wish to be able to use and visualise (as is, without tessellation and tetrahedralization). Using 5.5.0 this fails to slice/cut in paraview in any major plane. Paraview complains about non-manifold (under-connected) edges. To debug I wrote out as a vtkPolyData containing all the faces of this single cell polyhedron. This polyData Slices/cuts just fine. All faces added to the vtp file as VTK_POLYGON, likewise are added as a face-stream when added as a VTK_POLYHEDRON to the vtu file. To be clear, I write the faces out to the vtp in the same loop I build the faces for the single cell vtu mesh, so they are carbon copies of the faces, including numbering, ordering etc. I am aware there are more vertices in the file than need be (27 rather than 19), but it was easier...</div><div><br></div><div>My working assumption is that there is no problem visualising and working with cells of this type (non-convex) in paraview (real use cases includes a mesh with many of these types of cells). Clarity on this point would also be good…</div><div><br></div><div>I believe paraview should work for concave cells and I suspect it’s a bug (either in paraview or my face-data) because if I use 5.4.1 (or indeed 5.2.0) I can clip the singleCell in the x-plane (with inside-out flag on/off) and I get the expected results. However, in the y and z planes I do not get the expected results and those versions either return an empty result or the whole cell. I get no results in 5.5.0 regardless of plane. Finally, I get no results in 5.5.1 either. So it sort of used to work in earlier versions depending on the plane of slicing, but now does not. </div><div><br></div><div><div>I’m not sure what I’m doing wrong, can somebody shed some light or spot an error in the attached file? This may be linked to:</div><div><br></div><div><a href="https://gitlab.kitware.com/paraview/paraview/issues/18003" target="_blank">https://gitlab.kitware.com/paraview/paraview/issues/18003</a></div></div><div><br></div><div>Thanks again,</div><div>Andy</div><div><br></div><div></div></div><div style="word-wrap:break-word;line-break:after-white-space"><div></div></div><div style="word-wrap:break-word;line-break:after-white-space"><div></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
ParaView discussion is moving! Please visit <a href="https://discourse.paraview.org/" rel="noreferrer" target="_blank">https://discourse.paraview.org/</a> for future posts.<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/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/paraview</a><br>
</blockquote></div>