41#ifndef processorLODs_box
42#define processorLODs_box
53namespace processorLODs
71 static const label
DROP;
77 static const label
FIXED;
122 const label refineIter,
123 const label nTgtObjects,
133 const label refineIter,
134 const label nSrcElem,
156 const label refineIter,
157 const label nSrcFaces,
164 const label nSrcElems,
165 const label nTgtElems
185 const label maxObjectsPerLeaf,
186 const label nObjectsOfType,
187 const label nRefineIterMax = 100
191 virtual ~box() =
default;
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A bounding box defined in terms of min/max extrema points.
Base class to generate a parallel distribution map for sending sufficient target objects to cover a d...
Creates the parallel distribution map by describing the source and target objects using box shapes.
void setRefineFlags(const label refineIter, const label nTgtObjects, List< labelHashSet > &fixedSendElems, List< List< labelList > > &localTgtElems, List< labelList > &refineFlags, labelList &nElems) const
Set the box refinement flags.
label nRefineIterMax_
Maximum number of refinement iterations.
virtual boundBox calcSrcBox(const label srcObji) const =0
List< labelList > newToOld_
Addressing per proc of new to old bound boxes.
void refineBox(const label boxi, const label refineIter, const label nSrcElem, const treeBoundBox &origBox, DynamicList< treeBoundBox > &procBoxes, DynamicList< labelList > &procBoxElems, DynamicList< label > &procNewToOld) const
static const label DROP
Drop/discard.
static const label FIXED
Fixed - do not touch.
autoPtr< mapDistribute > createMap(const label nSrcElems, const label nTgtElems)
static const label nStartUpIter
Number of iterations before element indices are cached.
List< List< treeBoundBox > > boxes_
Per processor, the list of src bound boxes.
void writeBoxes(const List< DynamicList< treeBoundBox > > &fixedBoxes, const label iter) const
Helper function to write the boxes in OBJ format.
bool doRefineBoxes(const label refineIter, const label nSrcFaces, const List< labelList > &refineFlags, List< DynamicList< treeBoundBox > > &fixedBoxes)
Apply the box refinements.
virtual ~box()=default
Destructor.
virtual boundBox calcTgtBox(const label tgtObji) const =0
TypeName("box")
Runtime type information.
static const label REFINE
Refine.
const UList< point > & tgtPoints_
Reference to the target points.
const UList< point > & srcPoints_
Reference to the source points.
List< List< labelList > > boxSrcElems_
Indices of elements in the src boxes.
autoPtr< mapDistribute > createLODMap(List< labelList > &sendElems) const
Use the current list of send elements to create the mapDistribute.
Standard boundBox with extra functionality for use in octree.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.