AnsweredAssumed Answered

DFM Fill optimization to prefer avoiding shapes on a different layer

Question asked by tross on Dec 17, 2019
Latest reply on Dec 23, 2019 by kim_godshalk

Hi, I'm trying to create a custom fill procedure with Calibre, using DFM Fill (and its friends).  I would like to discourage (but not prohibit) Calibre from filling one layer in the same area where another layer has shapes.  Ideally, I would like to fill the rest of the area, up to some percentage, and then start to place fill in closer to (and then ultimately, under) that sensitive area.

 

The most obvious way to do this (to me, at the moment) would be to put a penalty in the DFM Fill optimization expression.  Something like:

( AREA(M1) + AREA(_FILL_) - 0.5*AREA(AND(_FILL_ M2)) ) / AREA()

 

Obviously, the AND() operation is the problem here, but I can't figure out how to get the overlap between two areas in the DFM Fill optimization expression.

 

Could someone provide some guidance about how to accomplish that (or if there's a different, better way forward that I'm not seeing)?  Thanks.

Outcomes