36 point(-VGREAT, -VGREAT, -VGREAT),
37 point(VGREAT, VGREAT, VGREAT)
43 point(VGREAT, VGREAT, VGREAT),
44 point(-VGREAT, -VGREAT, -VGREAT)
50 void Foam::boundBox::calculate(
const pointField&
points,
const bool doReduce)
60 min_ =
point(VGREAT, VGREAT, VGREAT);
61 max_ =
point(-VGREAT, -VGREAT, -VGREAT);
69 for (label i = 1; i < points.size(); i++)
79 reduce(min_, minOp<point>());
80 reduce(max_, maxOp<point>());
92 calculate(points, doReduce);
101 calculate(
points(), doReduce);
124 reinterpret_cast<const char*>(&bb.min_),
130 os.
check(
"Ostream& operator<<(Ostream&, const boundBox&)");
139 return is >> bb.min_ >> bb.max_;
145 reinterpret_cast<char*>(&bb.min_),
151 is.
check(
"Istream& operator>>(Istream&, boundBox&)");