Search code examples
c++directxcurvebezierdirect2d

Is it possible to render Bezier curves without polyline approximations? If so, how?


I'm attempting to render a parametric Bezier curve in Direct 2D without any third-party libraries. Is it possible to do this without making a polyline approximation, and if so, how?

Thanks!


Solution

  • If you must, you can try to analytically rasterise curves (this includes polynomial curves such as bezier or even algebraic curves).

    Here are some pointers. http://www.josiahmanson.com/research/wavelet_rasterization/wavelet_rasterization.pdf http://faculty.cs.tamu.edu/schaefer/research/scanline.pdf