changes in API to support 3D
culling working for both 2d and 3d projections
Merge pull request #5439 from ricardoquesada/api_fixed_for_3d

Api fixed for 3d