Version 2 (3D cubic coordinates)