[Paraview] On more filter optional parameters setup

Jia Fucang jiafucang at gmail.com
Sun Nov 9 08:55:31 EST 2008


Hi Berk,

I will try to have this working and let you know my progress.

Thank you very much!

Fucang

On Sat, Nov 8, 2008 at 8:48 PM, Berk Geveci <berk.geveci at kitware.com> wrote:

> Hi Fucang,
>
> After you get this working, with our help, we should work together to
> write a wiki page that describes how more filter parameters can be
> exposed in ParaView. Last week, I had the idea of starting a series of
> recipes pages for the ParaView community to share knowledge. This
> would be a good start.
>
> -berk
>
> On Sat, Nov 8, 2008 at 7:34 AM, David E DeMarle
> <dave.demarle at kitware.com> wrote:
> > Sure enough, according to the paraview plugins wiki you don't even
> > need the CMakeLists.txt (and thus to compile). Just write the XML file
> > that defines your new proxy and use the plugin manager to load it.
> >
> > cool,
> > Dave
> >
> > On Fri, Nov 7, 2008 at 8:21 PM, Berk Geveci <berk.geveci at kitware.com>
> wrote:
> >> Unless I remember it wrong, there is also a way of simply loading the
> >> server manager xml instead of a plugin.
> >>
> >> On Fri, Nov 7, 2008 at 9:11 AM, David E DeMarle
> >> <dave.demarle at kitware.com> wrote:
> >>> You can of course modify the paraview source and recompile.
> >>> Specifically what you would do is edit the XML element that defines
> >>> the proxy for that filter in Servers/ServerManager/filter.xml in order
> >>> to add additional property definitions to let paraview expose those
> >>> missing filter methods.
> >>>
> >>> An alternative way to do it is to write a plugin, consisting of a
> >>> small CMakeLists.txt file and a small XML file and recompile only
> >>> that. The XML file makes an alternative proxy for the same filter.
> >>>
> >>> The benefit of the second option is quicker compile time and better
> >>> isolation of the modifications you are making to ParaView.
> >>>
> >>> cheers,
> >>> Dave DeMarle
> >>>
> >>> On Fri, Nov 7, 2008 at 2:31 AM, Jia Fucang <jiafucang at gmail.com>
> wrote:
> >>>> 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
> >>>>
> >>>> _______________________________________________
> >>>> ParaView mailing list
> >>>> ParaView at paraview.org
> >>>> http://www.paraview.org/mailman/listinfo/paraview
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>> --
> >>> David E DeMarle
> >>> Kitware, Inc.
> >>> R&D Engineer
> >>> 28 Corporate Drive
> >>> Clifton Park, NY 12065-8662
> >>> Phone: 518-371-3971 x109
> >>> _______________________________________________
> >>> ParaView mailing list
> >>> ParaView at paraview.org
> >>> http://www.paraview.org/mailman/listinfo/paraview
> >>>
> >>
> >
> >
> >
> > --
> > David E DeMarle
> > Kitware, Inc.
> > R&D Engineer
> > 28 Corporate Drive
> > Clifton Park, NY 12065-8662
> > Phone: 518-371-3971 x109
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20081109/e0115de6/attachment.htm>


More information about the ParaView mailing list