There are several ways that we might try to deal with this, but, none of them are easy.
One way would be to teach objects what electrical net they're connected to. Then, throw a DRC warning if a line from a different net doesn't have "clear" set.
Another way would be to find all of the different lists of connections that are connected to the polygon, and then check the netlist to see if any of the connected pins belonged to different nets.
Any other way I can think of would require changing how polygons and lines interact.
None of them easy, but the second one might be the most feasible given the state of the code right now. I'm open to ideas, if anyone has any.
There are several ways that we might try to deal with this, but, none of them are easy.
One way would be to teach objects what electrical net they're connected to. Then, throw a DRC warning if a line from a different net doesn't have "clear" set.
Another way would be to find all of the different lists of connections that are connected to the polygon, and then check the netlist to see if any of the connected pins belonged to different nets.
Any other way I can think of would require changing how polygons and lines interact.
None of them easy, but the second one might be the most feasible given the state of the code right now. I'm open to ideas, if anyone has any.