maspack.geometry.io
Class OpenSimBinReader

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

public class OpenSimBinReader
extends MeshReaderBase

Reads a polygonal mesh from the OpenSim binary ASC format Big-endian 0x00 00 00 85, # vertices, # faces, # indices for faces, # max nodes/face coordinates... number vertices for each face ... faces ...

Author:
antonio

Field Summary
static int FILE_ID
           
 
Constructor Summary
OpenSimBinReader(java.io.File file)
           
OpenSimBinReader(java.io.InputStream is)
           
OpenSimBinReader(java.lang.String fileName)
           
 
Method Summary
static PolygonalMesh read(java.io.File file)
           
static PolygonalMesh read(java.lang.String fileName)
           
 MeshBase readMesh(MeshBase mesh)
           
 PolygonalMesh readMesh(PolygonalMesh 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
 

Field Detail

FILE_ID

public static int FILE_ID
Constructor Detail

OpenSimBinReader

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

OpenSimBinReader

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

OpenSimBinReader

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

readMesh

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

readMesh

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

read

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

read

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