maspack.geometry.io
Class OpenSimAscReader

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

public class OpenSimAscReader
extends MeshReaderBase

Reads a polygonal mesh from the OpenSim ASC format New ASCII: NORM_ASCII nVert nFaces bounding box vx vy vz nx ny nz (vertex coordinates) ... nv n1 n2 n3 (face vertex index list, 0 indexed) ... Old ASCII: nVert nFaces vx vy vz ... nv n1 n2 n3 (1 indexed) Binary:

Author:
antonio

Constructor Summary
OpenSimAscReader(java.io.File file)
           
OpenSimAscReader(java.io.InputStream is)
           
OpenSimAscReader(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
 

Constructor Detail

OpenSimAscReader

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

OpenSimAscReader

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

OpenSimAscReader

public OpenSimAscReader(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