Hi Kevin,<div><br></div><div>The parameters are as follows:</div><div><br></div><div>corner: The corner point - the &quot;origin&quot; of the three vectors.</div><div>size: The relative sizes of the OBB on each of the returned axes. Size[0] is the length of the OBB along the &quot;max&quot; axis, size[1] is the length along the &quot;mid&quot; axis and size[2] is the length along the &quot;min&quot; axis.</div>
<div><br></div><div>To get the corners of the box, you should offset the corner by the appropriate scaled vector (i.e., max * size[0], mid * size[1], min * size[2]).</div><div><br></div><div>Of course, I don&#39;t know if the devs intend this function to be for public use, but we&#39;re using it here anyway.</div>
<div><br></div><div>HTH</div><div>Shash</div><div><br></div><div><div class="gmail_quote">On Wed, Aug 18, 2010 at 5:56 PM, Kevin Chavanne <span dir="ltr">&lt;<a href="mailto:kchavanne@3dneovision.com">kchavanne@3dneovision.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><span style="font-family:palatino, georgia, verdana, arial, sans-serif;color:rgb(34, 34, 34);line-height:28px">Hi,All<br>
I want to compute Oriented Bounding Box of a STL model(a kind of polygonal model) to get three lengths of the OBB and I find vtkOBBTree has a member function :<br>
<br>void vtkOBBTree::ComputeOBB( vtkPoints * pts, double corner[3], double max[3], double mid[3], double min[3], double size[3] )<br><br>I guess this function can help me. From VTK Documentation,I got the following description:<br>

<br>Compute an OBB from the list of points given. Return the corner point and the three axes defining the orientation of the OBB. Also return a sorted list of relative &quot;sizes&quot; of axes for comparison purposes. <br>

<br>After wrote a test program, I found the max[3],mid[3] and min[3] specify three vectors which is orthogonal by ones and twos and they can form a coordinate system. But I don&#39;t know the meaning of arguments &quot;corner[3]&quot; and &quot;size[3]&quot; above exactly.<br>

<br>Could someone please give me some help? I want to know:</span><div><span style="font-family:palatino, georgia, verdana, arial, sans-serif;color:rgb(34, 34, 34);line-height:28px">1.what are the arguments mean in Function ComputeOBB()?</span></div>

<div><span style="font-family:palatino, georgia, verdana, arial, sans-serif;color:rgb(34, 34, 34);line-height:28px">2.Is there any other method to compute OBB of a polygonal model? I just need the three lengths of the OBB. Thanks in advance.<br>

<br><br>Dest wishes,</span></div><div><span style="font-family:palatino, georgia, verdana, arial, sans-serif;color:rgb(34, 34, 34);line-height:28px">Kevin</span></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>