<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Message</TITLE>

<META content="MSHTML 5.50.4522.1801" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=709453117-07022002><FONT face=Arial color=#0000ff size=2>I have 
seen this problem in the past too and raised it to the mailing list.&nbsp; I 
believe the issue revolves around the hardware platform the code is running on 
versus the platform the binary file was written.&nbsp; The vtkPLYReader does 
check for endianness as indicated in the file header, but it needs to perform an 
additional step to see whether or not byte-swapping is necessary to correctly 
interpret what has been read.&nbsp; </FONT></SPAN></DIV>
<DIV><SPAN class=709453117-07022002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=709453117-07022002><FONT face=Arial color=#0000ff size=2>I wish 
I was good at coding, but I'm not... I did find a work around in my own PLY 
reader where I do a check to see if byte-swapping is required.&nbsp; I sent the 
code snippet to Kitware and got a response from Will indicating that he would 
implement the change to the PLYReader code.&nbsp; I don't know what kind of 
timing Will has in mind but I'm anxious to see it come too.</FONT></SPAN></DIV>
<DIV><SPAN class=709453117-07022002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=709453117-07022002><FONT face=Arial color=#0000ff size=2>I wish 
I could help, but I'm not a programmer...</FONT></SPAN></DIV>
<DIV><SPAN class=709453117-07022002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=709453117-07022002><FONT face=Arial color=#0000ff 
size=2>Chris</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> Joris Vanden 
  Wyngaerd [mailto:Joris.VandenWyngaerd@esat.kuleuven.ac.be] <BR><B>Sent:</B> 
  Thursday, February 07, 2002 10:26 AM<BR><B>To:</B> 'Vtk 
  Mailinglist'<BR><B>Subject:</B> [vtkusers] vtkPLYReader can not handle big 
  endian files ?<BR><BR></FONT></DIV>
  <DIV><SPAN class=560122216-07022002><FONT face=Arial size=2>I just upgraded to 
  vtk 4.0 and wanted to try out the vtkPLYReader</FONT></SPAN></DIV>
  <DIV><SPAN class=560122216-07022002><FONT face=Arial size=2>Some files it read 
  ok, others it did not. Could it be that the problem is that it does not handle 
  correctly file written in big endian ?</FONT></SPAN></DIV>
  <DIV><SPAN class=560122216-07022002><FONT face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=560122216-07022002><FONT face=Arial size=2>I put an example 
  file at&nbsp; </FONT></SPAN><SPAN class=560122216-07022002><FONT face=Arial 
  size=2><A 
  href="ftp://scully.esat.kuleuven.ac.be/joris/temp/test.ply">ftp://scully.esat.kuleuven.ac.be/joris/temp/test.ply</A></FONT></SPAN></DIV>
  <DIV><SPAN class=560122216-07022002><FONT face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=560122216-07022002><FONT face=Arial size=2>the first face 
  read has point indices 0x0, 0xc8000000, 0x01000000 where it should be 9,200,1 
  (0x0,0xc8,0x1) so i think it is an endian problem.</FONT></SPAN></DIV>
  <DIV><SPAN class=560122216-07022002></SPAN>&nbsp;</DIV><FONT face=Arial 
size=2>
  <DIV align=left>================<BR>Joris Vanden Wyngaerd <BR>coordinates : <A 
  href="http://www.esat.kuleuven.ac.be/~joris/personalia.html">http://www.esat.kuleuven.ac.be/~joris/personalia.html</A></DIV>
  <DIV>&nbsp;</DIV>
  <DIV align=left>"Quand les degoûtés s'en vont il ne restent que les 
  degoûtants"</FONT></DIV>
  <DIV>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>

<P>------------------------------------------------------------------------------<br>
This e-mail is intended for the use of the addressee(s) only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law.  If you have received this message in error, please inform us promptly by reply e-mail, then delete the e-mail and destroy any printed copy.   Thank you.<br>
<br>
==============================================================================</P>