OBJExport
latest 06/02/2009
Description

This is a simple library to export surfaces from processing as OBJ files. It is used the same way the PDF library is used.

Currently, it won't export lines or curves, but it may in the future. It is still fairly untested, so expect bugs.

Tested on Windows XP, OS X

Installation

To install simply download the zip file, and extract the contents to your Processing libraries folder.

Example
		
import nervoussystem.obj.*;
boolean record;

void setup() {
  size(400, 400,P3D);
}

void draw() {
  if (record) {
    beginRecord("nervoussystem.obj.OBJExport", "filename.obj"); 
  }  
  box(100,100,100);
  if (record) {
    endRecord();
    record = false;
  }
}

void mousePressed() {
  record = true;
}