[vtkusers] PLY Reader..

Pieper, Chris cpieper at kcc.com
Fri Nov 15 07:56:58 EST 2002


I have had issues with the PLY Reader in the past and have communicated to
the list -- I am not a programmer, but I believe the problem involves the
endianness of the binary data, the hardware platform the data was created on
and the hardware platform reading the data.  For example, I had trouble
reading binary data created on a SGI machine reading on an Intel Linux
machine.  I got around this by adding a check for the endianness and
performing forced byte swapping as I read the data in.

As I recall, Will replied to my post about a year ago indicating that the
development team would implement some logic that takes care of this issue.
I haven't seen it in the current release and I don't know what the plan is
regarding its implementation.

I don't know if this is helpful or not...  If you'd like to know more,
please email me directly.

Chris 

-----Original Message-----
From: K.R.Subramanian [mailto:krs at cs.uncc.edu] 
Sent: Friday, November 15, 2002 12:31 AM
To: VTK HELP
Subject: [vtkusers] PLY Reader..



Anyone used this class to read PLY files recently. I keep getting the
following error on trying to read a ply file..

************
ace% clippoly simple2.ply
get_binary_item: bad type = 0
ace%
*******************

I am able to convert this ply file to Inventor format and view it using an
Inventor viewer, so the format seems to be fine.. is there anything you need
to do in the vtkPLYReader other than set the name of the ply file and send
it down teh pipeline?

The header fo the PLY file looks as follows:

ply
format binary_big_endian 1.0
comment created by iso
element vertex 12507
property float32 x
property float32 y
property float32 z
property float32 nx
property float32 ny
property float32 nz
element face 24803
property list uint8 int32 vertex_indices
end_header


Thanks.

    -- krs





--
K.R.Subramanian                        Phone: (704) 687-4872
Department of Computer Science         FAX:   (704) 687-4893
UNC Charlotte, CARC 311                Email: krs at cs.uncc.edu
Charlotte, NC 28223-0001               Web: http://www.cs.uncc.edu/~krs



_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers

------------------------------------------------------------------------------
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.

==============================================================================



More information about the vtkusers mailing list