[vtkusers] Problem with streamline
Berk Geveci
berk.geveci at kitware.com
Wed Feb 6 13:09:29 EST 2008
Can you write your point data as a VTK file and send it to me?
-berk
On 2/6/08, Mohammad Nazrul Islam <int64380 at stud.uni-stuttgart.de> wrote:
>
>
> Hi all,
> TI have a code to generate a streamline but no results.
>
> vector=vtk.vtkFloatArray()
> vector.SetNumberOfComponents(3)
> vector.SetNumberOfTuples(lines)
>
> slineGrid=vtk.vtkUnstructuredGrid()
> slineGrid.SetPoints(points)
> slineGrid.GetPointData().SetVectors(vector)
>
> delny = vtk.vtkDelaunay3D()
> delny.SetInput(slineGrid)
> delny.SetTolerance(0.1)
> delny.SetAlpha(0.5)
> delny.BoundingTriangulationOff()
>
> line=vtk.vtkLineSource()
> line.SetResolution(25)
>
> integ=vtk.vtkRungeKutta4()
> streamline=vtk.vtkStreamTracer()
> streamline.SetInputConnection(delny.GetOutputPort())
> streamline.SetSource(line.GetOutput())
> streamline.SetMaximumPropagation(500)
> streamline.SetMaximumPropagationUnitToTimeUnit()
> streamline.SetInitialIntegrationStep(0.5)
> streamline.SetInitialIntegrationStepUnitToCellLengthUnit()
> streamline.SetIntegrationDirectionToBoth()
> streamline.SetIntegrator(integ)
>
>
> and then mapper, actor and rendering stuff. Could anybody help me?
>
> Thanks and br,
> Nazrul
>
>
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list