maspack.geometry.io
Class OpenSimAscReader
java.lang.Object
maspack.geometry.io.MeshReaderBase
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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