Jump to content
  • Advertisement
Sign in to follow this  
Majestik_666

Drawing a 2D bezier/B-Spline patch

This topic is 4075 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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 !

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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 !

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!