Can I generate a mesh template from a collections of surface meshes in slicer?

Hello, I have a lot of left and right lung surface meshes generated from a zero-centered 512x512x512 physical space from lung CTs.
I want to generate two template meshes for them.
Are there any tools and tutorials to do this task in slicer?
Thank you!