<br><br><div class="gmail_quote">On 13 May 2010 00:10, David Doria <span dir="ltr"><<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@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 class="im">> Hi again<br>
> I thought this was working but it turns out not to be.<br>
> I've tried several ways to do this but no success. I would have thought that<br>
> vtkStructuredPointsToUnstructuredGrid would work but for some reason, I<br>
> keep getting compilation errors whenever I try to instantiate this.<br>
> I'd appreciate if someone could show me how to accomplish this.<br>
> Thanks<br>
> Theodore<br>
<br>
</div>vtkStructuredPointsToUnstructuredGrid is an abstract class, so you<br>
can't instantiate it. I don't see any derived classes, so it looks<br>
like this is just supposed to be for the user to subclass and write<br>
their own algorithm that takes a structuredpoints and produces an<br>
unstructuredgrid.<br>
<br>
I think this is what you want though:<br>
<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/StructuredPoints/StructuredPointsToUnstructuredGrid" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/StructuredPoints/StructuredPointsToUnstructuredGrid</a><br>
<br>
There is no reason this should be so hard/not built in...<br>
<br>
Thanks,<br>
<font color="#888888"><br>
David<br>
</font></blockquote></div><br><div><br></div><div>Hi David</div><div><br></div><div>Thanks for this. I wrote some code along these lines earlier but when I opened it in Paraview, I get, </div><div>"Cannot volume render since no point (or cell) data is available." So, I assumed it was not correctly converted. </div>
<div><br></div><div>I also get the same result/error message with the code at the above link you sent.</div><div><br></div><div>This is why I'm tearing my hair out. I'd be very grateful if a solution can be found.</div>
<div><br></div><div>Theodore</div>