Miscellaneous functions for visual modelling