function WriteObjFile( filename, vertex, face );

fid  = fopen( filename, 'w' );

num_vert = size(vertex);
num_vert = num_vert(1);

num_face = size(face);
num_face = num_face(1);

for i = 1:num_vert
    fprintf(fid, 'v %f %f %f\n', vertex(i,1), vertex(i,2), vertex(i,3));
end;

for i = 1:num_face
    fprintf(fid, 'f %d %d %d\n', face(i,1), face(i,2), face(i,3));
end;
