Add the functionality of preview picture generation of input mesh