Mesh in the wrong size

Meshparts created with Instance.new() will have a default meshsize of 0,0,0, while normal meshpart imported by hand in studio has a meshsize. So it the mesh would go from this
image
to this

So I want to know is a method that can calculate the Mesh.Size when Mesh.Meshsize is 0,0,0