Added ability to convert 3D shapes.