Skip to content
Snippets Groups Projects
  1. Dec 09, 2015
    • Brad King's avatar
      Merge topic 'simplify-integer-type-selection' · fcd6444a
      Brad King authored and Kitware Robot's avatar Kitware Robot committed
      
      3b89e771 Drop support for compilers without `long long`
      36bb09a7 Drop support for compilers with `__int64` as the only 64-bit int
      
      Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
      Acked-by: default avatarBerk Geveci <berk.geveci@kitware.com>
      Merge-request: !981
      fcd6444a
    • David E DeMarle's avatar
      Merge branch 'depth_sort_updates' into 'master' · 912eb02f
      David E DeMarle authored
      modernize depth sorting code
      
      modernize depth sorting code
      
      The following improvements were made to vtkDepthSortPolyData:
      
      * transfrom GetCell to GetCellPoints. Building the cells one by one
        is expensive and we only need points to determine the depth. We
        can also then access the points in place.
      * transform qsort to std::sort. Comparisons in std::sort get inlined
        so std::sort is much faster. I also reduced the overhead of swaps
        by using a functor so that only cell id is swapped.
      * use templates to deal with point types instead of going through
        virtual GetValue API that converts them to double.
      * restructure depth computations so that they can be vectorized by
        the compiler.
      * I added a Cxx test to improve test coverage of the various sorting
        modes supported by this class.
      
      The following improvements were made to vtkPolyData and vtkCellTypes:
      
      * move the non-virtual impementations of GetCellPoints to
        the header to improve compiler optimization.
      * add non-virtual GetCell method and also make it inline
      * fix an issue in cell types where the MaxId is not set
        correctly when you pass in pre-built arrays
      
      In tests the improved depth sort is ~ 3 x faster when sorting by
      first point and cell bounds, and ~ 2 x faster when sorting by
      parametric center. The tests made use of a ~ 8.1M cell iso-surface
      computed from a cosmology simulation, and gcc 4.9.2 compiled with
      -Wall -Wextra -DNDEBUG -Ofast -march=native -mavx -ffast-math
      
      ![depth_sort_speedup](/uploads/bfb5a5b32ad8f5d40d9871c728520385/depth_sort_speedup.png)
      
      code | point | bounds | param
      -----|-------|--------|------
      old | 2.58 sec | 3.05 sec | 3.19 sec
      new | 0.82 sec | 1.02 sec | 1.65 sec
      speed up | 3.14 x | 2.98 x | 1.93 x
      
      See merge request !844
      912eb02f
    • David E DeMarle's avatar
      Merge branch '15412-vtkCaptionActor2D-text-scaling' into 'master' · 86409761
      David E DeMarle authored
      Fix vtkCaptionActor2D not scaling text
      
      The text in vtkCaptionActor2D should scale to fill the rectangle defined
      by its positions. The scaling works as expected only if the actor's
      CaptionTextProperty is modified; using the default CaptionTextProperty
      shows the bug.
      
      This commit makes the text scale even when using the default caption
      text property.
      
      Fixes #15412
      
      See merge request !802
      86409761
    • Ken Martin's avatar
      Merge topic 'remove_leftover' · dfe79f1b
      Ken Martin authored and Kitware Robot's avatar Kitware Robot committed
      
      a1cc14f4 Remove lingering debugging code
      
      Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
      Merge-request: !988
      dfe79f1b
  2. Dec 08, 2015
  3. Dec 07, 2015
  4. Dec 05, 2015
  5. Dec 04, 2015
Loading