Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more precise spatial check for the query #417

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

mmeijerdfki
Copy link
Contributor

Changelog:

  • Adds new spatial checking function checkPartialIntersectionWithZExtrudedPolygon for Image and Pointcloud datatypes. It utilizes CGALs do_intersect function to check whether two 3D objects with arbitrary pose are intersecting
  • 3 new tests for the new check (sketched in the images at the end)
  • fix a bug where the maximum for AABB point coordinates is not set properly, when coordinates have negative values

The new tests visualized:
For the Pointcloud test (test_queryPCPreciseNoIntersect):
The cube is the query and the rotated box is the pointcloud.
test_queryPCPreciseNoIntersect
For the image test (test_queryImagePreciseIntersect, test_queryImagePreciseNoIntersect), the cube is the query and the pyramid the camera frustum:
With Intersection.
test_queryImagePreciseIntersect
Without Intersection.
test_queryImagePreciseNoIntersect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants