1. 07 Aug, 2018 1 commit
  2. 03 Aug, 2018 1 commit
    • Mark Olesen's avatar
      ENH: additional methods and improvements to plane · de2eed3e
      Mark Olesen authored
      - signedDistance() method is like distance() but retains
        the positive/negative sign for the side of the plane.
      
      - the sign() method returns the sign as -1,0,+1 integer for
        classification purposes where it is important to distinguish between
        a zero value and a positive value (eg, for cutting). Optional
        tolerance can be supplied to round for zero.
      
      - refactor and inlined simple and frequently used methods.
      
      - add boundBox faceCentre() method, which can be useful for creating
        clipping planes from a bounding box.
        Relocated treeBoundBox faceNormals to boundBox since they apply
        equally there - the meaning of the faces (x-min, x-max, etc)
        is the same, even if the point addressing for the faces differs.
      de2eed3e
  3. 29 Jan, 2018 1 commit
  4. 26 May, 2017 1 commit
  5. 01 Feb, 2017 1 commit
    • Mark Olesen's avatar
      ENH: creating a bounding box without points yields an inverted box · 0ffae646
      Mark Olesen authored
      - The code create a box with a (0,0,0) point.
        The new definition is more logical and makes it very easy to grow
        the bounding box to include new points. It also simplifies much of
        the logic in the constructors.
      
      - Use ROOTVGREAT instead of VGREAT for sizing greatBox and invertedBox.
        Avoids some overflow issues reported by Mattijs (thus GREAT has been
        used in treeBoundBox), but might still need further revision.
      0ffae646
  6. 25 Jan, 2017 2 commits
    • Mark Olesen's avatar
      ENH: additional methods/operators for boundBox (related to #196) · 722d23f5
      Mark Olesen authored
      - 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
      722d23f5
    • Mark Olesen's avatar
      ENH: boundBox 'reduce' method (related to #196) · 17d76e62
      Mark Olesen authored
      reduce()
      - parallel reduction of min/max values.
        Reduces coding for the callers.
      
        Eg,
            bb.reduce();
      
        instead of the previous method:
            reduce(bb.min(), minOp<point>());
            reduce(bb.max(), maxOp<point>());
      
      STYLE:
      
      - use initializer list for creating static content
      - use point::min/point::max when defining standard boxes
      17d76e62
  7. 28 Jul, 2016 1 commit
  8. 15 Apr, 2016 1 commit
  9. 22 Feb, 2016 1 commit
    • Henry Weller's avatar
      tmp: Updated to store and preserve the const-ness of the reference to a constant object · 15b7e87d
      Henry Weller authored
      This change requires that the de-reference operator '()' returns a
      const-reference to the object stored irrespective of the const-ness of
      object stored and the new member function 'ref()' is provided to return
      an non-const reference to stored object which throws a fatal error if the
      stored object is const.
      
      In order to smooth the transition to this new safer 'tmp' the now
      deprecated and unsafe non-const de-reference operator '()' is still
      provided by default but may be switched-off with the compilation switch
      'CONST_TMP'.
      
      The main OpenFOAM library has already been upgraded and '-DCONST_TMP'
      option specified in the 'options' file to switch to the new 'tmp'
      behavior.  The rest of OpenFOAM-dev will be upgraded over the following
      few weeks.
      
      Henry G. Weller
      CFD Direct
      15b7e87d
  10. 17 Dec, 2012 1 commit
  11. 12 Dec, 2012 1 commit
  12. 11 Dec, 2012 1 commit
  13. 16 Feb, 2012 1 commit
  14. 14 Aug, 2011 1 commit
  15. 21 Jul, 2011 1 commit
  16. 18 Jul, 2011 1 commit
  17. 19 Jan, 2011 1 commit
  18. 14 Jan, 2011 1 commit
  19. 07 Jan, 2011 1 commit
  20. 05 Jan, 2011 2 commits
  21. 20 Dec, 2010 1 commit
  22. 13 Dec, 2010 1 commit
  23. 10 Dec, 2010 1 commit
  24. 29 Nov, 2010 2 commits
  25. 28 Jul, 2010 1 commit
  26. 29 Mar, 2010 1 commit
  27. 14 Jan, 2010 1 commit
  28. 07 Dec, 2009 1 commit
  29. 10 Jan, 2009 1 commit
    • Mark Olesen's avatar
      Simplify checking of container (List/HashTable, strings) sizes · 95dcb6de
      Mark Olesen authored
      - can use 'XX.empty()' instead of 'XX.size() == 0', 'XX.size() < 1' or
        'XX.size() <= 0' or for simpler coding.
        It also has the same number of characters as '!XX.size()' and /might/ be
        more readable
      
      - many size checking had 'XX.size() > 0', 'XX.size() != 0', or 'XX.size() >= 1'
        when a simple 'XX.size()' suffices
      95dcb6de
  30. 01 Jan, 2009 1 commit
    • Mark Olesen's avatar
      boundBox, octree cleanup · 973b9ea0
      Mark Olesen authored
        - added boundBox(const tmp<pointField>&) constructor for use with
          coordinate systems
        - moved some methods from treeBoundBox to boundBox and use VectorSpace ops
      973b9ea0
  31. 31 Dec, 2008 1 commit
  32. 22 Nov, 2008 1 commit
  33. 20 Nov, 2008 1 commit
  34. 07 Nov, 2008 1 commit
  35. 16 Sep, 2008 1 commit
  36. 03 Sep, 2008 1 commit
  37. 25 Jun, 2008 1 commit