Creating Convex Polys From Concave Polys

Started by
4 comments, last by raigan 16 years, 3 months ago
How can you do this? After searching for a while I cam across the wording "tesselate", but I didn't come up with algorithms to use with it either. I would like to extend my SAT to work with concave polys as well and I need convex polys inorder to do so. [Edited by - Trox on January 2, 2008 12:30:22 PM]
Advertisement
In short, you don't. Go the other way, convert your concave polys into convex polys.

See SWIFT++, http://www.cs.unc.edu/~geom/SWIFT++/
and Cocave decomposition sample code: http://codesuppository.blogspot.com/
Your closing sentence disagrees with the thread title. Which is it you need?
Ring3 Circus - Diary of a programmer, journal of a hacker.
I am very sorry, I made the title backwards. I'll try to edit it if I can. I want to create convex polys from concave polys.
Typically, decomposition to triangles is desired. It's aptly called polygon triangulation. Various methods exist, trading off design-simplicity, run-time efficiency and uniformity of the resulting triangles.

I'll leave the recommendations up to somebody more experienced than me.
Ring3 Circus - Diary of a programmer, journal of a hacker.
You should check out this thread: http://www.box2d.org/forum/viewtopic.php?f=4&t=83

This topic is closed to new replies.

Advertisement