Class OBJWriter

java.lang.Object
toxi.geom.mesh.OBJWriter

public class OBJWriter extends Object
Extremely bare bones Wavefront OBJ 3D format exporter. Purely handles the writing of data to the .obj file, but does not have any form of mesh management. See TriangleMesh for details. Needs to get some more TLC in future versions.
See Also:
  • Field Details

  • Constructor Details

    • OBJWriter

      public OBJWriter()
  • Method Details

    • beginSave

      public void beginSave(OutputStream stream)
    • beginSave

      public void beginSave(String fn)
    • endSave

      public void endSave()
    • face

      public void face(int a, int b, int c)
    • faceList

      public void faceList()
    • faceWithNormals

      public void faceWithNormals(int a, int b, int c, int na, int nb, int nc)
    • getCurrNormalOffset

      public int getCurrNormalOffset()
    • getCurrVertexOffset

      public int getCurrVertexOffset()
    • newObject

      public void newObject(String name)
    • normal

      public void normal(Vec3D n)
    • vertex

      public void vertex(Vec3D v)