Drawing a 2D bezier/B-Spline patch

Started by
3 comments, last by Majestik_666 17 years ago
Hi, am looking for the easiest way to draw a 2D Bezier/B-Spline patche, i.e. I define a close bezier curve and I want to fill the inside region defined by the curve. Is there another way than tesselating the surface ? Thanks !
Advertisement
you have a closed curve (endpoint = startpoint) and want to fill the region inside that curve? SCANLINE or seed fill might be an option
http://www.8ung.at/basiror/theironcross.html
yes it is a closed shape ...

not sure what technics you're referring to though

is Scanline rendering each scanline finding the different segments that are
part of the shape ?

what about the Seed one ?

and a follow up to this question being, I will need to make some soft edges
on this shape at user demand (ie the user will drag a point and expand/reduce
the soft edge distance), any idea on this ?

Thanks a lot !
Scanline filler
The scanline algorithm is almost correct for me,
but my problem is that the curves can intersect ... not sure how
to handle that....

And on another note, any idea how to draw a feathered edge for a shape ?
i.e. have a gradient outline around the shape.

This topic is closed to new replies.

Advertisement