Write a script for tiling object surfaces

Hello everyone, can this object have 6 faces? Can these 6 faces be spread out on a flat surface? After being spread out, the surface cannot be flattened. If there are many faces on this object, can they be operated in the same way? May I ask a friend who can write such a plugin for customizing materials.