def complement(shp, reshaped=False): if reshaped: shp = reshape(shp) else: shp = shp.copy() shp.complement() return shp
def transform(shp, trans): shp = reshape(shp) shp.Placement = spexpr2fcexpr(trans) return shp