FW: [Paraview] Cutting cells of different dimension

Amy Henderson amy.henderson at kitware.com
Wed, 11 Feb 2004 13:17:10 -0500


Hi Julien,

The problem is in cell->Contour(...) (or maybe in the way vtkCutter is=20
using cell->Contour(...)).  What's happening is that when the cell contours=
=20
itself, it adds a new cell as necessary to the appropriate cell array=20
(verts, lines, or polys), which returns the id of the cell in that array.=20
Contour then uses that id to copy cell data to.  The problem is that if=20
your data set has different types of cells, then the first vertex, line,=20
and polygon inserted will all have the same cell id.  I'll add this as a=20
bug report for VTK.

- Amy

At 10:25 AM 2/11/2004, ALIZIER Julien AUSY wrote:
>And it does work if I use POINT_DATA instead of CELL_DATA.
>Any ideas? I this a bug in vtkCutter or cell->Contour(...)?
>
>-- Julien
>
>
>
>-----Message d'origine-----
>De : ALIZIER Julien AUSY [mailto:julien.alizier-ausy at irsn.fr]
>Envoy=E9 : mercredi 11 f=E9vrier 2004 16:17
>=C0 : 'paraview at paraview.org'; 'vtkusers at vtk.org'
>Objet : [Paraview] Cutting cells of different dimension
>
>
>Hi all,
>
>I am trying to make a cut of 3D and 2D cells in one Unstructured grid in
>ParaView.
>The problem is that it is possible to cut only if there is no data on cells
>(which is not very useful obviously ;-).
>
>Here is a tiny vtk file that shows the bug : it is a triangle and a line=
 and
>I'd like to cut them in order to get a line and a point. It works when I
>removed the CELL_DATA part.
>
>Thanks for your help
>
>-- Julien
>
>
># vtk DataFile Version 2.0
>cut problem with cell of different dimension
>ASCII
>DATASET UNSTRUCTURED_GRID
>POINTS 5 float
>0 0 0
>2 0 2
>1 3 1
>4 0 4
>4 3 4
>
>CELLS 2 7
>3 0 1 2
>2 3 4
>
>CELL_TYPES 2
>5
>3
>
>CELL_DATA 2
>SCALARS cell_scalars float 1
>LOOKUP_TABLE default
>0
>1
>_______________________________________________
>ParaView mailing list
>ParaView at paraview.org
>http://www.paraview.org/mailman/listinfo/paraview