Object width / height and its boundingbox

0 views
Skip to first unread message

SkiD

unread,
Nov 25, 2009, 7:17:47 AM11/25/09
to O3D-discuss
Hello,

i've imported some objects in my o3d-scene and i want the vertices of
that objects.

I just looked how the boundingbox worked, but i dont understand how i
can catch the right coordinates.

How can i solve that problem ?

I only have the object and its x/y/z-coordinates.
Can anyone help me ?

Thanks,
SkiD.

Dave

unread,
Nov 26, 2009, 2:37:05 AM11/26/09
to O3D-discuss
Hi,

I'm not too bright about O3D but I may have a few ideas, but not using
the boundingbox.

If you really want to pick a real vertices on a model, try looking at
the 'scattered-chart' example. Even though it is not using O3Dtgz, but
you may get some ideas from it.

If you don't really care about vertices but just any point on the
model, the 'picking' example is good to experiment with it. However,
you might need to deal with world coordinate and local coordinate
transformation if rotating the model is required, but at least I came
out something with it before. Nevertheless, you might be able to pick
the index face ID and position, but not too sure about vertices
location.

If both of these examples doesn't help, sorry about that. I'm also
quite new to 3D programming.

Regards,
Dave

SkiD

unread,
Nov 26, 2009, 7:00:53 AM11/26/09
to O3D-discuss
Hey Dave,

i won't get any point of my object, i only wan't the maxX/Y/Z and minX/
Y/Z.
I looked for both of your examples, but i dont find anything what will
help.

That's what i need:
I have an object, its middle is 1/1/1 .
Its Height/Width/Depth is 0.5/0.5/0.5 .

So the coordinates of the bottom left front vertex is 0.5/0.5/1.5 .
For the bottom right front vertex the coordinates are 1.5/0.5/1.5 .
And so on ...

I think the boundingbox includes all vetices, but iam wrong.
Iam only got two array's and each of them contains three values.

Any comments ?

Best Regards,
SkiD.

SkiD

unread,
Nov 26, 2009, 10:17:51 AM11/26/09
to O3D-discuss
Hey @ all,

i just know how it works.
The boundingbox defines the dimension for each axis of my object.
If i add or subtract the half-dimension to the direction-vector, i got
the vertices of each axis (xMin/xMax, yMin/yMax, zMin/zMax).

I still think i solve my problem!
Thanks for reading ;)

(Sorry for my bad english, it is harder to learn as bugfixing ._.)

SkiD.
Reply all
Reply to author
Forward
0 new messages