<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>problem with different versions of  vtkPointSet ! Help !</TITLE>
</HEAD>
<BODY>
<!-- 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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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&lt;float&gt;::GetTuple(int,double *)' : cannot convert parameter 2 from 'float [3]' to 'double *'<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>