maspack.geometry.io
Class PlyReader

java.lang.Object
  extended by maspack.geometry.io.MeshReaderBase
      extended by maspack.geometry.io.PlyReader
All Implemented Interfaces:
MeshReader

public class PlyReader
extends MeshReaderBase

Reads a PolygonalMesh from an ascii PLY format

Author:
John Lloyd, Jan 2014

Constructor Summary
PlyReader(java.io.File file)
           
PlyReader(java.io.InputStream is)
           
PlyReader(java.lang.String fileName)
           
 
Method Summary
 MeshWriter.DataFormat getDataFormat()
           
 MeshWriter.FloatType getFloatType()
           
static MeshBase read(java.io.File file)
           
static MeshBase read(java.lang.String fileName)
           
 MeshBase readMesh(MeshBase mesh)
           
 
Methods inherited from class maspack.geometry.io.MeshReaderBase
close, readMesh
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlyReader

public PlyReader(java.io.InputStream is)
          throws java.io.IOException
Throws:
java.io.IOException

PlyReader

public PlyReader(java.io.File file)
          throws java.io.IOException
Throws:
java.io.IOException

PlyReader

public PlyReader(java.lang.String fileName)
          throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getDataFormat

public MeshWriter.DataFormat getDataFormat()

getFloatType

public MeshWriter.FloatType getFloatType()

readMesh

public MeshBase readMesh(MeshBase mesh)
                  throws java.io.IOException
Throws:
java.io.IOException

read

public static MeshBase read(java.io.File file)
                     throws java.io.IOException
Throws:
java.io.IOException

read

public static MeshBase read(java.lang.String fileName)
                     throws java.io.IOException
Throws:
java.io.IOException