<span class="Apple-style-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 class="Apple-style-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 class="Apple-style-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 class="Apple-style-span" style="font-family: palatino, georgia, verdana, arial, sans-serif; color: rgb(34, 34, 34); line-height: 28px; ">Kevin</span></div>