St33d,
The Simon Greenwold's DXF lib usage is described here: http://www.architecture.yale.edu/872a/assignment5/DXFWrite.pde. It's not like the Beta libs, you must iclude the code inside your project. It works well and you'll be able to export triangles. But I'm not sure about paths.
For a camera path, you could try to import a path inside 3dMax, and constrain the camera movement to the path. It will be the same with eyes path.
For this, you might try to export your path using .obj format. You could have a look at http://users.design.ucla.edu/~tatsuyas/tools/objloader/index.htm
wich is the inverse process (loading geometry inside p5).
If you want to export a path from P5, you could divide your path in segments and export them in a *.obj file. You export each points. The structure has to look like this:
Code:
o myPathName
v 214.307 0 -157.8553
v 341.646 0 136.476
v -358.3279 0 -86.6762
...
v x(n) y(n) z(n)
...
v 129.358 0 53.818
l -7 -6 -5 -4 -3 -2 -1
o = NameOf your Object
v = Points on your path
l = Make a line with the Points
In P5:
Code:
println("o myPath");
for(int i=0;i<pt.length-1; i++)
{
line(pt[i].x, pt[i].y, pt[i].z, pt[i+1].x, pt[i+1].y, pt[i+1].z);
println("v "+pt[i].x+" "+pt[i].y+" "+pt[i].z);
}
print("l ");
for(int i=0;i<pt.length; i++)
print("-"+pt.length-i+" ");
println();
Where pt[] is your points array.
There must be plenty of other ways to do it, like using AutoLisp instead of DXF lib, but you have to use AutoCAD to import it.