Karamba API units setting in python

I’ve been trying to make a Karamba model in Python, but the max displacement and mass calculations don’t match what Karamba components give in Grasshopper. I think there’s a unit problem in my code. Could you help me out? In the attachment I am sending you the screenshot of my code. In the screenshot you can see the difference between the results in panels, and settings printed in python. As you can see the max displacement calculated in python is too much, and the mass is too low.

I found the solution, The problem was because of triangulation. MeshToShell component triangulates the mesh automatically, but when you are using the commands from API you need to triangulate your mesh by yourself.