Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Subdividing a concave polygon

This topic is 6667 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

Make sure the winding of your polygin is counter-clockwise, and the winding of all of its holes are clockwise. Then trapezoidalize the polygon and its holes. Then connect the support vertices of the trapezoids which have interior cusps. This converts the polygon and its holes into a set of monotone polygons. Each monotone polygon has two chains, a left one, and a right one. Traverse down both chains simultaneously, and at each vertex of each chain, connect across to the opposite chain to the highest vertex, thus removing that vertex from the chain and the created triangle!

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!