Drawing curve based on TexturedMesh