SpaceGroupUCL / depthmapX

depthmapX is a multi-platform Spatial Network Analysis Software
200 stars 53 forks source link

Make sure the seedref centre is visible from the seed when filling #188

Closed pklampros closed 6 years ago

pklampros commented 6 years ago

Make sure the centre of the seedref (pixel to start filling from) is actually visible from the seed (exact point clicked) when filling the grid

This can be seen in the example below: Currently (left) when clicking within the red area a pixel is selected (noted in blue), and the filling process starts from the centre of that pixel. The result is visible on the right. wheretoclick result The problem is that the user has actually clicked within the below general area not the above (which is the one that gets to be filled). This change first checks if the pixel centre is actually visible from the clicked point and only fills it then