LPIS: improve clipping, connect touching nodes