Question on STL transformation in slicer's world coordinate

Thank you for providing the reference.

I have gone through it, and I was wondering how I can utilize the exact transformation matrix of Slicer. I am setting the labelmap’s origin and spacing to be the same as the one given in the CreateClosedSurface function of the vtkBinaryLabelmapToClosedSurfaceConversionRule class.

I’ve been stuck on this problem for many days. I would appreciate further help.

Here’s a picture of the models for reference (the green model is from Slicer, and the yellow one is generated from the script):

Thank you.