[caret-users] CerebralHull.vtk broken?

Michael Hanke michael.hanke at gmail.com
Tue Jul 15 12:04:44 CDT 2008


On Tue, Jul 15, 2008 at 09:53:33AM -0500, John Harwell wrote:
> Michael,
> 
> The problem is that the VTK file has commas instead of periods for the  
> decimal points.
> 
> POINTS 13962 float
> 43,4298 -2,86038 -43,2584 41,6454 -2,83801 -43,5191 41,5233 -1,39223  
> -43,4628
> 44,4783 -1,63353 -43,4827 45,4978 -1,44732 -41,8595 43,8519 -0,819029  
> -43,7802
> 42,4223 -0,286592 -43,9258 41,397 -4,53123 -42,7291 43,2797 -6,69071  
> -41,6795
> 44,6393 -4,59945 -41,6029 41,1897 0,785529 -43,19 44,8851 -0,354329  
> -43,4192
> 
> If I replace the commas with periods, Caret, using the VTK library, is  
> able to read the file successfully.
> 
> The use of commas, instead of periods, is caused by a locale  
> (internationalization) set by either VTK or the C++ compiler used to  
> compile VTK.  Since you built the Debian version of Caret, you will  
> have determine the source of the problem.
Ah! I missed that. But now it becomes familiar. Take a look at

	http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=482126

there seems to be a change in Qt behavior (I'm running 4.4.0 here and
above bug did not happen with Qt 4.3). The bugreport also contains the
patch.

I'm pretty sure that this is not Debian-specific, so others will
probably be affected when Qt 4.4 is more wide-spread.


Running caret with:

	LC_ALL=C caret5

is a workaround for now (i.e. works for me).


Thanks,

Michael

-- 
GPG key:  1024D/3144BE0F Michael Hanke
http://apsy.gse.uni-magdeburg.de/hanke
ICQ: 48230050



More information about the caret-users mailing list