new library functions for mesh manipulation added