<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.6000.16414" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=247145323-20032007><FONT face=Arial color=#0000ff size=2>Its
only 14 errors just change the floats to double</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
vtkusers-bounces+paul=opes.com.au@vtk.org
[mailto:vtkusers-bounces+paul=opes.com.au@vtk.org] <B>On Behalf Of
</B>M.Salman@surrey.ac.uk<BR><B>Sent:</B> Wednesday, 21 March 2007 12:46
AM<BR><B>To:</B> vtkusers@vtk.org<BR><B>Subject:</B> [vtkusers] problem with
different versions of vtkPointSet ! Help !<BR><BR></FONT></DIV><!-- Converted from text/plain format -->
<P><FONT size=2>I had to reinstall vtk on my system .I had devloped my code
using vtk 4.4 by installing precompiled windows version available on the vtk
Site which is no more offered.<BR>Instead, I had to download the source code
and compile it to install it on my system now.<BR>when I try to run the code
developed on previous installation(one using precompiled binaries for windows)
on the new installation(one compiled by me)<BR>it gives following
errors.<BR><BR>*************************************************************************************<BR>--------------------Configuration:
test - Win32
Debug--------------------<BR>Compiling...<BR>basic.cxx<BR>c:\vtkprojects\mem\copy
of basic2\code\basic.cxx(96) : error C2664: 'void __thiscall
vtkPointSet::GetPoint(int,double [])' : cannot convert parameter 2 from 'float
[3]' to 'double []'<BR> Types
pointed to are unrelated; conversion requires reinterpret_cast, C-style cast
or function-style cast<BR>c:\vtkprojects\mem\copy of
basic2\code\basic.cxx(112) : error C2664: 'void __thiscall
vtkPointSet::GetPoint(int,double [])' : cannot convert parameter 2 from 'float
[3]' to 'double []'<BR> Types
pointed to are unrelated; conversion requires reinterpret_cast, C-style cast
or function-style cast<BR>coreEmbed.cpp<BR>c:\vtkprojects\mem\copy of
basic2\code\coreembed.cpp(192) : error C2664: 'void __thiscall
vtkPointSet::GetPoint(int,double [])' : cannot convert parameter 2 from 'float
*' to 'double []'<BR> Types pointed
to are unrelated; conversion requires reinterpret_cast, C-style cast or
function-style cast<BR>c:\vtkprojects\mem\copy of
basic2\code\coreembed.cpp(364) : error C2664: 'void __thiscall
vtkPointSet::GetPoint(int,double [])' : cannot convert parameter 2 from 'float
*' to 'double []'<BR> Types pointed
to are unrelated; conversion requires reinterpret_cast, C-style cast or
function-style cast<BR>c:\vtkprojects\mem\copy of
basic2\code\coreembed.cpp(527) : error C2440: '=' : cannot convert from
'double *' to 'float *'<BR> Types
pointed to are unrelated; conversion requires reinterpret_cast, C-style cast
or function-style cast<BR>c:\vtkprojects\mem\copy of
basic2\code\coreembed.cpp(533) : error C2664: 'void __thiscall
vtkPointSet::GetPoint(int,double [])' : cannot convert parameter 2 from 'float
*' to 'double []'<BR> Types pointed
to are unrelated; conversion requires reinterpret_cast, C-style cast or
function-style cast<BR>c:\vtkprojects\mem\copy of
basic2\code\coreembed.cpp(823) : error C2664: 'void __thiscall
vtkPoints::GetPoint(int,double [])' : cannot convert parameter 2 from 'float
*' to 'double []'<BR> Types pointed
to are unrelated; conversion requires reinterpret_cast, C-style cast or
function-style cast<BR>c:\vtkprojects\mem\copy of
basic2\code\coreembed.cpp(1079) : error C2664: 'void __thiscall
vtkPointSet::GetPoint(int,double [])' : cannot convert parameter 2 from 'float
*' to 'double []'<BR> Types pointed
to are unrelated; conversion requires reinterpret_cast, C-style cast or
function-style cast<BR>functions.cpp<BR>c:\vtkprojects\mem\copy of
basic2\code\functions.cpp(332) : error C2664: 'void __thiscall
vtkPointSet::GetPoint(int,double [])' : cannot convert parameter 2 from 'float
[3]' to 'double []'<BR> Types
pointed to are unrelated; conversion requires reinterpret_cast, C-style cast
or function-style cast<BR>c:\vtkprojects\mem\copy of
basic2\code\functions.cpp(395) : error C2664: 'void __thiscall
vtkPointSet::GetPoint(int,double [])' : cannot convert parameter 2 from 'float
[3]' to 'double []'<BR> Types
pointed to are unrelated; conversion requires reinterpret_cast, C-style cast
or function-style cast<BR>c:\vtkprojects\mem\copy of
basic2\code\functions.cpp(829) : error C2440: 'initializing' : cannot convert
from 'double *' to 'float *'<BR>
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style
cast or function-style cast<BR>c:\vtkprojects\mem\copy of
basic2\code\functions.cpp(893) : error C2440: 'initializing' : cannot convert
from 'double *' to 'float *'<BR>
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style
cast or function-style cast<BR>c:\vtkprojects\mem\copy of
basic2\code\functions.cpp(929) : error C2664: 'void __thiscall
vtkDataArrayTemplate<float>::GetTuple(int,double *)' : cannot convert
parameter 2 from 'float [3]' to 'double
*'<BR> Types pointed to are
unrelated; conversion requires reinterpret_cast, C-style cast or
function-style cast<BR>c:\vtkprojects\mem\copy of
basic2\code\functions.cpp(1359) : error C2664: 'void __thiscall
vtkPointSet::GetPoint(int,double [])' : cannot convert parameter 2 from 'float
*' to 'double []'<BR> Types pointed
to are unrelated; conversion requires reinterpret_cast, C-style cast or
function-style cast<BR>Error executing cl.exe.<BR><BR>test.exe - 14 error(s),
0
warning(s)<BR><BR><BR>*************************************************************************************<BR>when
I checked the header files available with both installations,for
vtkPointSet::GetPoint, I found them different<BR>vtkPointSet::GetPoint(int,
double[])(installation using self compiled
binary)<BR>vtkPointSet::GetPoint(int, float[]) (installation using precompiled
binary)<BR><BR>Interestingly, the online documentation of vtkPointSet conforms
to the second signature and is not in accordance with the source
code.<BR><BR><BR>I presume the implementation of vtkPointSet::GetPoint() has
been changed in later releases. If the implementation of vtkPointSet is
changed in vtk 5, why is the online documentation still inline with
previous<BR>implementation.<BR>Is there any quick fix to this problem or I
have to change the source code and recompile vtk.I MUST need float instead of
double.<BR><BR>thanks for your time<BR>Regards<BR>Salman<BR>University of
Surrey,U.K.<BR> <BR><BR></FONT></P></BLOCKQUOTE></BODY></HTML>