[Paraview] On more filter optional parameters setup

Jia Fucang jiafucang at gmail.com
Fri Nov 7 02:31:52 EST 2008


Hi, everyone,

I often use Paraview for visualization of medical object geometry models
and do some filtering. But I noticed that Paraview does not offer many
parameters setup by user, like VTK filters. For example,
SmoothPolyDataFilter,
it can be used like
    vtkSmoothPolyDataFilter *smoother = vtkSmoothPolyDataFilter::New();
    smoother->SetInput(surface->GetOutput());

    smoother->SetRelaxationFactor(0.1);
    smoother->SetFeatureAngle(60);
    smoother->FeatureEdgeSmoothingOff();
    smoother->BoundarySmoothingOff();

    smoother->SetNumberOfIterations(50);
    smoother->SetConvergence(0);

Paraview 3.4.0 only display "Number of Iterations" and "Convergence" for
user to setup. This often does not provide good effect like the C++ one.

Another example is
vtkDecimatePro *decimate = vtkDecimatePro::New();
    decimate->SetInput(smoother->GetOutput());

    decimate->SplittingOff();
    decimate->SetErrorIsAbsolute(5);
    decimate->SetDegree(10);
    decimate->SetMaximumError(0.005);

    decimate->SetTargetReduction(0.8);
    decimate->PreserveTopologyOn();
    decimate->SetFeatureAngle(30);
    decimate->BoundaryVertexDeletionOff();


Corresponding filter in Paraview 3.4.0 only have following options to setup:
   Target Reduction, Preserve Topology, Feature Angle and BoundVertex
Deletion.

I know that too much options may confuse user. I wonder if there are some
setup to
use more options. Or should I revise ParaView source code to recompile a
binary one.

Thank you very much!

Best,
Fucang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20081107/4d35cc1a/attachment.htm>


More information about the ParaView mailing list