3d Visualisation of Sample in Python Script

Hello, I am new to BornAgain Python Scripting and was writing my first scripts. I noticed that the sample generated via the scripts cannot be viewed in 3d, unlike that in the GUI. Is there a way to export the sample density profile as a VTK, so that one could visualise it, in say Paraview ? best, Rahul