It looks like you're new here. If you want to get involved, click one of these buttons!
I want to use the filling tool in my Python script and for that, I need to translate the following script from Ruby to Python. I have problem with the While loop. Any suggestions?
r = ... # region to fill c = ... # cell in which to produce the fill cells fc_index = ... # fill cell index fc_box = ... # fill cell footprint fill_margin = RBA::Point::new(0, 0) # x/y distance between tile cells with different origin # Iteration: fill a region and fill the remaining parts as long as there is anything left. # Polygons not worth being considered further are dropped (last argument is nil). while !r.is_empty? c.fill_region(r, fc_index, fc_box, nil, r, fill_margin, nil) end