Questions tagged [bounding]
71 questions
2
votes
1 answer
Bounding boxes and models
I've made a basic .obj mesh loader that can load models and texture them in OpenGL. However, my question is what would be the best solution to then put bounding boxes on them. For example if I a load a model which is a circle, would putting an AABB…

Chris Condy
- 626
- 2
- 9
- 25
2
votes
0 answers
Pairing BLE device on Android pops up two dialogs
Calling device.connectGatt(appCtx, autoConnect, getCentralGattCallback()); where
device is a discovered BLE device that was not paired (bonded) before
getCentralGattCallback() returns callback implementation that's not relevant in this context, we…

mbk
- 65
- 1
- 8
2
votes
2 answers
how to get buffer zone around a uibezierpath
i have some uibezierpaths. as paths, they don't really have thickness.
but, I am hoping to find a way to define an area around a path like the grayish areas around the lines in this picture
basically, i want to test whether drawn lines fall within…

Lordof Theflies
- 301
- 1
- 6
- 16
2
votes
1 answer
how to get the boundingSphere for a whole scene in three.js?
How to get the bounding sphere for a whole scene in three.js?
I may try to get the bounding sphere for each object and compute the resulting union of them, but I think there may be a more straight forward method.

gastonceron
- 191
- 1
- 11
2
votes
1 answer
Is it a convention to write ?Sized by itself as a trait bound?
On page 297 of Programming Rust you can find the following
impl HashMap where K: Eq + Hash
{
fn get(&self, key: &Q) -> Option<&V>
where K: Borrow
, Q: Eq + Hash } I've seen this before where ?Sized is written…

Evan Carroll
- 78,363
- 46
- 261
- 468
2
votes
0 answers
Convert map coordinates in pixels on an image knowing geo bounding box
I am having trouble trying to draw a pixel on an image.
I know the geo bounding box values minX, minY, maxX, maxY of the image. I know the image sizes.
Example:
Bounding…

Cristina Nicolae
- 36
- 3
2
votes
2 answers
Scala, covariant and bounding: difference in function
Following trait declares 2 functions: f1 and f2
trait Test[+T] {
def f1[U >: T](a: U): Boolean
def f2[U](a: U): Boolean
}
Are they same? If not, what is is a difference?

den123
- 793
- 1
- 12
- 27
2
votes
1 answer
Bounding box boolean subtraction?
What's the best or an efficient method for subtracting a bounding box from another bounding box (I.e. Creating n bounding boxes from a bounding box Boolean subtraction)?
Ideally the resulting bounding boxes are as square as possible so that there…

Rod Green
- 21
- 1
2
votes
3 answers
Understanding QuickSort Syntax
I'm confused by this syntax because at first it appears as though the function should return but then I see void. What is the purpose of the prior to the void?
Also, I'm familiar with bounding and generics, but I've never actually seen…

nullByteMe
- 6,141
- 13
- 62
- 99
2
votes
0 answers
Bounding Rect for Triangle or Pie Slice
I'm having an issue where I have these "Pie Slices" and each one needs to be selectable BUT due to the nature of Qt it seems each on can only have a bounding rectangle. I'd need some kind of triangle. Using a rectangle would mean that each slice's…

Jay
- 3,373
- 6
- 38
- 55
1
vote
1 answer
Finding the bounding box of the difference between 2 images?
I have 2 bitmap images, where 1 is a slight variation of the other.
Now I'd like to calculate the bounding box of the area-of-change, as fast as possible.
Is there a smart algorithm to do that or is it just a case of brute-force processing…

Pygmy
- 1,268
- 17
- 33
1
vote
1 answer
How to do a Bounding Box in XNA 4.0?
So I need to create a bounding box for a cube I've got in XNA 4.0. I know how to create a bounding sphere, but the problem is, the BoundingBox is not stored in the mesh like the BoundingSphere is. I am also very new to XNA and programming in…

Xardov
- 35
- 5
1
vote
1 answer
Collision always detected, even when they're shouldn't be a collision
OK I'm definitely overlooking something painfully obvious but here's the problem:
In my project I'm using two types of collision: sphere to sphere and box to box.
Both are experiencing the same problem; they always detect a collision between the two…

TheVeryStupid
- 11
- 2
1
vote
3 answers
QGraphicsItem -> get the correct bounding rectangle
I am trying the hello triangle example of OpenGL ES 2.0. I am using Qt, so I created a QGraphicsScene and added that code as a QGraphicsItem. It draws correctly, but I cannot get the bounding rectangle correctly. The triangle vertices are …

Sassa
- 3,294
- 2
- 28
- 42
1
vote
1 answer
Bounding box/boxes inside a div
I'm working on a face recognition webapp, but I'm encountering some problems trying to "fix" the bounding box on the image making it responsive. If the screen is in full size that's the (correct) result:
But as soon as I try to resize the window…

The_Wolf
- 175
- 1
- 4
- 14