#### Archived

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.

## Recommended Posts

I need to know how to subdivide a concave polygon (defined by an array of vertices) into triangles (ideally, an array of indices.) How would you go about doing that? I''m expecting that there are tons of articles on this but I haven''t seen any yet lntakitopi@aol.com - http://www.geocities.com/guanajam

##### Share on other sites
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!

1. 1
2. 2
3. 3
4. 4
5. 5
Rutin
15

• 14
• 9
• 9
• 9
• 10
• ### Forum Statistics

• Total Topics
632912
• Total Posts
3009183
• ### Who's Online (See full list)

There are no registered users currently online

×