com.io7m.r2.meshes.obj

## Class R2ObjMeshImporter

- java.lang.Object
- - com.io7m.r2.meshes.obj.R2ObjMeshImporter

- All Implemented Interfaces:
    R2ObjMeshImporterType

      public final class R2ObjMeshImporter
      extends Object
      implements R2ObjMeshImporterType

  The default implementation of the `R2ObjMeshImporterType` interface.

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Map<String,R2MeshBasicType>` | `loadMeshesFromStream(Optional<Path> path, InputStream s, R2ObjMeshErrorListenerType error)` Load all meshes from the given stream.
    `static R2ObjMeshImporterType` | `newImporter()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### newImporter

          public static R2ObjMeshImporterType newImporter()

      Returns:
        A new mesh importer

    - #### loadMeshesFromStream

          public Map<String,R2MeshBasicType> loadMeshesFromStream(Optional<Path> path,
                                                                  InputStream s,
                                                                  R2ObjMeshErrorListenerType error)

      Description copied from interface: `R2ObjMeshImporterType`
      Load all meshes from the given stream.
      Specified by:
        `loadMeshesFromStream` in interface `R2ObjMeshImporterType`
      Parameters:
        `path` - The file name, if any
        `s` - The stream
        `error` - An error listener
      Returns:
        The loaded meshes

Copyright © 2017 <code@io7m.com> http://io7m.com