Questions tagged [bounding]
71 questions
1
vote
1 answer
Mouse Picking - Ray Sphere Intersection, bounding sphere out of position
I've been working on mouse picker on a OpenGL project and followed this guide to transform my 2D mouse position to a 3D vector on click.
The problem I have is in my calculations for picking the object/mesh. It seems to work properly if I am in the…

Emil Gustafsson
- 11
- 4
1
vote
1 answer
3D bounding box fully defined by min, max and center point?
My question is if a 3D box is/can be fully defined by a min, max and center point even if all rotations (around x,y and z axis) in this 3D space are possible?
If so, can you give me a hint on how I could start calculating one of the other…

Tommekewatdoedenu
- 23
- 1
- 3
1
vote
0 answers
Rotate a bounding box with OpenCV and Python
I have an image filled with objects and I am able to draw bounding boxes around them, thanks to the minAreaRect function.
Those rectangles are rotated. I want to retrieve images, containing only the inside of the rectangles that would be rotated by…
user7320967
1
vote
2 answers
QGraphicsRectItem::boundingRect() returns a QRectF that is 1px bigger than it should be
Let's say I have a QGrahicsRectItem item with item.width=10 and item.height=10. Its top left corner is at (0,0). item.BoundingRect() should return a RectF(0,0,9,9) but instead it returns a RectF(0,0,10,10)
You can test it with the following…

problemofficer
- 435
- 4
- 15
1
vote
0 answers
Converting lat/lng polygon to bounding boxes
I've been trying to find a JavaScript library that can accept an array of lat/lng points (that make up a polygon) and return a new boundary made up from multiple bounding boxes.
The result would be a simplified shape based on the original polygon…

NickJHoran
- 597
- 4
- 13
1
vote
4 answers
Checking if any of corners of a rectangle is inside other rectangle
I'm having a mathematical issue.
I have no issue checking if one rectangle is within bounds of the other when they both (or one of them) have no angle and fit the grid perfectly.. but once I change angle of both of them, it all goes downhill.
Here's…
user4428063
1
vote
0 answers
Make D3 force directed graph responsive and adhere to bounding box
I have a force directed graph generated via D3 that isn't playing well with the responsive code or the bounding box code I've found. Since the radius of all of my circles varies, I think it's throwing some things off... Any help is appreciated!
I…

Jess
- 21
- 1
- 5
1
vote
1 answer
Zoom to Markers using GeoJson GoogleMaps Api v3
I am trying to set my view to the geojson data I loaded. Any hint?
That's my code so far: