(4)获得准确的AcDb3dSolid的包围盒
Calculating Tight Bounding Box Around A Solid问题:
When I calculate the box of a solid, or any other AcDbEntity, this box is
aligned with the x,y,z axes. This box might be much larger than the smallest box
which could contain the solid.To take an extreme example, consider the cylinder
with radius 1, height 100, aligned with the vector 1,1,1. The box returned by
AutoCAD for this entity has the volume 2.092463E+005. The optimal box (not
aligned with the x,y,z axes) has the volume 400. How can I obtain this box?
解决方案:
An exact answer for this problem is not simple, but a good approximation is
possible. One can calculate the principal axes from the solid, and align the box
with these axes. This gives the perfect answer in this case, and will generally
produce a much better answer than doing nothing at all. The attached code shows
an approach where the user can select a solid, and then create a box that is the
calculated tight box around the solid.
**** Hidden Message *****
呵呵,这个虽然是桌子后养的,后来也没让长大 看了下还是autodesk自己的跟着别人有,拉人家下水 看看,也不错。{:soso_e100:}
好东西要学习下。
获得准确的AcDb3dSolid的包围盒 我也来学习学习是怎么回事
啥也不说了,感谢楼主分享哇! 收藏备用 谢过 谢谢楼主分享 學習中..謝謝分享
jgggh小米 手机:02083074480 好帖,要支持一下
我来测试一下,行不行”
多谢分享!