Minimal example of the 3d api
The 3d example now does not segfault