hoknamahn Posted August 13, 2005 Share Posted August 13, 2005 Is it the good idea to use GEO_Details's virtual int getPointBBox(UT_BoundingBox *bbox, const GB_PointGroup *g = 0) const; or maybe it better to use something else? Quote Link to comment Share on other sites More sharing options...
edward Posted August 14, 2005 Share Posted August 14, 2005 Sure, that's a good method to use. Note that it will likely not give you intuitive bounds if you have things like sphere and tube primitives in your gdp since they only have one point. For that, you can use the GB_Detail::getBBox() function. The tradeoff though is that getBBox() is much slower in practice. Quote Link to comment Share on other sites More sharing options...
hoknamahn Posted September 21, 2005 Author Share Posted September 21, 2005 Whether I should specify group of points or it is possible to not specify it? What if I don't specify group? And if I understand it right that it's possible to receive coordinates of the bounding box with xmin = bbx.xmin(); xmax = bbx.xmax(); ymin = bbx.ymin(); ... zmax = bbx.zmax(); ? Quote Link to comment Share on other sites More sharing options...
edward Posted September 21, 2005 Share Posted September 21, 2005 If you don't give it a group (ie. pass 0 down), then all geometry is used to compute the bounding box. Just like how not putting anything in the Group parameters in SOPs mean everything. As for using the bbox, yes, you can just use those functions. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.