| 356 | } |
| 357 | |
| 358 | Path Node::getPath() |
| 359 | { |
| 360 | Path result; |
| 361 | |
| 362 | INodePtr parent = getParent(); |
| 363 | if (parent != NULL) { |
| 364 | // We have a parent, walk up the ancestry |
| 365 | std::dynamic_pointer_cast<Node>(parent)->getPathRecursively(result); |
| 366 | } |
| 367 | |
| 368 | // Finally, add "self" to the path |
| 369 | result.push(shared_from_this()); |
| 370 | |
| 371 | return result; |
| 372 | } |
| 373 | |
| 374 | const AABB& Node::worldAABB() const { |
| 375 | evaluateBounds(); |
no test coverage detected