Commit Graph

10 Commits

Author SHA1 Message Date
722d23f59c ENH: additional methods/operators for boundBox (related to #196)
- Constructor for bounding box of a single point.

- add(boundBox), add(point) ...
  -> Extend box to enclose the second box or point(s).

  Eg,
      bb.add(pt);
  vs.
      bb.min() = Foam::min(bb.min(), pt);
      bb.max() = Foam::max(bb.max(), pt);

Also works with other bounding boxes.
  Eg,
      bb.add(bb2);
      // OR
      bb += bb2;
  vs.
      bb.min() = Foam::min(bb.min(), bb2.min());
      bb.max() = Foam::max(bb.max(), bb2.max());

'+=' operator allows the reduction to be used in parallel
gather/scatter operations.

A global '+' operator is not currently needed.

Note: may be useful in the future to have a 'clear()' method
that resets to a zero-sized (inverted) box.

STYLE: make many bounding box constructors explicit
2017-01-25 19:26:50 +01:00
6afc9fb15d ENH: tetOverlapVolume - improved robustness. Fixes #207 2016-08-11 12:14:43 +01:00
8864223aed ENH: copyright: make consistent with OpenFOAM-history 2015-12-19 14:22:30 +00:00
916dcb8685 ENH: parallel: overhaul of parallel mapping
- redistributePar to have almost (complete) functionality of decomposePar+reconstructPar
- low-level distributed Field mapping
- support for mapping surfaceFields (including flipping faces)
- support for decomposing/reconstructing refinement data
2015-11-17 15:05:05 +00:00
25ba73c1cc tetOverlapVolume: adjust tolerance
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1347
2015-03-05 18:57:38 +00:00
04ad9a8598 ENH: meshToMeshMethod: small optimisation in treeBoundBox calc 2013-11-12 16:35:43 +00:00
2323876fb0 ENH: tetOverlapVolume - no overelap when volumes are zero 2013-06-04 12:34:50 +01:00
384a6372cf ENH: use static lists for tetOverlapVolume 2013-01-11 12:44:47 +00:00
9bf0087fe4 ENH: Added intersection test to tetOverlapVolume 2013-01-09 11:47:25 +00:00
e5b4b6d9c0 ENH: Relocated tetOverlapVolume to meshTools 2013-01-09 11:19:37 +00:00