Public Types | |
enum | typesOfCubes { UNKNOWN = 1, OUTSIDE = 2, DATA = 4, INSIDE = 8, ALLPROCS = -2, OTHERPROC = -3 } |
Public Member Functions | |
meshOctreeCubeBasic () | |
Null constructor. More... | |
meshOctreeCubeBasic (const meshOctreeCubeCoordinates &) | |
Construct from coordinates. More... | |
meshOctreeCubeBasic (const meshOctreeCubeCoordinates &cc, const direction cubeType, const short procNo=ALLPROCS) | |
Construct from coordinates and cube type. More... | |
~meshOctreeCubeBasic () | |
direction | cubeType () const |
return type More... | |
void | setCubeType (const direction) |
set cube type More... | |
short | procNo () const |
return processor number More... | |
void | setProcNo (const short) |
set processor number More... | |
const meshOctreeCubeCoordinates & | coordinates () const |
return coordinates in the octree More... | |
void | operator= (const meshOctreeCubeBasic &) |
![]() | |
meshOctreeCubeCoordinates () | |
Null constructor. More... | |
meshOctreeCubeCoordinates (const label posX, const label posY, const label posZ, const direction level) | |
Construct from coordinates and level. More... | |
meshOctreeCubeCoordinates (const meshOctreeCubeCoordinates &) | |
copy constructor More... | |
~meshOctreeCubeCoordinates () | |
direction | level () const |
return level More... | |
label | posX () const |
return x, y, z coordinates More... | |
label | posY () const |
label | posZ () const |
meshOctreeCubeCoordinates | refineForPosition (const label) const |
return the coordinates of child cube at the given position More... | |
meshOctreeCubeCoordinates | reduceLevelBy (const direction diff) const |
meshOctreeCubeCoordinates | reduceToLevel (const direction) const |
return the coordinates of the parent at the given level More... | |
meshOctreeCubeCoordinates | increaseToLevelMin (const direction l) const |
return the minimal coordinates of the child at the given level More... | |
meshOctreeCubeCoordinates | increaseToLevelMax (const direction l) const |
return the maximal coordinates of the child at the given level More... | |
void | cubeBox (const boundBox &, point &, point &) const |
return min and max points More... | |
void | vertices (const boundBox &, FixedList< point, 8 > &) const |
calculate vertices More... | |
point | centre (const boundBox &) const |
return centre More... | |
scalar | size (const boundBox &) const |
return size More... | |
void | edgeVertices (const boundBox &, FixedList< FixedList< point, 2 >, 12 > &) const |
edges of the cube More... | |
bool | intersectsTriangle (const triSurf &, const boundBox &, const label) const |
check if the surface triangle intersects the cube More... | |
bool | intersectsTriangleExact (const triSurf &, const boundBox &, const label) const |
bool | isVertexInside (const boundBox &, const point &) const |
is a vertex inside the cube More... | |
bool | isPositionInside (const meshOctreeCubeCoordinates &) const |
void | neighbourRange (meshOctreeCubeCoordinates &minCoord, meshOctreeCubeCoordinates &maxCoord) const |
bool | intersectsLine (const boundBox &, const point &, const point &) const |
check if the cube intersects a line More... | |
meshOctreeCubeCoordinates | operator+ (const meshOctreeCubeCoordinates &) const |
void | operator= (const meshOctreeCubeCoordinates &) |
bool | operator== (const meshOctreeCubeCoordinates &) const |
bool | operator!= (const meshOctreeCubeCoordinates &) const |
bool | operator<= (const meshOctreeCubeCoordinates &) const |
comparison of Morton codes More... | |
bool | operator>= (const meshOctreeCubeCoordinates &) const |
bool | operator< (const meshOctreeCubeCoordinates &) const |
bool | operator> (const meshOctreeCubeCoordinates &) const |
Private Attributes | |
direction | cubeType_ |
cube type More... | |
short | procNo_ |
processor to which the cube belongs to More... | |
Friends | |
Ostream & | operator<< (Ostream &, const meshOctreeCubeBasic &) |
Istream & | operator>> (Istream &, meshOctreeCubeBasic &) |
Additional Inherited Members | |
![]() | |
static const label | edgeNodes_ [12][2] |
edge nodes for an octree cube More... | |
static const label | faceNodes_ [6][4] |
cube nodes making each face More... | |
static const label | nodeFaces_ [8][3] |
node-faces addressing for the cube More... | |
static const label | faceEdges_ [6][4] |
face-edges addressing for the octree cube More... | |
static const label | edgeFaces_ [12][2] |
edge-faces addressing for the octree cube More... | |
static const label | oppositeFace_ [6] = {1, 0, 3, 2, 5, 4} |
return the opposite face of each cube face More... | |
Definition at line 49 of file meshOctreeCubeBasic.H.
enum typesOfCubes |
Enumerator | |
---|---|
UNKNOWN | |
OUTSIDE | |
DATA | |
INSIDE | |
ALLPROCS | |
OTHERPROC |
Definition at line 86 of file meshOctreeCubeBasic.H.
|
inline |
Null constructor.
Definition at line 38 of file meshOctreeCubeBasicI.H.
|
inlineexplicit |
Construct from coordinates.
Definition at line 46 of file meshOctreeCubeBasicI.H.
|
inline |
Construct from coordinates and cube type.
Definition at line 56 of file meshOctreeCubeBasicI.H.
|
inline |
Definition at line 81 of file meshOctreeCubeBasic.H.
|
inline |
return type
Definition at line 75 of file meshOctreeCubeBasicI.H.
References meshOctreeCubeBasic::cubeType_.
Referenced by meshOctreeAddressing::calculateNodeType(), meshOctreeAddressing::checkGluedRegions(), triSurfaceClassifyEdges::checkOrientation(), meshOctreeAddressing::findUsedBoxes(), meshOctreeModifier::loadDistribution(), meshOctreeInsideOutside::meshOctreeInsideOutside(), meshOctreeCreator::refineBoxes(), meshOctreeCreator::refineBoxesContainedInObjects(), and meshOctreeCreator::refineBoxesNearDataBoxes().
|
inline |
set cube type
Definition at line 70 of file meshOctreeCubeBasicI.H.
References meshOctreeCubeBasic::cubeType_.
Referenced by meshOctreeModifier::refineTreeForCoordinates(), and meshOctreeInsideOutside::reviseDataBoxes().
|
inline |
return processor number
Definition at line 80 of file meshOctreeCubeBasicI.H.
References meshOctreeCubeBasic::procNo_.
Referenced by meshOctreeModifier::addLayerFromNeighbouringProcessors(), meshOctreeAddressing::calcGlobalLeafLabels(), meshOctreeAddressing::calcGlobalPointLabels(), meshOctreeAddressing::createOctreeFaces(), cartesianMeshExtractor::createPolyMesh(), and meshOctreeCube::purgeProcessorCubes().
|
inline |
set processor number
Definition at line 85 of file meshOctreeCubeBasicI.H.
References n, and meshOctreeCubeBasic::procNo_.
Referenced by meshOctreeAddressing::calcGlobalLeafLabels(), meshOctreeCube::purgeProcessorCubes(), and meshOctreeModifier::refineTreeForCoordinates().
|
inline |
return coordinates in the octree
Definition at line 90 of file meshOctreeCubeBasicI.H.
Referenced by meshOctreeAddressing::checkAndFixIrregularConnections(), meshOctreeAddressing::checkGluedRegions(), tetCreatorOctree::createTetsAroundEdges(), meshOctreeModifier::ensureCorrectRegularity(), meshOctreeModifier::loadDistribution(), meshOctreeCube::operator=(), and meshOctreeCreator::refineBoxesNearDataBoxes().
|
inline |
Definition at line 95 of file meshOctreeCubeBasicI.H.
References meshOctreeCubeBasic::cubeType_, and meshOctreeCubeBasic::procNo_.
|
friend |
Definition at line 105 of file meshOctreeCubeBasicI.H.
|
friend |
Definition at line 125 of file meshOctreeCubeBasicI.H.
|
private |
cube type
Definition at line 54 of file meshOctreeCubeBasic.H.
Referenced by meshOctreeCubeBasic::cubeType(), meshOctreeCubeBasic::operator=(), and meshOctreeCubeBasic::setCubeType().
|
private |
processor to which the cube belongs to
Definition at line 57 of file meshOctreeCubeBasic.H.
Referenced by meshOctreeCubeBasic::operator=(), meshOctreeCubeBasic::procNo(), and meshOctreeCubeBasic::setProcNo().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.