<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 9pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi all,<BR>
&nbsp;<BR>
I want to do the visualization with dividing cubes, so I should use the vtkDividingCubes class. And I download the vtkDividingCubes.cxx and vtkDividingCubes.h from the internet, for there’s no vtkDividingCubes.cxx and vtkDividingCubes.h in vtk42, even in vtk5. <BR>
&nbsp;<BR>
However, after I build the code, I find the error: vtkDividingcubes.cpp(199) : error C2664: 'GetPointGradient' : cannot convert parameter 5 from 'double [3]' to 'float []'……<BR>
&nbsp;<BR>
&nbsp;I find that the parameter of vtkDividingCubes are all double type, while GetPointGradient() in "vtkImageData.h" is type of float. So I guess the root cause is the difference of the vtk42 and the vtkDividingcubes I download?<BR>
&nbsp;<BR>
How to resolve this problem? I’ve tried to force it convert double to float, but still have error message…<BR>
&nbsp;<BR>
Pls help me, thanks a lot!<BR>
&nbsp;<BR>
&nbsp;<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; Sarah<BR><br /><hr />轻松把Hotmail下载到本地,试试 Windows Live Mail。 <a href='http://get.live.com/wl/all' target='_new'>立即尝试!</a></body>
</html>