The customer marks the window's four corners and types its width. Code works out the perspective, tiles the real fabric scan at true scale, adds the fullness and warps it into place. Only then does the model get involved, inside a mask it cannot paint outside of: folds, shading, daylight through a sheer. Afterwards, code counts the repeats in the finished image and throws away renders that drifted.