View Single Post
Old 25th November 2015, 08:24 AM   #3
Geoffm
Junior Member
Member
 
Geoffm's Avatar
 
Join Date: Aug 2013
Location: London UK
Posts: 22
Default 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
Geoffm is offline   Reply With Quote