[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vtkusers
Subject:    vtkHedgeHog questions
From:       Prabhu Ramachandran <prabhu () aero ! iitm ! ernet ! in>
Date:       2000-04-30 18:37:50
Message-ID: 14604.30840.235466.850256 () monster ! linux ! in
[Download RAW message or body]

hi,

>>>>> "Randall" == Randall Hopper <aa8vb@ipass.net> writes:

    Randall> Also, I'm working with CFD data.  Is there a way in VTK
    Randall> to draw 3D arrows for a vector field?  Hedgehog seems to
    Randall> draw only directionless lines.

	You could use cones or any object that behaves like it.  Here
is a code snippet.

--
vecreader = vtkStructuredGridReader ()
vecreader.SetFileName (file)
vecreader.Update ()

cone = vtkConeSource ()
cone.SetResolution (5)
cone.SetHeight (1)
cone.SetRadius (0.25)

cones = vtkGlyph3D ()
cones.SetInput (vecreader.GetOutput ())
cones.SetSource (cone.GetOutput ())
cones.SetScaleFactor (0.02)
cones.SetScaleModeToScaleByVector ()
cones.SetColorModeToColorByVector ()
cones.SetClamping (1)

vectors = vtkPolyDataMapper ()
vectors.SetInput (cones.GetOutput ())

vec_actor = vtkLODActor ()
---

	I use this to visualize 3d structured cfd velocity data.  The
colouring is useful for it helps to differentiate the data.  You could
the vtkThresholdPoints class or the vtkMaskPoints classes to reduce
the number of data points you plot.  Ref. page 202 of the VTK book
(2nd Ed.)

prabhu
--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo@public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic