Overlapping co-ordiantes of rectangles fail to print in python

Peter Pearson pkpearson at nowhere.invalid
Thu Nov 17 14:19:08 EST 2016


On Thu, 17 Nov 2016 06:27:49 -0800 (PST), arunsocs at gmail.com wrote:
>  I am working with following code in which I am trying to output co
>  ordinates of overlapping rectangles.. However the code fails to
>  output the co ordinates. I am customizing the following code

[about 100 lines of code removed]

> Where I need to change the code to output all overlapping rectangles
> and its co ordinates?

First, insert a print statement to determine whether the problem is
  (a) no overlapping rectangles are being found, or
  (b) the overlapping rectangles that are found are not being printed.

If (a), proceed to investigate whether
  (a1) there are, in fact, no overlapping rectangles, or
  (a2) your code is failing to recognize overlapping rectangles.

And so forth . . .

-- 
To email me, substitute nowhere->runbox, invalid->com.



More information about the Python-list mailing list