|
VTK
9.7.20261108
|
#include <vtkResolveHangingNodes.h>
Helper for the exchange of points between partitions: the bins of the boundary of a partition, laid out as in vtkStaticCellLocator (Bounds, Divisions, bin indices ijk and bin index), with one bit per bin telling if a boundary element (edge in 2D, face in 3D) of the partition overlaps the bin.
The bounds alone cover the whole partition, interface and domain boundary included, so most of the boundary points of a neighbor are within them; the occupied bins keep only those near the boundary elements.
Definition at line 285 of file vtkResolveHangingNodes.h.
Public Types | |
| using | OccupiedBitset = std::bitset<TargetNumberOfBins> |
Public Member Functions | |
| void | Initialize (const vtkBoundingBox &bounds) |
| vtkIdType | GetNumberOfBins () const |
| void | GetBinIndices (const double *x, int ijk[3]) const |
| vtkIdType | GetBinIndex (const int ijk[3]) const |
| void | SetBinOccupied (vtkIdType binId) |
| vtkIdType | GetBinIndex (const double *x) const |
| bool | IsBinOccupied (vtkIdType binId) const |
| bool | IsInOccupiedBin (const double *x) const |
Public Attributes | |
| vtkBoundingBox | Bounds |
| int | Divisions [3] = { 1, 1, 1 } |
| OccupiedBitset | Occupied |
Static Public Attributes | |
| static constexpr vtkIdType | TargetNumberOfBins = 32 * 32 * 32 |
| using vtkResolveHangingNodes::BoundaryBins::OccupiedBitset = std::bitset<TargetNumberOfBins> |
Definition at line 295 of file vtkResolveHangingNodes.h.
| void vtkResolveHangingNodes::BoundaryBins::Initialize | ( | const vtkBoundingBox & | bounds | ) |
| vtkIdType vtkResolveHangingNodes::BoundaryBins::GetNumberOfBins | ( | ) | const |
| void vtkResolveHangingNodes::BoundaryBins::GetBinIndices | ( | const double * | x, |
| int | ijk[3] ) const |
| vtkIdType vtkResolveHangingNodes::BoundaryBins::GetBinIndex | ( | const int | ijk[3] | ) | const |
| void vtkResolveHangingNodes::BoundaryBins::SetBinOccupied | ( | vtkIdType | binId | ) |
| vtkIdType vtkResolveHangingNodes::BoundaryBins::GetBinIndex | ( | const double * | x | ) | const |
| bool vtkResolveHangingNodes::BoundaryBins::IsBinOccupied | ( | vtkIdType | binId | ) | const |
| bool vtkResolveHangingNodes::BoundaryBins::IsInOccupiedBin | ( | const double * | x | ) | const |
|
staticconstexpr |
Definition at line 288 of file vtkResolveHangingNodes.h.
| vtkBoundingBox vtkResolveHangingNodes::BoundaryBins::Bounds |
Definition at line 292 of file vtkResolveHangingNodes.h.
| int vtkResolveHangingNodes::BoundaryBins::Divisions[3] = { 1, 1, 1 } |
Definition at line 293 of file vtkResolveHangingNodes.h.
| OccupiedBitset vtkResolveHangingNodes::BoundaryBins::Occupied |
Definition at line 299 of file vtkResolveHangingNodes.h.