Go to the documentation of this file.
62 "\n Usage: boxToPoint ((minx miny minz) (maxx maxy maxz))\n\n"
63 " Select all points with coordinate within bounding box\n\n"
75 for (
const auto& bb : bbs_)
77 if (bb.contains(ctrs[elemi]))
79 addOrDelete(set, elemi,
add);
89 Foam::boxToPoint::boxToPoint
95 topoSetPointSource(
mesh),
100 Foam::boxToPoint::boxToPoint
102 const polyMesh&
mesh,
106 topoSetPointSource(
mesh),
111 Foam::boxToPoint::boxToPoint
113 const polyMesh&
mesh,
114 const dictionary&
dict
117 topoSetPointSource(
mesh),
121 if (!
dict.readIfPresent(
"boxes", bbs_))
124 if (!
dict.readIfPresent(
"box", bbs_.first()))
126 dict.readEntry<
point>(
"min", bbs_.first().min());
127 dict.readEntry<
point>(
"max", bbs_.first().max());
133 Foam::boxToPoint::boxToPoint
135 const polyMesh&
mesh,
139 topoSetPointSource(
mesh),
140 bbs_(one(), treeBoundBox(checkIs(is)))
146 void Foam::boxToPoint::applyToSet
156 Info<<
" Adding points that are within boxes " << bbs_
166 Info<<
" Removing points that are within boxes " << bbs_
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
vectorField pointField
pointField is a vectorField.
Class with constructor to add usage string to table.
Ostream & endl(Ostream &os)
Add newline and flush stream.
setAction
Enumeration defining the valid actions.
Create a new set and ADD elements to it.
#define forAll(list, i)
Loop across all elements in list.
messageStream Info
Information stream (uses stdout - output is on the master only)
AccessType combine(const UList< T > &lists, AccessOp aop=accessOp< T >())
Combines sub-lists into a single list.
addNamedToRunTimeSelectionTable(topoSetCellSource, badQualityToCell, word, badQuality)
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
Macros for easy insertion into run-time selection tables.
Subtract elements from the set.
vector point
Point is a vector.
List< treeBoundBox > treeBoundBoxList
List of bounding boxes.
defineTypeNameAndDebug(combustionModel, 0)