|
Path Tracer
|
Defines the KDTreeNode class and some functions around it. More...
#include "InterfaceCreation.h"Go to the source code of this file.
Classes | |
| class | KDTreeNode |
| A node of a k-d tree. More... | |
| struct | KDTreeNode::Intersection |
| A struct binding a pointer to an Object3D, a distance, and a pointer to a KDTreeNode. More... | |
Functions | |
| DoubleVec3D | getMinPoint (std::vector< Object3D * > objects) |
| Computes the minimum point of a cuboid containing all the objects. More... | |
| DoubleVec3D | getMaxPoint (std::vector< Object3D * > objects) |
| Computes the maximum point of a cuboid containing all the objects. More... | |
| void | to_json (json &j, const KDTreeNode &node) |
| Conversion to json. More... | |
Defines the KDTreeNode class and some functions around it.
| DoubleVec3D getMaxPoint | ( | std::vector< Object3D * > | objects | ) |
Computes the maximum point of a cuboid containing all the objects.
| objects | The objects that will be used for the computation. |
| DoubleVec3D getMinPoint | ( | std::vector< Object3D * > | objects | ) |
Computes the minimum point of a cuboid containing all the objects.
| objects | The objects that will be used for the computation. |
| void to_json | ( | json & | j, |
| const KDTreeNode & | node | ||
| ) |
Conversion to json.
Only used for debugging.
| j | Json output. |
| node | The node that will be converted. |