Class ModelCreator

    • Field Summary

      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

      Constructor Description
    • 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​( 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​( os)
        Exports the model to the .obj (Wavefront) format in the given output stream.
        os - The output stream.