<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Ok this was
solved.<br>
I had to use a vtkCellDataToPointData befor inputting it into the
vtkStreamLine.<br>
</font></font><br>
Am 26.03.2010 11:30, schrieb Sebastian Gatzka:
<blockquote cite="mid:4BAC8CAB.7030604@stud.tu-darmstadt.de" type="cite">
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <font size="-1"><font face="Helvetica, Arial, sans-serif">Nope, it's
not working with my data.<br>
  <br>
I really need this to work: <font color="#ff0000"><b>Vector Data is on
structured grid cell centers!!!</b></font><br>
  <font face="Courier New, Courier, monospace"><br>
vtkStructuredGrid *sGrid = vtkStructuredGrid::New();<br>
  <br>
(...)<br>
  <br>
vtkCellCenters *gridCellCenters = vtkCellCenters::New();<br>
gridCellCenters-&gt;SetInput(sGrid);<br>
  </font><br>
Vector Data is on the structured grid cell centers:<br>
  <font face="Courier New, Courier, monospace"><br>
sGrid-&gt;GetCellData()-&gt;SetVectors(v);<br>
  <br>
(...)<br>
  <br>
vtkStreamLine *streamer = vtkStreamLine::New();<br>
  <u><i>streamer-&gt;SetInputConnection(gridCellCenters-&gt;GetOutputPort());</i></u><br>
streamer-&gt;SetStartPosition(1,1,1);<br>
streamer-&gt;SetMaximumPropagationTime(200);<br>
streamer-&gt;SetIntegrationStepLength(.2);<br>
streamer-&gt;SetStepLength(.001);<br>
streamer-&gt;SetNumberOfThreads(1);<br>
streamer-&gt;SetIntegrationDirectionToForward();<br>
streamer-&gt;VorticityOn();<br>
  <br>
vtkPolyDataMapper *streamMapper = vtkPolyDataMapper::New();<br>
streamMapper-&gt;SetInputConnection(streamer-&gt;GetOutputPort());<br>
  <br>
vtkActor *streamActor = vtkActor::New();<br>
streamActor-&gt;SetMapper(streamMapper);<br>
streamActor-&gt;VisibilityOn();<br>
  <br>
(...)<br>
  <br>
ren1-&gt;AddActor(streamActor);</font><br>
  <br>
Nothing is displayed.<br>
  <br>
  <big><b><font color="#ff0000">How can I manage to input my data to
the
vtkStreamLine?!?</font></b></big><br>
  </font></font><br>
Am 25.03.2010 13:51, schrieb Favre Jean:
  <blockquote
 cite="mid:AB48A31C4EC97E498F4235B7CEF74A19060C087B65@MBX00.d.ethz.ch"
 type="cite">
    <pre wrap="">I believe this example will now work if you set your VTK_DATA_ROOT appropriately.

-----------------
Jean M. Favre
Scientific Computing Research
Swiss National Supercomputing Center
CH-6828 Manno
Switzerland
  </pre>
    <pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Powered by <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a moz-do-not-send="true"
 class="moz-txt-link-freetext"
 href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the VTK FAQ at: <a
 moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
  </pre>
  </blockquote>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the VTK FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
  </pre>
</blockquote>
</body>
</html>