Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> If you have the points in the convex hull and a set of points representing each hole, then rectangularization should be easy because the convex hull should be rectilinear.

I don't follow.

    aa
    aa  
  bbbbbb
  bbbbbb
    cc
    cc
Convex hull is an octagon (with no right angles)?


Can you just modify the gift wrapping algorithm such that the next point selected must be on a straight line from the previous point?

http://en.wikipedia.org/wiki/Orthogonal_convex_hull Suggests it is doable in O(n log n) still, but totally overlooked this modification in my post my bad...


> http://en.wikipedia.org/wiki/Orthogonal_convex_hull

Ah, that's what I was missing, thanks.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: