3dprimitives optimizations + fix warnings
Merge pull request #3 from arturoc/3dprimitives

3dprimitives optimizations + fix warnings