Class _ObjExporter


public class _ObjExporter extends __CartesianExporter
Class to export Wavefront OBJ files. The format is described at

http://en.wikipedia.org/wiki/Wavefront_.obj_file
and
http://www.martinreddy.net/gfx/3d/OBJ.spec

At least two files are produced: the object in the .obj file and the materials in the .mtl file. An additional image file is produced for each surface. All should be kept in the same directory.

The exporter has been tested for ball and stick models, but not for:
  • outputFace (not used)
  • outputCone
  • outputTextPixel
  • outputTriangle
  • outputSurface (only some possibilities tested)
Adapted for JavaScript by Bob Hanson 2/2014 using javajs.util.OC OutputChannel instead of File. This is way more flexible.
Author:
ken@kenevans.net