[vtkusers] Where did vtkFloatScalars go?

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Thu Sep 5 14:01:38 EDT 2002


>>>>> "DMC" == Drew McCormack <cormack at chem.vu.nl> writes:

    DMC> I have an array full of volume data which I wish to generate
    DMC> a isosurface for. Looking at page 144 of "The Visualization
    DMC> Toolkit 2nd edition", it has an example of what I want to
    DMC> do. It involves setting up a vtkStructuredPoints instance,
    DMC> and setting the data. It uses a class called
    DMC> "vktFloatScalars". Unfortunately for me, this class does not
    DMC> seem to appear in VTK anymore.  Can someone explain to me
    DMC> what the current way to set vtkStructuredPoints is, when you
    DMC> have a standard C array of floats (I don't want to read a
    DMC> file)?


Yes, the API has changed from 3.2 to 4.x.  The FAQ documents this:

http://public.kitware.com/cgi-bin/vtkfaq?req=show&file=faq06.007.htp

Basically vtkFloatScalars does not exist anymore.  Use vtkFloatArray
instead.

cheers,
prabhu




More information about the vtkusers mailing list