Re: bug in ac_object_find_bound
Quite right - this code correctly reports the min, max once hte pmin, max are initialised to extreme values. And pmin is greater than pmax.
Point3 pmin, pmax;
pmin.x = pmin.y = pmin.z = 1.e32;
pmax.x = pmax.y = pmax.z = -1.e32;
std::string on = ac_object_get_name(pObject);
ac_object_find_bound(pObject, &pmax, &pmin);
std::cout << "Ob " << on << " min " << pmin.x<<","<<pmin.y<<","<<pmin.z
<< " max " << pmax.x <<","<< pmax.y <<","<< pmax.z << std::endl;
However I do not have access to the code, only to ac_plugin.h which does not mention this.
Geoff
|