[vtkusers] problem using vtkSreamTracer on nonlinear cells

Martin Baumann mailsgetlost at web.de
Mon Jan 21 12:57:30 EST 2008


Hi,

I have a 2d domain consisting of cells of type VTK_QUADRATIC_QUAD.
I recognized that a vtkStreamTracer creates traces that end when they reach
a cells boarder.
I looked at the data array "ReasonForDetermination" and found out that the
reason is 'OUT_OF_DOMAIN'. So this looks as if neighbouring cells are not
in a common domain at least for this cell type (nonlinear).

Can this be true? If so, what can one do to calculate stream traces correct?

Best regards,
M.B.


PS: I added a test grid that I used for my tests

<?xml version="1.0"?>
<VTKFile type="UnstructuredGrid" version="0.1">
  <UnstructuredGrid>
    <Piece NumberOfPoints="13" NumberOfCells="2">
      <Points>
        <DataArray type="Float32" NumberOfComponents="3" format="ascii">
          0    0    0
          1    0    0
          1    1    0
          0    1    0
          0.5  0    0
          1    0.5  0
          0.5  1    0
          0    0.5  0
          2    0    0
          2    1    0
          1.5  0    0
          2    0.5  0
          1.5  1    0
        </DataArray>
      </Points>
      <PointData>
        <DataArray type="Float32" Name="Vel_x" format="ascii">
          1 1 1 1 1 1 1 1 1 1 1 1 1
        </DataArray>
        <DataArray type="Float32" Name="Vel_y" format="ascii">
          0 0 0 0 0 0 0 0 0 0 0 0 0
        </DataArray>
      </PointData>
      <Cells>
        <DataArray type="Int32" Name="connectivity" format="ascii">
          0 1 2 3 4 5 6 7 1 8 9 2 10 11 12 5
        </DataArray>
        <DataArray type="Int32" Name="offsets" format="ascii">
          8 16
        </DataArray>
        <DataArray type="UInt8" Name="types" format="ascii">
          23 23
        </DataArray>
      </Cells>
      <CellData>
      </CellData>
    </Piece>
  </UnstructuredGrid>
</VTKFile>



More information about the vtkusers mailing list