Class ExtractorService

java.lang.Object
io.github.mwttg.wavefront.extractor.ExtractorService

public final class ExtractorService extends Object
A function for transforming the content of the .obj file for later processing.
  • Method Details

    • extractFrom

      public static FileData extractFrom(List<String> lines)
      Processes each line of the obj file and transforms it to an internal data structure FileData. The transformation depends on the token of the line of the .obj file. Only 3D data is supported. v - vertex vt - texture coordinate (uv) vn - normal f - face (only triangles are supported) Unknown token will get NOT processed.
      Parameters:
      lines - the lines of the obj file
      Returns:
      the data structure FileData for later processing