Class ObjReader

java.lang.Object
com.ijurnove.cpu3d.ObjReader

public class ObjReader extends Object
ObjReader contains one method, read(), for converting an .obj file to a Mesh.
  • Constructor Details

    • ObjReader

      public ObjReader()
  • Method Details

    • read

      public static Mesh read(String path)
      Reads a given .obj file and returns a Mesh of its triangles.
      Parameters:
      path - the path of the file to be read
      Returns:
      a Mesh representing the object defined in the .obj file