[vtkusers] What to do when you have computations to create a dataset in C++

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Wed Apr 17 04:30:28 EDT 2002


>>>>> "SF" == sfelton  <sfelton at stanford.edu> writes:

    SF> I have a question.  I am a novice at programming as well as
    SF> visualization.  I am a student working on a project to give a

In that case you might have to learn how to program and use VTK.  This
will definitely take a little time and effort.  If you do plan on
using VTK then I'd recommend that you get familiar with Tcl, Python or
Java.  My personal favorite is Python.  Once you get handy with the
programming language, learn how to script VTK applications with it and
you should be able to do what you want.  OTOH if C++ is your strength
and you dont want to bother with learning another language just write
your application in C++ using VTK.  The VTK users guide and the VTK
book should guide you through this.  As I said, either way this will
take some work.

    SF> graphical output of the numeric output that I compute using
    SF> C++.  The numeric output are force vectors and I would like to
    SF> display these at every time point as arrows and possibly have
    SF> the length of the arrows correspond with their magnitude.
    SF> Does anyone out there know how to transform this dataset that
    SF> is a 164X3 matrix into graphical data?  And then what to do
    SF> from there?  I have the Vizualization Toolkit (2nd edition)
    SF> text...so if there is something in there that would help me,
    SF> could someone please point out the particular chapter.  Or any
    SF> suggestions as to what else to purchase.  Thanks.

How are your data points organized (are they structured or
unstructured)?  Either way, VTK can handle them.

If you are looking for a readymade solution look at Sebastien's links
page (http://www.barre.nom.fr/vtk/links.html) and look for an
application that suits your needs.  You might want to take a look at
ParaView -- http://public.kitware.com/Paraview or <shameless plug>
MayaVi -- http://mayavi.sf.net </shameless plug>.

prabhu



More information about the vtkusers mailing list