Interface MeshIO


public interface MeshIO
Reading and writing mesh models from/to files. Currently, only .OBJ files are supported.
  • Method Details

    • readMeshModel

      static MeshModel readMeshModel(File file) throws IOException
      Reads mesh model from a file.
      Parameters:
      file - File containing face to load into a MeshModel
      Returns:
      A mesh model
      Throws:
      IOException - There was problem with reading the file
    • exportMeshModel

      static void exportMeshModel(MeshModel model, File exportFile) throws IOException
      Exports all facets of the model to .obj file
      Parameters:
      model - Model to be exported. Must not be null
      exportFile - File to which model is exported
      Throws:
      IOException