[vtkusers] Vectors with lines and cones
Amy Squillacote
ahs at cfdrc.com
Tue Apr 29 10:23:29 EDT 2008
Hi Darlon,
Please keep this discussion on the vtkusers list; that way other people
can help answer your questions, and the conversation is archived, which
may help other people with the same problem.
If you have the VTK source code, take a look at the Mace.cxx test (in
VTK/Graphics/Testing/Cxx); it shows an example of glyphing a sphere with
cones. This example does not involve reading data from a file; it's
pretty simple and straightforward.
- Amy
Darlon wrote:
> No... i don't know how to use the vtkGlyph3D or vtkArrowSource...
>
> For now, i'm using vtkLineSource and vtkCone Source.
>
> O have been seeing the graphics results of vtkGlyph3D, but i did not
> found examples in c++ (that i can understand)... all the examples are
> using a file input... it's too complicated.
>
> For now, i'm just reading a simple ascii file with x,y,z (points) and
> u,v,w (velocity), and trying to plot that.
>
> How can i do that with vtkGlyph3D or vtkArrowSource?
>
>
>
> Thanks.
>
> Darlon
>
>
> On Tue, Apr 29, 2008 at 10:16 AM, Amy Squillacote <ahs at cfdrc.com
> <mailto:ahs at cfdrc.com>> wrote:
>
> Hi Darlon,
>
> It sounds like you're using the vtkGlyph3D filter to display your
> vector field. Have you tried using the output of vtkArrowSource as
> the source for the vtkGlyph3D filter?
>
> - Amy
>
> Darlon wrote:
>
> Hi.
>
> I'm trying to draw a vector field, vith lines and cones.
>
> The lines are ok, I can set the coordinates with setPoint1 and
> setPoint2.
>
> But how can i put the cone in the start of the line?
>
> I'm Using Linux (OpenSuse 10.3) and workin with C++.
>
>
>
> Anybody can help me?
>
> Darlon
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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
>
>
>
> --
> Amy Squillacote Phone: (256) 726-4839
> Computer Scientist Fax: (256) 726-4806
> CFD Research Corporation Web: http://www.cfdrc.com
> 215 Wynn Drive, Suite 501
> Huntsville, AL 35805
>
>
>
>
>
> --
> O sistema pediu:"Requires Windows 9x, Windows 2000 or better".
> Então eu instalei Linux.
--
Amy Squillacote Phone: (256) 726-4839
Computer Scientist Fax: (256) 726-4806
CFD Research Corporation Web: http://www.cfdrc.com
215 Wynn Drive, Suite 501
Huntsville, AL 35805
More information about the vtkusers
mailing list