fixed artifacts with small curves, refactored and cleaned up the code.
implemented curve presplitting.
added a comment.
Merge branch 'master' of github.com:appleseedhq/appleseed