add 3d figure (bug when rotating)
fix 3d figure transform