How to pass data between VTK and netgen directly WITHOUT writing/reading files?

I knew how to exchange data by file,but it is verbose,so how to pass data to each other directly without writing/reading files?