maspack.geometry.io
Class MayaAsciiReader
java.lang.Object
maspack.geometry.io.MayaAsciiReader
public class MayaAsciiReader
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MayaAsciiReader
public MayaAsciiReader()
MayaAsciiReader
public MayaAsciiReader(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
read
public void read(java.io.Reader reader)
throws java.io.IOException
- Throws:
java.io.IOException
read
public void read(ReaderTokenizer rtok)
throws java.io.IOException
- Throws:
java.io.IOException
getGroupNames
public java.lang.String[] getGroupNames()
getGroupHierarchy
public java.lang.String[] getGroupHierarchy(java.lang.String levelIndicator)
getPolylineMesh
public PolylineMesh getPolylineMesh()
getPolylineMesh
public PolylineMesh getPolylineMesh(MayaAsciiReader.UnitInfo units)
getPolylineMesh
public PolylineMesh getPolylineMesh(java.lang.String group)
getPolylineMesh
public PolylineMesh getPolylineMesh(java.lang.String group,
MayaAsciiReader.UnitInfo units)
getTree
public Tree<MayaAsciiReader.MayaNode> getTree()
getNode
public Node<MayaAsciiReader.MayaNode> getNode(Node<MayaAsciiReader.MayaNode> root,
java.lang.String nodeName)
scanNumber
public static double scanNumber(ReaderTokenizer rtok)
throws java.io.IOException
- Throws:
java.io.IOException
scanNumbers
public static int scanNumbers(ReaderTokenizer rtok,
double[] val,
int maxCount)
throws java.io.IOException
- Throws:
java.io.IOException
doRead
public static void doRead(java.lang.String inputFile,
java.lang.String outputFile)
main
public static void main(java.lang.String[] args)