Hi Oliver,<br><br>when I use vtkThreshold on an vtkImageData, I get a fulfilled unstructured grid,<br>I mean, 3D grid. You can easily check this by cutting your object along a plane:<br>if the result is a 1D curve, then your object is 2D, ie a surface. In my case,<br>
when I cut a thresholded binary sphere along a plane, I get a fulfilled ellipse. It means<br>that my thresholded binary sphere is 3D (well, quickly speaking).<br><br>However, I don't know if the retained cells are only the hulls of polyhedra or the<br>
polyhedra themselves. It could be your question, but I don't have the answer !<br><br>Best regards,<br>Jerome<br><br><br><div class="gmail_quote">2010/3/22 Oliver Rudolph <span dir="ltr"><<a href="mailto:oliver.rudolph@iisb.fraunhofer.de">oliver.rudolph@iisb.fraunhofer.de</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Jérôme,<br>
<br>
okay, from what I've read about vtkThreshold (did not try it yet), this<br>
would give me an unstructured grid but with the surface cells only, right?<br>
<br>
But what I would really need (as posted a couple of minutes earlier) is<br>
the surface filled with tetrahedra...<br>
<br>
Yours,<br>
Oliver<br>
<div class="im"><br>
<br>
<br>
Jérôme wrote:<br>
> Hi,<br>
> I feel surprised about the conversion from PolyData to UnstructuredGrid<br>
> posts: I didn't see them!<br>
><br>
> I have a quite fast solution, I don't know it is suitable for you:<br>
> just pass your polydata in a vtkThreshold, with thresholds being set<br>
> to actual min and max values of any of your data array. If you don't<br>
> have any array, just add a vtkGenerateIndexArray before the threshold<br>
><br>
> note: you can easily check this pipeline with paraview:<br>
> Sphere Source -> Generate Point Ids -> Threshold<br>
><br>
> HTH<br>
> Jerome<br>
><br>
> 2010/3/19 Oliver Rudolph <<a href="mailto:oliver.rudolph@iisb.fraunhofer.de">oliver.rudolph@iisb.fraunhofer.de</a><br>
</div>> <mailto:<a href="mailto:oliver.rudolph@iisb.fraunhofer.de">oliver.rudolph@iisb.fraunhofer.de</a>>><br>
<div class="im">><br>
> Hi folks!<br>
><br>
> There had been several postings on conversion from vtkPolyData to<br>
> vtkUnstructuredGrid in the past with no really accessible solutions<br>
> except the global statement "write a filter on your own".<br>
><br>
> Now, I was confronted with doing quite the same conversion and found a<br>
> rather quick solution doing some 3D delaunization. Although this is not<br>
> yet stable in all situations there are, "normal" input as I had been<br>
> confronted with up to know, worked well.<br>
><br>
> Maybe you have suggestions for improvement or other approaches to this<br>
> problem. So far, please find attached the source files, maybe you'll<br>
> want to add them to the vtk codebase (which would make me a little<br>
> proud :)<br>
><br>
><br>
> Best regards,<br>
> Oliver<br>
><br>
> _______________________________________________<br>
</div>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> <<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>><br>
<div><div></div><div class="h5">><br>
> Visit other Kitware open-source projects at<br>
> <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 VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
><br>
</div></div></blockquote></div><br>