[Paraview] creating solid objects using polydata

David E DeMarle dave.demarle at kitware.com
Wed Mar 12 13:12:09 EDT 2008


vtkPolyData is limited to sets of points, lines, and planar polygons.
vtkUnstructuredGrid has tetrahedra etc in addition to the above.

On 3/12/08, Andre Phillion <andre.phillion at epfl.ch> wrote:
>
>
>
>
> Hello,
>
> Using paraview, I am trying to view a sequence of polyhedra based on a
> constrained 3D voronoi tessellation as polydata objects. An example of my
> polydata file is enclosed. However, when I cut the polyhedra using the clip
> tool, there is empty space on the interior of the object.
>
>
>
> Could someone help me to create a solid object instead of this 'shell'
> object.
>
>
>
> Thank you,
>
>
>
> André
>
>
>
> Dr. André Phillion
>
> Laboratoire de Simulation des Matériaux
>  Ecole Polytechnique Fédérale de Lausanne
>
> MXG-318, Station 12, CH-1015, Switzerland
>
> Tel / Fax: +41(21)693 3942 / 5890
>
>
>
> <?xml version="1.0"?>
>
> <VTKFile type="PolyData" version="0.1" byte_order="LittleEndian"
> compressor="vtkZLibDataCompressor">
>
> <PolyData>
>
> <Piece NumberOfPoints="18" NumberOfPolys="11">
>
> <Points>
>
> <DataArray type="Float32" Name="Points" NumberOfComponents="3"
> format="ascii">
>
> 278.133 330.375 205.982
>
> 243.471 308.427 249.488
>
> 228.474 241.738 182.425
>
> 227.006 241.446 185.225
>
> 222.559 275.061 245.514
>
> 224.657 246.233 176.452
>
> 173.926 271.068 185.12
>
> 174.701 270.48 185.512
>
> 276.903 373.889 199.168
>
> 234.654 373.889 247.148
>
> 219.646 373.889 203.163
>
> 162.114 285.447 188.913
>
> 162.042 309.587 193.903
>
> 280.754 363.501 196.755
>
> 226.308 359.087 259.419
>
> 201.019 330.364 256.579
>
> 176.591 282.008 209.837
>
> 202.143 288.336 249.385
>
> </DataArray>
>
> </Points>
>
> <Polys>
>
> <DataArray type="Int32" Name="connectivity" format="ascii">
>
> 0          2          3          4          1
>
> 5          2          3          7          6
>
> 8          9          10
>
>
> 5          6          11        12        10        8          13
>
> 8          13        0          1          14        9
>
> 10        9          14        15        12
>
> 5          2          0          13
>
>
> 7          6          11        16
>
>
> 7          3          4          17        16
>
> 11        12        15        17        16
>
> 14        1          4          17        15
>
> </DataArray>
>
> <DataArray type="Int32" Name="offsets" format="ascii">
>
> 5 10 13 20 26 31 35 39 44 49 54
>
> </DataArray>
>
> </Polys>
>
> </Piece>
>
> </PolyData>
>
> </VTKFile>
> _______________________________________________
>  ParaView mailing list
>  ParaView at paraview.org
>  http://www.paraview.org/mailman/listinfo/paraview
>
>
>


More information about the ParaView mailing list