<p>Hi Berk,</p><p>I will try to have this working and let you know my progress.<br></p><p>Thank you very much!</p><p>Fucang</p><br><div class="gmail_quote">On Sat, Nov 8, 2008 at 8:48 PM, Berk Geveci <span dir="ltr">&lt;<a href="mailto:berk.geveci@kitware.com">berk.geveci@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Fucang,<br>
<br>
After you get this working, with our help, we should work together to<br>
write a wiki page that describes how more filter parameters can be<br>
exposed in ParaView. Last week, I had the idea of starting a series of<br>
recipes pages for the ParaView community to share knowledge. This<br>
would be a good start.<br>
<br>
-berk<br>
<br>
On Sat, Nov 8, 2008 at 7:34 AM, David E DeMarle<br>
<div><div class="Wj3C7c">&lt;<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>&gt; wrote:<br>
&gt; Sure enough, according to the paraview plugins wiki you don&#39;t even<br>
&gt; need the CMakeLists.txt (and thus to compile). Just write the XML file<br>
&gt; that defines your new proxy and use the plugin manager to load it.<br>
&gt;<br>
&gt; cool,<br>
&gt; Dave<br>
&gt;<br>
&gt; On Fri, Nov 7, 2008 at 8:21 PM, Berk Geveci &lt;<a href="mailto:berk.geveci@kitware.com">berk.geveci@kitware.com</a>&gt; wrote:<br>
&gt;&gt; Unless I remember it wrong, there is also a way of simply loading the<br>
&gt;&gt; server manager xml instead of a plugin.<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Nov 7, 2008 at 9:11 AM, David E DeMarle<br>
&gt;&gt; &lt;<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>&gt; wrote:<br>
&gt;&gt;&gt; You can of course modify the paraview source and recompile.<br>
&gt;&gt;&gt; Specifically what you would do is edit the XML element that defines<br>
&gt;&gt;&gt; the proxy for that filter in Servers/ServerManager/filter.xml in order<br>
&gt;&gt;&gt; to add additional property definitions to let paraview expose those<br>
&gt;&gt;&gt; missing filter methods.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; An alternative way to do it is to write a plugin, consisting of a<br>
&gt;&gt;&gt; small CMakeLists.txt file and a small XML file and recompile only<br>
&gt;&gt;&gt; that. The XML file makes an alternative proxy for the same filter.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The benefit of the second option is quicker compile time and better<br>
&gt;&gt;&gt; isolation of the modifications you are making to ParaView.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; cheers,<br>
&gt;&gt;&gt; Dave DeMarle<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Fri, Nov 7, 2008 at 2:31 AM, Jia Fucang &lt;<a href="mailto:jiafucang@gmail.com">jiafucang@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt; Hi, everyone,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I often use Paraview for visualization of medical object geometry models<br>
&gt;&gt;&gt;&gt; and do some filtering. But I noticed that Paraview does not offer many<br>
&gt;&gt;&gt;&gt; parameters setup by user, like VTK filters. For example,<br>
&gt;&gt;&gt;&gt; SmoothPolyDataFilter,<br>
&gt;&gt;&gt;&gt; it can be used like<br>
&gt;&gt;&gt;&gt; &nbsp; &nbsp; vtkSmoothPolyDataFilter *smoother = vtkSmoothPolyDataFilter::New();<br>
&gt;&gt;&gt;&gt; &nbsp; &nbsp; smoother-&gt;SetInput(surface-&gt;GetOutput());<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; &nbsp; &nbsp; smoother-&gt;SetRelaxationFactor(0.1);<br>
&gt;&gt;&gt;&gt; &nbsp; &nbsp; smoother-&gt;SetFeatureAngle(60);<br>
&gt;&gt;&gt;&gt; &nbsp; &nbsp; smoother-&gt;FeatureEdgeSmoothingOff();<br>
&gt;&gt;&gt;&gt; &nbsp; &nbsp; smoother-&gt;BoundarySmoothingOff();<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; &nbsp; &nbsp; smoother-&gt;SetNumberOfIterations(50);<br>
&gt;&gt;&gt;&gt; &nbsp; &nbsp; smoother-&gt;SetConvergence(0);<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Paraview 3.4.0 only display &quot;Number of Iterations&quot; and &quot;Convergence&quot; for<br>
&gt;&gt;&gt;&gt; user to setup. This often does not provide good effect like the C++ one.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Another example is<br>
&gt;&gt;&gt;&gt; vtkDecimatePro *decimate = vtkDecimatePro::New();<br>
&gt;&gt;&gt;&gt; &nbsp; &nbsp; decimate-&gt;SetInput(smoother-&gt;GetOutput());<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; &nbsp; &nbsp; decimate-&gt;SplittingOff();<br>
&gt;&gt;&gt;&gt; &nbsp; &nbsp; decimate-&gt;SetErrorIsAbsolute(5);<br>
&gt;&gt;&gt;&gt; &nbsp; &nbsp; decimate-&gt;SetDegree(10);<br>
&gt;&gt;&gt;&gt; &nbsp; &nbsp; decimate-&gt;SetMaximumError(0.005);<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; &nbsp; &nbsp; decimate-&gt;SetTargetReduction(0.8);<br>
&gt;&gt;&gt;&gt; &nbsp; &nbsp; decimate-&gt;PreserveTopologyOn();<br>
&gt;&gt;&gt;&gt; &nbsp; &nbsp; decimate-&gt;SetFeatureAngle(30);<br>
&gt;&gt;&gt;&gt; &nbsp; &nbsp; decimate-&gt;BoundaryVertexDeletionOff();<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Corresponding filter in Paraview 3.4.0 only have following options to setup:<br>
&gt;&gt;&gt;&gt; &nbsp; &nbsp;Target Reduction, Preserve Topology, Feature Angle and BoundVertex<br>
&gt;&gt;&gt;&gt; Deletion.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I know that too much options may confuse user. I wonder if there are some<br>
&gt;&gt;&gt;&gt; setup to<br>
&gt;&gt;&gt;&gt; use more options. Or should I revise ParaView source code to recompile a<br>
&gt;&gt;&gt;&gt; binary one.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Thank you very much!<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Best,<br>
&gt;&gt;&gt;&gt; Fucang<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; ParaView mailing list<br>
&gt;&gt;&gt;&gt; <a href="mailto:ParaView@paraview.org">ParaView@paraview.org</a><br>
&gt;&gt;&gt;&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; David E DeMarle<br>
&gt;&gt;&gt; Kitware, Inc.<br>
&gt;&gt;&gt; R&amp;D Engineer<br>
&gt;&gt;&gt; 28 Corporate Drive<br>
&gt;&gt;&gt; Clifton Park, NY 12065-8662<br>
&gt;&gt;&gt; Phone: 518-371-3971 x109<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; ParaView mailing list<br>
&gt;&gt;&gt; <a href="mailto:ParaView@paraview.org">ParaView@paraview.org</a><br>
&gt;&gt;&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; David E DeMarle<br>
&gt; Kitware, Inc.<br>
&gt; R&amp;D Engineer<br>
&gt; 28 Corporate Drive<br>
&gt; Clifton Park, NY 12065-8662<br>
&gt; Phone: 518-371-3971 x109<br>
&gt;<br>
</div></div></blockquote></div><br>