I have a list of Polygons (each has a list of points). and some of them intersect.
in this example, the orange line is a polygon
and both blue circles are their own polygons.
and I want to remove the blue from the orange so that Ref 1 will look like Ref 2 but I want to keep the 2 blue polygons and also the newly updated orange polygone.
my current codebase, separates the points into groups, which I then make polygons from, but not sure how to separate them. being looking at blender3d python code, but got lost in the landfill
in this example, the lines for the polygon would be points which have straight lines, and are separated by a decent distance like 10 pixels.
interface Point {
x:number;
y:number;
}
interface Polygon {
Points: Points[];
}
Ref 1
Ref 2
6