[vtkusers] vtkProbeFilter always returns the same
Michael Knopke
Michael.Knopke at gmx.de
Tue Feb 13 10:41:16 EST 2007
Hi community,
When using vtkProbeFilter with my dataSet (ImageData) and two different
Polygons the output dataset is exactly the same. Below is the simplified
code:
// get polydata representation of a closed spline
splineWidget->GetPolyData(splinePoly); //circle shape
// create a new polygon that fills the inside of the spline
vtkPolyData *tempPoly = ...New
tempPoly->SetPoints(splinePoly->GetPoints());
tempPoly->SetPolys(splinePoly->GetLines()); // disc shape
// now polydata consists of 1 Poly
//optional also no effect:
delauny2D->SetInput(tempPoly);
delauny2D->Update();
// now polydata consists of more the 400Polys
// I also testet other triangulation filters with no effect
probe->SetInput(tempPoly);
probe->SetSource(myDataSet);
probe->GetOutput()->GetScalarRange(ScalarRange);
ScalarRange[1] always returns the highest value found ON the originial
spline (circle shape) but does not take into account the inside of the
circle. So changing:
probe->SetInput(tempPoly);
to:
probe->SetInput(splinePoly);
yields the exact same result. I really need to probe with the complete
shape not only with the boundary. What am I doing wrong? The strange thing
is, that when adding to a mapper->actor and rendering the two polydatas
clearly show the difference (circle and disc).
Thanks.
Michael
--
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen: www.gmx.net/de/go/mailfooter/promail-out
More information about the vtkusers
mailing list