kaa icon indicating copy to clipboard operation
kaa copied to clipboard

spatial index queries return Nodes outside view's rendering area

Open PawelRoman opened this issue 3 years ago • 0 comments

Steps to replicate:

  1. Have a view that renders stuff only in specific area e.g. 100x100 box in the middle of the screen
  2. Add some nodes to that view in such position that those nodes are outside the view's render area ie. do not appear on the screen
  3. Run scene.spatial_index.query_point on a point OUTSIDE view's render arena, but where the node is.

Expected: node is not get returned (as it is outside view's render area) Actual: node is returned

Suggestion: add a flag to all spatial query methods to allow to explicitly query for nodes outside of the view's render area. But by default that flag should be disabled - queries should return only the nodes in the render area of the view.

PawelRoman avatar Aug 22 '21 18:08 PawelRoman