The SkdPatchInfo class allows to store patch information needed for the construction and the utilization of a skd-tree.
More...
The SkdPatchInfo class allows to store patch information needed for the construction and the utilization of a skd-tree.
Definition at line 36 of file patch_skd_tree.hpp.
◆ BoxCache
◆ SkdPatchInfo()
bitpit::SkdPatchInfo::SkdPatchInfo |
( |
const PatchKernel * | patch, |
|
|
const std::vector< std::size_t > * | cellRawIds ) |
|
protected |
Constructor.
- Parameters
-
patch | is the patch |
cellRawIds | is the list of cell raw ids |
Definition at line 47 of file patch_skd_tree.cpp.
◆ buildCache() [1/2]
void bitpit::SkdPatchInfo::buildCache |
( |
| ) |
|
◆ buildCache() [2/2]
Build the cache.
- Parameters
-
cellRange | is the range of cells fow which the cache has to be built |
Definition at line 70 of file patch_skd_tree.cpp.
◆ destroyCache()
void bitpit::SkdPatchInfo::destroyCache |
( |
| ) |
|
◆ evalCachedBoxMean() [1/2]
std::array< double, 3 > bitpit::SkdPatchInfo::evalCachedBoxMean |
( |
std::size_t | rawId | ) |
const |
Get the average point of the cached bounding box of the specified cell.
- Parameters
-
rawId | is the raw id of the cell |
- Returns
- The average point of the cached bounding box of the specified cell.
Definition at line 141 of file patch_skd_tree.cpp.
◆ evalCachedBoxMean() [2/2]
double bitpit::SkdPatchInfo::evalCachedBoxMean |
( |
std::size_t | rawId, |
|
|
int | direction ) const |
Get the average point of the cached bounding box of the specified cell along the given direction.
- Parameters
-
rawId | is the raw id of the cell |
direction | is the direction along which the mean is requested |
- Returns
- The average point of the cached bounding box of the specified cell.
Definition at line 155 of file patch_skd_tree.cpp.
◆ getCachedBox()
const std::array< std::array< double, 3 >, 2 > & bitpit::SkdPatchInfo::getCachedBox |
( |
std::size_t | rawId | ) |
const |
Get a the points that define the bounding box of the specified cell.
The first point defines the minimum point of the bounding box, whereas the second point defines the maximum point of the bounding box.
- Parameters
-
rawId | is the raw id of the cell |
- Returns
- The minimum point of the cached bounding box of the specified cell.
Definition at line 130 of file patch_skd_tree.cpp.
◆ getCellRawId()
std::size_t bitpit::SkdPatchInfo::getCellRawId |
( |
std::size_t | n | ) |
const |
Get the n-th cell raw id.
- Parameters
-
- Returns
- The n-th cell raw id.
Definition at line 116 of file patch_skd_tree.cpp.
◆ getCellRawIds()
const std::vector< std::size_t > & bitpit::SkdPatchInfo::getCellRawIds |
( |
| ) |
const |
Get a constant reference to the list of cell raw ids.
- Returns
- A constant reference to the list of cell raw ids.
Definition at line 105 of file patch_skd_tree.cpp.
◆ getPatch()
const PatchKernel & bitpit::SkdPatchInfo::getPatch |
( |
| ) |
const |
Get a constant reference to the patch.
- Returns
- A constant reference to the patch.
Definition at line 95 of file patch_skd_tree.cpp.
◆ PatchSkdTree
◆ m_cellBoxes
std::unique_ptr<BoxCache> bitpit::SkdPatchInfo::m_cellBoxes |
|
protected |
◆ m_cellRawIds
const std::vector<std::size_t>* bitpit::SkdPatchInfo::m_cellRawIds |
|
protected |
◆ m_patch
The documentation for this class was generated from the following files:
---
layout: doxygen_footer
---