Product of 2 polygons.

BlitzMax Forums/BlitzMax Programming/Product of 2 polygons.

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.

This may sound wierd but I would like some code to add together two polygons giving one polygon as the result. Each polygon is made of array data points. The format is
array[x,y,x2,y2.....]

I'm not very good at making agorithems, I thought it might first check for line intersections, then divide the line into two lines, these would be saved as temp vars. If either of the two lines resides within a polygon delete the line segment. Then the data of lines is saved into a temp var list and returned. THis might not work and I have no idea how to impliment it.


I have something very innovative planned for this.