Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Rightclick on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: <pastrana@bg...>  20100114 23:10:43

Hi vxl users, I need help using the 3D oriented bounding boxes In my case I have the vertex points (x,y,z) that create the oriented bounding box (OBB). I just want to use the function "contains" of the vgl_orient_box_3d class to find out if some points are inside or outside the above mentioned OBB. I compiled the example that comes with VXL but in this case they show how to create an OBB (Oriented Bounding Box) using AABB (Axis Aligned Bounding Box) and its corresponding quaternion. vgl_orient_box_3d (vgl_box_3d< Type > box, vnl_quaternion< double > orient) how do I generate the (vgl_box_3d) and the (vnl_quaternion) that would represent the oriented bounding box I already have?? Thank you very much for your help ... Sincerely, Julio 
From: Peter Vanroose <peter_vanroose@ya...>  20100118 00:06:41

> In my case I have the vertex points (x,y,z) that create > the oriented bounding box (OBB). I just want to use the > function "contains" of the vgl_orient_box_3d class > to find out if some points are inside or outside the > above mentioned OBB. If I understand well, your three points (x,y,z), as seen from the origin, are mutually orthogonal. In that case they indeed define an oriented bounding box, and you have to determine the rotation quaternion that makes the three vectors (x,y,z) axisparallel. A constructor should be added to vgl_orient_box_3d which takes 4 corner points (in your case, the points (0,0,0), x, y, z). That would simplify things for your case. Look at the vnl_quaternion constructor from a 3x3 transformation matrix. That matrix should have normone and mutually orthogonal rows.  Peter. ___________________________________________________ Sök efter kärleken! Hitta din tvillingsjäl på Yahoo! Dejting: http://ad.doubleclick.net/clk;185753627;24584539;x?http://se.meetic.yahoo.net/index.php?mtcmk=148783 
From: Peter Vanroose <peter_vanroose@ya...>  20100118 23:23:07

I've just added a new constructor to vgl_orient_box_3d, which takes four corner points. So if you have a corner point and its 3 neighbours, and you are sure that there three directions are mutually orthogonal, this new constructor gives you the rectangular (but nonaxisaligned) bounding box around these points.  Peter.  __________________________________________________________ Låna pengar utan säkerhet. Jämför vilkor online hos Kelkoo. http://www.kelkoo.se/c100390123lanutansakerhet.html?partnerId=96915014 
From: Julio Pastrana <pastrana@bg...>  20100119 08:58:34

Thank your very much Peter I am going to test it right now I guess I have to use the CVS version ... thanks again Peter Sincerely Julio On Mon, 20100118 at 15:22 0800, Peter Vanroose wrote: > I've just added a new constructor to vgl_orient_box_3d, which takes four corner points. > So if you have a corner point and its 3 neighbours, and you are sure that there three directions are mutually orthogonal, this new constructor gives you the rectangular (but nonaxisaligned) bounding box around these points. > >  Peter. > > > > > > > > > > > > > > >  > > > __________________________________________________________ > Låna pengar utan säkerhet. Jämför vilkor online hos Kelkoo. > http://www.kelkoo.se/c100390123lanutansakerhet.html?partnerId=96915014 
Sign up for the SourceForge newsletter:
No, thanks