Class ModelCreator

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.List<ModelCreator.IFace> faces  
      protected boolean flipNormals  
      protected boolean hardEdges  
      protected int index  
      java.lang.String name  
      java.util.List<com.badlogic.gdx.math.Vector3> normals  
      java.util.List<com.badlogic.gdx.math.Vector2> uv  
      java.util.List<com.badlogic.gdx.math.Vector3> vertices  
    • Constructor Summary

      Constructors 
      Constructor Description
      ModelCreator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addFace​(java.util.List<ModelCreator.IFace> faces, boolean flipNormals, int... v)  
      void dumpObj​(java.io.OutputStream os)
      Exports the model to the .obj (Wavefront) format in the given output stream.
      protected int[] flip​(int[] v, int startIndex)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        public java.lang.String name
      • vertices

        public java.util.List<com.badlogic.gdx.math.Vector3> vertices
      • normals

        public java.util.List<com.badlogic.gdx.math.Vector3> normals
      • uv

        public java.util.List<com.badlogic.gdx.math.Vector2> uv
      • index

        protected int index
      • flipNormals

        protected boolean flipNormals
      • hardEdges

        protected boolean hardEdges
    • Constructor Detail

      • ModelCreator

        public ModelCreator()
    • Method Detail

      • addFace

        protected void addFace​(java.util.List<ModelCreator.IFace> faces,
                               boolean flipNormals,
                               int... v)
      • flip

        protected int[] flip​(int[] v,
                             int startIndex)
      • dumpObj

        public void dumpObj​(java.io.OutputStream os)
                     throws java.io.IOException
        Exports the model to the .obj (Wavefront) format in the given output stream.
        Parameters:
        os - The output stream.
        Throws:
        java.io.IOException