Breaking complex polys into quads

Blitz3D Forums/Blitz3D Programming/Breaking complex polys into quads

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Has anyone come across any code to take a 2d shape and break it into quads?

I need to be able to bring in some urban area shapes and break 'em down into rectangles/quads.

By texturing each quad and aligning each texture with the quad's longest side, I think I can then make it appear as though there's structured housing from a distance (rather than just applying one blanket texture across the entire urban area).

But how can I break down the complex shapes?