[vtkusers] New vtkPolyDataToImageStencil
david.gobbi at gmail.com
Thu Feb 21 12:01:59 EST 2008
I also did some changes to vtkImageStencilData regarding the pipeline updating
of the Spacing and Origin of the stencil. So you would have to update
A bigger change is that there are new methods called SetOutputSpacing(),
SetOutputOrigin(), and SetInformationInput() for the new
Please read the documentation for these methods, they are new.
I will do some verification on my side to make sure that extruded contours work
properly with the new code (there is still the caveat that polydata that doesn't
form a continuous, closed surface might not work).
On Thu, Feb 21, 2008 at 11:48 AM, Michael Knopke <Michael.Knopke at gmx.de> wrote:
> Hello David,
> I was eagerly testing your improved class, as I use it with good results for
> volume cropping of medical data and hoped for a nice speed improvement.
> Unfortunately I get a lot of bad results. I won't say that you class is
> faulty, chances are high that I do something wrong. All I can say for now is
> that my code worked before but when upgrading only the two files and then
> rebuilding VTK, my code produces wrong results (wrong parts are cut out or
> sometimes the shape is different). Converting back those classes solved the
> Basically what I do is: creating a polyline (user drawn) on a orthogonal
> image, building a tube like shape, reorienting the new object (same as
> Image) and then using your class to extract the inside or outside.
> If you want I'll post the code here (next week, because I've got a lot of
> work and It's a bit scattered through my app).
> Anyway, it might also be an issue of inconsistency, because I updated only
> this class and not the whole cvs. (vtk built without problems though)
> Unfortunately I can't update because of some problems with the
> borlandrenderwindow which seems to be incompatible with the latest cvs (will
> add a mantis entry).
> I use version 1.20 haven't tested with 1.21 only with 1.22 which fails. My
> CVS snapshot is from: 8/20/2007 so quite out of date.
> Michael Knopke
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> Follow this link to subscribe/unsubscribe:
More information about the vtkusers