Go Back   AC3D Forums > Resources > AC3D Plugins and Other Resources
Register FAQ Members List Calendar Today's Posts

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

Tags
ac_plugin, bug, plugins, sdk


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 11:41 PM.


AC3D Forum
(C) Inivis Limited 2020