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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 18th November 2015, 08:55 AM   #1
Geoffm
Junior Member
Member
 
Geoffm's Avatar
 
Join Date: Aug 2013
Location: London UK
Posts: 22
Default bug in ac_object_find_bound

When I call ac_object_find_bound for a real object with this code:

Point3 pmin, pmax;
if (ac_object_find_bound(pObject, &pmax, &pmin)) {
std::cout << "Ob " << ac_object_get_name(pObject) << " min " << pmin.x<<","<<pmin.y<<","<<pmin.z
<< " max " << pmax.x <<","<< pmax.y <<","<< pmax.z << std::endl;
}

A typical print out is:

"Ob sphere min -0.89,-1.#QNAN,-0.5 max 3.89176e+033,0.62,0.5"

the x & z min values, and the y, z sizes are actually correct. The object is not infinitely large!

Is this a bug or a change in the arguments from the prototype?
Geoffm is offline   Reply With Quote
 

Tags
ac_plugin, bug, plugins, sdk

Thread Tools
Display Modes

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 12:12 PM.


AC3D Forum
(C) Inivis Limited 2020