Basic curve rendering functionality - merge with master

Hi Franz

Please look at this pull request and merge with master if everything is okay.