Classify Beziers, use DeCasteljau for CPU renderer
authorSam Moore <matches@ucc.asn.au>
Mon, 1 Sep 2014 12:55:55 +0000 (20:55 +0800)
committerSam Moore <matches@ucc.asn.au>
Mon, 1 Sep 2014 12:55:55 +0000 (20:55 +0800)
commit8b3424a48d2d2e20de1a0e60ff6e1d84b9b5e226
treeb4659a4bbdff2559c416937a0a8c8f4e5e4b5b48
parent35f1190c8c8036ed11180656769cf0c1cbf7c2b3
Classify Beziers, use DeCasteljau for CPU renderer

I don't know how glDrawLines does it, but I can't get rid of the wiggles in straight lines done using CPU renderer.
So I switched to DeCasteljau.

Then I made it classify the lines and only use one Bresenham instead of 100 anyway.
src/bezier.cpp
src/bezier.h
src/objectrenderer.cpp
src/rational.h
src/real.h
src/svg-tests/fox_simple.svg [new file with mode: 0644]
src/svg-tests/kinematic_diagram.svg [new file with mode: 0644]
src/svg-tests/lines.svg

UCC git Repository :: git.ucc.asn.au