You should be able to replace the setupCoordinates() code with your own, and by pressing a button, the file "output.obj" is created.
You can now import this file into Rhino, Maya, 3dsMax or any other CAD-program for further manipulation.
The task for Friday is to document your week, with a high quality rendering, the code for your coordinate generation as well as some comments to that code. We can make A3 posters, but a A4 page is also enough, if you prefer it.
We will then move on with printing the "unrolled" surfaces, to be able to build a real life version of it. Bring scissors and paper!
UPDATE
There was a bug in saveOBJ.pde, I have updated the version on the server but you can also change the line
output[(nrFaces + nrFaces*2 + 5)]= "f " + (b-4) + " " + (b-3) + " " + 1 + " " + 0;
to
output[(nrFaces + nrFaces*2 + 5)]= "f " + (b-4) + " " + (b-3) + " " + 2 + " " + 1;
yourselves
i couldn't run the program properly in example 11. it gives an error; "can not find a class or type named "saveobj".
YanıtlaSilYou should also download the saveOBJ.pde to the same folder where you saved exp 11.
YanıtlaSil