Original Post
Hello Im looking for good ways to perform boolean operations on 2d areas. Say i have 2 2d shapes, defined by their outlines (as a list of lines between vectors) and holes (defined in the same way). Both the outer outline and the holes outlines can be non-convex. I need to perform operations between these 2 shapes like and, not, or etc. The result of these operations should be a list of shapes. (Because some operations could result in multiple separated objects) Are there any nice algorithms for dooing this? I have sort of done it already by checking intersection points between outlines and holes and extracted the new shapes from that information. But this is very ugly and sensitive to numeric errors, so if there are better ways, i'd like to here about them. Some keywords to google would be great. //Emil