[vtkusers] building structed grid data sets
Prabhu Ramachandran
prabhu at aero.iitm.ernet.in
Sat May 25 00:01:21 EDT 2002
>>>>> "JN" == Jesse Neri <neri at hobbes.nrl.navy.mil> writes:
JN> Working in Win 2K and MSDEV 6 I am contructing a
JN> StructuredGrid data object. The points for the geometry seem
JN> to set OK, but getting the data at the points is now not
JN> working. This used to work on 3.2, and I tried to follow the
JN> example in finance.cxx example:
[snip]
JN> error C2664: 'SetScalars' : cannot convert parameter 1 from
JN> 'class vtkFloatArray *' to 'class tkScalars *' Types pointed
JN> to are unrelated; conversion requires reinterpret_cast,
JN> C-style cast or function-style cast
Seems to me that you are using a VTK 4.x way to do something in VTK
3.2. i.e. you are running this on VTK 3.2. This seems to be
perfectly legal code for vtk 4.x. You can check which version you are
running by using the vtkVersion class.
prabhu
More information about the vtkusers
mailing list