I made a great decision (I hope...) to pass to Eclipse for a more professional development. And now I face with first professional (!) problem. I try to import this project in Eclipse but it seems doesn't recognize some function (like random, pow, vertex...). 1 - some function are outside processing.core? 2 - Plus Eclipse force me in some case to convert from float to double. Not clear, hints on this are welcome 3 - I don't fully understand how to implement the parent mechanism of PApplet?
Have you read the Eclipse tutorials? Searched the forum for similar threads (numerous!)? In Eclipse, your class must extend PApplet to be able to use Processing's functions. If you have a secondary class, you have to pass an instance of the PApplet, to be able to call pa.random() for example (where pa is a reference on the PApplet subclass). Moreover, Processing makes all literal decimal numbers to be float, by appending f to them, behind the scene. You have to do this manually in Eclipse, since default in Java is doubles.
I downloaded the project, imported it in Eclipse, made the necessary changes and corrected a few errors. Finally I got it to compile. But the output is just a blank applet viewer window. I couldn't figure out why nothing is getting displayed. Check out the modified project here.