Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® FBX® / FBX SDK / Undefined ComputeBBox() in python wrapper
  RSS 2.0 ATOM  

Undefined ComputeBBox() in python wrapper
Rate this thread
 
63968
 
Permlink of this thread  
avatar
  • sbaldiss
  • Posted: 28 January 2012 09:57 AM
  • Total Posts: 15
  • Joined: 19 May 2007 11:14 AM

Hi, I need to calculate the bounding box of a mesh in a python script.
The documentation suggest to populate BBoxMin and BBoxMax with ComputeBBox() defined in KFbxGeometryBase.
I try to invoke the ComputeBBox method to ad instance of a KFbxMesh (that extends KFbxGeometryBase) but the code halt with the error “‘KFbxMesh’ object has no attribute ‘ComputeBBox’”
With dir(fbx.KFbxGeometryBase) I don’t find the definition of the method ComputeBBox.
I can access to the properties BBoxMin and BBoxMax but these are equal to [0.0, 0.0, 0.0].

I have the same problem with the method MemoryUsage!

There is a solution?
thanks
Simon



Replies: 0
avatar

Unfortunately, this function is currently not exposed via Python. I will make sure to add it on the todo list. Thanks for reporting this!



Robert Goulet, FBX Dev Lead

Replies: 0