![]() |
open_iA
2019.12
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
|
Class representing a BSP-tree. Assigned with root node, level and AABB. More...
#include <iABSPTree.h>
Public Member Functions | |
| void | BuildTree (int a_splitLevel, iAaabb &a_aabb) |
| Assigning split level and AABB to tree. More... | |
| void | FillLoadedTree (std::vector< iATriPrim * > &triangles) |
| Fills already created tree with primitives. More... | |
| void | FillTree (std::vector< iATriPrim * > &triangles) |
| Fills empty tree with primitives. More... | |
| int | GetIntersectionsNR (iARay &ray, std::vector< iAintersection * > &intersections, iATraverseStack *tr_stack) const |
| Finds all intersections between ray and primitives of tree. More... | |
| iABSPTree () | |
| int | LoadTree (QString const &filename) |
| Loads tree from file specified by filename. More... | |
| int | SaveTree (QString const &filename) |
| Saves tree in file specified by filename. More... | |
| ~iABSPTree () | |
Public Attributes | |
| iAaabb | m_aabb |
| tree AABB More... | |
| std::vector< iABSPNode * > | nodes |
| iABSPNode * | root |
| root node More... | |
| int | splitLevel |
| tree split level More... | |
| std::vector< unsigned int > | tri_ind |
Protected Attributes | |
| std::vector< iATriPrim * > * | m_triangles |
Class representing a BSP-tree. Assigned with root node, level and AABB.
|
inline |
|
inline |
|
inline |
Assigning split level and AABB to tree.
| a_splitLevel | split level of tree. |
| a_aabb | AABB of tree. |
|
inline |
Fills already created tree with primitives.
| triangles | primitives. |
|
inline |
Fills empty tree with primitives.
New nodes are created and divided here
| triangles | primitives. |
|
inline |
Finds all intersections between ray and primitives of tree.
| ray | ray instance. | |
| [out] | intersections | vector where obtained intersections are placed. |
| tr_stack |
|
inline |
Loads tree from file specified by filename.
| filename | filename of input file |
|
inline |
Saves tree in file specified by filename.
| filename | filename of ouput file |
| iAaabb iABSPTree::m_aabb |
tree AABB
|
protected |
| std::vector<iABSPNode*> iABSPTree::nodes |
| iABSPNode* iABSPTree::root |
root node
| int iABSPTree::splitLevel |
tree split level
| std::vector<unsigned int> iABSPTree::tri_ind |
1.8.16