I created a MathFixed class that does
float operations and trigonometric on int's
and sinus are stored in a table.

For info the 3D mesh was generated in java with a external mini3d toolbox,

Compute sequential rotations

This could be also run in an applet or application (just replace imports)

Using a Preprocessor in Java ? (H4x0r stuff)

Most of the code is the same between different sdk and api,
To ensure genericity I use GNU cpp preprocessor to generate java file,
Java Reflexion could solve this ugly method but can't be used in j2me.

If you familiar with C or C++ (or Povray) using a preprocessor, should not
be a trouble for you. Else here are some basic sample code :