maspack.geometry.io
Class GenericMeshReader

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

public class GenericMeshReader
extends java.lang.Object
implements MeshReader


Constructor Summary
GenericMeshReader(java.io.File file)
           
GenericMeshReader(java.lang.String fileName)
           
 
Method Summary
 void close()
           
 MeshWriter.DataFormat getDataFormat()
           
 MeshWriter.FloatType getFloatType()
           
 int getPrecision()
           
 MeshBase readMesh()
           
static MeshBase readMesh(java.io.File file)
           
static MeshBase readMesh(java.io.File file, MeshBase mesh)
           
 MeshBase readMesh(MeshBase mesh)
           
static MeshBase readMesh(java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericMeshReader

public GenericMeshReader(java.lang.String fileName)
                  throws java.io.IOException
Throws:
java.io.IOException

GenericMeshReader

public GenericMeshReader(java.io.File file)
                  throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getDataFormat

public MeshWriter.DataFormat getDataFormat()

getFloatType

public MeshWriter.FloatType getFloatType()

getPrecision

public int getPrecision()

readMesh

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

readMesh

public MeshBase readMesh(MeshBase mesh)
                  throws java.io.IOException
Specified by:
readMesh in interface MeshReader
Throws:
java.io.IOException

close

public void close()
Specified by:
close in interface MeshReader

readMesh

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

readMesh

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

readMesh

public static MeshBase readMesh(java.io.File file,
                                MeshBase mesh)
                         throws java.io.IOException
Throws:
java.io.IOException