[Paraview] vtk filters & xml

Jean M. Favre jfavre at cscs . ch
Thu, 16 Oct 2003 09:38:04 +0200


Axel Steuwer wrote:
> hi there,
> 
> thanks for the help. here again for future references, to get the
> vtkDelaunay3D filter working i did:
> 
> -define the extensions directory and setting the PV_INTERFACE_PATH
> variable to the new directory
> -added a file called myfilters.xml which contains:
> <ModuleInterfaces>
> <Module name="Delaunay3D" root_name="Delaunay3D" module_type="Filter">
>   <Filter class="vtkDelaunay3D">
>      <Input name="Input" class="vtkPointSet"/>
>   </Filter>
>   <InputMenu label="Input" help="Delaunay Triangulation"/>
>   <VectorEntry variable="Tolerance" trace_name="Tolerance" type="float"
> help="The tolerance" default_value="0.001" data_range="1.0"/>
>   <VectorEntry variable="Alpha" trace_name="Alpha" type="float" help="The
> Alpha value" default_value="2.0" data_range="10.0"/>
>   <VectorEntry variable="Offset" trace_name="Offset" type="float"
> help="The Offset value" default_value="2.5" data_range="10.0"/>
> </Module>
> </ModuleInterfaces>
> 

For completeness, you may want to add one more of the public variable.

<LabeledToggle variable="BoundingTriangulation" 
trace_name="BoundingTriangulation" help="controls whether bounding 
triangulation points (and associated triangles) are included in the 
output" default_value="0"/>

Note also that your data ranges should include 2 values as in 
data_range="0.0 10.0"

-- 
Dr. Jean M. Favre,                            email:favre at cscs . ch
http://www . cscs . ch/people/Favre . html
CSCS, Swiss Center for Scientific Computing | Tel:  +41 (91) 610.82.40
Via Cantonale, 6928 Manno, Switzerland      | Fax:  +41 (91) 610.82.82