Switch 3d in openlayer with cesiumjs or ol-cesium

Hi everyone ,
I want to know if there is a way to switch from 2d in openlayer to 3d with a button or something using the ol-cesium plugin. is there a way or a code exeple to do so

Here you have some examples: