[Paraview] clip filter not cutting through elements
Jean M. Favre
jfavre at cscs.ch
Wed Dec 7 04:06:25 EST 2005
Dominik Szczerba wrote:
> Hello,
> I would like to have a clip filter that optionally doesnt cut through
> the elements but rather remove/preserve (whole) elements. Is there a way
> to do it in the current version?
> regards,
> Dominik
I will paraphrase my friend Berk: "it is just a GUI issue"
VTK already implements what you want in the vtkExtractGeometry. You only
have to make ParaView aware of it with the following XML. Just use
Import Package to load the XML file.
Once imported, you have a new Filter called "Extract Geometry". Check
the two buttons "Extract Boundary Cells" and "Extract Only Boundary
Cells" and you will have the plane, sphere and box clipping showing
whole cells.
I include the (xml and pvsm files) to import. Tested under Windows and
Linux for ParaView 2.4 and 2.5.
--
Dr. Jean M. Favre, email:favre @ cscs.ch
http://www.cscs.ch/about/Favre.php
CSCS, Swiss National Supercomputing Centre | Tel: +41 (91) 610.82.40
Via Cantonale, 6928 Manno, Switzerland | Fax: +41 (91) 610.82.82
-------------- next part --------------
<ServerManagerConfiguration>
<ProxyGroup name="filters">
<SourceProxy name="ExtractGeometry" class="vtkExtractGeometry">
<InputProperty
name="Input"
command="SetInput">
<ProxyGroupDomain name="groups">
<Group name="sources"/>
<Group name="filters"/>
</ProxyGroupDomain>
<DataTypeDomain name="input_type">
<DataType value="vtkDataSet"/>
</DataTypeDomain>
<InputArrayDomain name="input_array" attribute_type="point"
optional="1"/>
</InputProperty>
<ProxyProperty name="ImplicitFunction" command="SetImplicitFunction">
<ProxyGroupDomain name="groups">
<Group name="implicit_functions"/>
</ProxyGroupDomain>
</ProxyProperty>
<DoubleVectorProperty
name="InputBounds" information_only="1">
<BoundsDomain name="bounds">
<RequiredProperties>
<Property name="Input" function="Input"/>
</RequiredProperties>
</BoundsDomain>
</DoubleVectorProperty>
<IntVectorProperty
name="ExtractInside"
command="SetExtractInside"
number_of_elements="1"
default_values="0" >
<BooleanDomain name="bool"/>
</IntVectorProperty>
<IntVectorProperty
name="ExtractBoundaryCells"
command="SetExtractBoundaryCells"
number_of_elements="1"
default_values="0" >
<BooleanDomain name="bool"/>
</IntVectorProperty>
<IntVectorProperty
name="ExtractOnlyBoundaryCells"
command="SetExtractOnlyBoundaryCells"
number_of_elements="1"
default_values="0" >
<BooleanDomain name="bool"/>
</IntVectorProperty>
<!-- End ExtractGeometry -->
</SourceProxy>
</ProxyGroup>
</ServerManagerConfiguration>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PVCSCS.xml
Type: text/xml
Size: 2901 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/paraview/attachments/20051207/c75099b9/PVCSCS.bin
More information about the ParaView
mailing list