The previous code was using matrix multiplication to get the local thickness to world thickness. The correct way is to multiply the local thickness by the scale of the object (length of each columns of the object_to_world matrix).
The previous code was using matrix multiplication to get the local thickness to world thickness. The correct way is to multiply the local thickness by the scale of the object (length of each columns of the object_to_world matrix).