All Known Implementing Classes:
Load3MF, LoadAMF, LoadOBJ, LoadPLY, LoadSTL

public interface MeshLoader

MeshLoader interface for all classes that load a Mesh.

All MeshLoader should be registered with the MeshFactory.

  • Method Details

    • getEnglishName

      String getEnglishName()
    • getValidExtensions

      String[] getValidExtensions()
    • load

      void load(BufferedInputStream inputStream, Mesh model) throws Exception
      Load data from stream
      Parameters:
      inputStream - source of data
      model - mesh into which data will be loaded
      Throws:
      Exception - if something goes wrong
    • hasMaterial

      default boolean hasMaterial(String absolutePath)
      Does this loader find a material file near the mesh file?
      Parameters:
      absolutePath - path to mesh file
      Returns:
      true if a material file is found
    • getMaterialPath

      default String getMaterialPath(String absolutePath)
      Get the path to the material file
      Parameters:
      absolutePath - path to mesh file
      Returns:
      path to material file or null.