Few changes and test for new material.
Merge pull request #203 from xoppa/new3dapi

Few changes and test for new material.