[vtkusers] vtkOBJExporter, vtkVRMLExporter and vtkPolyDataWriter problem
Joachim Pouderoux
joachim.pouderoux at kitware.com
Wed Dec 19 12:01:20 EST 2012
Hi Mickael,
This is a "classical" locale issue with french configurations.
Try to add
setlocale(LC_ALL, "C");
or
std::setlocale(LC_ALL, "C");
in the first line of your main function.
Joachim
2012/12/19 R M <mlokida at yahoo.fr>
> Hi,
>
> I use vtk 5.8 with Linux Centos 6.
> My problem is when I use vtkOBJExporter, vtkVRMLExporter and
> vtkPolyDataWriter, files are created but I can't open them anymore.
> It seems that I have a probem with the format. I have "," instead of "."
> as numbers separators.
> So, I have change the locals of my system. It only works for the vtk
> output but I have still problems with obj and wrl that I have exported.
> I have this message:
>
> I can't open them anymore with my application. I have a reading error (Error
> reading ascii data. Possible mismatch of datasize with declaration.)
>
> Any idea in order to save and open them correctly ?
>
> Thanks !
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
--
*Joachim Pouderoux*
*PhD, R&D Enginee*r
*Kitware SAS <http://www.kitware.fr>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20121219/fb9caee7/attachment.htm>
More information about the vtkusers
mailing list