void Node::getToWorld(Matrixr &result) { if(getParent() != NULL) { getParent()->getToWorld(result); } else { result.setIdentity(); } if(getCore() != NULL) getCore()->accumulateMatrix(result); }
void Node::getWorldVolume(BoxVolume &result) { Matrixr m; if(getParent() != NULL) { getParent()->getToWorld(m); } else { m.setIdentity(); } updateVolume(); result = getVolume(); result.transform(m); }