I’m here with a very trivial code snipplet: with these few lines you can calculate X, Y, Z size components of a NodePath or ODE geometry AABB (Axis Aligned Bounding Box):
NodePath:
node_path = loader.loadModel('/load/something.egg')
min = Point3()
max = Point3()
node_path.calcTightBounds(min, max)
size = Point3(max - min)
OdeGeom:
geom = OdeBoxGeom(OdeSimpleSpace(), 1, 1, 1)
min = Point3()
max = Point3()
geom.getAABB(min, max)
size = Point3(max - min)
It is, but its a python extension to the C++ class (which you can find in pandac/libpandaodeModules.py) and those are not described in the API. Same as with getTightBounds, which is in libpandaModules.py.