Hi,<br><br>Error scalars are generated in a data array that you will find in output->GetPointData()->GetScalars(). Reading the code of vtkWindowedSincPolyDataFilter.cxx taught me that:<br> if ( this->GenerateErrorScalars )<br>
{<br> vtkFloatArray *newScalars = vtkFloatArray::New();<br> newScalars->SetNumberOfTuples(numPts);<br> for (i=0; i<numPts; i++)<br> {<br> inPts->GetPoint(i,x1);<br> newPts[zero]->GetPoint(i,x2);<br>
newScalars->SetComponent(i,0,<br> sqrt(vtkMath::Distance2BetweenPoints(x1,x2)));<br> }<br> int idx = output->GetPointData()->AddArray(newScalars);<br> output->GetPointData()->SetActiveAttribute(idx, vtkDataSetAttributes::SCALARS);<br>
newScalars->Delete();<br> }<br><br>It means that a scalar array containing the error is added to the output. As name is not specified, a default name should be created. Just look at the existing PointData arrays, I am quite sure you will find what you are looking for.<br>
<br>For the visualization purpose, you have to "color by scalars". I think that the elevation filter example is doing exactly that: colouring a surface by scalar data.<br><br>HTH<br><br>Jerome<br><br><br><div class="gmail_quote">
2009/12/19 <span dir="ltr"><<a href="mailto:lynx.abraxas@freenet.de">lynx.abraxas@freenet.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;">
Hello!<br>
<br>
<br>
In the class reference of the windowed sinc filter I found the hint to<br>
GenerateErrorScalarsOn. I now wonder where do I find these error scalars then?<br>
Are they the lenght of the displacement vector?<br>
How would they be used to colour the smoothed mesh according to the strenght<br>
of the change?<br>
<br>
Many thanks for any help or hints.<br>
Lynx<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <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: <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>
</blockquote></div><br>